CVLGAug 30, 2023

Learning Diverse Features in Vision Transformers for Improved Generalization

MILA
arXiv:2308.16274v14 citationsh-index: 26
Originality Incremental advance
AI Analysis

This addresses robustness issues in vision models for applications sensitive to distribution shifts, but it is incremental as it builds on existing vision transformer architectures.

The paper tackles the problem of deep learning models relying on a small set of features, making them brittle to distribution shifts, by analyzing vision transformers and proposing a method to enhance feature diversity, resulting in improved out-of-distribution performance on benchmarks like MNIST-CIFAR and Waterbirds.

Deep learning models often rely only on a small set of features even when there is a rich set of predictive signals in the training data. This makes models brittle and sensitive to distribution shifts. In this work, we first examine vision transformers (ViTs) and find that they tend to extract robust and spurious features with distinct attention heads. As a result of this modularity, their performance under distribution shifts can be significantly improved at test time by pruning heads corresponding to spurious features, which we demonstrate using an "oracle selection" on validation data. Second, we propose a method to further enhance the diversity and complementarity of the learned features by encouraging orthogonality of the attention heads' input gradients. We observe improved out-of-distribution performance on diagnostic benchmarks (MNIST-CIFAR, Waterbirds) as a consequence of the enhanced diversity of features and the pruning of undesirable heads.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes