Null-space layer blocks gradients, keeping attack success near pre-release levels
The Unidirectional Safety Gate maintains post-finetuning attack success rates close to pre-release levels
AI/ML arXiv 5 Aug 2026 Defense Prototype evidence
Published as “Gradient Immunity: Null-Space Resistance to Malicious Fine-Tuning”
Why it matters
USG can raise the cost of malicious downstream fine-tuning for released LLMs without requiring downstream users to follow extra safety procedures, though its effectiveness diminishes as the harmful data distribution grows or varies.
Summary
The Unidirectional Safety Gate (USG) using a Null Space Cubic Layer and Inverse Adapter keeps the attack success rate after malicious fine-tuning at the same level as before fine-tuning across six model-dataset configurations, while preserving 100 % safe-pass on two benchmarks (JailbreakBench, HarmfulBench) and only modestly reducing it on the harder BeaverTails-H set. The defense works by projecting harmful hidden states into a calibrated null-space that blocks gradient flow, and the Inverse Adapter restores the model’s forward behavior. Evidence comes from Table 1/2 showing unchanged ASR and safe-pass numbers, and Table 3 showing restored accuracy. The results are based on moderate-size public benchmarks (≈100 harmful examples per dataset, 2 k restoration samples).
What they found 3
- Null Space Cubic keeps post-fine-tuning ASR at the pre-release level in all six model-dataset settings
“Under this setting, Null Space Cubic keeps post-fine-tuning ASR at the pre-release level in all six model-dataset settings.”
- The backward gate preserves 100 % safe-pass on JailbreakBench and HarmfulBench, but drops to 79 %/69 % on BeaverTails-H
“The backward gate induced by this frozen threshold preserves 100% safe pass rate for both Qwen-14B and Llama-8B on JailbreakBench and HarmfulBench, while BeaverTails-H is more conservative, reducing safe pass rate to 79% for Qwen14B and 69% for Llama-8B.”
- Inverse Adapter restores base-model performance on the Alpaca restoration benchmark
“In our evaluated setting, the Inverse Adapter matches the original base-model performance on this benchmark, consistent with its role as an analytic forward-restoration map rather than a separate trainable component.”
Caveats 5
- Safe-pass rate drops to 79 % for Qwen-14B and 69 % for Llama-8B on the harder BeaverTails-H benchmark, indicating a trade-off between safety and utility.
- The null space is sensitive to the input space; even minor perturbations can render it ineffective.
- Like other representation-space defenses, USG relies on preserving a specific hidden-state geometry for harmful data.
- Our strongest forward-preservation claim is tied to the inverse-adapter-plus-extended-null-space regime emphasized in this paper, where exact zeros are practically absent and the inverse branch therefore remains defined for essentially all samples.
- As the number of harmful samples increases, the stacked harmful hidden-state matrix tends to approach full rank, so a non-trivial common null space may disappear.
What’s new here 4
- Introduces a release-time gradient-blocking mechanism (USG) that operates without downstream cooperation
- Instantiates the gate as a Null Space Cubic Layer that suppresses gradients for harmful representations
- Pairs the gate with an analytic Inverse Adapter that restores the model’s forward outputs
- Demonstrates that a fixed threshold calibrated on defender-held harmful data can maintain pre-release attack success rates after downstream fine-tuning