← All projectsGitHub
LLM chip design loops

Does sharing sub-sums across a bank of fixed-weight multipliers cut gates beyond per-constant shift-and-add?

research/chip-mcm

A bank of fixed-weight multipliers sharing sub-sums (multiple-constant multiplication): 9% fewer generic-gate cells than per-constant signed-digit shift-add at 2 constants and about 20% fewer at 8 and 16 (43% fewer than Yosys's *), every form proved equivalent; random constants, not trained weights.

6 tests

What it found

A follow-up to chip-constmul: one 8-bit input feeds a bank of M random 8-bit constants (M = 2, 4, 8, 16; 40 banks each), written three ways — the * operator, per-constant canonical-signed-digit (CSD) shift-add, and a greedy shared-sub-sum (MCM) form — scored by Yosys 0.33 in generic gates, every variant proved equivalent to the operator form. Sharing uses 9% fewer cells than per-constant CSD at M = 2 and about 20% fewer at M = 8 and 16 (690 vs 866 at M = 16; 43% fewer than the operator), fewer in 130 of 160 banks and more in 2. Adders removed in the source predict cells saved (Pearson 0.875, about 15 cells per adder). Sharing also recovers the depth CSD loses on large banks (28.2 vs 33.2 at M = 16). Preliminary: random rather than trained weights, one greedy heuristic, one tool version, generic gates rather than library area.

A figure from its own output

Figure produced by research/chip-mcm: cells_by_bank
chip-mcm/experiments/cells_by_bank.svg, written by the project's own experiment code.

Paper, code and results

More in LLM chip design loops

All 40 LLM chip design loops projects →

Other research topics

Proper scoring & elicitation28Effort & peer prediction9Verification games & slashing19Detection & tolerances14Markets as routers13Prediction-market design9Paying contributors8Decentralised training systems23Digital twins & sim-to-real164LLM chip design loops40Robot manufacturing loops53Ambient AI assistant46Self-replicating manufacturing34Simulation-first design64Engineered clothing45Task-specific AI accelerators40Algorithmic chip-design loops42Open-source purpose-built robots44The software-engineering loop43Adversarial human imitation41Open-source residential construction41Autonomous multi-angle capture34Sensing, imaging and 3D31Energy supply and dense energy storage39Robot societies among people31Agentic co-design of low-cost robots27Laundry-hanging robots25Machine learning on qualitative data23Robots on the building site27Civilizations & group psychology1History & human sciences1

Produced with AI assistance (Claude). Results are from the code in this repository and are simulated or stylised unless the abstract says otherwise; nothing here implies affiliation with or endorsement by any lab, researcher or company cited. MIT licensed.