π€ AI Summary
This work addresses the vulnerability of large foundation models to white-box attacks targeting internal safety routing in open-world settings, where existing defenses are brittle due to their reliance on static safety mechanisms. To overcome this limitation, we propose the Dynamic Routing Adaptive Alignment (DRAA) framework, which introduces a novel dynamic compensation routing mechanism. DRAA activates contrastive localization to identify and mask safety-critical routing pathways, thereby inducing causal failure modes. These failures are leveraged to construct preference pairs, which in turn drive the dynamic reconfiguration of rejection pathways. By restructuring the modelβs dependency on fixed safety routes, DRAA significantly enhances robustness against routing-level white-box attacks while preserving strong general-purpose capabilities.
π Abstract
With the widespread deployment of large foundation models (LFMs) in open environments, safety threats are shifting from black-box jailbreaks toward white-box attacks that directly identify and disrupt internal safety neurons or routes. However, existing safety defenses often rely on static safety units or fixed refusal pathways, leaving models highly vulnerable to targeted route-level white-box attacks. For that, we propose dynamic routing adaptive alignment (DRAA), a framework that introduces dynamic compensatory routes to preserve robust refusal behavior when the safety route is compromised. Specifically, we first identify and localize the model's safety route by contrasting internal activations between safe and unsafe calibration samples. DRAA then masks this safety route to induce causal failure cases and selectively mines the resulting defense failures, thereby constructing failure-aware preference pairs. Extensive experiments demonstrate that DRAA effectively restructures the underlying pathway dependence of model safety, substantially improving robustness against route-level white-box attacks, while preserving general utility.