// Model Carving // This work from Harvard and NYU proposes Model Carving, which puts a learnable scalar gate on every attention and MLP sublayer. The training loss closes gates it does not need, and those sublayers are removed. At equal training compute, carved models…
// Model Carving // This work from Harvard and NYU proposes Model Carving, which puts a learnable scalar gate on every attention and MLP sublayer. The training loss closes gates it does not need, and those sublayers are removed. At equal training compute, carved models reached lower validation loss than dense models trained with up to 1.7x more compute. They tested standard Transformers from 140M to 2.7B parameters and looped Transformers up to 1.3B. Carved models also beat size-matched models made by pruning or distillation. The advantage grew with scale and held on few-shot evaluation and generation. Removed sublayers do not run, so carved models used up to 34% fewer FLOPs per token and decoded up to 1.6x faster with no quality loss. If you need a small model for edge or latency-bound use, compare carving during pretraining against your current prune-then-distill pipeline. https://t.co/1sbiXKyrqN Chat with Paper: https://t.co/L4qHIKmuK0
The paper puts a learnable scalar gate on every attention and MLP sublayer and adds a pruning pressure tied to a training-FLOPs budget, so sublayers whose contribution to the loss falls below their compute cost are switched off during pre-training, tested on standard Transformers from 140M to 2.7B parameters and looped Transformers to 1.3B. At equal training compute the carved models reach lower validation loss than their full-depth starting models while running 8-34% fewer FLOPs per token and decoding up to 1.6 times faster, and they beat Sheared-LLaMA, Minitron and ShortGPT pruning and same-size distillation; the compute-equivalent gain is up to 1.71x in the looped family but only about 1.07x for standard Transformers. Carving removes early layers, roughly the first third of depth, the opposite of what pruning studies find, and the authors note results stop at 2.7B and that carving gains 10-16% less from the learning-rate cooldown than dense models.