Unchosen Experts Can Contribute Too: Unleashing MoE Models' Power by Self-Contrast

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Shi, Chufan, Yang, Cheng, Zhu, Xinyu, Wang, Jiahao, Wu, Taiqiang, Li, Siheng, Cai, Deng, Yang, Yujiu, Meng, Yu
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916465402183680
author Shi, Chufan
Yang, Cheng
Zhu, Xinyu
Wang, Jiahao
Wu, Taiqiang
Li, Siheng
Cai, Deng
Yang, Yujiu
Meng, Yu
author_facet Shi, Chufan
Yang, Cheng
Zhu, Xinyu
Wang, Jiahao
Wu, Taiqiang
Li, Siheng
Cai, Deng
Yang, Yujiu
Meng, Yu
contents Mixture-of-Experts (MoE) has emerged as a prominent architecture for scaling model size while maintaining computational efficiency. In MoE, each token in the input sequence activates a different subset of experts determined by a routing mechanism. However, the unchosen experts in MoE models do not contribute to the output, potentially leading to underutilization of the model's capacity. In this work, we first conduct exploratory studies to demonstrate that increasing the number of activated experts does not necessarily improve and can even degrade the output quality. Then, we show that output distributions from an MoE model using different routing strategies substantially differ, indicating that different experts do not always act synergistically. Motivated by these findings, we propose Self-Contrast Mixture-of-Experts (SCMoE), a training-free strategy that utilizes unchosen experts in a self-contrast manner during inference. In SCMoE, the next-token probabilities are determined by contrasting the outputs from strong and weak activation using the same MoE model. Our method is conceptually simple and computationally lightweight, as it incurs minimal latency compared to greedy decoding. Experiments on several benchmarks (GSM8K, StrategyQA, MBPP and HumanEval) demonstrate that SCMoE can consistently enhance Mixtral 8x7B's reasoning capability across various domains. For example, it improves the accuracy on GSM8K from 61.79 to 66.94. Moreover, combining SCMoE with self-consistency yields additional gains, increasing major@20 accuracy from 75.59 to 78.31.
format Preprint
id arxiv_https___arxiv_org_abs_2405_14507
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Unchosen Experts Can Contribute Too: Unleashing MoE Models' Power by Self-Contrast
Shi, Chufan
Yang, Cheng
Zhu, Xinyu
Wang, Jiahao
Wu, Taiqiang
Li, Siheng
Cai, Deng
Yang, Yujiu
Meng, Yu
Computation and Language
Machine Learning
Mixture-of-Experts (MoE) has emerged as a prominent architecture for scaling model size while maintaining computational efficiency. In MoE, each token in the input sequence activates a different subset of experts determined by a routing mechanism. However, the unchosen experts in MoE models do not contribute to the output, potentially leading to underutilization of the model's capacity. In this work, we first conduct exploratory studies to demonstrate that increasing the number of activated experts does not necessarily improve and can even degrade the output quality. Then, we show that output distributions from an MoE model using different routing strategies substantially differ, indicating that different experts do not always act synergistically. Motivated by these findings, we propose Self-Contrast Mixture-of-Experts (SCMoE), a training-free strategy that utilizes unchosen experts in a self-contrast manner during inference. In SCMoE, the next-token probabilities are determined by contrasting the outputs from strong and weak activation using the same MoE model. Our method is conceptually simple and computationally lightweight, as it incurs minimal latency compared to greedy decoding. Experiments on several benchmarks (GSM8K, StrategyQA, MBPP and HumanEval) demonstrate that SCMoE can consistently enhance Mixtral 8x7B's reasoning capability across various domains. For example, it improves the accuracy on GSM8K from 61.79 to 66.94. Moreover, combining SCMoE with self-consistency yields additional gains, increasing major@20 accuracy from 75.59 to 78.31.
title Unchosen Experts Can Contribute Too: Unleashing MoE Models' Power by Self-Contrast
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2405.14507