模型与实验室 4.0 · 优秀 2026-10-27 · 论文

Follow the Gradient: Tracing Safety Degradation Back to Training Data

在指令数据上微调可能在没有任何显式有害样本的情况下悄悄侵蚀安全,内容过滤器难以发现。SimpleLoRIF 用可扩展梯度嵌入找出与不安全行为梯度对齐的训练样本:简化低秩归因,反向传播只到最后 4 个 transformer 块,可嵌入百万级样本。emergent misalignment 上梯度把不安全代码数据与微调后的广泛危害行为关联,AUC 最高 0.865。SafeTulu(Tulu 3 去掉最对齐不安全响应的 20% 样本)在 Qwen/Llama/Olmo 上 GCG 攻击成功率最高降 22%,优于 LLM-as-a-judge 与既有梯度过滤,能力基本保持;并识别出工具执行失败、叙事算术等被低估的安全退化来源。

打开原文回到归档

Follow the Gradient: Tracing Safety Degradation Back to Training Data

  • ID: 75ea53f9
  • 原文链接: https://arxiv.org/abs/2610.37481
  • PDF: https://arxiv.org/pdf/2610.37481
  • 作者: Saket Reddy , Amro Abbas , Anshuman Suri , Ari Morcos , David Schwab , Pratyush Maini
  • 日期: 2026-10-27
  • 更新: N/A
  • 分类: models
  • 来源类型: paper
  • 标签: safety, data-filtering, gradient-attribution, emergent-misalignment, fine-tuning
  • 质量评分: 4/5
  • 抓取时间: 2026-11-02T04:23:43Z

中文导读

在指令数据上微调可能在没有任何显式有害样本的情况下悄悄侵蚀安全,内容过滤器难以发现。SimpleLoRIF 用可扩展梯度嵌入找出与不安全行为梯度对齐的训练样本:简化低秩归因,反向传播只到最后 4 个 transformer 块,可嵌入百万级样本。emergent misalignment 上梯度把不安全代码数据与微调后的广泛危害行为关联,AUC 最高 0.865。SafeTulu(Tulu 3 去掉最对齐不安全响应的 20% 样本)在 Qwen/Llama/Olmo 上 GCG 攻击成功率最高降 22%,优于 LLM-as-a-judge 与既有梯度过滤,能力基本保持;并识别出工具执行失败、叙事算术等被低估的安全退化来源。

为什么值得关注

在指令数据上微调可能在没有任何显式有害样本的情况下悄悄侵蚀安全,内容过滤器难以发现SimpleLoRIF 是可扩展梯度嵌入方法:简化低秩归因并把反向传播限制到最后 4 个 transformer 块,可嵌入百万级样本...

该文于 2026-10-27 提交 arXiv(分类:Machine Learning (cs.LG)),页面未附额外备注。 条目已有的中文导读与英文摘要均以此页元数据为锚,不引入摘要之外的实验细节。

关键信息

  • 论文标题:Follow the Gradient: Tracing Safety Degradation Back to Training Data
  • 作者:Saket Reddy , Amro Abbas , Anshuman Suri , Ari Morcos , David Schwab , Pratyush Maini
  • arXiv:https://arxiv.org/abs/2610.37481
  • 发布时间:2026-10-27
  • arXiv 分类:Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI); Computation and Language (cs.CL)
  • 关联标签:safety, data-filtering, gradient-attribution, emergent-misalignment, fine-tuning

English Abstract

Fine-tuning Large Language Models (LLMs) on instruction data can quietly erode their safety, even when no training example looks harmful. Because this safety-degrading data looks benign, standard content filters struggle to catch it. We tackle this problem by developing SimpleLoRIF, a scalable gradient embedding method that identifies fine-tuning examples whose gradients align with unsafe behavior. By simplifying a low-rank attribution method and restricting backpropagation to the final four transformer blocks, SimpleLoRIF can embed datasets on the order of a million examples, boosting gradient attribution from a small-scale analysis tool into a practical filter for full post-training datasets. We first validate it on emergent misalignment, where we find that gradients can connect insecure-code training data to the broadly harmful behaviors that appear after fine-tuning, with AUC as high as 0.865 in the gradient space of misaligned models. We then use SimpleLoRIF to build SafeTulu, a version of Tulu 3 with the 20% of examples most gradient-aligned with unsafe responses removed. Training on SafeTulu reduces GCG attack success rate by up to 22% across Qwen, Llama, and Olmo, outperforming both LLM-as-a-judge and prior gradient-based filtering, while largely preserving or even improving capability. Finally, we analyzed the removed data and identify possibly under-studied sources of safety degradation, such as tool-execution failures and narrative arithmetic. We release SafeTulu along with a Hugging Face Space that lets researchers build their own customized versions of SafeTulu to fine-tune on, such as by changing the removal fraction or filtering only certain subsets.

English Summary

Fine-tuning LLMs on instruction data can quietly erode safety even when no training example looks harmful, so content filters miss it. SimpleLoRIF is a scalable gradient-embedding method that identifies fine-tuning examples whose gradients align with unsafe behavior: it simplifies low-rank attribution, restricts backpropagation to the final four transformer blocks, and scales to million-example datasets. On emergent misalignment, gradients connect insecure-code data to broadly harmful post-fine-tuning behavior (AUC up to 0.865). SafeTulu, Tulu 3 minus the 20% of examples most gradient-aligned with unsafe responses, cuts GCG attack success rate by up to 22% across Qwen, Llama and Olmo, beating LLM-as-a-judge and prior gradient filtering while largely preserving capability. Tool-execution failures and narrative arithmetic emerge as under-studied safety-degradation sources.

Obsidian Notes

  • 内容获取路径:优先尝试 opencli arxiv paper 2610.37481 -f json;arXiv API 返回 HTTP 429,改由 arXiv abs 页面元数据与摘要回填。
  • 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上。
  • 现代站点生成器按 content/{entry.id}.md 查找内容页;本文件写入 canonical content 目录,而不是 openclaw/content/。