TL;DR
Squeezing Large Language Models (LLMs) down to ternary weights ($\{-1, 0, +1\}$) usually relies on a mathematical sleight-of-hand during training that causes weights to get stuck in optimization "dead zones." HESTIA replaces this brittle trick with a smooth, differentiable relaxation that gradually "cools" and hardens continuous weights into discrete targets—guided by each tensor's curvature sensitivity. It boosts accuracy over existing low-bit methods with under 3% extra training time and zero overhead at inference.
What Problem Does This Paper Address?
If you want to run an LLM on a tiny memory budget, post-training quantization often falls apart at ultra-low precisions like 1.58-bit (ternary). Instead, researchers use Quantization-Aware Training (QAT) to let the model adapt to discrete weights during optimization.
Here’s the catch: rounding is a step function. Its derivative is zero almost everywhere, meaning backpropagation hits a brick wall. Standard QAT bypasses this using the Straight-Through Estimator (STE): it rounds weights in the forward pass, then pretends rounding never happened in the backward pass by passing gradients straight through.
This forward–backward mismatch creates dead-zone stagnation. Small gradient updates nudge the underlying continuous weight, but unless that nudge is large enough to cross a rounding threshold, the forward pass sees zero change. Weights end up hovering awkwardly near decision boundaries or trapped in suboptimal discrete states.
Methods
Instead of patching the backward pass of a hard quantizer, HESTIA relaxes the quantizer itself using soft-to-hard continuation. While Softmax relaxations and weight blending have prior roots in compression literature, HESTIA uniquely couples them for LLM QAT with a sensitivity-guided schedule and a guaranteed hard inference endpoint:
- Softmax Expectation: Rather than snapping a weight to $\{-1, 0, +1\}$, HESTIA represents it as a temperature-controlled Softmax probability distribution over those discrete codes (with detached group scaling factors). Now, the forward and backward passes differentiate the exact same smooth function.
- Two-Stage Schedule (Compress & Anneal): Training follows two dials: pressure ($p$) and temperature ($\tau$). First, during the "compress" stage, $p$ ramps up linearly to blend the soft quantizer into the full-precision weights without shocking the network. Next, during "annealing," $\tau$ decays via a cosine schedule, sharpening the soft probabilities until they snap to an explicit hard quantizer at the final step.
- Hessian-Guided Cooling: Not all LLM layers bruise equally. Before training, HESTIA runs a lightweight offline pass using the Hutch++ algorithm to estimate each tensor's Hessian trace (a measure of loss curvature). High-curvature, sensitive tensors are kept "warmer" for longer so they have more time to settle before freezing.
Datasets
The authors do not introduce new benchmarks, relying instead on established datasets:
- Training: A 10B-token budget from Ultra-FineWeb (plus disjoint packed sequences for smaller diagnostic runs).
- Evaluation: Common-sense reasoning via ARC-Easy, ARC-Challenge, HellaSwag, PIQA, and WinoGrande; language modeling perplexity on WikiText and C4; and extended reasoning/knowledge benchmarks including GPQA, MMLU, GSM8K, DROP, AGIEval, BoolQ, and OpenBookQA.
Key Insights and Ideas
- Gradients Naturally Focus on Uncertainty: Mathematically, the Jacobian of HESTIA's relaxed quantizer is proportional to the variance of the code assignment, $(2/\tau)\text{Var}(q)$. When a weight is confidently assigned to a bin, its variance—and gradient—shrinks. When it sits ambiguously near a boundary, its gradient is amplified. As $\tau \to 0^+$, updates naturally localize right at the decision boundaries.
- Self-Cleaning Boundaries: Because uncertain weights receive stronger gradient signals while still fluid, HESTIA actively pushes weights away from quantization boundaries without needing extra regularization penalties. Across ~973 million examined weights, HESTIA dropped the fraction of weights lingering near ternary boundaries from 11.84% to 3.66%, whereas standard STE inflated boundary pile-up to 23.66%.
- First-Order Signals Almost Match Curvature: In an honest ablation, ranking tensors by simple gradient norms correlated remarkably well with Hessian traces (Spearman $\rho = 0.973$), though Hessian traces spanned a wider dynamic range and edged out GradNorm in final accuracy.
Key Results
- Controlled Accuracy Gains: On ternary Llama-3.2-1B, HESTIA achieves a 0.547 five-task average accuracy, beating standard STE/AbsMean (0.489), DSQ-style QAT (0.526), and controlled Tequila (0.530). Relative to originally reported Tequila results, HESTIA improves zero-shot accuracy by 5.39% (1B) and 4.34% (3B).
- Better Perplexity via Sensitivity: Adding Hessian guidance over a uniform global schedule drops average validation perplexity (WikiText/C4) from 24.36 to 23.00 on 1B, and from 19.50 to 17.91 on 3B.
- Codebook Flexibility: Because the math works on any finite codebook, HESTIA transfers cleanly to 1-bit, 2-bit, complex-valued LLMs (Fairy2i), and non-uniform 4-bit (NF4, matching
bitsandbytesbit-for-bit at the endpoint). - Minimal Overhead: Total training time increases by only 2.5% (1B) and 2.9% (3B) on RTX 4090s—with offline Hessian calibration taking just ~0.2% of total time. Inference requires zero extra operations.
Limitations and Future Work
- Scale & Scope: Main evaluations focus on dense models up to 3B parameters with weight-only quantization (activations stay in full precision). Scaling to larger models and quantizing activations jointly remain open steps.
- Static Sensitivity Prior: Tensor sensitivity is computed once before QAT on the full-precision model; dynamically updating sensitivity scores during training could help.
- Mixture-of-Experts (MoE): Initial untuned tests on MoE architectures beat hard STE, but still leave a notable accuracy gap compared to BF16—pointing toward future work in routing- and load-aware schedules.
Summary updated