arXiv:cs.LG· Walter Simoncini, Dheeraj Varghese, Gertjan J. Burghouts, Cees G. M. Snoek·· 10 小时前
Transformer 竟是弹性的:免重训练即可在 60% 稀疏度内按需伸缩
Your Transformer Is Secretly Elastic
AI 导读
研究者提出一种免重训练方法,将预训练 Transformer 变成可在多种计算预算下动态伸缩的单一模型,通过在同一尺度上联合排序每个 MLP 神经元与注意力头,在 27 个 22M 至 8B 参数的视觉与文本编码器上实现最高 60% 稀疏度下的平滑退化。
正文
Abstract:Scaling up transformers has produced models with broad capabilities, deployed across heterogeneous hardware and fluctuating workloads. Yet, model families offer only a few fixed sizes (e.g., S, B, L), forcing users to commit to a model based on hardware and latency constraints. This rigidity is often suboptimal under varying query loads. We introduce a retraining-free method that elastifies pre-trained transformers into a single model that adapts on-the-fly across a continuum of computational budgets. Our key contribution is a differentiable relaxation of the functional unit-ranking problem: unlike prior work, which optimizes a single importance weight per MLP block or attention head, we rank every individual MLP neuron and attention head jointly, on a common scale, by minimizing the model's loss under soft pruning across many sparsity targets, all at once. Across 27 vision and text transformer encoders ranging from 22M to 8B parameters, our method yields smooth degradation up to 60% sparsity and outperforms one-shot baselines under deep pruning. For example, pruning DINOv3 ViT-H+/16 to 50% sparsity removes 427M parameters while reducing ImageNet-1k linear-probing accuracy by only 0.8%, without the need for weight correction or retraining. At 60% sparsity, a pruned AugReg ViT-B/16 model achieves up to $1.80\times$ higher throughput and $1.26\times$ lower single-query latency on an A100 GPU. Elastic models are produced in minutes, with construction time scaling sub-linearly with parameter count.
| Comments: | Code available at this https URL |
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.20588 [cs.LG] |
| (or arXiv:2610.20588v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.20588 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Walter Simoncini [view email]
[v1]
Wed, 14 Oct 2026 17:58:08 UTC (1,128 KB)
来源:arXiv:cs.LG · arxiv.org