# MoE-LLaVA: Mixture of Experts for Large Vision-Language Models

MoE-LLaVA：大規模視覚言語モデルのためのMixture of Experts

Bin Lin, Zhenyu Tang, Yang Ye, Jinfa Huang, Junwu Zhang, Yatian Pang ほか4名 · arXiv · 2024年1月29日

- **課題** 大規模視覚言語モデルは、すべてのパラメータがトークンごとに計算されるため、学習と推論のコストが大きくなります。この論文では、スパースMoE構造をLVLMに適用しつつ、性能低下を防ぐ学習戦略を提案しています。
- **手法** MoE-Tuningは、MLPの学習、LLM全体のinstruction tuning、FFNを複製してMoE層のみを学習する、3段階の戦略です。ルーターは、トークンごとに上位k個のエキスパートのみを活性化します。
- **結果** 著者らは、MoE-LLaVAが約3Bの活性パラメータで、複数の視覚理解ベンチマークにおいてLLaVA-1.5-7Bと同程度の性能となり、POPEの物体幻覚評価ではLLaVA-1.5-13Bを上回ったと報告しています。

## 問題設定と密なLVLMのコスト

大規模視覚言語モデル（LVLM）は、画像エンコーダと射影層で視覚トークンを作り、それをLLMに一緒に入力することで、視覚理解の性能を高めてきました。しかし既存の拡張方式では、モデルのすべてのパラメータがトークンごとの計算に関わるため、学習と推論のコストがともに増加します。この論文では、パラメータ数は増やしつつトークンあたりの計算量は一定に保つ、スパースなMixture of Experts（MoE）構造をLVLMに適用しようとしています。

ただし、LLMをLVLMに変える作業と、密なモデルをスパースなモデルに変える作業を同時に行うと、性能が大きく下がると著者らは観察しています。そのため、この論文の中心的な問いは、単にMoE層を組み込めるかどうかではなく、マルチモーダルのスパース化で性能低下を防ぐ学習手順が必要かどうかです。

## MoE-Tuningの手順とMoE-LLaVAの構造

MoE-Tuningは3段階で進みます。Stage Iでは、MLPのみを学習し、画像パッチをLLMの入力空間にある擬似テキストトークンに変換します。Stage IIでは、MoE層を使わずにLLM全体のパラメータを、マルチモーダルの命令データで学習し、密なLVLMを作ります。Stage IIIでは、Stage IIのFFNを複数のエキスパートに複製し、ルーターがトークンごとに上位k個のエキスパートだけを活性化するように、MoE層のみを学習します。

![Figure 2: Illustration of MoE-Tuning. The MoE-Tuning consists of three stages. In stage I, only the MLP is trained. In stage II, all parameters are trained exc…](https://refivu.com/papers/fb693097-da32-48e7-b5d7-5855f63c8534/figures/figure-cc717492c9526581c959e42d03650884.png?thumb=512)

**Figure 2** . Illustration of MoE-Tuning. The MoE-Tuning consists of three stages. In stage I, only the MLP is trained. In stage II, all parameters are trained except for the Vision Encoder (VE). In stage III, FFNs are used to initialize the experts in MoE, and only the MoE layers are trained. For each MoE layer, only two experts are activated for each token, while the other experts remain silent.

[出典](https://arxiv.org/abs/2401.15947v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bin Lin, Zhenyu Tang, Yang Ye, Jinfa Huang, Junwu Zhang, Yatian Pang, Peng Jin, Munan Ning, Jiebo Luo, Li Yuan · MoE-LLaVA: Mixture of Experts for Large Vision-Language Models · 論文の図を引用 · 元のPDFの2ページ目から図の部分を抽出しています。

ルーターは線形層で、各トークンについてエキスパートごとの確率を計算し、上位k個のエキスパートの出力を、その確率で重み付き和にします。このとき、活性化されなかったエキスパートは、そのトークンの計算に参加しません。著者らがStage IIの重みを初期値として使う理由は、先に密なLVLMを用意しておくと、スパースモデルへの移行が容易になるという実験的な観察にあるとしています。学習の目的関数は、自己回帰損失と、エキスパート間の負荷分散のための補助損失の和で構成されます。

![Table 1: Architecture details of the MoE-LLaV A model.“FFN Factor” represents the number of linear layers in the FFN. “1.6B×4-Top2” represents a dense foundati…](https://refivu.com/papers/fb693097-da32-48e7-b5d7-5855f63c8534/figures/figure-d8e1fe59e18562fba9f91cd2a17e8015.png?thumb=512)

**Table 1** . Architecture details of the MoE-LLaV A model.“FFN Factor” represents the number of linear layers in the FFN. “1.6B×4-Top2” represents a dense foundation model with 1.6B parameters, which is equipped with a total of four experts, two of them being activated.

[出典](https://arxiv.org/abs/2401.15947v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bin Lin, Zhenyu Tang, Yang Ye, Jinfa Huang, Junwu Zhang, Yatian Pang, Peng Jin, Munan Ning, Jiebo Luo, Li Yuan · MoE-LLaVA: Mixture of Experts for Large Vision-Language Models · 論文の図を引用 · 元のPDFの4ページ目から図の部分を抽出しています。

![Figure 4: Distribution of expert loadings. The discontinuous lines represent a perfectly balanced distribution of tokens among different experts or modalities.…](https://refivu.com/papers/fb693097-da32-48e7-b5d7-5855f63c8534/figures/figure-7243c4a0caa18c6129d3f4d5cc620caa.png?thumb=512)

**Figure 4** . Distribution of expert loadings. The discontinuous lines represent a perfectly balanced distribution of tokens among different experts or modalities. The first figure on the left illustrates the workload among experts, while the remaining four figures depict the preferences of experts towards different modalities.

[出典](https://arxiv.org/abs/2401.15947v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bin Lin, Zhenyu Tang, Yang Ye, Jinfa Huang, Junwu Zhang, Yatian Pang, Peng Jin, Munan Ning, Jiebo Luo, Li Yuan · MoE-LLaVA: Mixture of Experts for Large Vision-Language Models · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。

## 画像理解と物体幻覚の評価

画像の質問応答評価では、MoE-LLaVAは複数のベンチマークで密なモデルと比較されました。著者らは、MoE-LLaVA-Phi-2.7B×4が3.6Bのスパース活性パラメータで、SQA-IにおいてLLaVA-1.5-7Bを2.7%上回ったと報告しています。さらに、MoE-LLaVA-1.6B×4-Top2は約2.0Bの活性パラメータで、複数の指標においてIDEFICS-80Bを上回ると説明されています。

![Table 3: Comparison among different LVLMs on image understanding benchmarks. “Res.”, “Act.”, “L”, “V”, “S”, “Q”, “P”, “M” and “I” respectively represent the in…](https://refivu.com/papers/fb693097-da32-48e7-b5d7-5855f63c8534/figures/figure-a0c2648779bd761b926ce9641452aeb4.png?thumb=512)

**Table 3** . Comparison among different LVLMs on image understanding benchmarks. “Res.”, “Act.”, “L”, “V”, “S”, “Q”, “P”, “M” and “I” respectively represent the input image resolution, activated parameters, LLaMA (Touvron et al., 2023a), Vicuna (Chiang et al., 2023), StableLM (Team), Qwen (Bai et al., 2023a), Phi-2 (Microsoft, 2023) MobileLLaMA (Chu et al., 2023) and IDEFICS (Laurenc ¸on et al., 2023). Evaluation Benchmarks include VQA-v2 (Goyal et al., 2017); GQA (Hudson & Manning, 2019); VisWiz (Gurari et al., 2018); SQAI: ScienceQA-IMG (Lu et al., 2022); VQAT: TextVQA (Singh et al., 2019); POPE (Li et al., 2023d); MME (Fu et al., 2023); MMB: MMBench (Liu et al., 2023d); LLaV AW: LLaV A-Bench (in-the-Wild) (Liu et al., 2023c); MM-Vet (Yu et al., 2023).∗ donates that there is some overlap in the training data.† donates that the model is trained with an image resolution of 384. The best results and second best results are indicated by boldface and underline, respectively.

[出典](https://arxiv.org/abs/2401.15947v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bin Lin, Zhenyu Tang, Yang Ye, Jinfa Huang, Junwu Zhang, Yatian Pang, Peng Jin, Munan Ning, Jiebo Luo, Li Yuan · MoE-LLaVA: Mixture of Experts for Large Vision-Language Models · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

物体幻覚は、POPEのAdversarial、Popular、Randomの3つのサブセットで評価されました。この評価では、MoE-LLaVA-1.8B×4-Top2が2.2Bの活性パラメータで、LLaVA-1.5-13Bをそれぞれ1.0%、1.5%、0.8%上回ったと報告されています。この結果は、そのモデル設定とPOPEの条件での観察であり、他のすべての幻覚評価に一般化された結論として解釈すべきではありません。

![Figure 1: Comparison between MoE-LLaV A-1.8B×4 and open- source LVLMs on object hallucination benchmark. We report the average performance on the POPE (Li et a…](https://refivu.com/papers/fb693097-da32-48e7-b5d7-5855f63c8534/figures/figure-fdac2700a0c96d39b2ab71a142f3dcd5.png?thumb=512)

**Figure 1** . Comparison between MoE-LLaV A-1.8B×4 and open- source LVLMs on object hallucination benchmark. We report the average performance on the POPE (Li et al., 2023d) benchmark, which includes three subsets of Adversarial, Random, and Popular. The red dashed line represents the linear fit to the data points of all models except MoE-LLaV A.

[出典](https://arxiv.org/abs/2401.15947v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bin Lin, Zhenyu Tang, Yang Ye, Jinfa Huang, Junwu Zhang, Yatian Pang, Peng Jin, Munan Ning, Jiebo Luo, Li Yuan · MoE-LLaVA: Mixture of Experts for Large Vision-Language Models · 論文の図を引用 · 元のPDFの1ページ目から図の部分を抽出しています。

![Table 4: Zero-shot object hallucination evaluation results. “Yes” indicates the proportion of positive responses to the given question](https://refivu.com/papers/fb693097-da32-48e7-b5d7-5855f63c8534/figures/figure-13c203aadc32a544096cc624f022b330.png?thumb=512)

**Table 4** . Zero-shot object hallucination evaluation results. “Yes” indicates the proportion of positive responses to the given question.

[出典](https://arxiv.org/abs/2401.15947v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bin Lin, Zhenyu Tang, Yang Ye, Jinfa Huang, Junwu Zhang, Yatian Pang, Peng Jin, Munan Ning, Jiebo Luo, Li Yuan · MoE-LLaVA: Mixture of Experts for Large Vision-Language Models · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

## 残る限界と適用範囲

著者らは、MoE-LLaVAが競争力のある性能となったものの、特に16ビットの浮動小数点精度では学習の安定性に難しさがあったと述べています。また、OpenChat-7Bベースの実験では、現在のマルチモーダル命令データは、スパースなエキスパートのパターンを学習するには不足している可能性があると、著者らは推定しています。この推定は、実験で確認された原因ではなく、著者による解釈です。

したがって、結果は主に1.6B、1.8B、2.7B級のバックボーン、提示されたデータ構成、評価ベンチマークの範囲内で解釈すべきです。より大きなモデルや別のデータ構成での振る舞いは、この論文の実験では確認されていない問題です。

![Table 2: Composition of the data groups. For MIMIC-IT, and SViT datasets, we only use the LA split, and core split, respectively](https://refivu.com/papers/fb693097-da32-48e7-b5d7-5855f63c8534/figures/figure-c5149c05e1ee588c4af7e41afe49cb21.png?thumb=512)

**Table 2** . Composition of the data groups. For MIMIC-IT, and SViT datasets, we only use the LA split, and core split, respectively.

[出典](https://arxiv.org/abs/2401.15947v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bin Lin, Zhenyu Tang, Yang Ye, Jinfa Huang, Junwu Zhang, Yatian Pang, Peng Jin, Munan Ning, Jiebo Luo, Li Yuan · MoE-LLaVA: Mixture of Experts for Large Vision-Language Models · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。

![Table 7: Ablation study about the model size of MoE-LLaV A](https://refivu.com/papers/fb693097-da32-48e7-b5d7-5855f63c8534/figures/figure-9baf4b5353fe4a002b20b0a6d6767eff.png?thumb=512)

**Table 7** . Ablation study about the model size of MoE-LLaV A.

[出典](https://arxiv.org/abs/2401.15947v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bin Lin, Zhenyu Tang, Yang Ye, Jinfa Huang, Junwu Zhang, Yatian Pang, Peng Jin, Munan Ning, Jiebo Luo, Li Yuan · MoE-LLaVA: Mixture of Experts for Large Vision-Language Models · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。

## 論文情報

- **著者**: Bin Lin, Zhenyu Tang, Yang Ye, Jinfa Huang, Junwu Zhang, Yatian Pang, Peng Jin, Munan Ning, Jiebo Luo, Li Yuan
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2024年1月29日
- **登録日**: 2026年11月6日
- **更新日**: 2024年12月23日
- **バージョン**: v5
- **arXiv**: 2401.15947
- **カテゴリ**: cs.CV
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2401.15947v5) · [PDF ↗](https://arxiv.org/pdf/2401.15947v5)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

Recent advances demonstrate that scaling Large Vision-Language Models (LVLMs) effectively improves downstream task performances. However, existing scaling methods enable all model parameters to be active for each token in the calculation, which brings massive training and inferring costs. In this work, we propose a simple yet effective training strategy MoE-Tuning for LVLMs. This strategy innovatively addresses the common issue of performance degradation in multi-modal sparsity learning, consequently constructing a sparse model with an outrageous number of parameters but a constant computational cost. Furthermore, we present the MoE-LLaVA, a MoE-based sparse LVLM architecture, which uniquely activates only the top-k experts through routers during deployment, keeping the remaining experts inactive. Extensive experiments show the significant performance of MoE-LLaVA in a variety of visual understanding and object hallucination benchmarks. Remarkably, with only approximately 3B sparsely activated parameters, MoE-LLaVA demonstrates performance comparable to the LLaVA-1.5-7B on various visual understanding datasets and even surpasses the LLaVA-1.5-13B in object hallucination benchmark. Through MoE-LLaVA, we aim to establish a baseline for sparse LVLMs and provide valuable insights for future research in developing more efficient and effective multi-modal learning systems. Code is released at https://github.com/PKU-YuanGroup/MoE-LLaVA.

## この論文を引用

Bin Lin, Zhenyu Tang, Yang Ye, Jinfa Huang, Junwu Zhang, Yatian Pang, Peng Jin, Munan Ning, Jiebo Luo, Li Yuan (2024). MoE-LLaVA: Mixture of Experts for Large Vision-Language Models. arXiv:2401.15947v5. https://arxiv.org/abs/2401.15947v5

**BibTeX**

```
@misc{lin2024llava,
  title = {{MoE-LLaVA: Mixture of Experts for Large Vision-Language Models}},
  author = {Bin Lin and Zhenyu Tang and Yang Ye and Jinfa Huang and Junwu Zhang and Yatian Pang and Peng Jin and Munan Ning and Jiebo Luo and Li Yuan},
  year = {2024},
  eprint = {2401.15947},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.15947v5}
}
```

## この論文の用語

- [POPE](https://refivu.com/ja/terms/b523bbe1227c-pope)
- [MMBench](https://refivu.com/ja/terms/1688e568c3b8-mmbench)
- [Mixture of Experts](https://refivu.com/ja/terms/5fa1c1ebf77b-mixture-of-experts)
- [Load Balancing Loss](https://refivu.com/ja/terms/657d634e1406-load-balancing-loss)
- [MM-Vet](https://refivu.com/ja/terms/29020655ef08-mm-vet)

## ほかの論文解説

- [Vertical Federated Learning: Concepts, Advances and Challenges](https://refivu.com/ja/papers/39bcdd63-2fa5-4368-9a59-dc29f3d92aa4-vertical-federated-learning-concepts-advances-and-challenges.md)
- [SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot](https://refivu.com/ja/papers/98e70bdf-a832-4686-b3f8-e3eefd5887c4-sparsegpt-massive-language-models-can-be-accurately-pruned.md)
- [Fast Inference from Transformers via Speculative Decoding](https://refivu.com/ja/papers/41a03564-b5d1-4b7f-8db4-502dbc43fbe0-fast-inference-from-transformers-via-speculative-decoding.md)
- [GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers](https://refivu.com/ja/papers/46a31638-80a6-4626-a5e7-028ae5ccea93-gptq-accurate-post-training-quantization-for-generative-pre.md)
- [ZeRO: Memory Optimizations Toward Training Trillion Parameter Models](https://refivu.com/ja/papers/30a4fae5-65d8-4fa2-8552-c186c4a4d88f-zero-memory-optimizations-toward-training-trillion-parameter.md)
- [Linformer: Self-Attention with Linear Complexity](https://refivu.com/ja/papers/470ce67a-0f79-4a06-ae89-f26384095187-linformer-self-attention-with-linear-complexity.md)
- [JARVIS-1: Open-World Multi-task Agents with Memory-Augmented Multimodal Language Models](https://refivu.com/ja/papers/cf00e122-bac5-4b1b-869d-88ddc3860800-jarvis-1-open-world-multi-task-agents-with.md)
- [Explaining a Series of Models by Propagating Shapley Values](https://refivu.com/ja/papers/156a125e-30ec-4bbb-8d1f-a941c551d78c-explaining-a-series-of-models-by-propagating-shapley.md)
- [The Heidelberg spiking datasets for the systematic evaluation of spiking neural networks](https://refivu.com/ja/papers/7d72dab0-39a2-41ec-8bd7-e822a01c939b-the-heidelberg-spiking-datasets-for-the-systematic.md)
- [A Review and Comparative Study on Probabilistic Object Detection in Autonomous Driving](https://refivu.com/ja/papers/a821d485-d9f8-4b31-a6dd-8d37dd242cd9-a-review-and-comparative-study-on-probabilistic-object.md)
- [Precise and Dexterous Robotic Manipulation via Human-in-the-Loop Reinforcement Learning](https://refivu.com/ja/papers/f8ac2bf8-18ae-41b1-9229-515501c8d0d8-precise-and-dexterous-robotic-manipulation-via-human-in.md)
- [DL-Droid: Deep learning based android malware detection using real devices](https://refivu.com/ja/papers/e8c4fb2d-bb8d-43c7-b570-745e501ed499-dl-droid-deep-learning-based-android-malware-detection.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/fb693097-da32-48e7-b5d7-5855f63c8534-moe-llava-mixture-of-experts-for-large-vision)
