[Paper Review] Multi-Exit Vision Transformer for Dynamic Inference
This paper proposes seven novel early exit branch architectures for Vision Transformers to enable dynamic inference, allowing faster predictions for easy samples while maintaining accuracy. Through extensive experiments on image classification and regression tasks, it demonstrates that ViT-EE and MLP-EE branches achieve the best trade-off between speed and accuracy under end-to-end training, with ViT-EE reaching 97.33% accuracy on CIFAR-100 at early exits and reducing FLOPS by up to 67% compared to full inference.
Deep neural networks can be converted to multi-exit architectures by inserting early exit branches after some of their intermediate layers. This allows their inference process to become dynamic, which is useful for time critical IoT applications with stringent latency requirements, but with time-variant communication and computation resources. In particular, in edge computing systems and IoT networks where the exact computation time budget is variable and not known beforehand. Vision Transformer is a recently proposed architecture which has since found many applications across various domains of computer vision. In this work, we propose seven different architectures for early exit branches that can be used for dynamic inference in Vision Transformer backbones. Through extensive experiments involving both classification and regression problems, we show that each one of our proposed architectures could prove useful in the trade-off between accuracy and speed.
Motivation & Objective
- To enable dynamic inference in Vision Transformers for latency-constrained edge and IoT applications with variable computation budgets.
- To design and evaluate multiple early exit branch architectures that maintain performance while reducing inference time.
- To investigate the impact of architectural choices—such as attention mechanisms, normalization, and similarity to backbone layers—on early exit performance.
- To compare three training strategies (end-to-end, layer-wise, classifier-wise) for multi-exit ViT and identify optimal configurations.
Proposed method
- Proposes seven distinct early exit branch architectures: MLP-EE, CNN-Ignore-EE, CNN-Add-EE, CNN-Project-EE, ViT-EE, MLP-Mixer-EE, and ResMLP-EE, each with different architectural characteristics.
- Integrates these branches at intermediate layers of Vision Transformer backbones, enabling early prediction before full forward pass completion.
- Employs three training strategies: end-to-end (joint optimization), layer-wise (progressive fine-tuning), and classifier-wise (backbone frozen during branch training).
- Uses FLOPS and accuracy metrics to evaluate trade-offs between speed and performance across different exit locations and datasets.
- Evaluates models on image classification (CIFAR-10, CIFAR-100, Fashion-MNIST) and regression (DISCO crowd counting) tasks.
- Analyzes architectural influences such as receptive field, attention type, normalization, and architectural similarity to backbone on exit performance.
Experimental results
Research questions
- RQ1Which early exit branch architecture yields the best accuracy-speed trade-off in Vision Transformers for dynamic inference?
- RQ2How do different training strategies (end-to-end, layer-wise, classifier-wise) affect the performance of multi-exit ViT models?
- RQ3To what extent does architectural similarity between the exit branch and the backbone layers improve early exit performance?
- RQ4How do architectural components like attention mechanisms, normalization, and receptive field size influence early exit accuracy?
- RQ5Can multi-exit ViT architectures achieve high performance at early layers while significantly reducing computational cost?
Key findings
- ViT-EE branches achieved the highest accuracy among all architectures, reaching 97.33% on CIFAR-100 at the final exit, with minimal degradation in backbone parameters.
- MLP-EE and ViT-EE branches showed the most favorable accuracy-speed trade-offs, reducing FLOPS by up to 67% compared to full inference while maintaining high accuracy.
- The end-to-end training strategy outperformed layer-wise and classifier-wise strategies, especially in maintaining backbone performance and enabling effective multi-exit learning.
- CNN-based branches with architectural differences from the backbone (e.g., CNN-Ignore-EE) performed worse than those with higher similarity (e.g., ViT-EE), highlighting the importance of architectural consistency.
- Branches placed at later layers (e.g., Early@9) achieved higher accuracy than earlier ones, but only when the architecture and training strategy were well-aligned.
- The layer-wise training strategy failed to achieve high accuracy in later stages due to the loss of pre-trained weights after initial fine-tuning, limiting its practicality.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.