All families

NesT

6 models, image classification. Fewest parameters first.

NesT is a hierarchical vision transformer for image classification that needs only minor code changes to the original vision transformer. It stacks canonical transformer layers that run local self-attention on every image block independently, and then nests the blocks hierarchically.

Read more

Blocks exchange information only at the block aggregation step between levels of the hierarchy, which the paper builds from a 3x3 convolution, layer normalization and a 3x3 max pooling. Each aggregation merges four spatially connected blocks into one, so the number of blocks falls by a factor of 4 per level until a single block is left at the top. The authors find that this aggregation function plays a critical role in letting blocks communicate.

The paper defines tiny, small and base versions and reports 83.3% and 83.8% ImageNet accuracy for NesT models with 38M and 68M parameters. It also proposes GradCAT, a method that interprets the model's reasoning by traversing its tree-like structure. The timm version is a PyTorch implementation whose weights were converted from the official Jax code.

AI-written summary; not reviewed by a person. Corrections welcome.

Paper: Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding

Filter and sort these in the model list