TWIG: weights as shared discrete decision paths unify pruning, quantization, and adder-based circuits

ITMO · hf · 2026-10-26

TWIG (Tree-structured Weights with Inherited Gates) from LEAD Lab, ITMO University, represents every neural network weight as the end of a path of small discrete decisions: a sign, a shift by a power of two, a zero gate, and an index into a shared table. Weights share upper path segments, so each decision is stored and applied once.

Three consequences: (1) any trained network can be written as a TWIG, and with power-of-two decisions weight layers become circuits of mostly wires and adders, suited to chips with weights fixed at fabrication; (2) pruning, quantization, low-rank factorization, codebooks, and weight sharing all become edits of one object, letting a single optimizer choose across all of them; (3) choosing the decisions is framed as a ground-state problem amenable to mature solvers.

Original post →

More from Infra

Infra channel →