E8-QAT: Efficient 2-Bit Quantization-Aware Training with Implicit Lattice Codebooks
Organizations: Peking University · City University of Hong Kong · Tencent
Abstract
Low-bit quantization reduces the memory footprint of large language models, but preserving accuracy with efficient training remains challenging. Scalar quantization encodes weights independently, while explicit-codebook vector quantization introduces costly search during training. We propose E8-QAT, a 2-bit quantization-aware training framework that uses the lattice as an implicit eight-dimensional codebook. It jointly quantizes weight groups through arithmetic projection without storing or searching an explicit codebook during the training forward pass. A 2-bit core encoding and sparse extension preserve the selected lattice points exactly, adding less than 0.1% to core index storage. On Qwen3.6-35B-A3B, E8-QAT matches the performance of the full-precision model in terms of the average score across the four tasks. E8-QAT improves over the state-of-the-art baseline by 2.03% on IFEval and by 1.51% on LiveCodeBench, under the same data, schedule, and bit width. The 2-bit representation reduces peak memory by 80% and supports a larger batch. At each representation's largest feasible batch, E8-QAT reaches the decoding throughput of BF16.
Figures & tables
| Base (lm-eval) | Agent | IF | ||||||||
| Type | Method | Bits | ARC-C | HelS | PIQA | WinG | Avg. | LCB | BFCL | IFEval |
| N/A | BF16 | 16 | 55.20 | 83.49 | 82.75 | 74.27 | 73.93 | 81.42 | 75.99 | 85.40 |
| SQ | RTN | 2 | 49.23 | 79.44 | 79.87 | 69.85 | 69.60 | 20.38 | 53.91 | 77.82 |
| GPTQ | 2 | 52.78 | 79.17 | 80.20 | 69.76 | 70.48 | 20.38 | 55.87 | 78.18 | |
| UniSVQ | 2 | 56.83 | 78.31 | 80.58 | 71.59 | 71.83 | 31.28 | 72.32 | 80.41 | |
| VQ | QuIP# | 2 | 56.66 | 77.25 | 80.20 | 72.77 | 71.72 | 47.77 | 67.31 | 81.70 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Check | Coverage | Result |
|---|---|---|
| Core decoding agreement | All 65,536 core codewords | Identical lattice coordinates across the tested decoding paths |
| Single-root membership | All 26,435 escaped groups in the 375-step artifact | Every residual belongs to |
| Setting | Value |
|---|---|
| Model | Qwen3.6-35B-A3B |
| Total parameters | |
| Quantized parameters | expert FFN weights ( ) |
| Unquantized weights | in BF16: attention projections, router, embeddings, norms |
| Rate, quantized weights | 2.03 bits, including scales and codebooks |
| Latent weights | BF16 |
| Method | Mean distortion | Best layers |
|---|---|---|
| UniSVQ | 0.0605 | 0/40 |
| AQLM, layer-shared | 0.0598 | 1/40 |
| E8-PTQ | 0.0482 | 39/40 |
| Stage | Method | Bits | ARC-C | ARC-E | HellaSwag | PIQA | WinoGrande | BoolQ | Avg 6 |
|---|---|---|---|---|---|---|---|---|---|
| Ref. | BF16 | 16 | 55.20 | 72.22 | 83.49 | 82.75 | 74.27 | 85.02 | 75.49 |
| PTQ | UniSVQ | 2.03 | 56.83 | 75.84 | 78.31 | 80.58 | 71.59 | 89.33 | 75.41 |
| PTQ | AQLM, layer-shared | 2.03 | 54.95 | 73.06 | 79.59 | 81.50 | 73.32 | 88.38 | 75.13 |
| PTQ | E8-PTQ | 2.03 | 56.74 | 78.41 | 79.38 | 80.47 | 72.61 | 88.78 | 76.06 |
| QAT | LC-QAT | 2.03 | 56.57 | 75.72 | 81.28 | 80.74 | 73.88 | 87.61 | 75.97 |
| QAT | E8-QAT | 2.03 | 57.85 | 79.34 | 82.29 | 81.56 | 74.03 | 86.64 | 76.95 |
| Method | AIME25 pass@3 |
|---|---|
| BF16 | 90.00 |
| AQLM | 83.33 |
| LC-QAT | 90.00 |
| E8-QAT | 90.00 |
| Stage | Method | ARC-C | ARC-E | HelS | PIQA | WinG | BoolQ | Avg 6 | WikiText |
|---|---|---|---|---|---|---|---|---|---|
| Ref. | BF16 | 55.55 | 79.80 | 79.55 | 81.28 | 73.80 | 85.47 | 75.91 | 9.01 |
| PTQ | UniSVQ | 39.51 | 65.36 | 63.55 | 72.63 | 66.46 | 79.27 | 64.46 | 22.38 |
| PTQ | E8-PTQ | 43.94 | 70.50 | 66.16 | 74.76 | 68.90 | 81.47 | 67.62 | 20.79 |
| QAT | LC-QAT | 40.10 | 64.14 | 67.71 | 73.29 | 67.40 | 82.57 | 65.87 | 16.73 |
| QAT | E8-QAT | 44.62 | 69.49 | 70.03 | 76.17 | 69.61 | 77.43 | 67.89 | 13.77 |
| QAT | E8-QAT, LR | 35.84 | 52.36 | 58.39 | 69.48 | 59.04 | 72.29 | 57.90 | 19.46 |
| Training budget | Checkpoint step | Escape fraction |
|---|---|---|
| 375 | 100 | |
| 375 | 200 | |
| 375 | 300 | |
| 375 | 375 | |
| 750 | 400 | |
| 750 | 500 |
| Endpoint | |||
|---|---|---|---|
| 375 steps, peak LR | |||
| 375 steps, peak LR | |||
| 750 steps |
LLM Quantization
Large language model quantization reduces numerical precision to lower memory use and accelerate training or inference.
See all 381 papers