-
Notifications
You must be signed in to change notification settings - Fork 31.2k
Description
Model description
Vision Transformer with Mixture of Experts (ViT-MoE) is an efficient scaling approach for vision transformers that replaces dense feedforward layers with sparse mixture of experts.
This architecture enables scaling model capacity while keeping per-token computation roughly constant, achieving better accuracy-efficiency trade offs compared to dense ViTs.
Key Benefits:
- 90.35% ImageNet accuracy with ~50% compute reduction vs dense models
- Expert specialization emerges naturally (deeper layers specialize in object classes)
- Scalable to large model sizes without proportional compute increase
The implementation would follow existing MoE patterns in transformers (Mixtral, Switch Transformers) but adapted for vision tasks, trying to filling the current gap of vision MoE models in the library.
Implementation Plan:
- Base Implementation: Use Google V-MoE as foundation
- Enhanced with ViMoE Research: Apply latest empirical insights (if required)
Evaluation: Start with ImageNet-1K classification, then expand to other vision tasks
Open source status
- The model implementation is available
- The model weights are available
Provide useful links for the implementation
Primary Implementation Reference:
- Google V-MoE Implementation: https://github.com/google-research/vmoe
- Google V-MoE Paper: https://arxiv.org/abs/2106.05974
- Google V-MoE Blog: https://research.google/blog/scaling-vision-with-sparse-mixture-of-experts/
Additional Research Foundation:
- ViMoE Paper (ICLR 2025): https://arxiv.org/abs/2410.15732
- OpenReview: https://openreview.net/forum?id=KaYXsoCxV7
- Authors: @Frank-ZY-Dou, @JoinWei-PKU (partial list)
- Mobile V-MoEs: https://arxiv.org/abs/2309.04354
- M³ViT: https://arxiv.org/abs/2210.14793
Existing MoE Patterns in Transformers:
- Mixtral: src/transformers/models/mixtral/modeling_mixtral.py
- Switch Transformers: src/transformers/models/switch_transformers/modeling_switch_transformers.py
- Qwen2-MoE: src/transformers/models/qwen2_moe/modeling_qwen2_moe.py
Pre-trained Weights:
- Google V-MoE checkpoints available in their repository for various model sizes
- ImageNet-21k and ILSVRC2012 trained models