R247 · Infrastructure for agents at scale › Inference providers and serving reliability

Model Carving: let pretraining delete its own sublayers

Read the original

Authors Kaden Zheng, Pratyusha Sharma

model-architecturepretrainingpruninginference-efficiencypaper

Source: Kaden Zheng and Pratyusha Sharma, Model Carving: Training Transformers That Optimize Their Own Topology, arXiv 2611.27962 (submitted 20 Nov 2026, under review at ICLR 2027; 38 pages). Shared by DAIR.AI.

What it is

Model Carving learns a Transformer's architecture and its weights in a single pretraining run. Every attention and MLP sublayer gets a learnable scalar gate on its write to the residual stream. A penalty pushes gates toward zero, and sublayers whose gates close are removed outright. What remains is a smaller, heterogeneous network. Layers no longer all have the same shape, and some lose their attention or their MLP.

How it works

Reported results

Why it matters

The usual way to get a small, fast model is to train a large dense one and then prune or distill it. If these results hold at larger scale, the cheaper path is to carve during pretraining. The resulting non-uniform architecture also challenges the assumption that every layer needs both attention and an MLP.

Tradeoffs and failure modes

Review checklist

  1. If you ship small models, does your baseline include carving-style structured sparsity during pretraining, not just post-hoc pruning or distillation?

  2. Can your serving stack run models whose layers differ in shape (missing attention or MLP) without losing the FLOP savings?

  3. Does the pretraining data mix cover every capability you need, since carving removes what the data doesn't exercise?

  4. Have you compared against a dense model at equal training compute, not equal parameter count?

  5. Is the learning-rate schedule's cooldown accounted for when comparing carved and dense runs?

Cited in field guides

Connections

See R247 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.