atlas

Research map / Architectures and efficiency / Quantization

Towards Cheaper Inference in Deep Networks with Lower Bit-Width Accumulators

ICLR 2024 · Architectures and efficiency › Quantization · approach: Low-precision training formats · 0 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.

Shows that DNNs pretrained in full precision can be fine-tuned to run with 12-bit floating-point accumulators (M7E4) with little accuracy loss, and that fine-grained straight-through gradient estimators help at lower accumulator precision.

Problem

Accumulation of products in GEMM operations is still done at high precision in hardware, and it dominates cost once weights and activations are FP8; low-bit accumulators usually degrade accuracy badly.

Approach

Simulate a quantized FMA (product and accumulator quantized with floating-point rounding and overflow/underflow) in CUDA, fine-tune pretrained networks with underflow disabled and then enabled in a two-stage schedule, and for sub-12-bit accumulators replace the identity straight-through estimator with fine-grained STEs (Recursive/OF, Immediate/DIFF) that backpropagate through the accumulation grap

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use 12-bit accumulators with dual-stage fine-tuningResNet50 · ImageNetTop-1 accuracy: 76.80% -> 76.40%No clear effect
Use dual-stage rather than 1-stage fine-tuning (ablation)LBA ResNet50 with FP8 weights and activations · ImageNetTop-1 accuracy: 74.15% -> 76.22%Helped
Use dual-stage rather than 1-stage fine-tuning (ablation)LBA ResNet18 with FP8 weights and activations · ImageNetTop-1 accuracy: 69.54% -> 69.70%Helped
Use dual-stage rather than 1-stage fine-tuning (ablation)LBA ResNet34 with FP8 weights and activations · ImageNetTop-1 accuracy: 73.18% -> 73.42%Helped
Use LBA accumulators instead of the baseline accumulatorBert-Large · SQuAD v1f1: 90.40 -> 90.66Helped
Reduce accumulator precision from M10E5 to M6E5 (ablation)LLaMA v2 7B · MMLU 5-shottest accuracy: 45.4 -> 44.3Hurt
Use M7E4 rather than M10E5 accumulator (ablation)LLaMA v2 7B · MMLU 5-shottest accuracy: 45.4 -> 45.1Hurt
Replace identity STE with Immediate / DIFF STE (ablation)Fully connected NN with M4E3 accumulators · MNISTTop-1 accuracy: 18.28 -> 97.67Helped
Replace identity STE with Immediate / DIFF STE (ablation)LBA transformer, M3E3 · Masked Language ModelingAccuracy: 20.86 -> 24.60Helped
Replace identity STE with Immediate / DIFF STE (ablation)LBA transformer, M4E3 · Masked Language ModelingAccuracy: 13.88 -> 41.94Helped
Replace identity STE with Immediate / DIFF STE (ablation)LBA transformer, M5E3 · Masked Language ModelingAccuracy: 9.47 -> 50.12Helped
Replace identity STE with Immediate / DIFF STE (ablation)LBA transformer, M6E3 · Masked Language ModelingAccuracy: 14.71 -> 50.03Helped

Limitations

Experimental setup

Datasets: ImageNet SQuAD v1 OASST1 MNIST oscar unshuffled-original-af CIFAR10

Benchmarks: ImageNet SQuAD v1 MMLU MNIST

Metrics: top-1 accuracy exact match F1 5-shot accuracy

Baselines: Baseline FP32 accumulator Baseline (FP8) with 32-bit accumulator Sakr et al. 16-bit accumulator WrapNet Identity STE

Builds on: WrapNet chunk-based accumulation qtorch QLoRA

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