Harvard's Model Carving trains Transformers that prune their own layers, saving up to 34% inference FLOPs
Harvard · hf · 2026-11-26
Harvard researchers propose Model Carving, a training method that gates sublayers (attention/MLP) so a Transformer jointly learns its weights and its own topology.
- A demo model carved itself from 64 to 42 sublayers, mostly dropping MLP blocks
- At matched inference compute, carved models beat released dense baselines like OPT-2.7B and Pythia-1.4B on CORE-22
- Versus standard looped Transformers, compute multipliers reach 1.33×–1.71× across 140M–1.3B sizes, saving up to 34% inference FLOPs at 2.7B
- In one extreme case, a looped Transformer kept only 2 of 24 attention sublayers for modular addition
Takeaway: instead of post-hoc pruning or distillation, let the model carve its optimal architecture during pretraining.
More from Research
- Heading to NeurIPS 2026 Sydney: capability-safety co-optimization for recursive self-improvement — anirudhg9119 · 2026-12-06
- Ingot losslessly compresses BF16 LLM weights to 10.43 bits, bit-identical via sha256 — Electrical_Ninja3805 · 2026-12-06
- Three world models play a survival game, each predicting the ice and each other — yshan2u · 2026-12-06
- Open-source AV control guide adds kinematic bicycle model chapter with step-size error analysis — 4310sy · 2026-12-06
- How information flows through transformers: the residual stream and the K/V stream — repligate · 2026-12-06
- AI researcher: progress comes from finding which dimensions matter, not faster search — RileyRalmuto · 2026-12-06