Skip to main content
QUICK REVIEW

[Paper Review] DSelect-k: Differentiable Selection in the Mixture of Experts with Applications to Multi-Task Learning

Hussein Hazimeh, Zhe Zhao|arXiv (Cornell University)|Jun 7, 2021
Domain Adaptation and Few-Shot LearningComputer Science32 citations
TL;DR

DSelect-k introduces a continuously differentiable, sparse gate for Mixture-of-Experts that selects at most k experts; it can be trained with first-order methods and shows improvements over Top-k and other gates in multi-task learning, including a large-scale recommender system.

ABSTRACT

The Mixture-of-Experts (MoE) architecture is showing promising results in improving parameter sharing in multi-task learning (MTL) and in scaling high-capacity neural networks. State-of-the-art MoE models use a trainable sparse gate to select a subset of the experts for each input example. While conceptually appealing, existing sparse gates, such as Top-k, are not smooth. The lack of smoothness can lead to convergence and statistical performance issues when training with gradient-based methods. In this paper, we develop DSelect-k: a continuously differentiable and sparse gate for MoE, based on a novel binary encoding formulation. The gate can be trained using first-order methods, such as stochastic gradient descent, and offers explicit control over the number of experts to select. We demonstrate the effectiveness of DSelect-k on both synthetic and real MTL datasets with up to $128$ tasks. Our experiments indicate that DSelect-k can achieve statistically significant improvements in prediction and expert selection over popular MoE gates. Notably, on a real-world, large-scale recommender system, DSelect-k achieves over $22\\%$ improvement in predictive performance compared to Top-k. We provide an open-source implementation of DSelect-k.

Motivation & Objective

  • Motivate and enable sparse, differentiable gating in Mixture-of-Experts for improved multi-task learning and scalable models.
  • Develop a gate that explicitly enforces a cardinality constraint while remaining differentiable.
  • Provide a novel binary-encoding reformulation with a smooth relaxation allowing SGD-based optimization.
  • Show empirical benefits over existing gates (Top-k, Gumbel-softmax) on synthetic and real MTL datasets, including large-scale recommender data.
  • Release open-source implementation for reproducibility and deployment.

Proposed method

  • Formulate MoE with a gate g selecting a subset of experts for each input.
  • Introduce DSelect-k: a binary-encoded, k-sparse gate realized via a convex combination of k single-expert selectors with softmax weights.
  • Transform the constrained problem into an unconstrained one using a binary encoding r(z) that maps binary codes to one-hot selections.
  • Relax binary variables with a smooth-step function S to enable end-to-end SGD optimization, and add entropy regularization to encourage binarization.
  • Provide static gating and per-example gating variants; use linear mappings to make gate parameters depend on input in the per-example setting.
  • Compare against Top-k and Gumbel-softmax gates, both in static and per-example forms, within a multi-task learning (MTL) framework.

Experimental results

Research questions

  • RQ1Does a differentiable, sparsity-controlled gate (DSelect-k) improve MoE performance over Top-k and other differentiable gates in multi-task learning?
  • RQ2Can a binary-encoded, cardinality-constrained gating mechanism be efficiently trained with first-order methods while maintaining exact sparsity in the limit?
  • RQ3How do static vs. per-example gating regimes compare in effectiveness for MTL on real and synthetic data?
  • RQ4What is the impact of DSelect-k on model parameter sharing and predictive accuracy in large-scale, multi-task settings (e.g., recommender systems)?

Key findings

  • DSelect-k with static or per-example gating outperforms Top-k and Gumbel-softmax on MovieLens across different task weightings (alpha values).
  • On MovieLens, DSelect-k achieves lower test loss than Top-k and Gumbel-softmax for two of three alpha settings, with fewer selected experts on average.
  • Per-example DSelect-k achieves competitive or superior test loss and uses fewer experts compared to baselines, indicating effective per-example specialization.
  • In a large-scale real recommender system, DSelect-k demonstrates over 22% improvement in predictive performance relative to Top-k.
  • Across synthetic and real MTL datasets (up to 128 tasks in supplementary experiments), DSelect-k provides statistically significant improvements in prediction and expert selection.
  • The open-source implementation is provided at the authors’ GitHub repository.

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.