Carved Not Compressed: Transformers That Prune Themselves During Training
Primary pillar: llm-ops-hitl
Every LLM operator eventually meets the same forced choice: train big and shrink later, or train small and accept a worse model. A Harvard preprint posted to arXiv this month (2611.27962, "Model Carving: Training Transformers That Optimize Their Own Topology") argues the choice is an artifact of a convention nobody has to keep. If training itself decides which parts of the model earn their place, you get a smaller model that is not a compromise — it beats the dense model it came from.
What Model Carving does
A standard Transformer runs the same pattern at every layer: an attention sublayer, then an MLP sublayer (a block of matrix multiplies), in the same order, every time. That uniformity is a habit, not a law — and it is likely suboptimal, because the best architecture for a given task is probably smaller, lumpy, and far from uniform.
Model Carving adds one learnable scalar gate per sublayer. A gate starts open and is optimized by gradient like any weight: if the training loss improves when a sublayer is bypassed often enough, its gate closes and that sublayer stops contributing. Over a single pretraining run, the network selects its own topology. The result is heterogeneous in a way no human designer would pick by hand — some layers keep both sublayers, some drop attention, some drop MLP, and the pattern follows the data instead of a template.
The numbers
The authors pretrained standard Transformers from 140M to 2.7B parameters and looped Transformers (a small stack of layers executed several times per token) from 140M to 1.3B:
- At equal training compute, carved models reach a lower validation loss than dense models trained with up to 1.7x the compute.
- Carved models also outperform size-matched models produced by pruning (cutting pieces out of a finished model) or distillation (training a small student on a large teacher's outputs) — the standard shrink-later playbook.
- Because a closed gate means the sublayer never runs at inference, carved models cost up to 34% fewer FLOPs per token and decode up to 1.6x faster — with no quality cost, since the quality was already better before serving.
- The advantage grows with scale and carries over to downstream work like few-shot evaluation and generation.
Why an ops team should care
The edge-and-local serving economy is built from after-the-fact compression: quantize (every bit must earn its place), prune, distill. Model Carving moves the decision into training, where the objective is the model's own loss, and the architecture that emerges is task-shaped rather than designer-shaped. Two things fall out of that:
First, architecture search collapses into training — no separate, expensive search phase hunting for the best small shape. One run learns weights and structure together.
Second, auditability gets simpler for free. Every sublayer the model itself deleted is a computation you no longer monitor, profile, or explain at review. A gate that closed during training because the loss got better is a cleaner audit trail than a pruning heuristic applied afterward: the removal is recorded in the objective, not in someone's rule of thumb.
Fair caveats. The published runs top out at 2.7B parameters — a fine research scale, but the production systems most operators run are sparser and much larger, and how learned gates behave at large MoE scale is an open question. And you cannot know in advance which sublayers your task will carve away; you train it and find out, which makes the run itself a small experiment.
MeltingFace is an LLM Ops research consultancy and Presence is its HITL living lab — not a chatbot vendor. If you are deploying carved or distilled models on local hardware and want the serving side — eval gates, model routing, human checkpoints — thought through before the hardware is bought, the LLM Ops notes at /llm-ops/ are the place to start.
MeltingFace