Multilingual Long-Context Safety in Tool-Using Agents
Evaluating how language, context length, prompt position, runtime guardrails, and downstream agent behavior interact to shape safety in tool-using AI systems.
The problem
Safety guardrails for large language models are often evaluated as isolated text classifiers. In tool-using agents, however, an upstream guardrail decision is only one part of a larger process: a missed harmful request may or may not propagate into an unsafe downstream action, and that outcome can vary across languages and long-context conditions.
Research contributions
This project develops a multilingual guard-to-agent evaluation framework that follows harmful prompts from runtime guardrail decisions to downstream tool-selection behavior. The study expands 1,901 unsafe English prompts across 98 languages, covering 19 harm categories and up to 186,298 multilingual instances. It evaluates five runtime guards and two tool-using agents, and examines 8K and 32K contexts with harmful requests placed at different positions.
The results show that safety is compositional rather than a fixed property of an individual model: context length and prompt position can affect agents differently, and low-resource languages exhibit higher downstream restricted-tool-selection risk. The work was accepted at the NeurIPS 2026 Long-Context Foundation Models (LCFM) workshop.
Team
The director and lab members who authored the project's papers.
Related publications
Lab papers on this project's topic. A listing here does not mean the paper was funded by the project's award.
2026
- Agentic AI
- Security & Privacy
When Guardrails Fail: Multilingual Long-Context Safety in Tool-Using Agents
NeurIPS 2026NeurIPS 2026Accepted, to appear
Studies when safety guardrails fail for long-context, tool-using AI agents, and how that failure changes across languages, context lengths and tool interactions.
Workshop paper. Links: Project page for When Guardrails Fail: Multilingual Long-Context Safety in Tool-Using AgentsBibTeX for When Guardrails Fail: Multilingual Long-Context Safety in Tool-Using Agents
@inproceedings{alam2026guardrails, title = {{When Guardrails Fail: Multilingual Long-Context Safety in Tool-Using Agents}}, author = {Md Jahangir Alam and Ismail Hossain and Tanzim Ahad and Sai Puppala and Sajedul Talukder}, booktitle = {NeurIPS 2026}, year = {2026}, note = {To appear} }





