MEGA Hub

MoE-ViE: Mixture of Experts Vision Encoder for Efficient Image and Video Understanding

Authors

Do you know Bonan Zhang?You can claim authorship or link another user.Do you know Shiyu Dong?You can claim authorship or link another user.Do you know Quan Hung Tran?You can claim authorship or link another user.Do you know Katharina Gschwind?You can claim authorship or link another user.Do you know Shuqi Yang?You can claim authorship or link another user.Do you know Sijia Chen?You can claim authorship or link another user.Do you know Adel Ahmadyan?You can claim authorship or link another user.Do you know Seungwhan Moon?You can claim authorship or link another user.Do you know Lu Zhang?You can claim authorship or link another user.Do you know Ahmed Kirmani?You can claim authorship or link another user.Do you know Babak Damavandi?You can claim authorship or link another user.Do you know Anuj Kumar?You can claim authorship or link another user.

Abstract

Vision encoders are a critical component of vision-language models, and scaling their capacity effectively improves performance. However, dense scaling increases compute cost and inference latency. Mixture-of-Experts (MoE) architectures offer a compelling alternative, having enabled efficient scaling in LLMs, yet the MoE design space for CLIP-style vision encoders remains underexplored at State-of-the-Art (SOTA) levels. In this work, we systematically study MoE designs for vision encoder scaling and find that fine-grained MoE topologies yield substantial gains over both dense and standard MoE counterparts. We further propose an auxiliary-loss-free balancing variant for better expert utilization, and design a specialized MoE kernel to mitigate inference latency overhead. To enhance video capabilities while preserving image knowledge, we introduce frame-level distillation paired with a novel freezing mechanism. We pretrain a series of Mixture-of-Experts Vision Encoders (MoE-ViE) across a range of sizes, all consistently outperforming their dense counterparts. Our largest model matches the zero-shot performance of a SOTA encoder 1.7x its size at 76% of its latency. When aligned with an LLM, MoE-ViE surpasses all compared encoders on image and video benchmarks, including those with up to 5x more activated parameters. Code is available at https://github.com/facebookresearch/moe_vie.

Community

00