A Lightweight Explainable Guardrail for Prompt Safety. Islam, M. A. & Surdeanu, M. In Liakata, M., Moreira, V. P., Zhang, J., & Jurgens, D., editors, Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 43573–43591, San Diego, California, United States, July, 2026. Association for Computational Linguistics.
Paper abstract bibtex 12 downloads We propose a lightweight explainable guardrail (LEG) method to detect unsafe prompts. LEG uses a multi-task learning architecture to jointly learn a prompt classifier and an explanation classifier, where the latter labels prompt words that explain the safe/unsafe overall decision. LEG is trained on synthetic explanation data, which is generated using a novel strategy that counteracts the confirmation biases of LLMs. Lastly, LEG's training process uses a novel loss that captures global explanation signals as a weak supervision and combines cross-entropy and focal losses with uncertainty-based weighting. LEG obtains equivalent or better performance than the state-of-the-art for both prompt classification and explainability, both in-domain and out-of-domain on three datasets, despite the fact that its model size is considerably smaller than current approaches.
@inproceedings{islam-surdeanu-2026-lightweight,
title = "A Lightweight Explainable Guardrail for Prompt Safety",
author = "Islam, Md Asiful and
Surdeanu, Mihai",
editor = "Liakata, Maria and
Moreira, Viviane P. and
Zhang, Jiajun and
Jurgens, David",
booktitle = "Proceedings of the 64th Annual Meeting of the {A}ssociation for {C}omputational {L}inguistics (Volume 1: Long Papers)",
month = jul,
year = "2026",
address = "San Diego, California, United States",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.acl-long.2017/",
pages = "43573--43591",
ISBN = "979-8-89176-390-6",
abstract = "We propose a lightweight explainable guardrail (LEG) method to detect unsafe prompts. LEG uses a multi-task learning architecture to jointly learn a prompt classifier and an explanation classifier, where the latter labels prompt words that explain the safe/unsafe overall decision. LEG is trained on synthetic explanation data, which is generated using a novel strategy that counteracts the confirmation biases of LLMs. Lastly, LEG{'}s training process uses a novel loss that captures global explanation signals as a weak supervision and combines cross-entropy and focal losses with uncertainty-based weighting. LEG obtains equivalent or better performance than the state-of-the-art for both prompt classification and explainability, both in-domain and out-of-domain on three datasets, despite the fact that its model size is considerably smaller than current approaches."
}
Downloads: 12
{"_id":"ZuZr7YrZ8sAe2QsGo","bibbaseid":"islam-surdeanu-alightweightexplainableguardrailforpromptsafety-2026","author_short":["Islam, M. A.","Surdeanu, M."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","title":"A Lightweight Explainable Guardrail for Prompt Safety","author":[{"propositions":[],"lastnames":["Islam"],"firstnames":["Md","Asiful"],"suffixes":[]},{"propositions":[],"lastnames":["Surdeanu"],"firstnames":["Mihai"],"suffixes":[]}],"editor":[{"propositions":[],"lastnames":["Liakata"],"firstnames":["Maria"],"suffixes":[]},{"propositions":[],"lastnames":["Moreira"],"firstnames":["Viviane","P."],"suffixes":[]},{"propositions":[],"lastnames":["Zhang"],"firstnames":["Jiajun"],"suffixes":[]},{"propositions":[],"lastnames":["Jurgens"],"firstnames":["David"],"suffixes":[]}],"booktitle":"Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)","month":"July","year":"2026","address":"San Diego, California, United States","publisher":"Association for Computational Linguistics","url":"https://aclanthology.org/2026.acl-long.2017/","pages":"43573–43591","isbn":"979-8-89176-390-6","abstract":"We propose a lightweight explainable guardrail (LEG) method to detect unsafe prompts. LEG uses a multi-task learning architecture to jointly learn a prompt classifier and an explanation classifier, where the latter labels prompt words that explain the safe/unsafe overall decision. LEG is trained on synthetic explanation data, which is generated using a novel strategy that counteracts the confirmation biases of LLMs. Lastly, LEG's training process uses a novel loss that captures global explanation signals as a weak supervision and combines cross-entropy and focal losses with uncertainty-based weighting. LEG obtains equivalent or better performance than the state-of-the-art for both prompt classification and explainability, both in-domain and out-of-domain on three datasets, despite the fact that its model size is considerably smaller than current approaches.","bibtex":"@inproceedings{islam-surdeanu-2026-lightweight,\n title = \"A Lightweight Explainable Guardrail for Prompt Safety\",\n author = \"Islam, Md Asiful and\n Surdeanu, Mihai\",\n editor = \"Liakata, Maria and\n Moreira, Viviane P. and\n Zhang, Jiajun and\n Jurgens, David\",\n booktitle = \"Proceedings of the 64th Annual Meeting of the {A}ssociation for {C}omputational {L}inguistics (Volume 1: Long Papers)\",\n month = jul,\n year = \"2026\",\n address = \"San Diego, California, United States\",\n publisher = \"Association for Computational Linguistics\",\n url = \"https://aclanthology.org/2026.acl-long.2017/\",\n pages = \"43573--43591\",\n ISBN = \"979-8-89176-390-6\",\n abstract = \"We propose a lightweight explainable guardrail (LEG) method to detect unsafe prompts. LEG uses a multi-task learning architecture to jointly learn a prompt classifier and an explanation classifier, where the latter labels prompt words that explain the safe/unsafe overall decision. LEG is trained on synthetic explanation data, which is generated using a novel strategy that counteracts the confirmation biases of LLMs. Lastly, LEG{'}s training process uses a novel loss that captures global explanation signals as a weak supervision and combines cross-entropy and focal losses with uncertainty-based weighting. LEG obtains equivalent or better performance than the state-of-the-art for both prompt classification and explainability, both in-domain and out-of-domain on three datasets, despite the fact that its model size is considerably smaller than current approaches.\"\n}\n\n","author_short":["Islam, M. A.","Surdeanu, M."],"editor_short":["Liakata, M.","Moreira, V. P.","Zhang, J.","Jurgens, D."],"key":"islam-surdeanu-2026-lightweight","id":"islam-surdeanu-2026-lightweight","bibbaseid":"islam-surdeanu-alightweightexplainableguardrailforpromptsafety-2026","role":"author","urls":{"Paper":"https://aclanthology.org/2026.acl-long.2017/"},"metadata":{"authorlinks":{}},"downloads":12},"bibtype":"inproceedings","biburl":"https://achievements.cs.arizona.edu/publications.bib","dataSources":["m5m3npBwJE44C9JYs","kE6WAgjSpzcEZNpsa"],"keywords":[],"search_terms":["lightweight","explainable","guardrail","prompt","safety","islam","surdeanu"],"title":"A Lightweight Explainable Guardrail for Prompt Safety","year":2026,"downloads":13}