atlas

Research map / Architectures and efficiency / Quantization

4-bit Shampoo for Memory-Efficient Network Training

NeurIPS 2024 · Architectures and efficiency › Quantization · approach: Low-precision training formats

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 4-bit Shampoo, the first low-bit second-order optimizer, by quantizing preconditioner eigenvector matrices (with Bjorck orthogonal rectification and linear-square quantization), matching 32-bit Shampoo accuracy with lower memory.

Problem

Second-order optimizers like Shampoo store large preconditioner and inverse-root states, limiting trainable model size; prior low-bit optimizer state compression only covered first-order optimizers.

Approach

Quantize the eigenvector matrix of the preconditioner rather than the preconditioner itself (so small singular values, which control the inverse 4th root, are preserved), rectify the quantized eigenvectors' orthogonality with one Bjorck iteration, and use linear-square quantization instead of dynamic tree quantization.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use 4-bit Shampoo instead of 32-bit ShampooShampoo · Image classification benchmarks in Table 1test accuracy: differences ranging from -0.7% to 0.5%Mixed
Use 4-bit Shampoo instead of 32-bit ShampooShampoo · Image classification benchmarks in Table 1total GPU memory cost: memory savings of 4.5% to 41%Helped
Quantize eigenvector matrix U rather than preconditioner A (ablation)4-bit Shampoo · CIFAR-100, Swin-Tinytest accuracy: 76.95 -> 78.63Helped
Add orthogonal rectification (ablation)4-bit Shampoo with Linear-2 and quantized U · CIFAR-100, Swin-Tinytest accuracy: 78.22 -> 78.63Helped
Replace DT with Linear-2 quantization (ablation)4-bit Shampoo with quantized U and no OR · CIFAR-100, Swin-Tinytest accuracy: 78.70 -> 78.22No clear effect
Use 4-bit instead of 3-bit quantization (ablation)Shampoo with Linear-2 quantization of U and OR · CIFAR-100, Swin-Tinytest accuracy: 78.63 and 78.53No clear effect
Quantize U without orthogonal rectification at 3-bit (ablation)Shampoo · CIFAR-100, Swin-Tinytraining loss: NaNHurt

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-100 Tiny-ImageNet ImageNet-1k

Benchmarks: CIFAR-100 Tiny-ImageNet ImageNet-1k

Metrics: test accuracy wall-clock time total GPU memory cost normwise relative error angle error

Baselines: 32-bit Shampoo SGDM AdamW naive 4-bit Shampoo (quantizing preconditioner) 32-bit K-FAC 32-bit AdaBK 32-bit CASPR

Builds on: Shampoo block-wise 8-bit optimizers 4-bit Adam states Bjorck orthonormalization K-FAC AdaBK CASPR

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