Manuscript Offprint

arXiv:2609.35465

Tetra: Serving Leech-Lattice Quantized LLMs at 2.7 Bits per Parameter

Pier-Jean Malandrino

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

Abstract

Leech-lattice quantization gives good quality at two bits per weight, but its codebooks hold more than 101410^{14} points, too many for a lookup table. Our earlier kernel expanded the codes at load time and read 4.804 bits per weight from GPU memory for 2 bits of code. We present TETRA, a new codebook on the same lattice. A 24-weight block still takes 48 bits, most of which index a 64-state trellis of the Golay code and one shared 16 KiB table. The kernel decodes a block with six table loads and two small lookups inside the matrix-vector product, and reads 2.148 bits per weight. For full models, we retrain one scale per matrix row, store the matrices that lose the most as 4-bit integers, and pay for them with 4-bit embedding tables. Our Qwen3-4B, 8B and 14B files hold 2.73, 2.70 and 2.73 bits per parameter over the whole model. They score 63.37, 69.58 and 75.66 on the full MMLU test set, 4.76, 4.21 and 2.46 points below 4-bit AWQ at 5.3 to 6.0 bits per parameter. They generate 113.8, 95.0 and 57.2 tokens per second in our engine. On GSM8K, through the served kernel, they lose 9.63, 4.62 and 3.26 points to FP16. At 4B our file scores 23.6 points above llama.cpp's IQ2_XXS (2.48 bits per parameter). Every number we measured for a table or figure comes from one NVIDIA L40S GPU. We preregistered the main experiments.

1 Introduction

A 14-billion-parameter model needs 29.5 GB for its FP16 weights alone, more than a 24 GB consumer GPU holds. At batch 1 a model reads every weight once per token, so weight size sets both memory and speed. Two or three bits per parameter let such a model run on local hardware.

Van der Ouderaa et al. [24] quantize blocks of 24 weights to points of the Leech lattice Λ24\Lambda_{24}. At two bits per weight, their method gives the best quality in their comparison, ahead of QuIP# [22] and QTIP [23]. Each block becomes one 48-bit code in a codebook of more than 101410^{14} points, too many for a lookup table (§2). In earlier work [19] we expanded each code at load time into a wider format decoded with shifts and masks. The kernel then read 4.804 bits per weight from GPU memory (VRAM) for 2 bits of code, more than the 4.179 of 4-bit AWQ, and the saving was lost (Figure 1).

This paper removes that loss with TETRA, a new codebook on the same lattice, then builds complete models around it. The lattice is built from the Golay code, a binary code of length 24. Three of its codewords with eight ones cover all 24 coordinates. Read in those three groups of eight, the code is a trellis [8]: a layered graph with 64 nodes at each cut, where each codeword is one path. A block is stored as its state, a few bits that choose the path and the gain, and three 11-bit indices into one 16 KiB table, still 48 bits. The kernel decodes it with six table loads and two small lookups, and reads 2.148 bits per weight.

Our contributions:

• TETRA, a codebook on Λ24\Lambda_{24} read through a Golay trellis and one table, with the rule it imposes on which points to keep and its measured cost ( §3\S3).

• A fused kernel that decodes and multiplies in one pass, reading 2.148 bits per weight against 4.804 for our earlier layout and 4.179 for 4-bit AWQ [17] (§5).

• A recipe for complete files at about 2.7 bits per parameter that changes no lattice code: retrained row scales, int4 for the projections that lose the most, and 4-bit embedding tables to pay for them. On Qwen3-4B, the lattice file with int4 value matrices scores about 12 MMLU points below FP16, and the recipe closes part of that gap. Each step is measured at 4B, 8B and 14B with paired intervals over the full MMLU test set (§4, §6.5).

Figure

Figure 1: Bits of code a format carries per weight (hollow marker) and bits its kernel reads per weight in VRAM (filled marker). Circles are our formats, squares deployed kernels. PLANES14, our earlier layout, reads 2.40×2.40\times its 2.000 bits of code as it expands its codebook first, and TETRA 1.07×1.07\times. TETRA's extra bits are its row scales and the unquantized tail of each row, both in f32 in this benchmark ( §4.1§4.1). QTIP reads no row scales or tail, and its 2 KiB table is not counted (Appendix A). FP16 (16.000 b/weight) is left out. Data: echelle-formats.csv.

• MMLU, GSM8K through the served kernel, speed and memory of our files against FP16 and AWQ at three sizes, and against 2-bit formats at 4B (§6.2, §6.3). With about as much weight memory or less, our 8B and 14B score above AWQ’s 4B and 8B on MMLU and are not separated from them on GSM8K (§6.4, a comparison chosen after measuring).

Our files do not match AWQ on quality, and at 14B their MMLU gap to AWQ is about half the gap at 4B. They use about half its memory, 2.7 bits per parameter against 5.3 to 6.0, or about 65 % of it if AWQ also stored its embedding tables in 4 bits (§6.2). On GSM8K, run through the kernel, they lose more to FP16 than on MMLU when counted in errors, at every size (§6.3). For the experiments behind the main results, we fixed the plan and our predictions before measuring, and we report the predictions that were wrong (Appendix B).

References (29)