[Paper Review] Learning Factored Representations in a Deep Mixture of Experts
This paper proposes the Deep Mixture of Experts (DMoE), a deep neural network architecture that uses stacked gating networks to dynamically route inputs through different combinations of experts at each layer, enabling an exponential increase in effective experts while maintaining low computational cost. The model learns disentangled representations—such as location and class factors in MNIST and distinct speech patterns in monophone data—demonstrating effective, balanced use of all expert combinations through conditional routing.
Mixtures of Experts combine the outputs of several "expert" networks, each of which specializes in a different part of the input space. This is achieved by training a "gating" network that maps each input to a distribution over the experts. Such models show promise for building larger networks that are still cheap to compute at test time, and more parallelizable at training time. In this this work, we extend the Mixture of Experts to a stacked model, the Deep Mixture of Experts, with multiple sets of gating and experts. This exponentially increases the number of effective experts by associating each input with a combination of experts at each layer, yet maintains a modest model size. On a randomly translated version of the MNIST dataset, we find that the Deep Mixture of Experts automatically learns to develop location-dependent ("where") experts at the first layer, and class-specific ("what") experts at the second layer. In addition, we see that the different combinations are in use when the model is applied to a dataset of speech monophones. These demonstrate effective use of all expert combinations.
Motivation & Objective
- To develop a scalable deep learning architecture that maintains low inference cost despite large model size by dynamically routing inputs through subsets of experts.
- To enable factorized representation learning, where different layers specialize in distinct data factors (e.g., spatial location and class identity).
- To ensure balanced expert utilization during training by preventing gating collapse through a running assignment constraint.
- To evaluate the model on vision and speech tasks, demonstrating effective use of all expert combinations in real-world data.
Proposed method
- The DMoE uses multiple layers of gating networks and expert networks, where each layer's gating network selects a weighted combination of experts based on the previous layer's output.
- Each layer's output is computed as a weighted sum of expert outputs: $ z^{l} = \sum_{i} g^{l}_{i}(z^{l-1}) f^{l}_{i}(z^{l-1}) $, with gating weights normalized to sum to one.
- A running total constraint is applied during training: if an expert's cumulative assignment exceeds the mean by a margin $ m $, its gating weight is set to zero and the distribution is renormalized to prevent overuse.
- The final output is produced via a softmax layer applied to the last layer's mixture output, enabling classification.
- Experts are implemented as single-layer ReLU networks, and gating networks are small two-layer ReLU networks with few hidden units.
- The model is trained using stochastic gradient descent with the balancing constraint to avoid degenerate solutions where a few experts dominate.
Experimental results
Research questions
- RQ1Can a deep mixture of experts learn disentangled representations, such as separating spatial location and class identity in image data?
- RQ2Does the DMoE architecture effectively utilize all possible expert combinations across layers, rather than relying on a small subset?
- RQ3Can the model maintain balanced expert usage during training despite the risk of gating collapse?
- RQ4How does the DMoE perform on real-world speech data compared to standard MoE and DNN baselines?
- RQ5Can the model achieve competitive performance while maintaining low computational cost through conditional computation?
Key findings
- On the jittered MNIST dataset, the DMoE learns to route inputs based on translation (location) in the first layer and by class in the second layer, demonstrating factorized representation learning.
- The model achieves a test error of 0.85 on the jittered MNIST dataset with a 4×100-4×20 architecture, outperforming a single-expert baseline and a concatenated-expert baseline.
- For monophone speech data, the DMoE achieves a test set phone error rate of 0.55, comparable to baselines, but with more balanced expert usage across combinations.
- Visualization of gating weights shows that all expert combinations are actively used, with no single combination dominating the routing.
- Joint assignment analysis reveals that second-layer expert choice is only weakly dependent on the first-layer choice, indicating diverse and independent routing.
- The model maintains a stable training process due to the running assignment constraint, preventing gating collapse and ensuring balanced expert utilization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.