BFloat16 Writeback Freezing Makes LLM Unlearning Fragile to Wide-Gap Four-Bit Quantization

Weiye Yuan, Xue YuanarXiv 2026

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 bf16 only has 7 mantissa bits. When weights are stored in pure bf16 using 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}$)—where bf16 spacing is ultra-fine—can actually move.
  • Stochastic Rounding (bf16+SR) & Kahan Summation: To test causation without the memory bloat of full fp32 master 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-fp32 Causal Surgeries: To prove that concentrating updates near zero is enough to trigger quantization erasure even without bf16 math, they ran strict fp32 unlearning while artificially masking updates to only touch near-zero weights.
Figure 1. Pure-bf16 RN writeback freezing drives wide-gap four-bit rebound. (a) Llama-2-7B (1 ep., 51 steps, η=10−5): both bf16 and fp32 moments leave 100% of |w0| ≥2−7 weights unchanged (in the profiled fp32-moment arm at Ep. 10, < 0.005% move in [2−7, 2−6)). (b) Single-seed 16-point Sym-INT4 (g=128, matched s=cM/7.0) sweeps on TOFU-1B indexed by nominal rnom=c med(M/15)/τ (actual med(hw0/τ)= 15

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-forget10 split).
  • 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

  • fp32 Optimizer Moments Won't Save You: You might assume using fp32 AdamW moments prevents precision loss. Not if the master weights live in bf16! 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 bf16 RN freezing, all unlearning updates pile up inside $|w_0| \le 2^{-8}$. When a "wide-gap" 4-bit quantizer (like bnb-FP4 or 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-unlearning repo, running on 1 GPU defaults to pure-bf16 RN (freezing ~90% of weights), whereas multi-GPU ZeRO-3 quietly enables fp32 master 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+SR unlocks 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.
When GPTQ's median zero-cell half-width crosses the bf16 freezing threshold, RN rebound spikes while stochastic rounding stays stable.

Key Results

  • Eliminating Rebound on MUSE-News (Llama-2-7B): Toggling only writeback to bf16+SR unlocked 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+SR cut 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+SR eliminated severe NPO FP4 rebound (leaving tiny residuals between $-0.9$ and $+2.2$ pp) while saving 26.5 GiB of memory vs. fp32 masters 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+SR kernel than fused fp32 master 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 fp32 baseline.
  • 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

BibTeX
@misc{yuan2026bfloat,
  author = {Weiye Yuan and Xue Yuan},
  title = {{BFloat16 Writeback Freezing Makes LLM Unlearning Fragile to Wide-Gap Four-Bit Quantization}},
  year = {2026},
  eprint = {2611.38614},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38614},
}
Figure