AI AI Pulse

Let training delete its own layers: models grow their topology

AI News Source: arXiv

Model Carving deletes useless sublayers during training. At equal compute it beats dense models trained with up to 1.7x more, using 34% fewer FLOPs.

What it argues against

Every layer of a standard Transformer looks the same: an attention block plus a feedforward block, repeated in one order. The paper calls that a convention, not a principle.

Worse, the architecture is frozen before training starts. Which layers are redundant gets fixed afterwards with pruning or distillation, and those weights were never optimised for the smaller shape.

Model Carving (arXiv 2611.27962, Harvard and NYU, by Kaden Zheng and Pratyusha Sharma) lets training decide the shape itself. It was posted on November 23.

How it works

The starting point is an overparameterised Transformer with extra residual connections, so information can skip ahead.

Every sublayer, attention or feedforward, carries a learnable scalar gate. A gate at 1.0 means full power. A gate near zero means the sublayer is gone.

The important part is how gates get pushed down. Each sublayer receives a pressure term, which represents the value of the compute it consumes. If a sublayer's contribution to lowering the training loss falls below that cost, its gate is pushed toward zero.

Every few hundred updates, the trainer checks for closed gates and removes those sublayers from the computation graph. The freed FLOPs are not wasted. They buy more training tokens under the same budget, so removing more means seeing more data.

Results

Pre-training used FineWeb-Edu. Dense Transformers ranged from 140 million to 2.7 billion parameters, and looped Transformers from 140 million to 1.3 billion.

Three findings stand out:

  • At equal training compute, carved models reach a lower validation loss than dense models trained with up to 1.7 times more compute.
  • Carved models beat size-matched models from pruning or distillation. The authors' explanation: carving during training lets the remaining weights grow into the final shape, while pruning keeps inherited weights.
  • Removed sublayers no longer run, so a carved model needs up to 34% fewer FLOPs per token and decodes up to 1.6 times faster, with no quality loss.

The advantage grows with scale and carries over to few-shot evaluation and generation. Evaluation used the 22 tasks in CORE-22, plus GSM8K, TriviaQA, SQuAD, LAMBADA, and symbolic tasks such as ListOps and modular addition.

Carved models are uneven. One layer may keep its feedforward block and drop attention, while the next does the opposite. The paper argues that this unevenness is itself a source of efficiency.

What to discount

First, every gain is an "up to" figure. The 1.7x, 34% and 1.6x numbers each come from specific configurations, not from every scale.

Second, the largest model has 2.7 billion parameters. Whether the gates and the pressure term hold at frontier scale is unanswered.

Third, there are no wall-clock or energy measurements. Using 34% fewer FLOPs does not mean inference is 34% faster, and the 1.6x decode figure is conditional.

Fourth, the work covers pre-training only. There is no instruction tuning and no deployment on real edge devices, which are the two hardest steps for the on-device pitch.

Why it matters

It moves compression from post-processing into training. For teams with a fixed compute budget, one run can produce both weights and shape, without a separate distillation pass.

The interesting part is the trade itself: saved compute buys more tokens. That turns an architecture question into a data question, and data assumptions tend to be more reliable than structural ones.

What to watch

Three things: whether it holds at larger parameter counts, whether anyone measures end-to-end speed-ups on a real inference stack, and whether it composes with mixture-of-experts and looped designs. The third decides whether this is a general method or a neat special case.

Nothing here is investment advice.

Source: arXiv

Related