Gradient Immunity proposes USG: blocking malicious fine-tuning gradients at open-weight releaseGradient Immunity: Null-Space Resistance to Malicious Fine-Tuning
Translation in progress — untranslated text is omitted.
The paper proposes Unidirectional Safety Gate (USG) for what the authors call "partially protected open-weight release" (PPOW): most weights remain trainable, but a small set of safety-critical components is retained at release. USG consists of a Null Space Cubic Layer and an Inverse Adapter, inserted after the last Transformer layer; during downstream fine-tuning, the cubic layer suppresses or blocks gradients of harmful samples whose hidden states fall into the calibrated protected region, while the Inverse Adapter restores the base model's forward behavior. The defender calibrates the threshold using harmful data in its possession, allowing protection to generalize to nearby in-distribution harmful samples.
- Aligned open-weight models still lose safety alignment under malicious downstream fine-tuning. Existing defenses mostly target FTaaS or rely on downstream user cooperation, and do not directly apply to the provider-controlled PPOW release setting.
- Unidirectional Safety Gate consists of a Null Space Cubic Layer and an Inverse Adapter inserted after the last Transformer layer. The cubic layer constructs a fixed matrix from the common right null space of harmful sample hidden states, suppressing or blocking harmful sample gradients based on a norm-ratio threshold; the inverse adapter analytically restores forward behavior.
- Across Qwen-14B and Llama-8B, with three harmful datasets totaling six settings, the strictly fixed threshold 100% harmful-block strategy keeps post-fine-tuning ASR at pre-release levels. Safe pass rates are 100% on JailbreakBench and HarmfulBench, dropping to 79% and 69% on BeaverTails-H. On Alpaca, the Inverse Adapter's ACC matches the base model.
- The authors note that the null space is sensitive to input, hard blocking is vulnerable to format changes; the inverse branch is no longer unique at exact zeros; as harmful samples increase, the common null space may disappear, and extended selection cannot reliably separate harmful and safe representations at scale. Experiments cover two models, low-budget SFT (fine-tuning only the last five layers), and strict threshold and conditional persistence settings.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- Failure-Firstcites the paper's id or linkFailure-First AI 安全日报:Google DeepMind 三天内连发两款机器人模型
“Gradient Immunity: Null-Space Resistance to Malicious Fine-Tuning” — Huang, Zeng, Zheng et al., 5 August.
Related papers
Show 3 more papers
- Where Is Rank-1 DiM Refusal Intervenable in Multimodal LM Derivatives?Analysis / interpretabilityarXiv