JANUS: Foreseeing Latent Risk for Long-Horizon Agent Safety
The paper introduces Janus, a foresight-oriented framework that trains a guard model called Vanguard to anticipate and block unsafe long-horizon agent actions by jointly optimizing future risk forecasting and safety adjudication, achieving significant improvements in both safety protection and benign task completion across multiple benchmarks.
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 watching a very smart, very eager robot assistant try to fix your computer. You ask it to "organize your files," and it starts moving things around. In the world of artificial intelligence, this is called an "agent." For a long time, we've worried about these agents saying mean things or generating bad ideas. But now, as these agents get the power to actually do things—like delete files, send emails, or change settings—the danger isn't just what they say; it's what they do. The problem is that sometimes the bad action doesn't happen right away. An agent might spend ten steps doing harmless things, only to make one tiny mistake on step eleven that deletes your entire hard drive. If you only check the agent's safety after it hits "delete," it's too late. You need a way to see the disaster coming before the robot even reaches for the button. This is the challenge of "long-horizon safety": spotting the danger in the early steps of a long plan, before the harm actually happens.
Enter Janus, a new framework designed to be a "crystal ball" for AI safety. Think of Janus not as a security guard who stops you only after you've already tried to steal a cookie, but as a wise mentor who looks at your plan and says, "Hey, if you keep going down this path, you're going to knock over the cookie jar in three minutes. Let's change course now." The researchers behind Janus realized that to stop long-term disasters, an AI guard needs to do two things at once: look at what the agent is doing right now, and imagine what the agent is likely to do next.
To teach this crystal ball how to see the future, the team didn't just wait for real robots to make mistakes (which would be risky). Instead, they built a massive, simulated playground where they could create thousands of "what-if" scenarios. They used a team of AI agents to act out different roles: one played the user, another played the environment, and a third played the agent itself. They generated over 75,000 training examples, ranging from harmless tasks to complex, multi-step plans that slowly spiraled into trouble. Some risks came from tricky user instructions, some from sneaky data hidden in files, and some from the agent just getting confused and making a bad plan on its own.
The magic happens in the training method, which the authors call CoAA-RL. Imagine a student learning to play chess. Usually, they just learn to win or lose. But with Janus, the student has two jobs. First, they have to anticipate the next few moves of the game (the "Anticipation" task). Second, they have to judge if the game is safe or dangerous based on those predicted moves (the "Adjudication" task). The clever part is that these two jobs are linked. The student only gets a good score if their prediction of the future actually helps them make the right safety judgment. If they predict a future that is wrong or useless, they don't get rewarded. This forces the AI to learn to predict only the future details that matter for safety.
The result of this training is a model named Vanguard. When Vanguard watches an agent working, it doesn't just wait to see if the agent does something bad. Instead, it pauses, looks at the agent's history, and quickly simulates a few steps into the future. It asks, "If the agent keeps going this way, what happens next?" If the simulation shows a disaster waiting down the line, Vanguard steps in and stops the agent before the bad action happens.
The researchers tested Vanguard on four different safety benchmarks, which are like standardized exams for AI safety. The results were promising. Vanguard managed to block unsafe actions much better than previous safety guards. Specifically, it improved the average protection rate by 15.9 percentage points compared to other methods. Even better, it didn't get in the way of good work; it actually helped agents complete safe, helpful tasks 5.1 percentage points more often than the baseline guards. This suggests that by looking ahead, Vanguard can catch the sneaky, delayed risks that other guards miss, all while letting the robot do its job when it's safe.
However, the authors are careful to note that this is a simulation-based breakthrough. The training data was created in a controlled, simulated environment, not by watching real-world robots in the wild. While the results are strong, they suggest that this approach works very well for the specific types of risks they tested, but we don't yet know how it will handle every possible new trick an agent might encounter in the real world. Still, Janus offers a powerful new way to think about safety: not just reacting to mistakes, but foreseeing them.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.