← Latest papers
💻 computer science

Moving the Safety Barrier: Dynamic Routing Adaptive Alignment Against White-Box Attacks

This paper proposes Dynamic Routing Adaptive Alignment (DRAA), a framework that enhances large foundation models' robustness against white-box attacks by identifying and localizing safety routes, then training compensatory pathways to maintain refusal behavior even when primary safety mechanisms are compromised.

Original authors: Shangze Li, Chuancheng Shi, Simiao Xie, Lingzhi He, Cheng Ji, Zifeng Cheng, Fei Shen, Chao Wu, Tat-Seng Chua

Published 2026-08-05
📖 5 min read🧠 Deep dive

Original authors: Shangze Li, Chuancheng Shi, Simiao Xie, Lingzhi He, Cheng Ji, Zifeng Cheng, Fei Shen, Chao Wu, Tat-Seng Chua

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 walking through a massive, bustling library where the books can talk back to you. This is the world of Large Foundation Models (LFMs), the super-smart AI brains that power everything from writing assistants to chatbots. For these AI systems to be safe, they need a "safety guard" inside their brain that stops them from answering dangerous questions, like "How do I build a bomb?" or "How do I hack a bank?" For a long time, scientists thought this guard was a single, sturdy door. They built defenses to lock that door tight. But recently, hackers (the "white-box attackers") figured out they could peek inside the library's blueprints, find exactly where that door is, and simply remove the hinges. Once the door is gone, the AI forgets how to say "no" and happily helps with the bad stuff. The big question is: how do we build an AI that doesn't rely on just one door, but can instantly build a new wall if the old one gets knocked down?

This is exactly what the paper "Moving the Safety Barrier: Dynamic Routing Adaptive Alignment Against White-Box Attacks" tackles. The authors, led by Shangze Li and colleagues, realized that the old way of building AI safety was too rigid. They propose a new framework called DRAA (Dynamic Routing Adaptive Alignment). Think of it like training a security guard not just to stand in front of a specific door, but to learn how to instantly reroute traffic through a secret tunnel whenever that door is blocked.

Here is how their "magic trick" works, broken down into simple steps:

1. Finding the "Magic Door"
First, the researchers had to figure out exactly which part of the AI's brain was doing the "saying no." They fed the AI safe questions (like "How do I bake a cake?") and unsafe questions (like "How do I steal a cake?"). By comparing how the AI's brain cells (neurons) lit up for each, they pinpointed the specific "safety route"—a specific path of neurons that acts as the main guard.

2. Breaking the Door on Purpose
Next, they did something risky: they temporarily "turned off" that main safety route in the AI's brain. They asked the AI the dangerous questions again. As expected, without its main guard, the AI started giving bad answers. This was the "failure" they needed to study.

3. Teaching a Detour
This is the clever part. The researchers took those moments where the AI failed (because the main door was gone) and used them to teach the AI a new lesson. They said, "Hey, when the main guard is missing, you must find another way to say 'no'." They used a special training method called DR-DPO (Dynamic Routing Direct Preference Optimization). Imagine this as a game where the AI is forced to learn a "detour" strategy. The training locks the original safety neurons so the AI can't just rely on them; it has to find new, hidden pathways in its brain to handle the danger.

4. The Result: A Super-Resilient AI
The paper tested this on several different AI models, including Qwen2.5 and LLaMA-3.2. The results were impressive. When hackers tried to "prune" (cut out) the known safety neurons, the old AI models collapsed and gave harmful answers. But the DRAA-trained models? They kept saying "no."

For example, on a 14-billion-parameter model called Qwen2.5-14B, the standard defense failed completely when the safety route was attacked, letting through 270 out of 313 harmful prompts. The DRAA model, however, only let through 5 out of 313. Even on smaller models like the 1.5-billion-parameter version, DRAA reduced the failure rate from 248 down to just 43.

The authors also checked if this new "detour" skill made the AI dumber at normal tasks. They tested it on math problems (GSM8K) and general knowledge (ARC). The results showed that the AI remained just as smart and helpful as before; it just gained a superpower to stay safe even when its main defense was destroyed.

Why This Matters
The paper suggests that relying on a single, static safety path is a fatal flaw in AI security. If an attacker knows where the guard is, they can remove it. DRAA suggests a better way: build redundancy. By training the AI to dynamically switch to backup routes when the main one is compromised, we create a system that is much harder to break. The authors found that this method works not just for text, but also for images and videos (multimodal models), making it a robust shield against the next generation of AI attacks.

In short, the paper argues that safety shouldn't be a single locked door; it should be a flexible network of paths that can reroute traffic instantly, ensuring the AI stays safe no matter how hard someone tries to break in.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →