Follow the Gradient: Tracing Safety Degradation Back to Training Data
TL;DR - SimpleLoRIF uses scalable gradient attribution to identify benign-looking fine-tuning data associated with unsafe LLM behavior. Filtering this data reduced adversarial attack success while largely preserving model capabilities.
- Scales gradient embedding to roughly one million examples by backpropagating through only the final four transformer blocks.
- Linked insecure-code data to emergent harmful behavior with AUC up to 0.865.
- SafeTulu removes the 20% of Tulu 3 examples most gradient-aligned with unsafe responses.
- SafeTulu reduced GCG attack success by up to 22% across Qwen, Llama, and Olmo.