ARMANET Research
November 23, 2026
DOI: dtora.2026.001

The Ternary Trap: Why Post-Training Ternary Quantization Cannot Beat 4-Bit at Equal Model Size

Dr. Ahmed Gad AI Research
Eng. Sarah ARMANET AI Research Lab, Dubai
Abstract
Post-training quantization of large language models below three bits per weight consistently fails in practice, while ternary models trained from scratch succeed at a nominal 1.58 bits. We show that this asymmetry is not only a training effect but a structural property of the formats themselves. Using byte-exact rate accounting that counts per-group scale overhead and wasted code space, we prove that fixed-length ternary formats with full-precision group scales occupy a rate regime of 2.0 to 3.0 bits per weight, in which their fidelity ceiling (7.2 dB on Gaussian theory, 9 to 10 dB on realistic weight groups) falls below any deployable quality floor, while their per-bit efficiency is 15 to 46 percent lower than 4-bit. We characterize the resulting gap in the feasible rate-fidelity region, derive the conditions under which ternary can and cannot win, and identify four escape routes: entropy coding, scale compression, reserved-code four-level escrow, and trained ternarization. Empirical evidence comes from an open-source quantizer in which zero candidate groups passed a 13 dB ternary gate, producing a q2 artifact byte-identical to its q4 fallback. We further propose SQNR spectroscopy, a data-free method that reads weight statistics from quantization-ladder response, to predict ternary feasibility per tensor before encoding.
Keywords: Quantization Ternary Quantization Rate-Distortion LLM Compression Post-Training Quantization Model Compression Efficient Inference

1. Introduction

Post-training quantization (PTQ) is the standard route to deploying large language models on constrained hardware, and 4-bit and 8-bit weight formats are now ubiquitous. Below three bits per weight, however, the literature reports a remarkably consistent pattern of failure: 2-bit PTQ destroys model quality across families and scales, with perplexity frequently exploding beyond usable ranges. At the same time, ternary (three-level) weights trained from scratch, exemplified by BitNet b1.58, achieve strong quality at a nominal 1.58 bits per weight. The usual explanation is that ternary-native models learn to live with three levels while pretrained models do not. We show that for the formats actually used in practice this explanation is incomplete: there is a structural, information-theoretic reason why post-training ternarization cannot compete with 4-bit at comparable file sizes, independent of rounding heuristics or error compensation.

We call this failure mode the ternary trap. Using byte-exact rate accounting, which counts payload bits, per-group scale side information, and wasted code space, we show that fixed-length ternary formats with full-precision group scales occupy a narrow rate regime between 2.0 and 3.0 bits per weight, in which their fidelity ceiling is far below every deployable quality floor and their per-bit efficiency is 15 to 46 percent lower than 4-bit on realistic weight groups. The trap closes from both directions: enlarging groups approaches a hard rate floor of 2 bits per weight while fidelity only degrades, and shrinking groups multiplies scale overhead faster than fidelity improves.

2. Background and Related Work

Low-bit PTQ has been studied extensively. GPTQ and AWQ popularized 4-bit weight-only quantization with calibration data; SpQR-style methods retain sensitive outlier columns at high precision; QuIP and related methods push toward 2 bits with incoherence processing; recent decomposition methods reach sub-1-bit rates. Mixed-precision methods allocate bit budgets across layers or groups: SliM-LLM assigns bit-widths at group granularity from salience estimates, and PT2-LLM performs post-training ternarization with partial retention of sensitive weights. On the theory side, Radio formulates LLM quantization as rate-distortion optimization over continuous per-matrix bit depths with calibration data. Classical quantization theory supplies our tools: Lloyd-Max optimal scalar quantizers, Bennett high-rate analysis, entropy-constrained quantization, and greedy bit allocation with proven optimality conditions. What none of these lines provides is a byte-exact answer to a deceptively simple question: at equal model size, with the group-scale formats actually shipped in production, can a ternary code ever beat a 4-bit code? This paper answers no under precise conditions, and characterizes exactly when the answer flips.

3. A Byte-Exact Rate Model for Group Quantization

Production weight formats quantize weights in groups: each group of g weights carries a b-bit payload per weight plus one shared scale. With full-precision (fp32) scales the effective rate in bits per weight is R = b + 32/g. Table 1 evaluates this accounting. Two facts follow immediately. First, fp32 scale overhead is not negligible at low bit-widths and small groups: at g = 32 it adds a full bit per weight, one third of the entire ternary budget. Second, a fixed 2-bit container holding a ternary alphabet wastes 2 − log2(3) = 0.415 bits per weight, or 20.8 percent of its payload, because only three of the four codes carry information.

Code familyb (bits)g = 32g = 64g = 128g = 256Asymptote
Ternary / 4-level23.0002.5002.2502.1252.000
INT445.0004.5004.2504.1254.000
INT667.0006.5006.2506.1256.000
INT889.0008.5008.2508.1258.000

Table 1. Effective rate R = b + 32/g in bits per weight for fixed-length codes with fp32 group scales.

The table exposes the geometry of the trap. No INT4 configuration with fp32 scales ever reaches 4 bits per weight; the cheapest possible INT4 rate is 4.125 bits per weight at g = 256, while ternary saturates near 2. The open interval between 2 and 4.1 bits per weight is reachable only by 2-bit payloads, so any format that advertises a tier inside this interval must ship a 2-bit code there.

4. Fidelity Ceilings and the Crossover Analysis

Rate is only half of the accounting. For a standard Gaussian source the optimal three-level quantizer achieves 7.2 dB SQNR with symmetric thresholds near 0.61 sigma; the optimal four-level 2-bit quantizer achieves the classical 9.30 dB; and 4-bit quantization with per-group scales approaches the Lloyd-Max value of 20.2 dB. Real weight groups are peakier than Gaussian (positive excess kurtosis), which lifts the ternary ceiling to roughly 9 to 10 dB in measurements on transformer weights and lifts the four-level code to an estimated 11 to 13 dB, but the ordering is stable: at the same 3.0 bits per weight, every realistic distribution leaves ternary at least 7 dB below what INT4 delivers at 4.5 bits per weight.

Per-bit efficiency sharpens the comparison. INT4 at g = 64 delivers 17.2 to 19.7 dB worst-group SQNR at 4.5 bits per weight, that is 3.82 to 4.38 dB per bit. Ternary at g = 32 delivers 7.2 to 10 dB at 3.0 bits per weight, that is 2.40 to 3.33 dB per bit. The 4-bit code extracts 15 to 46 percent more fidelity from every bit spent on realistic groups, and up to 82 percent against the Gaussian ideal. Because enlarging the ternary group lowers fidelity (max-normalization stretches the scale to cover outliers) while its rate savings asymptote to zero, no ternary configuration with fp32 scales crosses a 10 dB floor, let alone the 13 dB chat-quality floor used in our reference implementation.

Theorem (informal). In the family of fixed-length group quantizers with fp32 scales: (i) for any fidelity floor F of at least 10 dB, no ternary configuration is feasible at any group size; (ii) for 10 ≤ F ≤ 19 dB the cheapest feasible uniform rung is INT4, at a rate of at least 4.125 bits per weight. Consequently the open interval from 2.0 to 4.1 bits per weight contains no feasible configuration. This interval is exactly where 2-bit formats claim to operate: the trap.

5. The Kurtosis Signature: SQNR Spectroscopy

The theory above assumes a source family. Our reference quantizer runs a rung ladder (INT8, INT6, INT4, ternary) over every group and records the worst-group SQNR of the resulting artifact. Comparing these observations against Gaussian Lloyd-Max predictions yields a consistent deficit: 0.5 to 2.0 dB on a synthetic transformer checkpoint and 1.2 to 5.2 dB on a production-class 0.8B-parameter model (Table 2). A deficit of this sign and magnitude is the signature of heavier-than-Gaussian tails, partly mixed with the gap between uniform grids and optimal non-uniform reconstructions. Because Bennett high-rate theory ties SQNR to the source density through an explicit integral, the observed ladder response can in principle be inverted to estimate the shape parameter of the weight distribution per tensor, entirely data-free. We call this SQNR spectroscopy. Its payoff is predictive: the estimated shape parameter determines the ternary and four-level ceilings of Section 4 for that tensor, so an encoder can know, before writing a single payload byte, whether the ternary rung can pass the floor, and a format designer can choose floors with the whole feasible region in view.

RungGaussian theory (dB)Synthetic checkpoint (dB)0.8B model (dB)
INT844.442.639.2
INT632.230.231.0
INT420.219.717.2
4-level (2-bit)9.311 to 13 (est.)11 to 13 (est.)
Ternary7.2below floorbelow floor

Table 2. Worst-group SQNR by rung: classical Gaussian ceilings versus measured ladder response. The consistent deficit is the kurtosis signature of heavier-than-Gaussian tails.

6. Empirical Evidence: The Byte-Identical q2/q4 Artifact

The trap is not hypothetical. Our open-source quantizer (naya_fuse) enforces per-group quality gates: a group may take the ternary rung only if its group SQNR reaches 13 dB, otherwise it escalates, honestly, to the 4-bit fallback rung. On a 332-tensor transformer checkpoint the rung statistics recorded zero groups on the ternary rung and zero group-split rescues: every candidate group failed the gate and escalated. The consequence is a q2 artifact byte-identical to the q4 artifact (202,214 bytes, 197.5 KiB, a 56.8 percent reduction from the 457.1 KiB fp32 source; the same source quantizes to 304.3 KiB at q8 and 247.6 KiB at q6). The encoder did not ship a degraded 2-bit product; it recorded the trap. To our knowledge this is the first documented collapse of two nominal precision tiers onto identical bytes, and it is the empirical signature of the theorem: when a format places its 2-bit tier inside the trap, an honest encoder has nothing to write there.

Practitioner evidence corroborates the analysis. The 2-bit tiers of popular production formats reach the 2-bit rate regime only by quantizing the scales themselves: a 2-bit payload with 4-bit sub-scales and a 6-bit super-scale reaches 2.27 bits per weight, and quality remains notoriously poor. The methods that do make ternary PTQ work, such as PT2-LLM, escape by mixing in higher-precision retention, which raises the effective rate out of the trap.

7. Escape Routes and Design Implications

The trap is a property of the accounting, not of the number three, and each escape route changes exactly one term of it. (1) Entropy-code the payload: a ternary alphabet costs log2(3) = 1.585 bits, giving 2.585 bits per weight at g = 32 and 1.835 at g = 128, but the fidelity ceiling is unchanged, so this helps only distributions that are already ternary-friendly. (2) Compress the scales: fp16 scales immediately drop ternary at g = 32 to 2.5 bits per weight, and k-quant-style hierarchies (4-bit sub-scales under 6-bit super-scales) reproduce the 2.27 bits per weight of production 2-bit formats; rate enters the trap, but the payload ceiling remains the binding constraint. (3) Reserved-code escrow: a 2-bit container that ships only three codes can reserve the fourth for a future four-level code; our preliminary numerics place the four-level code at 9.3 dB on Gaussian theory and 11 to 13 dB on realistic groups, a free gain of about 2 dB over ternary at zero rate cost, enough to straddle a 13 dB floor on peaky tensors while remaining readable by old decoders that map the reserved code to zero. (4) Train for ternary: BitNet-style training reshapes the source distribution itself until three levels are nearly sufficient; this is the only route that changes the fidelity ceiling rather than the rate, and it is unavailable to PTQ.

Three design implications follow. Allocate bits floor-first (minimize rate subject to per-group fidelity floors, refusing when infeasible) rather than budget-first. Treat escalation statistics as a per-tensor measurement of the trap. Reserve code space at design time so that future rungs degrade gracefully in old readers.

8. Conclusion

At equal model size, with the fixed-length group formats and full-precision scales that dominate deployment, post-training ternarization is structurally dominated by 4-bit: its rate regime is narrow, its fidelity ceiling sits below deployable floors, and its per-bit efficiency is 15 to 46 percent worse on realistic groups. The open interval from 2.0 to 4.1 bits per weight is a trap, and honest encoders are correct to refuse to ship into it. The trap dissolves under entropy coding, scale compression, reserved-code four-level escrow, or trained ternarization, each of which modifies exactly one term of the byte-exact accounting. The full numerical study, including crossover maps over group size, scale precision, and shape parameter, and validation of SQNR spectroscopy across model families, is the subject of ongoing work.

References

  1. Max, J. (1960). Quantizing for Minimum Distortion. IRE Transactions on Information Theory, 6(1), 7-12.
  2. Lloyd, S. P. (1982). Least Squares Quantization in PCM. IEEE Transactions on Information Theory, 28(2), 129-137.
  3. Bennett, W. R. (1948). Spectra of Quantized Signals. Bell System Technical Journal, 27(3), 446-472.
  4. Gersho, A., and Gray, R. M. (1992). Vector Quantization and Signal Compression. Kluwer Academic Publishers.
  5. Chou, P. A., Lookabaugh, T., and Gray, R. M. (1989). Entropy-Constrained Vector Quantization. IEEE Transactions on Acoustics, Speech, and Signal Processing, 37(1), 31-42.
  6. Shoham, Y., and Gersho, A. (1988). Efficient Bit Allocation for an Arbitrary Set of Quantizers. IEEE Transactions on Acoustics, Speech, and Signal Processing, 36(9), 1445-1453.
  7. Frantar, E., Ashkboos, S., Hoefler, T., and Alistarh, D. (2023). GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers. ICLR.
  8. Lin, J., et al. (2024). AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration. MLSys.
  9. Dettmers, T., et al. (2023). SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression. arXiv:2306.03078.
  10. Chee, J., Cai, Y., Kuleshov, V., and De Sa, C. (2024). QuIP: 2-Bit Quantization of Large Language Models with Guarantees. ICLR.
  11. Wang, H., Ma, S., Wang, R., and Wei, F. (2024). The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bits. arXiv:2402.17764.
  12. Young, S. I. (2025). Radio: Rate-Distortion Optimization for Large Language Model Compression. ICML. arXiv:2505.03031.
  13. Huang, W., et al. (2025). SliM-LLM: Salience-Driven Mixed-Precision Quantization for Large Language Models. ICML.
  14. Yan, X., et al. (2025). PT2-LLM: Post-Training Ternarization for Large Language Models. arXiv:2510.03267.
  15. Park, Y., et al. (2024). Low-Cost Deployment of Multiple, Different-Sized LLMs: Any-Precision LLM. arXiv:2402.10517.
Download PDF
Back to Research
|