Hilarious work on cutting out less useful layers while learning. The benefit of the layer is compared to the possibility of spending the flops saved on additional tokens for training, and if the reduction of the expected loss from the layer is less than the benefit from the tokens, then the layer is cut.
By the way, I like how the link analysis pipeline works. First, it constantly links to previous analyzes and relevant posts. Second, and much cooler, he regularly finds works on the subject (often previous ones) that the writers didn't address.
Carving models: training transformers that optimize their topology.
Kaden Zheng, Pratyusha Sharma.
Paper:
Code: .
review.
The main thing: evaluating sub-layers at the cost of additional tokens really saves calculations in loop transformers with shared weights. In standard stacks, the training gain is small and mixed with the effect of skip connections between the layers.
What they did: Model Carving pre-trains standard and looped models, and adds a trainable gate - output multiplier - and penalty-free skip connections to each attention layer and MLP. The sublayer is removed during training if its contribution to the loss is less than the benefit of additional tokens.
What we got: The results were mixed: loop models provide computational savings in training of up to 1.71x, while keeping all parameters in memory. Standard ones save up to 34% FLOPs on inference, but during training they barely ignore dense baselines.
Why it matters: Per-cycle gates give networks in depth specialization loops without sharing weights. For standard models there is no control with a smaller network with skip connections, and with 4-bit quantization at 2.7B the gain disappears.
Cut layers here.