Structured Initialization for Vision Transformers

J. Zheng, Xueqian Li, Hemanth Saratchandran, Simon Lucey
5/1/2025
7 citations
transformer-attention

No official code found. Best implementation: osiriszjq/structured_initialization (3 stars).

Abstract

Convolutional Neural Networks (CNNs) inherently encode strong inductive biases, enabling effective generalization on small-scale datasets. In this paper, we propose integrating this inductive bias into ViTs, not through an architectural intervention but solely through initialization.

Show full abstract

The motivation here is to have a ViT that can enjoy strong CNN-like performance when data assets are small, but can still scale to ViT-like performance as the data expands. Our approach is motivated by our empirical results that random impulse filters can achieve commensurate performance to learned filters within a CNN. We improve upon current ViT initialization strategies, which typically rely on empirical heuristics such as using attention weights from pretrained models or focusing on the distribution of attention weights without enforcing structures. Empirical results demonstrate that our method significantly outperforms standard ViT initialization across numerous small and medium-scale benchmarks, including Food-101, CIFAR-10, CIFAR-100, STL-10, Flowers, and Pets, while maintaining comparative performance on large-scale datasets such as ImageNet-1K. Moreover, our initialization strategy can be easily integrated into various transformer-based architectures such as Swin Transformer and MLP-Mixer with consistent improvements in performance.

View on arXivView PDF

Code Implementations(1)

Structured Initialization for Vision Transformers

30

Similar Papers

Cite this paper

@article{zheng2025structured,
  title  = {Structured Initialization for Vision Transformers},
  author = {J. Zheng and Xueqian Li and Hemanth Saratchandran and Simon Lucey},
  year   = {2025},
  eprint = {2505.19985},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2505.19985},
  url    = {https://doi.org/10.48550/arXiv.2505.19985},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.19985.svg)](https://codeofpaper.com/paper/2505.19985)

Discussion