Elastic ViTs from Pretrained Models without Retraining

Walter Simoncini, Michael Dorkenwald, Tijmen Blankevoort, Cees G. M. Snoek, Yuki M. Asano
10/20/2025
6 citations
cs.CV
transformer-attention

No official code found. Best implementation: WalterSimoncini/SnapViT (14 stars, Python, last commit 2026-01-26).

Abstract

Vision foundation models achieve remarkable performance but are only available in a limited set of pre-determined sizes, forcing sub-optimal deployment choices under real-world constraints. We introduce SnapViT: Single-shot network approximation for pruned Vision Transformers, a new post-pretraining structured pruning method that enables elastic inference across a continuum of compute budgets.

Show full abstract

Our approach efficiently combines gradient information with cross-network structure correlations, approximated via an evolutionary algorithm, does not require labeled data, generalizes to models without a classification head, and is retraining-free. Experiments on DINO, SigLIPv2, DeIT, and AugReg models demonstrate superior performance over state-of-the-art methods across various sparsities, requiring less than five minutes on a single A100 GPU to generate elastic models that can be adjusted to any computational budget. Our key contributions include an efficient pruning strategy for pretrained Vision Transformers, a novel evolutionary approximation of Hessian off-diagonal structures, and a self-supervised importance scoring mechanism that maintains strong performance without requiring retraining or labels. Code and pruned models are available at: https://elastic.ashita.nl/

View on arXivView PDF

Code Implementations(1)

Code for the NeurIPS 2025 Paper "Elastic ViTs from Pretrained Models without Retraining"

140Python, CudaOct 21, 202510 months agoNOASSERTION

Similar Papers

Cite this paper

@article{simoncini2025elastic,
  title  = {Elastic ViTs from Pretrained Models without Retraining},
  author = {Walter Simoncini and Michael Dorkenwald and Tijmen Blankevoort and Cees G. M. Snoek and Yuki M. Asano},
  year   = {2025},
  eprint = {2510.17700},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.17700v1},
  journal = {NEURIPS 2025 2025}
}

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

Discussion