Skip to main content
QUICK REVIEW

[Paper Review] Residual Mixture of Experts

Lemeng Wu, Mengchen Liu|arXiv (Cornell University)|Apr 20, 2022
Domain Adaptation and Few-Shot LearningComputer Science8 citations
TL;DR

This paper proposes Residual Mixture of Experts (RMoE), a training pipeline that efficiently scales vision transformers by factorizing MoE weights into an input-independent core and an input-dependent residual. By finetuning only the residual with minimal computation, RMoE achieves performance comparable to full MoE training while incurring less than 3% additional training cost, outperforming non-MoE models like Swin-T, CvT-13, and Swin-L by 1.1–1.0 mIoU on ADE20K and 0.6–1.6 AP on MS-COCO.

ABSTRACT

Mixture of Experts (MoE) is able to scale up vision transformers effectively. However, it requires prohibiting computation resources to train a large MoE transformer. In this paper, we propose Residual Mixture of Experts (RMoE), an efficient training pipeline for MoE vision transformers on downstream tasks, such as segmentation and detection. RMoE achieves comparable results with the upper-bound MoE training, while only introducing minor additional training cost than the lower-bound non-MoE training pipelines. The efficiency is supported by our key observation: the weights of an MoE transformer can be factored into an input-independent core and an input-dependent residual. Compared with the weight core, the weight residual can be efficiently trained with much less computation resource, e.g., finetuning on the downstream data. We show that, compared with the current MoE training pipeline, we get comparable results while saving over 30% training cost. When compared with state-of-the-art non- MoE transformers, such as Swin-T / CvT-13 / Swin-L, we get +1.1 / 0.9 / 1.0 mIoU gain on ADE20K segmentation and +1.4 / 1.6 / 0.6 AP gain on MS-COCO object detection task with less than 3% additional training cost.

Motivation & Objective

  • To address the high computational cost of training large Mixture of Experts (MoE) vision transformers for downstream tasks.
  • To enable efficient scaling of vision transformers without requiring full retraining on large upstream datasets.
  • To reduce the training cost of MoE models while maintaining performance close to upper-bound MoE training.
  • To leverage publicly available non-MoE checkpoints as initialization for large-scale MoE adaptation.
  • To demonstrate that expert weights can be decomposed into a core and a trainable residual for efficient finetuning.

Proposed method

  • The method decomposes MoE weights into an input-independent core and an input-dependent residual, where the core is fixed from a pretrained non-MoE model.
  • The residual component is finetuned on downstream data using low-cost updates, avoiding full MoE retraining on upstream data.
  • The approach uses a stop gradient technique during intermediate finetuning to prevent performance degradation.
  • A noise initialization scale is applied to the copied weights to encourage expert specialization.
  • The MoE layers are selected using a gradient score-based strategy, outperforming Last-2 and Every-2 methods.
  • The pipeline supports both intermediate and downstream finetuning, with minimal impact on inference FLOPs and latency.

Experimental results

Research questions

  • RQ1Can the weights of a trained MoE transformer be factorized into a core and a residual component to enable efficient finetuning?
  • RQ2Does finetuning only the residual component of MoE experts yield performance comparable to full MoE training with significantly reduced cost?
  • RQ3Can existing non-MoE vision transformer checkpoints be effectively leveraged as initialization for large-scale MoE models?
  • RQ4How does the choice of MoE layer selection strategy (e.g., Every-Last, gradient score) affect downstream performance?
  • RQ5What hyperparameters (e.g., top-k, number of experts, noise scale) yield optimal performance with minimal additional cost?

Key findings

  • RMoE achieves +1.1 mIoU on ADE20K and +1.4 AP on MS-COCO compared to Swin-T, with less than 3% additional training cost.
  • Compared to non-MoE models, RMoE improves performance by +0.9 mIoU (CvT-13) and +1.0 mIoU (Swin-L) on ADE20K, with minimal cost increase.
  • The gradient score-based MoE layer selection outperforms Last-2 and Every-2, matching Every-Last performance while being more efficient.
  • Using top-1 gate with 8 experts yields optimal performance, while increasing to 16 experts does not improve results due to load balancing loss interference.
  • Applying stop gradient during intermediate finetuning prevents performance drop, and a noise scale of 0.01 yields the best results on ADE20K.
  • Inference time and FLOPs increase only slightly, confirming RMoE maintains the efficiency advantage of MoE models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.