SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.06345 · CVPR · 2022

The Principle of Diversity: Training Stronger Vision Transformers Calls for Reducing All Levels of Redundancy

Tianlong Chen, Zhangyang Wang, Yu Cheng, Ahmed Awadallah, Zhenyu Zhang

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 13 functions out of this paper's own repositories and ran 10 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
VITA-Group/Diverse-ViT canonical 10 of 13
FunctionStatusWhere it lives
Loss_contrastive Ran VITA-Group/Diverse-ViT/reg.py
code served (permissive licence) · get_code("917f7c598d2d4810")
Loss_cosine Ran VITA-Group/Diverse-ViT/reg.py
code served (permissive licence) · get_code("9d7670f2c022eca9")
Loss_mixing Ran VITA-Group/Diverse-ViT/reg.py
code served (permissive licence) · get_code("146e4615af0a0d1f")
get_batch Ran VITA-Group/Diverse-ViT/gradient_utils.py
code served (permissive licence) · get_code("c1e69f1ba76b4145")
get_ordered_params Ran VITA-Group/Diverse-ViT/gradient_utils.py
code served (permissive licence) · get_code("a04f6c217a55c7c9")
get_scale_stats Ran VITA-Group/Diverse-ViT/gradient_utils.py
code served (permissive licence) · get_code("61109833276c1a1a")
mixup_target Ran VITA-Group/Diverse-ViT/mix.py
code served (permissive licence) · get_code("b593bfa372a89274")
one_hot Ran VITA-Group/Diverse-ViT/mix.py
code served (permissive licence) · get_code("a1e046d46f0b9ca0")
rand_bbox Ran VITA-Group/Diverse-ViT/mix.py
code served (permissive licence) · get_code("d0b649ce5448ea07")
resize_pos_embed Ran VITA-Group/Diverse-ViT/vision_transformer_diverse.py
code served (permissive licence) · get_code("743923947c250e6c")
build_dataset Not yet run VITA-Group/Diverse-ViT/datasets.py
code served (permissive licence) · get_code("49c67c60672b93ae")
build_transform Not yet run VITA-Group/Diverse-ViT/datasets.py
code served (permissive licence) · get_code("3bc74137ab36aa79")
checkpoint_filter_fn Not yet run VITA-Group/Diverse-ViT/vision_transformer_diverse.py
code served (permissive licence) · get_code("df40006af8733223")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Vision transformers (ViTs) have gained increasing popularity as they are commonly believed to own higher modeling capacity and representation flexibility, than traditional convolutional networks. However, it is questionable whether such potential has been fully unleashed in practice, as the learned ViTs often suffer from over-smoothening, yielding likely redundant models. Recent works made preliminary attempts to identify and alleviate such redundancy, e.g., via regularizing embedding similarity or re-injecting convolution-like structures. However, a "head-to-toe assessment" regarding the extent of redundancy in ViTs, and how much we could gain by thoroughly mitigating such, has been absent for this field. This paper, for the first time, systematically studies the ubiquitous existence of redundancy at all three levels: patch embedding, attention map, and weight space. In view of them, we advocate a principle of diversity for training ViTs, by presenting corresponding regularizers that encourage the representation diversity and coverage at each of those levels, that enabling capturing more discriminative information. Extensive experiments on ImageNet with a number of ViT backbones validate the effectiveness of our proposals, largely eliminating the observed ViT redundancy and significantly boosting the model generalization. For example, our diversified DeiT obtains 0.70% ∼ 1.76% accuracy boosts on ImageNet with highly reduced similarity. Our codes are fully available in https://github.com/VITA-Group/Diverse-ViT.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2203.06345")
get_code_for_paper("2203.06345")
have("2203.06345")

Connect an agent — have() is free.