A small computed decoder improves joint quantization
Computed Permutation Trellis Coding: Near-Optimal Quantization from Two Multiplications and a 64-Byte Table · arXiv:2611.22019
In plain words
This paper introduces Computed Permutation Trellis Coding, a way to store tensor values using few bits and decode them together in small groups. Its decoder uses two multiplications to choose a value from a tiny table, whose rarely used entries can represent unusually large or small values.
On four-bit standard-normal data, CPTC scored higher than two QTIP codebooks and close to other trellis codes. A separate test also found lower model-distribution error than the QTIP codebooks for one Llama model and setup.
The research
At low bit widths, small losses in weight precision can affect model quality even as fewer stored bits reduce the data read during inference.
CPTC’s results suggest that jointly encoding values with a compact decoder can preserve more quality than two tested QTIP codebooks in the paper’s source and Llama comparisons.
Computed Permutation Trellis Coding uses two multiplications and a small table to decode tensor values jointly, reaching near-top quality in the paper’s four-bit comparisons.
The method’s four-bit source test compared codebooks on independent standard-normal samples at trellis depth L=16. CPTC scored 3.934 effective bits, ahead of both QTIP codebooks and RPTC, and close to LC at 3.938. Effective bits measures quantization quality, with higher values indicating lower error.
In separate tests, CPTC had lower KL divergence than two QTIP codebooks for one Llama 3.1 8B setup, and a matrix-product-aware table reduced error in a synthetic correlated-Gaussian task. These results show that the approach can work beyond the source test in the specific settings evaluated.
The evidence covers specified source distributions, a synthetic matrix-product task, and weight-only tests on two Llama 3.1 sizes plus one preliminary Qwen3.8-27B run.
Trainium 4 encoder speed comes from cycle-level simulation, and decoding without native support can be limited by arithmetic on bandwidth-rich hardware.
What the evidence shows
- A compact route to joint coding
Computed Permutation Trellis Coding (CPTC) is a low-bit quantization method that decodes values jointly across a trellis. It addresses a tradeoff in memory-bound model inference: fewer bits can reduce the weight data read for each token, but formats that round each value separately leave a quality gap at low bit widths. CPTC’s contribution is a compact computed decoder for joint coding.
- The four-bit comparison
On independent standard-normal samples at four bits per value and trellis depth L=16, CPTC scored 3.934 effective bits, a quantization-quality measure where higher is better. LC scored 3.938, so CPTC came close but did not surpass it in this comparison.
- Why table use matters
A control helps explain the role of CPTC’s table design. Under the same stated Gaussian setup, changing table population from uniform to triangular raised the score from 3.233 to 3.919 effective bits.
That large difference is consistent with matching table entries to the decoder’s nonuniform index use. The control isolates this choice in that pipeline; it does not account for every difference among the main comparison methods.
- Evidence in two other settings
Separate tests carry the comparison into two other settings. For Llama 3.1 8B Instruct at four bits in the YAQA pipeline without further training, CPTC had lower mean KL divergence from the unquantized model’s next-token distribution than either tested QTIP codebook.
In a synthetic matrix-product test at correlation ρ=0.9, its matrix-product-aware table also had lower error than the tested formats. These results support useful transfer within those specific tests.
- The reach of the evidence
The evidence spans source quantization, model weights and a synthetic matrix-product task, but the settings answer different questions. The source comparison measures quantization quality; the Llama test measures next-token distribution differences; the matrix test measures product error when both operands are quantized.
The results support CPTC’s promise across these evaluations, while leaving broader model and deployment coverage open.
Deep
- Original paper authors
- Muhammed Fatih Balın
- Submitted to arXiv
- License
- CC BY 4.0