跳到正文
arXiv cs.AI· Kaden Zheng, Pratyusha Sharma·· 2 小时前AI 评分44

Model Carving:训练中自我优化拓扑的 Transformer

Model Carving: Training Transformers That Optimize Their Own Topology

AI 导读

一项 arXiv 论文提出 Model Carving 方法,在单次训练中同时学习 Transformer 的权重和架构:通过对每个子层施加可学习的标量门控,让训练损失在训练过程中移除模型自身的组件。

正文 · 原文

View PDF HTML (experimental)

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.
Comments: 38 pages, 15 figures, 19 tables. Under review at ICLR 2027. Project page: this https URL
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI)
Cite as: arXiv:2611.27962 [cs.LG]
  (or arXiv:2611.27962v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2611.27962

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Kaden Zheng [view email]
[v1] Fri, 20 Nov 2026 18:41:39 UTC (7,996 KB)

来源:arXiv cs.AI · arxiv.org