FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization

Pavan Kumar Anasosalu Vasu, J. Gabriel, Jeff J. Zhu, Oncel Tuzel, Anurag Ranjan
2/14/2026

No official code found. Best implementation: huggingface/pytorch-image-models (36,940 stars, Apache-2.0, PyTorch, last commit 2026-04-29). 1 more below.

Abstract

The recent amalgamation of transformer and convolutional designs has led to steady improvements in accuracy and efficiency of the models. In this work, we introduce FastViT, a hybrid vision transformer architecture that obtains the state-of-the-art latency-accuracy trade-off. To this end, we introduce a novel token mixing operator, RepMixer, a building block of FastViT, that uses structural reparameterization to lower the memory access cost by removing skip-connections in the network. We further apply traintime overparametrization and large kernel convolutions to boost accuracy and empirically show that these choices have minimal effect on latency. We show that - our model is 3.5× faster than CMT, a recent state-of-the-art hybrid transformer architecture, 4.9× faster than EfficientNet, and 1.9× faster than ConvNeXt on a mobile device for the same accuracy on the ImageNet dataset. At similar latency, our model obtains 4.2% better Top-1 accuracy on ImageNet than MobileOne. Our model consistently outperforms competing architectures across several tasks - image classification, detection, segmentation and 3D mesh regression with significant improvement in latency on both a mobile device and a desktop GPU. Furthermore, our model is highly robust to out-of-distribution samples and corruptions, improving over competing robust models. Code and models are available at https://github.com/apple/ml-fastvit

View on arXivView PDF

Code Implementations(2)

PyTorchApache-2.0

The largest collection of PyTorch image encoders / backbones. Including train, eval, inference, export scripts, and pretrained weights -- ResNet, ResNeXT, EfficientNet, NFNet, Vision Transformer (ViT), MobileNetV4, MobileNet-V3 & V2, RegNet, DPN, CSPNet, Swin Transformer, MaxViT, CoAtNet, ConvNeXt, and more

36,9405,171MDX, ShellFeb 2, 20195 months agoApache-2.0
augmixconvnextdistributed-trainingefficientnetimage-classification+15 more
apple/ml-fastvitCommunity100%

This repository contains the official implementation of the research paper, "FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization" ICCV 2023

2,038130PythonAug 15, 20232 years agoNOASSERTION

Similar Papers

Cite this paper

@article{vasu2026fastvit,
  title  = {FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization},
  author = {Pavan Kumar Anasosalu Vasu and J. Gabriel and Jeff J. Zhu and Oncel Tuzel and Anurag Ranjan},
  year   = {2026},
  eprint = {2303.14189},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2303.14189},
  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/2303.14189.svg)](https://codeofpaper.com/paper/2303.14189)

Discussion