arXiv:2512.01059cs.CVcs.AI2025-12被引 1

减少ViT的MLP参数能提升性能与训练稳定性

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

  • 通过共享MLP权重或缩小隐藏层维度,减少32.7%参数
  • 准确率达81.47%,推理速度提升38%,峰值损失降至0.06%
  • 适合关注模型效率与训练稳定性的视觉Transformer研究者

尽管规模定律表明增大Vision Transformers通常能提升性能,但模型准确率与训练行为并不总随规模单调上升。针对在ImageNet-1K上训练的ViT-B/16,我们研究了两种应用于MLP模块的简单参数缩减策略,每种均移除32.7%的基础参数。我们的分组MLP(GroupedMLP)变体在相邻变换块间共享MLP权重,实现81.47%的top-1准确率,同时保持基线计算成本。浅层MLP(ShallowMLP)变体将MLP隐藏维度减半,达到81.25% top-1准确率,推理吞吐量提升38%。两者均优于86.6M参数的基线(81.05%),且训练稳定性显著提升,峰值到最终准确率下降从0.47%降至0.03%~0.06%。结果表明,在标准训练流程下,ViT-B/16在ImageNet-1K上处于过参数化状态,可适度降低MLP容量而不损害性能,甚至略有提升。更广泛地,参数共享与宽度缩减等架构约束可能作为有益归纳偏置,强调参数分配方式在设计Vision Transformers中的重要性。所有代码已开源。

原文摘要 · Abstract (English)

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.

ViT参数效率训练稳定MLP优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。