BFloat16 writeback precision affects robust unlearning in large language models

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

Machine LearningComputation and Language

Summary

Some large language models forget specific text when retrained, a process called unlearning. The paper finds that a common way of storing model weights using a format called BF16 can cause most weights to freeze and not update effectively. This freezing makes the model’s unlearning fragile when compressing the model to fewer bits. The authors show that changing how weights are written back, using stochastic rounding, helps prevent this problem and makes unlearning more reliable across different quantization methods.

What this means in practice

  • For machine learning engineers: Improve robustness of unlearning processes during model quantization by adjusting writeback precision and learning rates based on weight movement checks.
  • For ai infrastructure teams: Ensure stable updates in compressed large language models by monitoring and tuning weight precision and unlearning parameters before deployment.

Authors

Weiye Yuan, Xue Yuan

Abstract

Four-bit post-training quantization (PTQ) can restore supposedly forgotten text after LLM unlearning (Zhang et al., 2025). Auditing seven public repositories reveals an upstream precision defect: both Zhang et al.'s MUSE trainer and single-GPU open-unlearning default to pure-BF16 round-to-nearest (RN) storage, freezing 83%-95% of weights even with FP32 optimizer moments and concentrating updates inside $|w_0| \le 2^{-8}$ where wide-gap four-bit quantizers (bnb-FP4, per-channel GPTQ) and magnitude pruning erase them. On MUSE-News (Llama-2-7B, $n=3$), switching only writeback to stochastic rounding (BF16+SR) eliminates severe Ep. 10 FP4 and per-channel GPTQ verbatim rebound ($30.2 \to 0.09$ and $19.0 \to 0.21$) and cuts non-saturated early-stop FP4 rebound by 92% across two independent runs (30 neighboring checkpoints across 3 seeds). A single-seed same-checkpoint GPTQ sweep is consistent with median zero-cell half-width $\mathrm{hw}_0$ crossing $τ= 2^{-8}$, while strict zero-BF16 FP32 1B surgeries establish near-zero support sufficiency alongside update-magnitude co-mediation on natural 7B runs. Combining sufficient arithmetic bounds, 1B-8B rebound replications (Llama, Qwen2.5, Gemma-4), and localized 27B freezing checks (Qwen3.8), we recommend checking trained-layer weight movement ($f_{\mathrm{move}}^{\mathrm{tr}}$) before jointly tuning writeback precision and learning rate.