Model Carving trains a Transformer's weights and architecture together in one run, using learnable scalar gates on each sublayer so training can remove components. The authors report lower validation loss at equal compute and up to 34% fewer FLOPs per token, though these results come from their own evaluation.
Key facts
- By applying learnable, scalar gates to each sublayer, we allow the training loss to remove the model's own components during training -- freeing a smaller heterogeneous network inside.
- We evaluate Model Carving by pre-training standard Transformers from 140M to 2.7B parameters and looped Transformers from 140M to 1.3B.
- At equal training compute, carved models reach a lower validation loss than dense models trained with up to 1.7 times more compute.
- Furthermore, carved models also outperform size-matched models produced by pruning or distillation, suggesting that the best way to obtain small models for edge devices is to carve them during training, not to compress a large one afterwards.
- Because the removed sublayers no longer run, carved models also cost up to 34% fewer FLOPs per token and decode up to 1.6 times faster without cost in quality.
Read aloud
Model Carving trains a Transformer's weights and architecture together in one run, using learnable scalar gates on each sublayer so training can remove components. The authors report lower validation loss at equal compute and up to thirty four percent fewer FLOPs per token, though these results come from their own evaluation. By applying learnable, scalar gates to each sublayer, we allow the training loss to remove the model's own components during training -- freeing a smaller heterogeneous network inside. We evaluate Model Carving by pre-training standard Transformers from 140M to two.7B parameters and looped Transformers from 140M to one.3B. At equal training compute, carved models reach a lower validation loss than dense models trained with up to one point seven times more compute. Furthermore, carved models also outperform size-matched models produced by pruning or distillation, suggesting that the best way to obtain small models for edge devices is to carve them during training, not to compress a large one afterwards. Because the removed sublayers no longer run, carved models also cost up to thirty four percent fewer FLOPs per token and decode up to one point six times faster without cost in quality.
Sources in this cluster
Free daily email
Get AI news, checked against sources
One short email each morning with the day's model launches, price changes and research. Unsubscribe any time.
We email a confirmation link first. Pro and API plans