模型与实验室 4.0 · 优秀 2026-11-20 · 论文

Model Carving: Training Transformers That Optimize Their Own Topology

Model Carving 把选架构并进训练本身:给每个子层加可学习标量门,让训练损失在训练中删掉模型自己的组件,从大网络里雕出一个更小更快的异构网络140M-2.7B 预训练实验中,同等训练算力下胜过用 1.7 倍算力训练的稠密模型,也强于事后剪枝或蒸馏出的同等大小模型;被删子层不再运行,每 token FLOP 省 34%,解码快 1.6 倍结论直白:架构应当像权重一样被学习,边缘小模型最好在训练中雕出来,而不是训练后再压缩

打开原文回到归档

Model Carving: Training Transformers That Optimize Their Own Topology

中文导读

Model Carving 把选架构并进训练本身:给每个子层加可学习标量门,让训练损失在训练中删掉模型自己的组件,从大网络里雕出一个更小更快的异构网络140M-2.7B 预训练实验中,同等训练算力下胜过用 1.7 倍算力训练的稠密模型,也强于事后剪枝或蒸馏出的同等大小模型;被删子层不再运行,每 token FLOP 省 34%,解码快 1.6 倍结论直白:架构应当像权重一样被学习,边缘小模型最好在训练中雕出来,而不是训练后再压缩

为什么值得关注

Model Carving:训练中学会删自己的子层,等算力胜过 1.7 倍算力稠密模型,解码快 1.6 倍

架构选择与训练后压缩的取舍可以换成"训练中雕拓扑"的视角;等训练算力下胜过 1.7 倍算力稠密模型、被删子层每 token 省 34% FLOP、解码快 1.6 倍,都是可直接引用的数字。

关键信息

  • 论文标题:Model Carving: Training Transformers That Optimize Their Own Topology
  • 作者:Kaden Zheng, Pratyusha Sharma
  • arXiv:https://arxiv.org/abs/2611.27962
  • 发布时间:2026-11-20
  • arXiv 分类:cs.LG, cs.AI
  • 关联标签:architecture, training, pruning, transformer
  • 备注:38 pages, 15 figures, 19 tables. Under review at ICLR 2027. Project page: https://kadenzheng.com/model-carving/

English Abstract

Machine learning has largely kept separate the choice of architecture and the process of training. A classic Transformer, for instance, trains a fixed set of attention and MLP sublayers at every layer, in the same order, and optimizes the weights within. This uniformity is a convention rather than a principled design choice, and it is likely suboptimal: the best architecture for a given task may be smaller, more efficient, and far from uniform. We believe that, ideally, training itself should shape the model's topology. To this end, we introduce Model Carving, which learns both a Transformer's weights and its architecture in a single run. 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. This advantage both grows with scale and carries over to downstream tasks such as few-shot evaluation and generation. 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. Our results show that architecture, like weights, should be learned and not fixed in advance, and that inside every large transformer is a smaller, faster, stronger one waiting to be carved out.

English Summary

Model Carving learns a Transformer's weights and its architecture in a single training run. Learnable scalar gates on each sublayer let the training loss remove the model's own components during training, freeing a smaller heterogeneous network inside instead of compressing a large model afterwards. Pre-training standard Transformers from 140M to 2.7B and looped Transformers from 140M to 1.3B, carved models reach lower validation loss than dense models trained with up to 1.7x more compute at equal training compute, and outperform size-matched models from pruning or distillation. Removed sublayers no longer run, so carved models cost up to 34% fewer FLOPs per token and decode up to 1.6x faster, with the advantage growing with scale and carrying over to few-shot and generation tasks.

Obsidian Notes

  • 内容由 opencli arxiv paper 拉取 arXiv 元数据与摘要生成。
  • 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。