Attribution Consistency in Fine Tuning Makes Refusal Less Sensitive to Paraphrase in a Small Tool Using LLM Agent
This preliminary study demonstrates that applying Latent Attribution Regularization (LAR) during fine-tuning improves the attribution consistency of a small tool-using LLM agent, thereby reducing its sensitivity to paraphrased harmful requests and stabilizing refusal decisions without significantly compromising detection performance, though it risks excessive refusal if applied to harmless examples.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the world of artificial intelligence, there is a growing class of systems known as agents. Unlike standard chatbots that simply answer questions, these agents are designed to take action. They can use tools, run code, or interact with other software to complete complex tasks. This capability makes them incredibly useful, but it also raises the stakes for safety. If a chatbot misunderstands a harmful request, it might just give a bad answer. If an agent misunderstands the same request, it might execute a dangerous action, like deleting files or sending private data. To prevent this, researchers teach these models to refuse harmful instructions. However, this safety training is surprisingly fragile. A model might refuse a request phrased one way, but if a human rephrases the same request using different words or a different sentence structure, the model might suddenly agree to do the harmful thing. This inconsistency is a major hurdle for deploying reliable agents in the real world.
A researcher named Junaid Hassan set out to solve this specific problem of inconsistency. The goal was not just to make a model refuse more often, but to make its refusal stable. A model that refuses everything is consistent, but it is also useless because it will not help with harmless tasks. The challenge was to find a way to make the model's decision to say "no" robust against changes in wording, without making it too cautious to say "yes" when it should. To test this, the researcher worked with a small, efficient AI model designed to use tools. The team used a dataset called AgentHarm, which contains hundreds of scenarios where an agent is asked to perform harmful tasks, alongside safe versions of those same tasks. Crucially, each harmful request was paired with several different paraphrases, allowing the researchers to see if the model's decision changed when the words changed but the meaning stayed the same.
The researcher tested a new training method called Latent Attribution Regularization. In simple terms, this method teaches the model to pay attention to the importance of the words it reads in a consistent way. When the model processes a request, it assigns a level of importance to each word to decide what to do. The training penalty ensures that if the request is rewritten with different words, the pattern of importance assigned to the ideas remains the same. This is compared against a standard training method that simply tries to make the model give the right answer for both the original and the rewritten request, without enforcing this consistency in how it thinks. The study was careful to compare the two methods fairly, ensuring that any difference in results came from the training technique itself and not from random luck or different amounts of data.
The results showed that the new method worked. When the models were adjusted to refuse a specific, small percentage of harmless tasks to ensure they were not being overly cautious, the model trained with the consistency method was significantly more stable. In the standard training group, about 25% of the task families had mixed results, meaning the model would refuse one version of a request but comply with a paraphrase of it. With the new consistency method, this number dropped to 19%. Furthermore, the rate at which the model flipped its decision from "no" to "yes" just because the words changed fell from roughly 11% to 9%. The researchers also measured a score that reflects how likely the model is to refuse, regardless of a specific cutoff point, and found that this score changed much less when the wording changed. This indicates that the model's internal logic for deciding to refuse had become more solid.
Importantly, the study confirmed that this stability did not come at the cost of the model's ability to detect harm. The new method did not make the model significantly better or worse at telling the difference between a harmful and a harmless request overall. The improvement was purely in the consistency of the decision-making process. However, the research also uncovered a significant failure case that serves as a warning for future work. In an earlier attempt, when the researchers tried to teach the model how to handle harmless tasks using only text-based examples, the model learned a bad habit. It began to refuse almost all requests that involved tools, even safe ones, and stopped using the tools entirely. This happened because the training data did not show the model how to use tools in a safe context. This failure highlights that for agents, the training data must include examples of how to use tools safely, not just how to answer questions.
The study concludes that making an AI agent's refusal decision consistent is possible, but it requires specific training techniques that look at how the model processes information, not just the final answer. While the results are promising, they are preliminary, based on a single small model and a limited number of test runs. The researcher notes that future work needs to test this on larger models, with more variations in the training data, and with human reviewers to ensure the paraphrases are truly equivalent. The work provides a clear path forward: by teaching agents to be consistent in how they weigh the words they read, we can make them safer and more reliable, ensuring they do not accidentally agree to do harm simply because a request was phrased differently.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.