atlas

Research map / Architectures and efficiency / Quantization

Jetfire: Efficient and Accurate Transformer Pretraining with INT8 Data Flow and Per-Block Quantization

ICML 2024 · Architectures and efficiency › Quantization · approach: Post-training quantization of ViTs · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Jetfire, an INT8 pretraining method for transformers that keeps INT8 data flow across linear and non-linear operators with per-block (32x32) quantization, matching FP16 accuracy and giving 1.42x end-to-end block speedup on RTX 4090.

Problem

Fully quantized training of transformers is limited by quantize-compute-dequantize overheads, memory-bound non-linear operators, and accuracy loss from channel-wise outliers under per-token or per-tensor INT8 quantization, while FP8 methods need Hopper GPUs.

Approach

Use an INT8 data flow in which every linear and non-linear operator reads and writes INT8 tensors with per-block scale factors (B=32), so that quantization is applied on-chip and the weight gradient is also computed in INT8 with per-block scales that keep accuracy under channel-wise outliers.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use per-block quantization instead of per-token quantization (ablation)Jetfire · GPT2 activation quantizationquantization errorHelped
Use per-block quantization rather than per-channel quantization (ablation)Transformer pretraining · Transformer linear layersquantization errorNo clear effect
Set Triton block size to 64 × 64 and CUDA block size to 128 × 32 × 128 (ablation)Jetfire operators · Kernel speed testskernel speedHelped
Use INT8 data flow and per-block quantization rather than FP16 trainingJetfire · WMT14 En-DeBLEU: 26.49 -> 26.49No clear effect
Use Jetfire rather than FP trainingDeiT-Base pretraining · ImageNet-1KTop-1 accuracy: 75.67 -> 76.03Helped
Use Jetfire rather than FP trainingGPT2 pretraining · OpenWebText validation, GPT2-basevalidation loss: 2.9074 -> 2.8597Helped
Use Jetfire rather than FP trainingGPT2 fine-tuning · GLUE average score, GPT2-baseGLUE score: $78.50_{0.45}$ -> $78.18_{0.34}$Hurt
Use Jetfire rather than SwitchBackGPT2 transformer layer, hidden size 4096 · GPT2 transformer layeroverall speedup: 1.27 -> 1.42Helped
Use Jetfire rather than SwitchBackGPT2 transformer layer, hidden size 1024 · GPT2 transformer layeroverall speedup: 1.07 -> 1.07No clear effect
Use Jetfire rather than SwitchBackGPT2 activation storage, 24 layers, BS=1 · GPT2activation memory reduction: 1.24 -> 1.49Helped

Surprising findings

Limitations

Experimental setup

Datasets: WMT 14 En-De ImageNet1K OpenWebText GLUE

Benchmarks: WMT 14 En-De ImageNet1K GLUE OpenWebText validation loss

Metrics: BLEU Top-1 accuracy validation loss GLUE score kernel speedup end-to-end speedup activation memory reduction quantization MSE

Baselines: FP16 training SwitchBack per-tensor quantization GDA DAQ

Builds on: SwitchBack TransformerEngine FlashAttention Triton

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy