Orthogonally Mixed Sign Coding with Progressive Residual Refinement for Transformer Weight Compression
Organizations: Los Alamos National Laboratory
Abstract
LLM quantization reduces storage but often degrades predictive fidelity at low bit rates. We propose a training-free, CDF-free, Gaussian-CLT-motivated progressive residual-sign quantization framework that uses randomized orthogonal mixing to promote Gaussian-like residual distributions and improve sign based reconstruction of Transformer weights. Each stage independently normalizes residuals and analytically calibrates reconstruction, progressively recovering quantization errors. The framework enables flexible storage-fidelity trade-offs without learned codebooks, empirical CDFs, or trellis optimization. We evaluate GPT-2 Large and Llama-3-8B across attention and MLP projections. At five residual stages, joint quantization preserves near-baseline predictive fidelity, achieving perplexities of 32.16 and 12.73, compared with full-precision values of 29.89 and 11.07, respectively. Ablations further demonstrate that orthogonal mixing substantially improves reconstruction over identity-based sign coding, while activation-aware scaling improves output fidelity and reduced-precision statistics lower storage overhead with negligible perplexity degradation. Comparisons with conventional quantizers establish the method's progressive fidelity recovery and characterize its storage-quality and runtime trade-offs. These results demonstrate the effectiveness of orthogonally mixed residual-sign coding for flexible, training-free Transformer weight compression.
Figures & tables
| Parameter | Setting |
|---|---|
| Vector/projection dimensions | |
| Residual stages | |
| Statistics precision | 32 bits |
| Block batch size | 4 |
| Activation-aware scaling | |
| Transform candidates | 4 |
| Scope | Param. MSE | Rel. Err. | Logit MSE | Logit Cos. | KL | Next (%) | Top- (%) | PPL | Size (MiB) | Forward (ms) | Runtime Ratio | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Attention | 1 | 0.6100 | 3.7176 | 0.9530 | 2.5918 | 25.85 | 30.53 | 429.36 | 58.83 | 731.19 | 0.0220 | |
| Attention | 2 | 0.3650 | 0.6805 | 0.9919 | 0.3289 | 69.11 | 70.77 | 43.58 | 115.97 | 1295.36 | 0.0124 | |
| Attention | 3 | 0.2432 | 0.2542 | 0.9969 | 0.1114 | 80.56 | 81.52 | 34.64 | 172.95 | 1776.10 | 0.0090 | |
| Attention | 5 | 0.1492 | 0.0836 | 0.9990 | 0.0342 | 88.86 | 88.91 | 31.44 | 287.32 | 2909.18 | 0.0055 | |
| MLP | 1 | 0.6088 | 8.2450 | 0.8936 | 5.1919 | 1.35 | 4.23 | 5765.20 | 115.80 | 1010.37 | 0.0158 | |
| MLP | 2 | 0.3644 | 1.9571 | 0.9745 | 1.0087 | 46.47 | 52.21 | 69.61 | 229.37 | 1858.88 | 0.0084 |
| Scope | Param. MSE | Rel. Err. | Logit MSE | Logit Cos. | KL | Next (%) | Top- (%) | PPL | Size (MiB) | Forward (ms) | Runtime Ratio | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Attention | 1 | 1.1949 | 10.9461 | 0.6640 | 5.2465 | 9.62 | 14.72 | 2076.92 | 324.62 | 1762.50 | 0.0202 | |
| Attention | 2 | 0.7490 | 4.9474 | 0.8259 | 1.0956 | 55.77 | 54.29 | 32.09 | 645.72 | 3382.69 | 0.0105 | |
| Attention | 3 | 0.5066 | 0.9293 | 0.9543 | 0.2358 | 78.24 | 76.20 | 13.75 | 966.73 | 5030.83 | 0.0070 | |
| Attention | 5 | 0.3129 | 0.3185 | 0.9840 | 0.0789 | 87.06 | 85.49 | 11.90 | 1610.37 | 8067.03 | 0.0044 | |
| MLP | 1 | 0.6118 | 12.0770 | 0.1970 | 10.3045 | 0.05 | 0.66 | 327947.62 | 1350.58 | 18748.79 | 0.0019 | |
| MLP | 2 | 0.3664 | 4.2837 | 0.8565 | 1.2143 | 54.55 | 53.25 | 35.70 | 2696.00 | 24639.92 | 0.0014 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
LLM Compression
Large language model compression reduces the memory, compute, and context costs of LLMs while aiming to preserve their capabilities.
See all 307 papers