TRANSMISSION // 2611.31089v1

A staged sign-code approach to compressing transformer weights

Source published

A training-free quantization method progressively refines sign-coded weight approximations. Tests show improved fidelity with more stages, but also expose storage, runtime and evaluation limits.

AI-generated conceptual illustration for A staged sign-code approach to compressing transformer weights
AI-generated conceptual illustration; not documentary evidence.

Compressing a language model’s weights can save storage, but using very few bits may distort its predictions. A new preprint explores a codebook-free alternative: mix weights with random orthogonal transforms, encode their signs, then add stages that approximate the remaining error. Tests on two models suggest that deeper refinement can bring perplexity closer to full precision, though it costs more storage and the tested streaming implementation runs slowly.

Large language models store billions of numerical weights. Quantization replaces those values with more compact representations, reducing storage needs but potentially changing the model’s predictions. The new preprint asks whether weights can be compressed in stages—so users can trade storage for fidelity—without training a new model or relying on learned codebooks or distribution tables.

Anindya Roy Chowdhury, Atanu Barai and Nandakishore Santhi propose a method built around sign coding. First, the system divides weights into blocks, normalizes them and applies a seeded random orthogonal transform. It then records whether each transformed value is positive or negative, along with a small set of statistics used to reconstruct an approximation. The transform redistributes values among coordinates; the authors use a central-limit-theorem argument to motivate the hope that this makes sign-based reconstruction more useful. They stress that Gaussian-like behavior is not guaranteed or required by the codec.

The method then repeats the process on the difference between the original block and its current approximation. Each accepted stage adds a correction, and the encoder stops when another stage fails to reduce the block’s distortion enough. This progressive design means a stored representation can be decoded at different depths: more stages require more data but can yield a closer approximation.

The approach is described as training-free: calibration examples provide activation statistics, but the model’s weights are not optimized. The researchers tested GPT-2 Large and Llama-3-8B, quantizing attention projections, MLP projections, or both. They measured weight reconstruction, model outputs, next-token perplexity, storage and runtime. Perplexity measures how surprised a language model is by text; lower values generally indicate better prediction on the evaluated data.

Across the tested settings, adding residual stages generally improved weight and output fidelity. With both attention and MLP weights quantized at five stages, GPT-2 Large had a reported perplexity of 32.16, compared with 29.89 for its full-precision reference. Llama-3-8B reached 12.73 against 11.07. These results are closer to the respective references than the one-stage results, but they are not identical to full precision. Performance also depended on which parts of the model were quantized: the paper reports different fidelity gaps for attention-only, MLP-only and joint quantization.

Ablations provide evidence that design choices matter. Orthogonal mixing improved reconstruction over identity-based sign coding in many comparisons, though not every tested condition improved. Activation-aware scaling improved output measures in the reported ablations, even where weight error increased. Using 16-bit rather than 32-bit reconstruction statistics reduced reported storage with little change in perplexity in the tested cases. These are results from particular experimental settings, not guarantees for other models or data.

The trade-offs are substantial. More stages mean more stored corrections, and the paper’s streaming reconstruction path was slower than its full-precision reference in the reported measurements. Its Llama-3-8B checkpoint sizes are overlays that rely on unchanged base-model weights, not complete compressed model files. Nor did the sign method lead every comparison: the authors report scalar quantization or residual vector quantization achieving better perplexity at some payload rates. The paper therefore does not establish a universally superior compression method or an inference-speed improvement.

The evidence is also limited in scope. Experiments covered two models and focused mainly on perplexity and short-horizon output fidelity; downstream tasks, long contexts and generative robustness were not tested. The authors note that calibration robustness under domain shift, repeated-seed results, broader matched-rate comparisons and hardware-optimized decoding remain open questions. The Llama evaluation used a supplied evaluation file whose provenance, the paper says, was not independently verified from the available metadata.

This work is an arXiv preprint, not evidence by itself of peer review or independent replication. Its findings support a narrower conclusion: progressive sign-coded corrections can improve fidelity as storage grows in these experiments, while runtime, compression accounting and comparisons with established quantizers remain important caveats.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.