Model Carving
A method that jointly learns model weights and network topology during training. Learnable gates applied to sub-layers enable automatic structural pruning, so that the training loss directly drives architectural decisions.
Timeline (last 90 days)
Model Carving is a method that learns weights and topology simultaneously within a single training process, by attaching a learnable scalar gate to each sub-layer and removing the corresponding sub-layer when its gate approaches zero.
All comparisons are based on equal training compute, ensuring that the conclusions are not produced by feeding more data or piling on more compute.
Under the same training compute, the carved model achieves lower validation loss than dense models trained with up to 1.7x the compute.
The carved models outperform same-size models obtained through pruning or distillation.
The authors' judgment: the best path to obtaining small models for edge devices is to carve directly during training, rather than compressing a large model after the fact.
The advantages brought by carving grow as model scale increases, and can transfer to few-shot evaluation and generation tasks.
Removed sub-layers no longer participate in computation, reducing FLOPs per token by up to 34% and improving decoding speed by up to 1.6x, with no loss in quality.
Model Carving is equally effective on recurrent Transformers, indicating that the gated carving mechanism does not depend on independence between layers.
Model Carving pulls architecture search from an independent stage before training into the training loop itself, without relying on expensive search proxies and without requiring a complex compression pipeline after training.
All Facts (9)
Model Carving is a method that learns weights and topology simultaneously within a single training process, by attaching a learnable scalar gate to each sub-layer and removing the corresponding sub-layer when its gate approaches zero.
50%UnverifiedAll comparisons are based on equal training compute, ensuring that the conclusions are not produced by feeding more data or piling on more compute.
50%UnverifiedUnder the same training compute, the carved model achieves lower validation loss than dense models trained with up to 1.7x the compute.
50%UnverifiedThe carved models outperform same-size models obtained through pruning or distillation.
50%UnverifiedThe authors' judgment: the best path to obtaining small models for edge devices is to carve directly during training, rather than compressing a large model after the fact.
50%UnverifiedThe advantages brought by carving grow as model scale increases, and can transfer to few-shot evaluation and generation tasks.
50%UnverifiedRemoved sub-layers no longer participate in computation, reducing FLOPs per token by up to 34% and improving decoding speed by up to 1.6x, with no loss in quality.
50%UnverifiedModel Carving is equally effective on recurrent Transformers, indicating that the gated carving mechanism does not depend on independence between layers.
50%UnverifiedModel Carving pulls architecture search from an independent stage before training into the training loop itself, without relying on expensive search proxies and without requiring a complex compression pipeline after training.
50%