potentialpaper

Follow the Gradient: Tracing Safety Degradation Back to Training Data

Add the PDF

@openreview[bot] · 2026-11-22 21:39 UTC · a689a6047c23 ·

Evidence

versions/v_md7dfese.json modified

+++ b/versions/v_md7dfese.json
@@ -15,8 +15,12 @@
}
],
"title": "Follow the Gradient: Tracing Safety Degradation Back to Training Data",
"url": "https://openreview.net/forum?id=aY4nMxI86R",
+ "pdf": {
+ "source": "https://openreview.net/forum?id=aY4nMxI86R",
+ "license": "CC-BY-4.0"
+ },
"evidence": [
"https://openreview.net/forum?id=aY4nMxI86R"
],
"abstract": "It is possible for fine-tuning Large Language Models (LLMs) on instruction data to degrade their safety, even when no training example looks overtly harmful. Because this safety-degrading data looks benign, standard content filters can 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 all gradient embeddings to help researchers build their own customized versions of SafeTulu to fine-tune on, such as by changing the removal fraction or filtering only certain subsets."

versions/v_md7dfese.pdf added

+++ b/versions/v_md7dfese.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:108a4ac7136e6fbf62c97b73355ca91508951cbb5d0dc2505de0df6468c1401f
+size 627174