Why Does Agentic Safety Fail to Generalize Across Tasks?
This paper argues that agentic safety fails to generalize across tasks not merely due to training limitations, but because the inherent complexity of mapping task specifications to safe execution is fundamentally higher than that of execution alone, a conclusion supported by theoretical analysis of Lipschitz constants and empirical experiments with neural network and LLM agents.
Original paper licensed under CC BY 4.0 (http://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
Imagine you are teaching a robot to drive a car. You want it to be able to go to any destination you give it, whether it's a sunny park or a rainy highway. This is the "multi-task" setting: the robot learns to be a general driver, not just a driver for one specific route.
The paper asks a very specific question: If we teach the robot to drive safely (avoiding crashes and obstacles), will it stay safe when we send it to a new destination it has never seen before?
The short answer the authors found is: No, not necessarily.
Here is the breakdown of their discovery using simple analogies:
1. The "Safe Teacher" vs. The "Reckless Teacher"
The researchers set up an experiment with two types of teachers:
- The Reckless Teacher: Teaches the robot how to get to the destination as fast as possible, ignoring traffic lights or potholes.
- The Safe Teacher: Teaches the robot how to get to the destination while strictly avoiding potholes and obeying traffic rules.
They found that when the robot practiced on the specific roads the teachers knew, it learned perfectly from both. It could mimic the reckless teacher and the safe teacher equally well.
The Problem: When they sent the robot to a brand new road (a task it had never seen in training), the robot that learned from the Safe Teacher struggled much more than the one that learned from the Reckless Teacher. The safe robot would often get confused, make mistakes, or fail to navigate the new road safely, even though it was great at the old roads.
2. The "Complex Map" Analogy
Why does this happen? The authors argue it's not because the robot is "dumb" or because the training wasn't good enough. It's because safety is inherently more complex than just "getting the job done."
- Getting the job done is like drawing a straight line from Point A to Point B. If you know how to draw a straight line to one house, you can usually figure out how to draw a straight line to a new house nearby. The relationship between the destination and the path is simple.
- Doing it safely is like drawing a path that must avoid a specific set of invisible, shifting mines. The relationship between the destination and the "safe path" is much more tangled. A tiny change in the destination might require a completely different, complex detour to avoid the mines.
The paper proves mathematically that the "map" connecting a task to a safe solution is much more "jagged" and sensitive to changes than the map connecting a task to a simple solution. In math terms, the "slope" of the safe map is steeper. This means that if you make a small mistake in understanding the new task, your safe solution can go wildly wrong, whereas your simple solution might just be slightly off.
3. The "Smooth vs. Rough Terrain" Metaphor
Imagine you are learning to walk.
- Task Execution is walking on a flat, smooth sidewalk. If you learn to walk on one sidewalk, you can easily walk on a new one.
- Safety is walking on a tightrope while juggling. If you learn to juggle on a specific tightrope, you might not be able to juggle on a new tightrope that is slightly different. The rules of "don't fall" make the relationship between "where you are" and "what you do" incredibly fragile.
4. What This Means for AI
The paper concludes that we cannot simply assume that if an AI is safe on the tasks we trained it on, it will be safe on new tasks.
- The Myth: "If we train the AI on enough safe examples, it will generalize safety to everything."
- The Reality: Safety is a fundamentally harder skill to generalize than performance. Just because an AI can do a new task doesn't mean it can do that new task safely.
The authors suggest that current methods (like just showing the AI more examples of safe behavior) might not be enough. We might need to invent entirely new ways to teach AI how to understand the complex relationship between "what I need to do" and "how to do it without breaking anything."
In summary: Teaching an AI to be safe is like teaching it to walk a tightrope. It might get good at walking on the specific tightrope you built, but when you put it on a new, slightly different tightrope, it's much more likely to fall than if you had just taught it to walk on the ground. The paper proves this isn't a training error; it's a fundamental property of safety itself.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.