SimpleLoRIF traces fine-tuning safety degradation to training data; releases SafeTulu
The paper introduces SimpleLoRIF, a scalable gradient-embedding method that finds fine-tuning examples whose gradients align with unsafe behavior even when they look benign. Restricting backprop to the last four blocks lets it handle million-example datasets…
Why it matters
Teams fine-tuning open models get a practical filter for data that quietly erodes safety.
What happened
1 min readThe paper introduces SimpleLoRIF, a scalable gradient-embedding method that finds fine-tuning examples whose gradients align with unsafe behavior even when they look benign. Restricting backprop to the last four blocks lets it handle million-example datasets. Removing the most aligned 20% of Tulu 3 (SafeTulu) cut GCG attack success by up to 22% across Qwen, Llama, and Olmo while largely preserving capability.
Our analysis
Turning gradient attribution from a small analysis tool into a full post-training data filter is meaningful practical progress, and it beat LLM-as-a-judge filtering. The finding that tool-execution failures may be an under-studied source of safety degradation is relevant to agent training data. The abstract reports only GCG attack success and gives no compute cost. SafeTulu and a Hugging Face Space are released.