# Every Weight Is a Path of Shared Discrete Decisions

DevFeed: [Every Weight Is a Path of Shared Discrete Decisions](<https://devfeed.tech/articles/every-weight-is-a-path-of-shared-discrete-decisions-99531.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.31931>)

Author: Ammar Ali, Stamatis Lefkimmiatis

Published: 2026-10-26T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [quantization](<https://devfeed.tech/topics/quantization.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [chips](<https://devfeed.tech/tags/chips.md>), [circuit](<https://devfeed.tech/tags/circuit.md>), [circuits](<https://devfeed.tech/tags/circuits.md>), [compression](<https://devfeed.tech/tags/compression.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [gptq](<https://devfeed.tech/tags/gptq.md>), [language](<https://devfeed.tech/tags/language.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [layer](<https://devfeed.tech/tags/layer.md>), [network](<https://devfeed.tech/tags/network.md>), [neural-network](<https://devfeed.tech/tags/neural-network.md>), [outliers](<https://devfeed.tech/tags/outliers.md>), [power](<https://devfeed.tech/tags/power.md>), [powers](<https://devfeed.tech/tags/powers.md>), [quantization](<https://devfeed.tech/tags/quantization.md>), [quantum](<https://devfeed.tech/tags/quantum.md>), [questions](<https://devfeed.tech/tags/questions.md>), [sharing](<https://devfeed.tech/tags/sharing.md>), [shift](<https://devfeed.tech/tags/shift.md>), [weight](<https://devfeed.tech/tags/weight.md>)

## AI overview

TWIG represents each neural-network weight as a path of discrete choices, with related weights sharing inherited decisions such as signs, power-of-two shifts, zero gates, or shared-table indices. The authors propose using this one representation to express compression methods as edits and to form mostly wire-and-adder circuits for weights fixed at fabrication. They frame decision selection as a higher-order Boltzmann-machine ground-state problem, while noting that current discrete solvers address narrower tasks such as rounding. In tests on five large-language-model weight matrices, a flat tree choosing signed power-of-two terms per weight, without group scales, reportedly used 9-15% fewer additions than GPTQ at equal layer error for typical matrices, and 20-55% fewer for matrices with strong outliers, at 3- and 4-bit accuracy.

## Source excerpt

arXiv:2610.31931v1 Announce Type: new 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.