MoE-ViE:用于高效图像和视频理解的专家混合视觉编码器
研究论文 · 2026/08/19
视觉编码器是视觉-语言模型的关键组成部分,扩大其规模能有效提升性能,但密集扩展会增加计算成本和推理延迟。混合专家(MoE)架构为高效扩展提供了有吸引力的替代方案,已在大型语言模型中实现高效扩展,然而在先进水平下,CLIP风格视觉编码器的MoE设计空间仍未得到充分探索。本研究系统性地研究了用于视觉编码器扩展的MoE设计,发现细粒度MoE拓扑相比密集和标准MoE对应物能带来显著提升。我们进一步提出一种无辅助损失的平衡变体以更好地利用专家,并设计专门的MoE内核以减轻推理延迟开销。为增强视频能力同时保留图像知识,我们引入帧级蒸馏并配合新颖的冻结机制。我们预训练了一系列不同规模的混合专家视觉编码器(MoE-ViE),均持续优于其密集对应物。我们最大的模型在零样本性能上匹配了规模为其1.7倍的最先进编码器,而延迟仅为后者的76%。当与大型语言模型对齐时,MoE-ViE在图像和视频基准上超越了所有对比编码器,包括那些激活参数多至5倍的编码器。代码可在 https://github.com/facebookresearch/moe_vie 获取。
该论文首次在先进水平下系统探索CLIP风格视觉编码器的MoE设计,提出细粒度拓扑、无辅助损失平衡和专用内核等创新,显著提升效率与性能,并开源代码,对视觉-语言模型的高效扩展具有重要参考价值。
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.