Robots Atlas>ROBOTS ATLAS
Training

Low-bit training

2017ActivePublished
Key innovation
Enables training neural networks at sub-16-bit numerical precision (FP8, FP4/MXFP4, INT8, even 1-bit/ternary weights), drastically cutting memory use, communication bandwidth and compute cost while preserving model quality.
Category
Training
Abstraction level
Pattern
Operation level
TrainingModelPost-training
Use cases
Pretraining large language models (LLMs)Reducing training cost and energy at scaleDistributed training with lower communication volumeQuantization-aware training for low-bit inferenceTraining models for edge/memory-constrained devices

How it works

The core is representing tensors in a narrow format (e.g. 8, 4 or fewer bits) while controlling quantization error. In mixed precision training matrix multiplications run in low precision, but accumulation and weight updates use a higher-precision master copy, and loss scaling prevents underflow of small gradients. For FP8 and FP4, scaling factors (per-tensor or per-block, as in microscaling MX formats) align the data's dynamic range to the narrow format. In quantization-aware training, "fake quantization" ops are inserted in the forward pass and gradients flow through them via a straight-through estimator. 1-bit/ternary architectures (BitNet) replace linear layers with a BitLinear variant that trains extreme low-bit weights from scratch.

Problem solved

Growing models demand ever more memory, bandwidth and energy to train. Standard FP32/FP16 precision wastes resources because the numeric range and precision exceed what is needed. Low-bit training shrinks weights and activations, speeds up matrix multiplications on dedicated hardware, and reduces communication volume in distributed training.

Components

High-precision master weightsStabilizing weight updates

A copy of the weights kept in FP32/BF16 and updated by the optimizer; prevents accumulation of rounding error when updates are small.

Loss scalingPreserving gradient range

Multiplying the loss by a factor before backprop so that small gradients do not underflow in low precision; can be static or dynamic.

Official

Scaling factors / microscalingMatching range to the format

Per-tensor or per-block factors aligning the data's dynamic range to a narrow format (FP8, FP4, MXFP4); shared within a block in MX formats.

Official

Fake quantization + straight-through estimatorPreparing for low-bit inference

In QAT a quantization op in the forward pass simulates low precision, while the gradient passes through it via a straight-through estimator (STE).

Official

Low-bit matrix multiply (low-bit GEMM)Source of compute speedup

Matrix multiply executed in low precision with higher-precision accumulation, typically on GPU/TPU tensor cores.

Implementation

Implementation pitfalls
Outliers and dynamic rangeHigh

LLM activations contain large-magnitude outliers that, in a narrow format, cause large quantization error and instability.

Fix:Per-block/microscaling, separate handling of outlier channels, or keeping sensitive layers in higher precision.
Gradient underflowHigh

Small gradients in FP16/FP8 flush to zero, stalling learning.

Fix:Loss scaling (static or dynamic) and higher-precision accumulation.
Gradient through quantization (STE)Medium

The quantization op is non-differentiable; the straight-through estimator (STE) introduces gradient bias that can hurt convergence.

Fix:Tuning thresholds/scales, soft quantization variants, gradual introduction of quantization.
Instability at extremely low bit-widthsHigh

1-bit/ternary and FP4 training is sensitive to hyperparameters, initialization and the scaling scheme; divergence is easy to hit.

Fix:Dedicated layers (BitLinear), microscaling formats, mixing precision for sensitive operations.

Evolution

Original paper · 2017 · ICLR 2018 · Paulius Micikevicius
Mixed Precision Training
Paulius Micikevicius, Sharan Narang, Jonah Alben, Gregory Diamos, Erich Elsen, David Garcia, Boris Ginsburg, Michael Houston
2017
Mixed precision training (FP16)
Inflection point

NVIDIA introduces FP16 training with master weights and loss scaling, cutting cost without accuracy loss.

2017
Quantization-aware training (INT8)

Jacob et al. combine simulated quantization with training to enable integer-only inference.

2022
FP8 format (E4M3/E5M2)
Inflection point

A joint NVIDIA/Arm/Intel proposal standardizes an 8-bit floating point format for training and inference.

2023
BitNet (1-bit weights)

First scalable Transformer trained from scratch with 1-bit weights (BitLinear layer).

2023
Microscaling formats (MX, MXFP4)

MX formats with a per-block shared scale enable training generative language models below 8 bits.

2024
BitNet b1.58 (ternary weights)
Inflection point

Weights {-1,0,1} match FP16 models at equal parameters and tokens, defining a new scaling law.

2024
FP8 training at scale (DeepSeek-V3)

DeepSeek-V3 (671B-parameter MoE) uses an FP8 mixed precision training framework at very large scale.

2025
Pretraining in NVFP4
Inflection point

NVIDIA demonstrates pretraining of large language models in the 4-bit NVFP4 format.

Hyperparameters (configurable axes)

Numeric format / bit-widthCritical

Choice of format: BF16/FP16, FP8 (E4M3/E5M2), FP4/MXFP4/NVFP4, INT8, 1-bit/ternary. Governs the memory/accuracy tradeoff.

FP8 (E4M3/E5M2)
MXFP4 / NVFP4
ternary (1.58-bit)
Scaling granularityHigh

Level at which the scaling factor is chosen: per-tensor, per-channel or per-block (microscaling). Finer granularity improves stability at lower bit-widths.

per-tensor
per-block (MX, blok 32 elementów)
Quantization strategyHigh

PTQ (post-training) vs QAT (quantization-aware) vs native low-bit training from scratch. Affects quality at low bit-widths.

QAT
native low-bit (BitNet)
Loss scalingMedium

Static or dynamic factor preventing gradient underflow; important for FP16/FP8.

dynamic
static (np. 1024)

Computational complexity

Space complexity: O(b).

Parallelism

Scope
TrainingAcross devices

Hardware requirements

Primary

GPU tensor cores natively support low-bit formats: FP8 since the Hopper architecture, FP4 (NVFP4/MXFP4) since the Blackwell architecture.

Good fit

TPUs support BF16 and integer formats as well as increasingly low precisions in training.

Limited

Without dedicated low-bit units the performance benefit is limited; the gain is mainly in memory.