DeclareViT: Decoupling Early Classification from Feature Refinement with Exit Query for Efficient ViTs
Xinrui Gong, Yao Rong, Chuangtao Chen, Daniel Ochs, Ulf Schlichtmann, Bing Li, Kristian Kersting, Grace Li Zhang
Abstract
Vision Transformers achieve remarkable recognition performance but incur substantial computational cost during inference, limiting their use in latency- and compute-constrained deployment scenarios. Early-exit inference offers a promising solution by allowing easy samples to terminate at intermediate layers. However, existing approaches typically couple early classification with the shared backbone, requiring intermediate representations to support both early classification and subsequent feature refinement. Under joint training, the corresponding optimization objectives jointly update shared backbone parameters, which can lead to conflicting gradient directions. Motivated by this observation, we introduce DeclareViT, a framework that decouples early classification from feature refinement. Each exit uses a dedicated query to read intermediate features through one-way cross-attention without modifying the backbone token stream. The query branches are optimized for early classification while the backbone and final classifier remain frozen. Across ViT, DeiT, and Swin on CIFAR-100, ImageNet-1K, and Food-101, DeclareViT consistently establishes a state-of-the-art accuracy-efficiency trade-off: It achieves 1.58 times to 2.57 times multiply-accumulate (MAC)-based speed-up with only a 0.39-1.91 percentage-point accuracy drop. Wall-clock measurements on CPU and GPU further demonstrate practical inference acceleration. Code is available at https://github.com/TUDa-HWAI/DeclareViT.
Create a lesson
Related papers
SuperFine3D: Efficient Global-Local Recursive Refinement for Extremely Detailed 3D Geometry Generation
Shared title terminology · Lihan Li, Junwei Zhou, Yu-wing Tai
Decoupling Perception from Generation for Agentic 3D CT Report Generation
Shared title terminology · Chenyu Wang, Mingyu Chen, Wenchao Li et al.
Training-Free 3D Editing via Feature-Divergence Localization and Trajectory Correction
Shared title terminology · Tri Ton, Siwoo Lim, Joshua Tian Jin Tee et al.
Elicitation format changes zero-shot classification accuracy in a medical vision-language model: a two-center evaluation on colorectal histopathology
Shared title terminology · Anay Sinhal, Amit Sinhal, Arpana Sinhal
From Dense to Sparse: Morton-Ordered Sparse Mapping for Efficient 3D Mesh Generation
Shared title terminology · Junjie Yang, Rui Qian, Yijiang Li et al.
Imagine Smarter, Drive Faster: Efficient World Modeling for Decision-Aware Autonomous Driving
Shared title terminology · Feiyang Jia, Lin Liu, Zhicheng Bao et al.