Fully Attentional Networks with Self-emerging Token Labeling

Bingyin Zhao, Zhiding Yu, Shiyi Lan, Yutao Cheng, Anima Anandkumar +2 more
1/1/2024
transformer-attention

No official code found. Best implementation: NVlabs/STL (35 stars, last commit 2024-03-27).

Abstract

Recent studies indicate that Vision Transformers (ViTs) are robust against out-of-distribution scenarios. In particular, the Fully Attentional Network (FAN) - a family of ViT backbones, has achieved state-of-the-art robustness. In this paper, we revisit the FAN models and improve their pretraining with a self-emerging token labeling (STL) framework. Our method contains a two-stage training framework. Specifically, we first train a FAN token labeler (FAN-TL) to generate semantically meaningful patch token labels, followed by a FAN student model training stage that uses both the token labels and the original class label. With the proposed STL framework, our best model based on FANL-Hybrid (77.3M parameters) achieves 84.8% Top-1 accuracy and 42.1% mCE on ImageNet-1K and ImageNetC, and sets a new state-of-the-art for ImageNet-A (46.1%) and ImageNet-R (56.6%) without using extra data, outperforming the original FAN counterpart by significant margins. The proposed framework also demonstrates significantly enhanced performance on downstream tasks such as semantic segmentation, with up to 1.7% improvement in robustness over the counterpart model.

View on arXivView PDF

Code Implementations(1)

NVlabs/STLCommunity100%

Official Pytorch Implementation of Self-emerging Token Labeling

355Shell, PythonJan 7, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{zhao2024fully,
  title  = {Fully Attentional Networks with Self-emerging Token Labeling},
  author = {Bingyin Zhao and Zhiding Yu and Shiyi Lan and Yutao Cheng and Anima Anandkumar and Yingjie Lao and José M. Álvarez},
  year   = {2024},
  eprint = {2401.03844},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2401.03844},
  journal = {ICCV 2023 2023}
}

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/2401.03844.svg)](https://codeofpaper.com/paper/2401.03844)

Discussion