A model architecture is trending on GitHub this week around a radical simplification: what if weights were mostly just three numbers?
Quantization research keeps pushing toward an extreme, and the extreme has a name: weights stored as -1, 0 and 1. The math that makes that work is worth meeting.
The ternary trick
Standard models store weights as 16-bit numbers. Ternary models store them as one of three values, which needs barely two bits and replaces multiplication with addition and sign flips.
No multiplications is the headline: multiplying by 0 or 1 is trivial, and multiplying by -1 is a sign flip. The dominant cost of neural networks nearly vanishes.
The catch: training matters
You cannot simply round a trained model to three values and keep quality. Ternary models are trained with the constraint built in, so weights learn to live within their tiny alphabet.
| Approach | What it does | Quality outcome |
|---|---|---|
| Post-training rounding | Compresses an existing model | Degrades badly at extreme bit widths |
| Quantization-aware training | Trains with fake quantization | Recovers most quality |
| Native ternary training | Trained from scratch with 3 values | Competitive at matched scale |
| Mixed precision | Keeps select layers full precision | Practical quality hedge |
What tiny models enable
When weights collapse toward two bits, the deployment envelope explodes: models that needed servers fit on phones, laptops and microcontrollers.
- Memory needs shrink by nearly an order of magnitude.
- Addition-based inference suits modest hardware.
- Battery-powered devices gain capable local AI.
- Privacy improves because inference stays on-device.
The research question is where the quality floor sits: at what scale does ternary training match standard precision? Each new release moves that line.
Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.
The bigger picture
Model efficiency research runs on two tracks - smarter architectures and cheaper arithmetic. Ternary training is the cheapest arithmetic that still learns.
So this week’s trending repository marks the aggressive end of quantization: a bet that three values per weight are enough to think with.
The bottom line: Ternary weights use two bits: -1, 0 and 1. Three-valued weights replace multiplication with addition. Native training with the constraint preserves quality. Extreme quantization moves inference onto tiny devices. Each one is a lever you can pull the next time this subject crosses your feed or your work.
Key takeaways
- Ternary weights use two bits: -1, 0 and 1.
- Three-valued weights replace multiplication with addition.
- Native training with the constraint preserves quality.
- Extreme quantization moves inference onto tiny devices.
Quick answers
How can three values be enough?
Networks are extremely redundant. With enough weights, the collective sum of tiny ternary decisions approximates full-precision behavior surprisingly well.
Can I convert my existing model?
Not to ternary directly - extreme widths require training with the constraint, though lighter quantization works post-training.
Where would this run?
Anywhere memory is scarce: phones, embedded devices, laptops - hardware where 16-bit models never fit.
One thing to do tonight
Tonight, read one quantization explainer and compute what a 27-billion-parameter model weighs at two bits versus sixteen. The deployment math explains the excitement.