arXiv:2610.31412cs.LGOct 2026

Manuscript Offprint

arXiv:2610.31412

SQuAT: Spherical Lattice Vector Quantization-Aware Training

Sebastian Loeschcke, Ivan Koryakovskiy, Tycho F. A. van der Ouderaa, Riccardo Del Chiaro, Mart van Baalen, Paul N. Whatmough, Markus Nagel

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

Sebastian Loeschcke 1,2^{1,2}

University of Copenhagen

sbl@di.ku.dk

Tycho F. A. van der Ouderaa

Qualcomm AI Research 3^{3}

touderaa@qti.qualcomm.com

Ivan Koryakovskiy 1^{1}

Qualcomm AI Research 3^{3}

ivankor@qti.qualcomm.com

Mart van Baalen

Qualcomm AI Research 3^{3}

mart@qti.qualcomm.com

Riccardo Del Chiaro

Qualcomm AI Research 3^{3}

rdelchia@qti.qualcomm.com

Markus Nagel

Qualcomm AI Research 3^{3}

markusn@qti.qualcomm.com

Paul N. Whatmough

Qualcomm AI Research 3^{3}

pwhatmou@qti.qualcomm.com

ABSTRACT

Vector quantization (VQ), in particular lattice-based methods, offer strong rate-distortion trade-offs for low-bit large language models (LLMs), yet their behavior under quantization-aware training (VQ-QAT) remains poorly understood. We scale lattice VQ-QAT to billion-parameter LLMs and multi-billion-token training regimes, and introduce SQUAT, a shape-gain VQ-QAT approach trained with a separate straight-through estimator (STE) for the shape and gain. SQUAT decomposes weights into direction and magnitude: normalized directions are quantized using an E8E_{8}-derived spherical codebook, while gains are quantized independently with low-bit scalar quantizers. We show that, unlike a standard STE applied to the full quantizer, which ignores the shape-gain structure, these separate STEs induce tangent-space updates for directions, yielding an implicit form of spherical (Riemannian) optimization. To enable scalability, we develop a distributed exact nearest-neighbor assignment scheme, in which workers quantize disjoint weight blocks and communicate only discrete indices, reducing VQ-QAT training time by 12.8×12.8\times and allowing us to scale it to 10B tokens. Across instruction-tuned LLaMA-3.2-1B/3B, Qwen3-4B, and base Qwen3-1.7B, SQUAT consistently outperforms standard VQ-QAT STE under identical quantizers and initialization, and achieves SOTA VQ-QAT accuracy.

1 INTRODUCTION

Large language models (LLMs) contain billions of parameters (Touvron et al., 2023a;b), making weight storage and movement a dominant bottleneck for inference. Even with INT8 or INT4 formats, memory bandwidth remains a limitation for token generation, so aggressive quantization is critical to reduce footprint, while preserving quality (Frantar et al., 2023; Lin et al., 2024; Xiao et al., 2023).

Most practical LLM quantization pipelines rely on integer scalar quantization. However, recent methods have demonstrated that vector quantization (VQ) can offer superior quality–compression

1^{1}Equal contribution.

2^{2}Work done while doing an internship at Qualcomm AI Research.

3^{3}Qualcomm AI Research is an initiative of Qualcomm Technologies, Inc.

Figure

Figure 1: Overview of SQUAT. Left: a weight block is decomposed as w=γsw = \gamma s, where s∈Sd−1s \in \mathbb{S}^{d-1} is the shape and γ∈R+\gamma \in \mathbb{R}^+ is the gain. The two components are quantized independently and reconstructed as w^=γ^s^\hat{w} = \hat{\gamma} \hat{s}. Middle: our spherical factored STE applies separate STEs to the gain and shape quantizers, mapping the gradient g=∂L/∂w^g = \partial \mathcal{L} / \partial \hat{w} to a scalar gain gradient ∇γL≈s^⊤g\nabla_{\gamma} \mathcal{L} \approx \hat{s}^\top g and a tangent shape signal γ^Psg\hat{\gamma} P_s g on TsSd−1T_s \mathbb{S}^{d-1}. Right: the tangent shape signal induces the update u+=u−ηγ^(∥u∥)−1Psgu^+ = u - \eta \hat{\gamma}(\|u\|)^{-1} P_s g on the shape parameter, followed by normalization (retraction back to the unit sphere), s+=u+/(∥u+∥)s^+ = u^+ / (\|u^+\|).

trade-offs by quantizing groups of weights jointly (Zhang et al., 2025; Van Baalen et al., 2024; Egiazarian et al., 2024), especially at very low bit-widths. While general VQ requires codebooks that grow exponentially with quantization dimensionality, Structured VQ methods based on lattices (Tseng et al., 2024a), trellises (Tseng et al., 2024b), or pyramid constructions (van der Ouderaa et al., 2024) avoid storing explicit codebooks. Some methods (van der Ouderaa et al., 2024; 2026) decompose weight vectors into shape (direction) and gain (magnitude), motivated by the observation that distortion is often dominated by angular error, while block norms can be represented with fewer bits (Sabin & Gray, 1982; Yue et al., 2025).

Quantization-aware training (QAT) for LLMs with carefully chosen low-bit quantizers and sufficient training budget can retain strong model quality (Panferov et al., 2025; Liu et al., 2025). While some work on QAT for VQ exists (e.g., Wang et al. (2026); Malinovskii et al. (2024)), VQ-QAT remains largely unexplored in billion-parameter and multi-billion token regimes. Furthermore, existing work relies on multi-dimensional application of scalar QAT gradient estimation and parameter updates, with no prior work exploiting the shape-gain decomposition in a QAT setting. As a result, it remains unclear how to derive a QAT rule that aligns gradient estimation and parameter updates with spherical VQ geometry.

To address this, we introduce SQUAT, a Spherical Lattice Vector Quantization-Aware Training method for billion-parameter LLMs, that trains shape-gain quantizers with a factored straight-through estimator (STE), illustrated in Figure 1. SQUAT represents each weight block using separate trainable direction and gain parameters. In the forward pass, the direction parameter is normalized and quantized with an E8E_{8}-derived spherical codebook, including normalized spherical E8P12 codebook (Tseng et al., 2024a) or our proposed E8S construction from equal-norm lattice shells, while the gain is quantized independently with a low-bit scalar quantizer. In the backward pass, the STE is applied separately through the direction and gain quantizers, rather than jointly through the reconstructed weight. This factored STE induces tangent-space updates

Figure

Figure 2: SQUAT improves WikiText2 perplexity over integer scalar (INT-QAT) at 2.25 bpw on LLaMA-3.2-1B.

for the direction parameter, yielding spherical optimization of quantized weight directions while decoupling magnitude optimization into the gain parameter. While spherical parameterizations themselves are well established in machine learning (e.g., DoRA (Liu et al., 2024a)) and quantization, prior work has not analyzed how combining such parameterizations with STE-based quantization alters the surrogate gradients and the resulting optimization dynamics.

To allow practical scaling to billion-parameter models and multi-billion token training, we introduce distributed exact assignment, where workers quantize disjoint weight blocks against a shared codebook and communicate only discrete indices.

We evaluate SQUAT on instruction-tuned LLaMA-3.2-1B/3B, Qwen3-4B, and base Qwen3-1.7B models, with QAT budgets from 0.25B to 10B tokens. SQUAT improves over standard joint-STE VQ-QAT under the same quantizer and initialization, substantially improves over VQ-PTQ baselines after QAT, and remains competitive with mature scalar INT-QAT at comparable bit budgets, see Figure 2.

SQUAT makes the following contributions:

• We propose a novel training rule for shape-gain lattice VQ-QAT, and show that this approach induces tangent-space updates on directions, yielding true Spherical VQ-QAT.

• We propose a novel E8E_{8}-derived normalized spherical codebook which enables fractional bitwidth quantization, unlocking Pareto-optimal bit rates inaccessible to scalar methods.

• We introduce a fast exact nearest-neighbor assignment implementation with fused kernels, index caching, and distributed assignment, yielding a 12.8×12.8\times speedup and enabling exact codebook-based VQ-QAT at billion-parameter and multi-billion-token scale.

• Empirically, SQUAT improves over the Standard VQ-QAT baseline under matched quantizers and initialization, and achieves SOTA VQ-QAT accuracy.

• At 2.25 bpw, SQUAT outperforms INT-QAT across all models and training budgets on WikiText2 perplexity, and achieves competitive or better MMLU and CSR, with MMLU gains of up to 7.9 % at 1B token training.

References (90)