Manuscript Offprint

arXiv:2610.27699

E8-QAT: Efficient 2-Bit Quantization-Aware Training with Implicit Lattice Codebooks

Xinyu Lei, Hong Huang, Jiebin Zhang, Hongyu Li, Jinlong Song, Decheng Wu, Guanghua Yu, Jianchen Zhu, Sujian Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 E8E_8 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 4× larger batch. At each representation’s largest feasible batch, E8-QAT reaches 1.97× the decoding throughput of BF16.

1 INTRODUCTION

Large language models (LLMs) have made substantial progress across language tasks (Wu et al., 2023), but growing demands for privacy-preserving, offline, and cost-efficient deployment have made running them on resource-constrained platforms a pressing need (Yao et al., 2024; Liagkou et al., 2024). Weight quantization addresses this by reducing model size (Lin et al., 2024). Post-training quantization (PTQ) incurs low computational cost but can suffer accuracy degradation at ultra-low bit widths (Frantar et al., 2023). Quantization-aware training (QAT) recovers accuracy by allowing the model to adapt to quantization errors through weight updates, but training requires substantial data, compute, and memory (Jacob et al., 2018; Chen et al., 2025). This motivates quantization schemes that achieve strong accuracy at ultra-low bit widths without prohibitive training overhead.

Existing QAT approaches primarily rely on scalar quantization, which assigns quantization levels to each weight coordinate independently (Liu et al., 2025). While scalar quantization supports efficient per-coordinate arithmetic, it limits the flexibility of codeword arrangements across dimensions. Vector quantization (VQ) addresses this by jointly encoding groups of weights through a shared codebook (Gray, 1984), allowing richer codeword arrangements that better capture cross-dimensional weight structure and reduce quantization distortion at a given bit budget (Egiazarian et al., 2024; Tseng et al., 2024). Recent work has therefore explored integrating vector quantization into quantization-aware training (VQ-QAT) (Malinovskii et al., 2024; Wang et al., 2026a).

However, conventional VQ-QAT requires an explicit codebook that must be stored and searched at every training step, posing two challenges at scale: (1) nearest-codeword search during the training forward pass introduces substantial overhead, and (2) codebook size grows exponentially with vector dimension at a fixed bit width, making high-dimensional VQ impractical for both training and inference.

To address these challenges, we propose E8-QAT, a QAT framework that uses the E8E_8 lattice (Conway & Sloane, 1982) as an implicit eight-dimensional codebook, as illustrated in Figure 1. During the training forward pass, each eight-dimensional weight group is projected onto the E8E_8 lattice by rounding, parity correction, and a constant number of candidate comparisons, reducing the per-group computational cost from O(v2kv)O(v2^{kv}) for exhaustive codebook search to O(v)O(v), independent of the nominal codebook size, where k and v denote the bit width and vector dimension, respectively. Exploiting the observed concentration of quantized weight groups within the finite core, E8-QAT combines a 2-bit core encoding with a sparse extension that, at very low additional memory cost, exactly preserves the lattice points selected during training with an identity straight-through estimator (STE) (Bengio et al., 2013).

Our main contributions are as follows:

• Search-free joint quantization for QAT. We jointly quantize each group of eight weights by closed-form projection onto the infinite E8E_8 lattice in the QAT forward pass. The projection requires O(v)O(v) operations per group, independent of the nominal codebook size, without codebook storage, search, or learning.

• Exact export beyond the finite core. Lattice projections during QAT can fall outside the finite core, and clipping these points at export would alter the trained quantized weights. We combine a dense core index with sparse extension records to preserve every trained lattice point exactly. At the end of training, the sparse records add less than 0.1% to the 2-bit index payload.

• Matched-budget 2-bit evaluation on agentic and long-form tasks. We evaluate the performance and efficiency of E8-QAT on Qwen3.6-35B-A3B (Qwen Team, 2026) and Llama-3.1-8B (Grattafiori et al., 2024).

On Qwen3.6-35B-A3B, E8-QAT improves over LC-QAT by 2.03% on IFEval and by 1.51% on LiveCodeBench, under the same training corpus, schedule, and bit budget. Its four-task average is 73.93, equal to the reported BF16 average. Relative to BF16, the exported model reduces peak memory usage by 80%, enabling a 4× larger batch size. Decoding throughput reaches 1.97× that of BF16 when each representation is evaluated at its largest feasible batch size.

References (40)