Everything K-culture — comebacks to K-beauty, straight to your inboxGet it in your inbox

METAL MEDIA

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

arXiv:2608.174022026-08-17

A smarter, faster way to build the 'eyes' of AI models that read images and video

MoE-ViE applies a Mixture-of-Experts design, where many small expert modules exist but only a few activate per input, to CLIP-style vision encoders that pair images with text. The team combined finely split experts, a new load-balancing method, a custom GPU kernel, and a distillation-plus-freezing trick to keep image skills intact while learning video. The result: MoE-ViE beat dense models of the same compute budget at every scale, and its largest version matched a state-of-the-art encoder 1.7 times its size while running at 76% of its latency.

METAL MEDIA explanatory visual

A smarter, faster way to build the 'eyes' of AI models that read images and video

  1. 01Vision encoders, the components that turn images into representations for vision-language models, get better as they scale, but scaling normally raises compute cost and response latency
  2. 02Instead of giving each expert the full size of a normal MLP block, the team used many smaller 'fine-grained' experts plus always-on shared experts, letting the model activate only a subset per input
  3. 03They improved an auxiliary-loss-free load-balancing method to keep experts evenly used, and built a custom Triton GPU kernel that delivered over 2.5x inference speedup
  4. 04To prevent the model from forgetting image understanding while learning from video, they introduced frame-level distillation (having the model imitate its own earlier image-trained version) and froze expert modules during video fine-tuning
  5. 05Trained on 3.5 billion image-text pairs, MoE-ViE outperformed both dense models and prior MoE vision encoders at every size, and when combined with a language model it beat rivals using up to 5x more active parameters on image and video benchmarks
An explanatory diagram made by METAL MEDIA, not a figure supplied by the paper's authors.

What they did

  1. Vision encoders, the components that turn images into representations for vision-language models, get better as they scale, but scaling normally raises compute cost and response latency
  2. Instead of giving each expert the full size of a normal MLP block, the team used many smaller 'fine-grained' experts plus always-on shared experts, letting the model activate only a subset per input
  3. They improved an auxiliary-loss-free load-balancing method to keep experts evenly used, and built a custom Triton GPU kernel that delivered over 2.5x inference speedup
  4. To prevent the model from forgetting image understanding while learning from video, they introduced frame-level distillation (having the model imitate its own earlier image-trained version) and froze expert modules during video fine-tuning
  5. Trained on 3.5 billion image-text pairs, MoE-ViE outperformed both dense models and prior MoE vision encoders at every size, and when combined with a language model it beat rivals using up to 5x more active parameters on image and video benchmarks
Table 1: Comparison of different MoE designs in vision encoders.
General ClassificationImage Retrieval
ModelTotal paramsActivated paramsAvg. Class.ImageNet Val [22]ImageNet v2 [60]ObjectNet [4]ImageNet Adversarial [33]ImageNet Renditions [32]Avg. RetrievalCOCO T→I [46]COCO I→T [46]Flickr30k T→I [88]Flickr30k I→T [88]
ViT-B/32 dense0.1B0.1B55.867.559.350.627.873.758.436.354.463.379.6
ViT-B/32 conventional MoE0.5B0.1B59.970.662.354.334.777.759.737.856.364.480.2
MoE-ViE-B/320.5B0.1B63.272.964.957.740.480.061.438.956.666.583.5
ViT-L/160.3B0.3B78.079.772.674.972.490.568.945.863.875.990.3
ViT-L/16 conventional MoE1.7B0.3B78.580.272.973.574.990.869.045.563.476.190.8
MoE-ViE-L/161.7B0.3B79.680.774.176.575.491.569.346.063.876.391.0
Table 2: Comparison of zero-shot video benchmarks between MoE-ViE and other previous SOTA vision encoders in the literature.
Video ClassificationVideo Retrieval
ModelTotal paramsActivated paramsResolutionAvg. Class.K400 [38]K600 [38]UCF101 [68]HMDB [41]Avg. RetrievalMSR-VTT T→V [84]MSR-VTT V→T [84]
SigLIP2-B/16 [75]0.1B0.1B22459.558.755.082.042.334.338.530.1
PEcoreB/16 [5]0.1B0.1B22465.965.665.184.648.247.547.647.3
MoE-ViE-B/160.5B0.1B22467.568.365.684.551.547.647.947.2
SigLIP2-L/16 [75]0.3B0.3B38466.065.362.586.749.336.541.531.4
PEcoreL/14 [5]0.3B0.3B33672.973.472.787.158.550.250.350.1
MoE-ViE-L/161.7B0.3B38473.474.571.889.257.950.250.549.8
InternVL-C/16 [13]5.5B5.5B224-69.168.9--42.544.740.2
SigLIP2-g-opt/16 [75]1.1B1.1B38469.869.867.090.751.838.743.134.2
PEcoreG/14 [5]1.9B1.9B44876.076.975.190.761.150.651.249.9
MoE-ViE-H/143.5B1.1B44876.576.975.192.861.350.651.649.5
Table 3: Comparison of zero-shot image classification and retrieval between MoE-ViE and other SOTA vision encoders in the literature.
General Image ClassificationImage Retrieval
ModelTotal paramsActivated paramsResolutionAvg. Class.ImageNet Val [22]ImageNet v2 [60]ObjectNet [4]ImageNet Adversarial [33]ImageNet Renditions [32]Avg. RetrievalCOCO T→I [46]COCO I→T [46]Flickr30k T→I [88]Flickr30k I→T [88]
LIMOE-B/16 [54]0.5B0.1B224-73.7-----36.251.3--
CLIP-UP-B/16[79]0.5B0.2B224-76.9----74.252.171.580.992.3
SigLIP2-B/16 [75]0.1B0.1B22474.078.271.473.655.091.773.752.168.980.793.0
PEcoreB/16 [5]0.1B0.1B22474.678.471.771.962.488.774.350.971.080.894.4
MoE-ViE-B/160.5B0.1B22476.879.372.574.468.089.974.452.170.780.993.9
CLIP-MoE-L/14 [92]0.9B0.5B336-74.668.533.5--53.646.865.042.160.5
LIMOE-L/16 [54]1.7B0.3B224-78.6-----39.655.7--
CLIP-UP-L/14 [79]1.7B0.5B224-81.2----75.553.973.882.092.4
SigLIP2-L/16 [75]0.3B0.3B38485.083.177.484.484.395.776.755.371.485.095.2
PEcoreL/14 [5]0.3B0.3B33686.183.577.984.789.095.278.857.175.985.596.6
MoE-ViE-L/161.7B0.3B38486.283.677.985.089.095.478.857.275.985.796.5
EVA 18B/14 [70]17.5B17.5B22485.483.877.982.287.395.777.556.273.683.396.7
InternVL-C/16 [13]5.5B5.5B22484.183.277.380.683.895.778.658.674.985.095.7
SigLIP2-g-opt/16 [75]1.1B1.1B38488.085.079.888.090.596.677.656.172.886.095.4
PEcoreG/14 [5]1.9B1.9B44888.685.480.288.292.696.578.958.175.485.796.2
MoE-ViE-H/143.5B1.1B44888.385.180.087.093.296.278.256.874.685.496.0
Table 4: Comparison of zero-shot fine-grained image classification and OCR benchmarks between MoE-ViE and SOTA dense vision encoders. We re-evaluated part of the OCR results for SigLIP2 and PE if not reported in [75] and [5].
Fine-grained Img ClassificationOCR
ModelTotal paramsActivated paramsResolutionAvg. Class.Food101 [6]Flowers [56]Country211 [73]Aircrafts [49]Cars [40]Average OCRText Cap T→I [65]Text Cap I→T [65]
SigLIP2-B/16 [75]0.1B0.1B22469.292.885.719.254.893.471.572.370.7
PEcoreB/16 [5]0.1B0.1B22471.792.586.530.557.092.171.672.370.9
MoE-ViE-B/160.5B0.1B22473.594.287.334.958.293.172.572.772.3
SigLIP2-L/16 [75]0.3B0.3B38476.196.190.031.667.095.879.280.278.2
PEcoreL/14 [5]0.3B0.3B33678.196.287.245.667.893.779.279.878.5
MoE-ViE-L/161.7B0.3B38478.996.789.247.865.794.979.780.079.3
EVA 18B/14 [70]17.5B17.5B22475.995.886.043.159.794.9---
InternVL-C/16 [13]5.5B5.5B22472.895.385.835.153.394.4--72.3
SigLIP2-g-opt/16 [75]1.1B1.1B38479.697.091.540.173.695.979.880.379.2
PEcoreG/14 [5]1.9B1.9B44883.896.991.457.678.294.779.179.378.8
MoE-ViE-H/143.5B1.1B44883.997.192.454.380.195.580.480.680.2
Table 5: Alignment comparison across models. Columns are grouped by task type. Llama 3.1 Instruct 8B [29] is used as the base LLM, and we use a maximum of 4 tiles.
ImageVideoCaptioning
ModelActivated paramsAvg. ImagesAI2D[39]TextVQA[67]ChartQA[51]DocVQA[53]Info. QA[52]Avg. VideoVideoMME[27]MVBench[44]EgoSchema[50]Avg. Cap.COCO[46]NoCaps[2]
MetaCLIP-G/14 [83]1.8B61.372.865.468.161.339.145.446.544.745.0125.5134.4116.5
SigLIP2-g-opt/16 [75]1.1B59.072.470.363.155.334.049.546.248.553.8129.1137.8120.3
PEcoreG/14 [5]1.9B69.269.774.373.481.247.648.646.048.751.2123.7134.5112.9
InternViT2.5/14 [12]5.5B68.172.971.374.674.347.648.746.049.650.6123.0132.5113.5
AIMv2 3B/14 [26]2.7B69.872.279.273.078.246.549.749.649.949.6130.6139.7121.5
MoE-ViE-H/141.1B75.284.975.774.286.155.058.952.063.661.2127.5135.4119.6
Table 6: Alignment comparison across models. Columns are grouped by task type. Qwen 2.5 VL 7B is used as the base LLM, and we use a maximum of 4 tiles.
ImageVideoCaptioning
ModelActivated paramsAvg. ImagesAI2D[39]TextVQA[67]ChartQA[51]DocVQA[53]Info. QA[52]Avg. VideoVideoMME[27]MVBench[44]EgoSchema[50]Avg. Cap.COCO[46]NoCaps[2]
SigLIP2-g-opt/16 [75]1.1B62.775.270.371.060.436.755.652.052.862.0130.1139.0121.1
PEcoreG/14 [5]1.9B65.472.967.975.968.841.654.148.752.960.8123.8135.2112.3
InternViT2.5/14 [12]5.5B65.473.670.178.265.339.652.750.351.156.6128.5138.4118.6
AIMv2 3B/14 [26]2.7B67.675.274.276.770.541.452.745.951.460.8130.6139.2122.0
MoE-ViE-H/141.1B74.086.572.373.084.154.059.253.461.562.8129.7138.6120.8
Table 7: Performance comparison between MoE-ViE and dense vision encoders, across different inference batch sizes (bsz). Due to difference in patch size, we report latency based on the same number of input tokens (# tokens = 576) for a fair comparison.
Activated ParametersTotal ParametersLatency (ms)
Modelbsz=163264128
SigLIP2-g-opt/16 [75]1.1B1.1B76.39141.78275.94549.62
PEcoreG/14 [5]1.9B1.9B101.21188.76366.23708.62
MoE-ViE-H/14 (Vanilla Implementation)1.1B3.5B318.76448.93740.841306.81
MoE-ViE-H/14 (Optimized Kernel)1.1B3.5B82.59145.82276.87544.96
Table 8: Comparison of different auxiliary losses for training CLIP vision encoders.
General ClassificationImage Retrieval
Auxiliary lossAvg. Class.ImageNet Val [22]ImageNet v2 [60]ObjectNet [4]ImageNet Adversarial [33]ImageNet Renditions [32]Avg. RetrievalCOCO T→I [46]COCO I→T [46]Flickr30k T→I [88]Flickr30k I→T [88]
Dense model55.867.559.350.627.873.758.436.354.463.379.6
Importance and load loss [61]59.970.662.354.334.777.759.737.856.364.480.2
Entropy loss [54]59.970.762.253.935.577.160.038.556.465.080.1
Loss-free [77]62.672.564.456.440.079.960.939.256.865.382.5
Ours63.272.964.957.740.480.061.438.956.666.583.5
Table 9: Routing entropy averaged over layer ranges.
BenchmarkL0–5L6–15L16–25L26–30Uniform
VTAB Flowers [56]3.203.172.832.303.47
FGVC Aircraft [49]3.193.262.952.563.47
ImageNetV2 [60]3.343.313.303.213.47
Flickr30k [88]3.283.303.233.073.47
COCO [46]3.303.323.303.183.5
Table 10: Ablation on the number of shared experts.
General ClassificationImage Retrieval
# of shared expertsAvg. Class.ImageNet Val [22]ImageNet v2 [60]ObjectNet [4]ImageNet Adversarial [33]ImageNet Renditions [32]Avg. RetrievalCOCO T→I [46]COCO I→T [46]Flickr30k T→I [88]Flickr30k I→T [88]
062.172.564.256.138.479.561.138.856.466.283.0
163.272.964.957.740.480.061.438.956.666.583.5
263.073.264.557.939.779.961.339.156.466.383.6
462.572.664.257.238.879.560.237.556.565.081.7
Table 11: Ablation on the weight of shared experts.
General ClassificationImage Retrieval
λAvg. Class.ImageNet Val [22]ImageNet v2 [60]ObjectNet [4]ImageNet Adversarial [33]ImageNet Renditions [32]Avg. RetrievalCOCO T→I [46]COCO I→T [46]Flickr30k T→I [88]Flickr30k I→T [88]
1063.072.564.757.440.580.161.338.656.266.883.5
163.272.964.957.740.480.061.438.956.666.583.5
0.163.173.064.557.840.179.861.139.156.366.382.8
0.0162.972.664.557.240.480.061.138.656.466.783.0
Table 12: Ablations of top-k.
General ClassificationImage Retrieval
kAvg. Class.ImageNet Val [22]ImageNet v2 [60]ObjectNet [4]ImageNet Adversarial [33]ImageNet Renditions [32]Avg. RetrievalCOCO T→I [46]COCO I→T [46]Flickr30k T→I [88]Flickr30k I→T [88]
462.472.664.356.938.080.061.038.456.066.383.2
863.272.964.957.740.480.061.438.956.666.583.5
1663.173.064.857.540.379.861.439.156.566.383.6
Table 13: Ablations of expert width factor c.
General ClassificationImage Retrieval
cAvg. Class.ImageNet Val [22]ImageNet v2 [60]ObjectNet [4]ImageNet Adversarial [33]ImageNet Renditions [32]Avg. RetrievalCOCO T→I [46]COCO I→T [46]Flickr30k T→I [88]Flickr30k I→T [88]
159.970.662.354.334.777.759.737.856.364.480.2
261.071.162.655.037.278.960.338.056.464.982.0
463.272.964.957.740.480.061.438.956.666.583.5
862.872.764.257.939.679.561.039.056.165.983.1
Table 14: Configurations of MoE-ViE models.
ScaleBLH
Encodervision towertext towervision towertext towervision towertext tower
Params0.46B0.30B1.67B0.30B3.50B0.81B
(0.10B activated)(0.31B activated)(1.06B activated)
Width76810241024102412801408
Depth122424243234
MLP512 × 322730684 × 322736854 × 323754
(4 activated)(4 activated)(8 activated)
Heads121616161616
CLIP Dim102410241024102410241024
PoolingAttn PoolEOS TokenAttn PoolEOS TokenAttn PoolEOS Token
Context length144144144
Patch size161614
Pos. embeddingRoPEAbsoluteRoPEAbsoluteRoPEAbsolute
Table 15: Linear probing results on ImageNet-1K.
ModelActive ParamsImageNet-1K
DINOv2-g [58]1.1B86.39
SigLIP2-g-opt/16 [75]1.1B88.32
PEcoreG/14 [5]1.9B88.80
InternViT-6B [13]5.5B88.44
MoE-ViE-H/141.1B88.85
Table 16: Training configuration overview across stages. Stage 2a is our 1k sample VE freeze step described in Section 4.2.
S1S2aS2bS3
Trainable ParamsProjectorLLM + Proj.AllAll
Steps8,0001,00034,00015,000
Global Batch Size2,048512512512
Total Samples16.4M0.5M17.4M7.7M
Learning Rate10−44×10−54×10−510−5
Max Seq. Length1,2806,1446,14411,520
Max Video Frames8161632
Max Num. Tiles1444
Table 17: Data scaling experiments with MoE-ViE. Columns are grouped by task type. We use a maximum of 4 tiles.
ImageVideoCaptioning
ModelTraining scaleActive paramsAvg. ImagesAI2D[39]TextVQA[67]ChartQA[51]DocVQA[53]Info. QA[52]Avg. VideoVideoMME[27]MVBench[44]EgoSchema[50]Avg. Cap.COCO[46]NoCaps[2]
SigLIP2-g-opt/16 [75]1.1B59.072.470.363.155.334.049.546.248.553.8129.1137.8120.3
PEcoreG/14 [5]1.9B69.269.774.373.481.247.648.646.048.751.2123.7134.5112.9
InternViT2.5/14 [12]5.5B68.172.971.374.674.347.648.746.049.650.6123.0132.5113.5
AIMv2 3B/14 [26]2.7B69.872.279.273.078.246.549.749.649.949.6130.6139.7121.5
MoE-ViE-H/1414M1.1B75.284.975.774.286.155.058.952.063.661.2127.5135.4119.6
PElangG/14 [5]>70M1.9B79.375.082.381.889.867.854.149.652.660.0131.9140.3123.4
MoE-ViE-H/1442M1.1B81.390.579.980.890.464.863.153.071.564.8132.6141.5123.6
Table 18: End-to-end latency with different vision encoders.
ModelTotal paramsActive paramsBatch size# of tilesLatency (ms)
SigLIP2-g-opt/16 [75]1.1B1.1B24432.8
PEcoreG/14 [5]1.9B1.9B24493.2
MoE-ViE-H/143.5B1.1B24433.3
SigLIP2-g-opt/16 [75]1.1B1.1B216523.4
PEcoreG/14 [5]1.9B1.9B216587.4
MoE-ViE-H/143.5B1.1B216520.7
SigLIP2-g-opt/16 [75]1.1B1.1B236654.7
PEcoreG/14 [5]1.9B1.9B236744.0
MoE-ViE-H/143.5B1.1B236660.9
SigLIP2-g-opt/16 [75]1.1B1.1B4361297.9
PEcoreG/14 [5]1.9B1.9B4361416.8
MoE-ViE-H/143.5B1.1B4361300.9

Why it matters

Vision encoders are the core piece that lets AI chat systems actually see photos and video, and this work offers a practical, code-released way to boost their accuracy without simply making them bigger. For anyone building products that process high-resolution images or long videos, this points to a concrete path for cutting latency without sacrificing quality.

Terms in this paper

  • Mixture of Experts (MoE) · A model design with many small expert modules where only a few are activated per input
  • CLIP · A method that trains a model by matching images with their text descriptions
  • routing · The process of deciding which expert modules handle a given input
  • Triton kernel · Custom GPU code written to make computations run faster
  • distillation · Training a new model to mimic the outputs of an already-trained model

Figures we cannot republish

  • Figure 1: Illustration of MoE-ViE architecture and training pipeline. MoE-ViE adopts a fine-grained MoE design with optimized MoE kernels for latency reduction. We first perform contrastive pretraining on large-scale image-text pairs. During video finetuning, we introduce frame-level distillation and expert freezing to preserve the pretrained image understanding capabilities.
  • Figure 2: MoE-ViE vs. dense models at multiple scales. MoE-ViE consistently outperforms their dense counterparts under the same compute budget.
  • Figure 3: Ablations of different video finetuning methods. (a) Our proposed distillation and freezing techniques outperform finetuning with vanilla video data, or mixed image and video data; (b) We observe significant degradation if we apply frame-level distillation without freezing the text tower; (c) The combination of the proposed distillation and freezing methods yields the best results.
  • (b)
  • (c)
  • Figure 5: MoE Expert activations in layer 20 of MoE-ViE-H/14. Experts specialize for distinct, semantically meaningful, aspects of the image.
  • Figure 6
  • Figure 7
  • Figure 8
  • Figure 9
  • Figure 10
  • Figure 11
  • Figure 12
  • Figure 6: Expert activation across all data for a given task, final layers of MoE-ViE-H/14.
  • (a) MoE layer 29
  • (b) MoE layer 30
  • (c) Last MoE layer, layer 31
  • Figure 7: Image classification accuracy by scaling the number of experts from 16 to 128, while keeping 8 activated experts.
  • (b) ImageNet A
  • (c) ImageNetv2
  • (d) ObjectNet
See the figures in the original paper →

Original abstract (English)

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.

Authors · Bonan Zhang

Read on arXiv

Latest papers

All papers →

Latest from METAL MEDIA