Every Weight Is a Path of Shared Discrete Decisions
Ammar Ali, Stamatis Lefkimmiatis
LEAD Lab, ITMO University
Published October 22, 2026 · on the feed October 26, 2026 · ▲ 25 · arXiv 2610.31931
The abstract
We introduce TWIG (Tree-structured Weights with Inherited Gates), a representation in which every weight of a neural network is the end of a path of small discrete decisions: a sign, a shift by a power of two, a zero gate, an index into a shared table. Weights that belong together share the upper part of their paths, and each decision is inherited by every weight below it, so it is stored once and applied once. This simple change has three consequences. Any trained network can be written as a TWIG, and when the decisions are powers of two its weight layers become circuits made almost entirely of wires and adders, suited to chips whose weights are fixed at fabrication. Pruning, quantization, low-rank factorization, codebooks and weight sharing become edits of one object, so a single optimizer can choose among all of them for a whole network. And choosing the decisions is the ground-state problem of a higher-order Boltzmann machine whose interactions follow the paths of the tree, the problem class that annealers and quantum optimizers are built to solve. Today these questions are handled apart: each compression method brings its own format and solver, a circuit with fixed weights needs a dedicated constant multiplier for every weight, and discrete solvers reach only narrow subproblems such as rounding. Weight formats have long been moving toward shared decisions, through group scales, shared exponents, microexponents and sparse weights; TWIG takes this trend to its end, and every common format is a shallow TWIG at no extra cost. On five weight matrices of a large language model, a flat tree whose signed power-of-two terms are chosen per weight for circuit cost, with no group scales, needs 9--15\% fewer additions than GPTQ at equal layer error at 3- and 4-bit accuracy on typical matrices, and 20--55\% fewer on matrices with strong outliers.
The Brief
3:10A short podcast summary of the paper. Written and voiced by AI.
Transcript
Every Weight Is a Path of Shared Discrete Decisions. By Ammar Ali and one other, from the LEAD Lab at ITMO University. Published on the twenty-second of October. Its code repository is public and real: about thirty source files.
Making a neural network smaller or cheaper to run means choosing among separate techniques: pruning, quantization, low-rank factorization, codebooks, weight sharing. Today each compression method brings its own format and its own solver, so choosing among them is a matter of handling each one apart. Hardware has a parallel problem. A circuit whose weights are fixed at fabrication needs a dedicated constant multiplier for every weight. And discrete solvers, which might search these choices well, reach only narrow subproblems such as rounding. Three questions that touch the same weights are answered in three separate places.
TWIG, short for Tree-structured Weights with Inherited Gates, is a representation in which every weight of a neural network is the end of a path of small discrete decisions. A decision can be a sign, a shift by a power of two, a zero gate, or an index into a shared table. Weights that belong together share the upper part of their paths. Each decision is inherited by every weight below it in the tree, so it is stored once and applied once, however many weights it governs. The authors call this a simple change, and they draw three consequences from it.
First, any trained network can be written as a TWIG. When the decisions are powers of two, its weight layers become circuits made almost entirely of wires and adders, which suits chips whose weights are fixed at fabrication. Second, pruning, quantization, low-rank factorization, codebooks and weight sharing all become edits of one object. A single optimizer can then choose among all of them for a whole network, instead of each method being applied in its own format with its own solver.
Third, choosing the decisions is the ground-state problem of a higher-order Boltzmann machine, whose interactions follow the paths of the tree. That is precisely the problem class that annealers and quantum optimizers are built to solve. The representation also extends a direction weight formats have long been moving in. Group scales, shared exponents, microexponents and sparse weights all push formats toward shared decisions. TWIG takes that trend to its end, and every common format is a shallow TWIG at no extra cost.
The test uses five weight matrices of a large language model. The tree in question is a flat one: its signed power-of-two terms are chosen per weight for circuit cost, and it uses no group scales. It is compared against GPTQ at equal layer error, at three-bit and four-bit accuracy.
On typical matrices, the flat tree needs nine to fifteen percent fewer additions than GPTQ. On matrices with strong outliers the saving is larger: twenty to fifty-five percent fewer additions. Additions are what gets counted because the terms were chosen for circuit cost, and a weight layer built from powers of two is a circuit of wires and adders.
Fifty-five percent fewer additions, on the matrices with strong outliers, comes from a flat tree: one level of signed powers of two per weight, with no group scales and none of the deeper sharing the representation allows. The larger claim sits behind that figure. If every weight is a path of shared decisions, then compression formats, fixed-weight circuits and discrete solvers stop being three separate problems, and become three ways of working on one tree.
Paper Quest · 7 chapters · about 40 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
Five ways to shrink a network, five formats, five solvers. Start where the authors did: with the mess.
You need to make a trained network smaller and cheaper. You could remove weights, round them to coarse grids, swap matrices for thinner products, or map blocks to entries of a table. Each comes with its own format and its own solver.
The road ahead
- 1 · The problem ~6 min Shrinking a trained network means picking among separate methods, each with its own format and solver, and nothing lets you weigh them together.
- 2 · What came before ~3 min
- 3 · The key idea ~9 min TWIG writes every weight as the end of a path of small shared decisions, so formats, circuits and compression methods all become one object.
- 4 · Choose your own research ~3 min
- 5 · Build the method ~8 min Rewrite the trained weights as decision paths, pick signed power-of-two terms per weight to cut circuit cost, then wire the layer from adders.
- 6 · The experiment ~6 min You’ll guess: Against GPTQ at equal layer error, where did the flat power-of-two tree save more circuit additions: on typical matrices or on matrices with strong outliers?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.