Manuscript Offprint

arXiv:2609.37852

Delta-Matching: Closing the Final Gap of Native 8-bit Training for LLMs

Haozhan Tang, Hao Kang, Han Cai, Song Han, Chenyan Xiong

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Reliable FP8 attention remains a barrier to fully native 8-bit large language model training. We derive how forward-backward inconsistencies produce stale delta and empirically show how it distorts training dynamics. Our stale-delta hybrid runs show a modest loss gap at 569M parameters but substantial loss increases and downstream degradation at 1.67B and 5.29B. QK normalization, NoPE (no positional encoding), and lower-learning-rate context extension mitigate or delay degradation without eliminating it. This pattern suggests accumulated optimization error that smaller models and short runs can conceal. We propose Delta-Matching, proving that it restores the softmax gradient's zero-row-sum invariant under the stated numerical assumptions. It enables native block-scaled FP8 in every forward and backward attention-core matmul without architectural changes, smaller global batches, or auxiliary forward outputs. Across tested architectures, scales, and training stages, Delta-Matching matches BF16/FP32 mixed-precision training loss and overall downstream performance. We will release our implementation, trained models, and data recipes.

Figure

Figure 1: A 1.67B GDN/GQA hybrid trained on 30B Nemotron-CC tokens. Left. Delta-Matching tracks BF16/FP32 training loss; FP8 baselines degrade. Right. Delta-Matching matches BF16/FP32 validation loss and overall downstream performance. Section 4.1 details training and evaluation.

1 INTRODUCTION

FP8 promises faster, more memory-efficient large language model (LLM) training, with roughly twice BF16's peak Tensor Core throughput on Hopper (NVIDIA, 2023). Existing systems quantize training-state storage (Peng et al., 2023b; Xi et al., 2025) and linear-layer matmuls in both passes (DeepSeek-AI et al., 2025). Despite effective low-precision inference (Zhang et al., 2025c; Shah et al., 2024) and native FP8 training kernels (NVIDIA, 2026g;f; cuDNN Team @ NVIDIA,

*Correspondence to: Haozhan Tang haozhant@andrew.cmu.edu.

2026), reliable attention training across architectures, tokens per step, scales, and durations remains unresolved.

We trace an FP8 attention failure to a saved-output shortcut for the backward row correction (Dao, 2024). Separately rounded forward and backward operands can invalidate this shortcut, producing stale delta that violates the softmax score gradient's zero-row-sum invariant (Section 3.2). Residuals can sharpen or flatten rows; despite near cancellation across rows, we observe persistent pressure on selected channel gains (Section 3.3).

We propose Delta-Matching, deriving the correction from unquantized probabilities and FP32 products of FP8 backward operands to restore the invariant under the stated numerical assumptions (Section 3.4). Matching output-gradient precision alone leaves a probability-quantization inconsistency that still degrades training (Section 4.2). Delta-Matching enables native block-scaled FP8 in every forward and backward attention-core matmul, without architectural changes, a smaller global batch, or an auxiliary forward output.

The failure persists in hybrids pairing Gated DeltaNet (GDN) with multi-head latent attention (MLA) (Yang et al., 2025; DeepSeek-AI et al., 2025), and Kimi Delta Attention (KDA) with grouped-query attention (GQA) (Kimi Team et al., 2025; Ainslie et al., 2023). QK normalization, proposed to mitigate related BF16 instability (Qiu & Yao, 2026), prevents catastrophic collapse in our FP8 GDN/GQA hybrid but leaves a substantial performance gap. Increasing head dimension from 128 to 256 does not help; removing attention's positional encoding (NoPE) while retaining position-sensitive recurrent layers only delays degradation (Sections 4.3 and 4.4).

Scale and duration also matter. At 569M parameters, GDN/GQA with stale delta has a modest validation-loss gap, largely preserving downstream performance. SageBwd pretraining (Zhang et al., 2026a) and the BF16 study by Qiu & Yao (2026) focus on this sub-billion regime. At 1.67B and 5.29B, models initially track BF16/FP32 before loss rises and downstream performance degrades, with earlier onset at 5.29B. During 8K-to-64K context extension at a lower learning rate following the Kimi K2 and DeepSeek-V3 recipe (Kimi Team et al., 2026b; DeepSeek-AI et al., 2025), the stale-delta baseline's training-loss gap over BF16/FP32 exceeds 0.01 only after roughly 19,000 optimizer steps (20B tokens; Section 4.6). These patterns suggest error accumulation over updates, accelerated at larger scales, which small-model or short-run evaluations can obscure.

Figure 1 summarizes 1.67B GDN/GQA pretraining on 30B tokens. We make three contributions.

• We identify a stale-delta failure mechanism in FP8 attention training through theoretical analysis and controlled experiments.

• We formulate Delta-Matching for native FP8 attention and prove that it restores the softmax-backward invariant under the stated numerical assumptions.

• Across tested attention and model architectures, scales, training stages, and linear-layer precisions, Delta-Matching matches BF16/FP32 mixed-precision (MP) attention references in training loss and overall downstream performance.

These findings clarify 8-bit training and offer a path to fully native 8-bit LLM training. We will open-source our implementation, trained models, and data recipes to accelerate LLM research.

References (100)

Couldn't load all references. Reload the page to try again.