arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.01059cs.CVcs.AIcs.LG
收藏

参数减少提升视觉变换器:对共享与宽度减少的比较研究

Parameter Reduction Improves Vision Transformers: A Comparative Study of Sharing and Width Reduction

Department of Computer Science, Boston University(计算机科学系,波士顿大学)

Anantha Padmanaban Krishna Kumar

AI总结:

通过参数减少策略提升视觉变换器性能,展示共享与宽度减少方法在准确率和训练稳定性上的改进

摘要:

尽管扩展定律和许多经验结果表明增加视觉变换器的规模通常能提高性能,但模型准确性和训练行为并不总是随着规模单调增加。聚焦于在ImageNet-1K上训练的ViT-B/16,我们研究了两种简单的参数减少策略,应用于MLP块,每种策略均减少了基准参数的32.7%。我们的GroupedMLP变体在相邻变换器块之间共享MLP权重,并在保持基准计算成本的情况下达到81.47%的top-1准确率。我们的ShallowMLP变体将MLP隐藏维度减半,并在推理吞吐量增加38%的情况下达到81.25%的top-1准确率。这两种模型均优于86.6M参数的基准(81.05%),并且表现出显著改进的训练稳定性,将峰值到最终准确率退化从0.47%降低到0.03%到0.06%的范围。这些结果表明,对于在ImageNet-1K上使用标准训练配方的ViT-B/16,模型处于过参数化区域,在此区域内可以减少MLP容量而不损害性能,甚至可以略微提高性能。更广泛地说,我们的发现表明,诸如参数共享和减少宽度等架构约束可能成为有用的归纳偏置,并突显了在设计视觉变换器时如何分配参数的重要性。所有代码可在:https://github.com/AnanthaPadmanaban-KrishnaKumar/parameter-efficient-vit-mlps 获取。

英文摘要:

Although scaling laws and many empirical results suggest that increasing the size of Vision Transformers often improves performance, model accuracy and training behavior are not always monotonically increasing with scale. Focusing on ViT-B/16 trained on ImageNet-1K, we study two simple parameter-reduction strategies applied to the MLP blocks, each removing 32.7\% of the baseline parameters. Our \emph{GroupedMLP} variant shares MLP weights between adjacent transformer blocks and achieves 81.47\% top-1 accuracy while maintaining the baseline computational cost. Our \emph{ShallowMLP} variant halves the MLP hidden dimension and reaches 81.25\% top-1 accuracy with a 38\% increase in inference throughput. Both models outperform the 86.6M-parameter baseline (81.05\%) and exhibit substantially improved training stability, reducing peak-to-final accuracy degradation from 0.47\% to the range 0.03\% to 0.06\%. These results suggest that, for ViT-B/16 on ImageNet-1K with a standard training recipe, the model operates in an overparameterized regime in which MLP capacity can be reduced without harming performance and can even slightly improve it. More broadly, our findings suggest that architectural constraints such as parameter sharing and reduced width may act as useful inductive biases, and highlight the importance of how parameters are allocated when designing Vision Transformers. All code is available at: https://github.com/AnanthaPadmanaban-KrishnaKumar/parameter-efficient-vit-mlps.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑