TL;DR
Recent alarms showed that compressing an "unlearned" LLM down to 4-bit precision can mysteriously resurrect the exact memories it was supposed to forget. It turns out the culprit isn't a deep algorithmic flaw in unlearning objectives, but a silent numerical precision bug: popular unlearning frameworks store weights in pure bf16 with round-to-nearest writeback, freezing up to 95% of weights and cramming all updates into tiny near-zero values where 4-bit quantization promptly wipes them out. Fixing how weights are written back to memory largely eliminates this "zombie memory" rebound.
What Problem Does This Paper Address?
Machine unlearning tries to surgically erase specific knowledge (like copyrighted text or hazardous data) from Large Language Models without retraining them from scratch. Recently, researchers noticed a spooky phenomenon: an unlearned model looks completely safe at 16-bit precision, yet once you apply 4-bit post-training quantization (PTQ) to deploy it cheaply, the forgotten text comes roaring back.
This spurred a wave of complex algorithmic and architectural defenses. The authors of this paper asked a much more fundamental, Feynman-esque question: Wait—what is actually happening to the floating-point numbers inside the training loop before quantization ever touches the model?
Methods
Instead of inventing a new unlearning loss function, the authors audited seven public unlearning codebases and analyzed floating-point arithmetic:
- Arithmetic Bounds & Dead-Zone Isolation: Standard
bf16only has 7 mantissa bits. When weights are stored in purebf16using deterministic round-to-nearest (RN) writeback, small gradient steps (common at standard $10^{-5}$ learning rates) fall below half a unit in the last place (ULP) for any reasonably large weight. Those weights freeze completely. Only tiny weights near zero ($|w_0| \le 2^{-8}$)—wherebf16spacing is ultra-fine—can actually move. - Stochastic Rounding (
bf16+SR) & Kahan Summation: To test causation without the memory bloat of fullfp32master weights, the authors built a fused Triton kernel that switches only the final weight writeback step from round-to-nearest to unbiased stochastic rounding (and also tested compensated Kahan-bf16). - Pure-
fp32Causal Surgeries: To prove that concentrating updates near zero is enough to trigger quantization erasure even withoutbf16math, they ran strictfp32unlearning while artificially masking updates to only touch near-zero weights.
Datasets
No new datasets were introduced; the authors evaluated existing standard benchmarks:
- MUSE (MUSE-News & MUSE-Books): Evaluates verbatim memorization, knowledge retention, and privacy leakage after unlearning.
- TOFU: A fictitious author-biography unlearning benchmark (including the
TOFU-forget10split). - WMDP (WMDP-Cyber): Tests removal of hazardous cybersecurity knowledge.
- WikiText-2 & BeaverTails: Used respectively for exact GPTQ quantization calibration and a secondary safety-refusal fine-tuning probe.
Key Insights and Ideas
fp32Optimizer Moments Won't Save You: You might assume usingfp32AdamW moments prevents precision loss. Not if the master weights live inbf16! At writeback time, RN still swallows small updates, leaving 83%–95% of weights frozen.- Why 4-Bit Erases Unlearning ("Snap-Back"): Normally, small dense updates survive coarse quantization because diverse starting weights act like natural dither. Under
bf16RN freezing, all unlearning updates pile up inside $|w_0| \le 2^{-8}$. When a "wide-gap" 4-bit quantizer (likebnb-FP4or per-channel GPTQ, whose central/zero quantization bin is wider than $2^{-8}$) compresses the model, those delicate near-zero edits snap right back to their pre-unlearning quantized states. - The Launcher Trap: In the popular
open-unlearningrepo, running on 1 GPU defaults to pure-bf16RN (freezing ~90% of weights), whereas multi-GPU ZeRO-3 quietly enablesfp32master weights. Hardware count alone completely changes experimental outcomes! - Unbiased Writeback Removes Implicit Shrinkage: Because RN discards most updates, it acts like a massive implicit brake on training. Switching to
bf16+SRunlocks the weights—meaning if you don't also tune your learning rate or early-stopping point, aggressive objectives like GradDiff can overshoot and wreck general model utility.
Key Results
- Eliminating Rebound on MUSE-News (Llama-2-7B): Toggling only writeback to
bf16+SRunlocked 92.0% of weights (vs. 17.1% under RN) and slashed Epoch 10 verbatim memorization rebound by 99.7% under 4-bit FP4 ($30.21 \to 0.09$) and 98.9% under per-channel GPTQ ($19.01 \to 0.21$). - Early-Stop Stability: Outside of over-unlearned saturation, across 30 checkpoints in an independent re-run,
bf16+SRcut FP4 rebound by 92.0% compared to RN ($+1.94$ vs. $+24.25$ percentage points). - Cross-Architecture Generality (1B–27B): Across Llama-3.1-8B, Qwen2.5-1.5B, and Gemma-4-E4B,
bf16+SReliminated severe NPO FP4 rebound (leaving tiny residuals between $-0.9$ and $+2.2$ pp) while saving 26.5 GiB of memory vs.fp32masters on 8B models, and fixed pre-compression training stalls on localized 27B Qwen3.8 checks. - Fast Sanity Check: Simply logging the fraction of trained weights that actually moved ($f_{\mathrm{move}}^{\mathrm{tr}}$) flagged silent freezing with zero extra compute, running 1.31$\times$ faster per optimizer step with their fused Triton
bf16+SRkernel than fusedfp32master weights.
Limitations and Future Work
- Statistical & Architectural Scope: Seed counts are modest ($n=3$ for main 1B/7B/Gemma-4 runs, $n=2$ for 8B, and single-seed for the same-checkpoint GPTQ group-size sweep). On 27B models, only 4 localized layers were trained without an
fp32baseline. - Theoretical Coverage: The exact mathematical snap-back theorem covers a minority of natural quantization groups (17.8%–25% for Sym-INT4) and doesn't formally cover Hessian-coupled GPTQ. Furthermore, on 7B models, update magnitude co-mediates recovery alongside near-zero support geometry, and uncalibrated coarse RTN quantization can still leak even with
bf16+SR. - Open Frontiers: Testing 70B+ models, Mixture-of-Experts (MoE) architectures, newer formats like
NVFP4, and sub-4-bit PTQ remain open for future investigation.
Summary updated