ViMoE: An Empirical Study of Designing Vision Mixture-of-Experts

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Han, Xumeng, Wei, Longhui, Dou, Zhiyang, Wang, Zipeng, Qiang, Chenhui, He, Xin, Sun, Yingfei, Han, Zhenjun, Tian, Qi
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910713943949312
author Han, Xumeng
Wei, Longhui
Dou, Zhiyang
Wang, Zipeng
Qiang, Chenhui
He, Xin
Sun, Yingfei
Han, Zhenjun
Tian, Qi
author_facet Han, Xumeng
Wei, Longhui
Dou, Zhiyang
Wang, Zipeng
Qiang, Chenhui
He, Xin
Sun, Yingfei
Han, Zhenjun
Tian, Qi
contents Mixture-of-Experts (MoE) models embody the divide-and-conquer concept and are a promising approach for increasing model capacity, demonstrating excellent scalability across multiple domains. In this paper, we integrate the MoE structure into the classic Vision Transformer (ViT), naming it ViMoE, and explore the potential of applying MoE to vision through a comprehensive study on image classification and semantic segmentation. However, we observe that the performance is sensitive to the configuration of MoE layers, making it challenging to obtain optimal results without careful design. The underlying cause is that inappropriate MoE layers lead to unreliable routing and hinder experts from effectively acquiring helpful information. To address this, we introduce a shared expert to learn and capture common knowledge, serving as an effective way to construct stable ViMoE. Furthermore, we demonstrate how to analyze expert routing behavior, revealing which MoE layers are capable of specializing in handling specific information and which are not. This provides guidance for retaining the critical layers while removing redundancies, thereby advancing ViMoE to be more efficient without sacrificing accuracy. We aspire for this work to offer new insights into the design of vision MoE models and provide valuable empirical guidance for future research.
format Preprint
id arxiv_https___arxiv_org_abs_2410_15732
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle ViMoE: An Empirical Study of Designing Vision Mixture-of-Experts
Han, Xumeng
Wei, Longhui
Dou, Zhiyang
Wang, Zipeng
Qiang, Chenhui
He, Xin
Sun, Yingfei
Han, Zhenjun
Tian, Qi
Computer Vision and Pattern Recognition
Mixture-of-Experts (MoE) models embody the divide-and-conquer concept and are a promising approach for increasing model capacity, demonstrating excellent scalability across multiple domains. In this paper, we integrate the MoE structure into the classic Vision Transformer (ViT), naming it ViMoE, and explore the potential of applying MoE to vision through a comprehensive study on image classification and semantic segmentation. However, we observe that the performance is sensitive to the configuration of MoE layers, making it challenging to obtain optimal results without careful design. The underlying cause is that inappropriate MoE layers lead to unreliable routing and hinder experts from effectively acquiring helpful information. To address this, we introduce a shared expert to learn and capture common knowledge, serving as an effective way to construct stable ViMoE. Furthermore, we demonstrate how to analyze expert routing behavior, revealing which MoE layers are capable of specializing in handling specific information and which are not. This provides guidance for retaining the critical layers while removing redundancies, thereby advancing ViMoE to be more efficient without sacrificing accuracy. We aspire for this work to offer new insights into the design of vision MoE models and provide valuable empirical guidance for future research.
title ViMoE: An Empirical Study of Designing Vision Mixture-of-Experts
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.15732