Papers
Topics
Authors
Recent
Search
2000 character limit reached

Confidence-Guided Gating in Sparse MoE

Updated 2 February 2026
  • The paper introduces a novel two-stage modality imputation mechanism that effectively restores missing modalities by averaging modality pools and refining through sparse cross-attention.
  • It replaces traditional softmax gating with a confidence-guided gating strategy, ensuring balanced expert utilization and preventing expert collapse during training.
  • Empirical results on clinical and sentiment benchmarks indicate significant F1 and AUC improvements, confirming the robustness and practical benefits of Conf-SMoE.

Confidence-guided gating in Sparse Mixture-of-Experts (Conf-SMoE) is an architecture for multimodal learning that addresses the pervasive problem of missing modalities and expert collapse encountered by traditional sparse MoE (SMoE) frameworks. Conf-SMoE combines a principled two-stage modality imputation mechanism with a confidence-driven gating strategy that replaces conventional softmax-based routers. This architecture offers both theoretical and empirical advances, improving robustness and performance in scenarios involving arbitrary combinations of modality availability, as substantiated across diverse clinical and sentiment classification benchmarks (2505.19525).

1. Sparse Mixture-of-Experts Backbone

The Conf-SMoE framework builds on the classic SMoE layer. For a given input xRdx \in \mathbb{R}^d, typically representing a fused per-modality token embedding (e.g., output from a Transformer block), a set of NN experts {E1,,EN}\{E_1, \ldots, E_N\}—each a feedforward subnetwork—processes xx in parallel. A gating network GG generates a routing logit vector u(x)RNu(x) \in \mathbb{R}^N, yielding softmax-activated routing weights

gi(x)=exp(ui)j=1Nexp(uj).g_i(x) = \frac{\exp(u_i)}{\sum_{j=1}^N \exp(u_j)}.

The output aggregates the Top-K experts by:

y=x+iK(x)gi(x)Ei(x).y = x + \sum_{i \in \mathcal{K}(x)} g_i(x) \cdot E_i(x).

Here, K(x)\mathcal{K}(x) selects the indices corresponding to the KK largest NN0. This formulation is standard, yet exposes the core deficits in multimodal, incomplete, or imbalanced training regimes.

2. Missing Modalities and Expert Collapse

In multimodal settings, feature vectors NN1 are formed from concatenated embeddings of several modalities NN2. When some modalities are missing, NN3 contains “holes,” and SMoE performance degrades due to two factors:

  • Unreliable Gating Selections: Missing modalities distort NN4, causing the gate NN5 to select sub-optimal experts.
  • Expert Collapse: Even with all modalities available, softmax gating's “sharpness” leads to nearly all mass concentrating on a few experts (the “rich-get-richer” phenomenon), so only certain experts receive meaningful gradient updates.

This behavior can be analytically traced to the Jacobian of the SMoE layer, where the gating gradient term NN6 vanishes as NN7 becomes sharp, limiting gradient flow to non-dominant experts. Attempts to correct this with auxiliary entropy-based load-balance losses trigger conflicting gradients and oscillatory, rather than truly diverse, expert selection (2505.19525).

3. Two-Stage Imputation for Modality Restoration

Conf-SMoE introduces a two-stage imputation process to address arbitrary missing subsets of modalities:

  • Pre-Imputation: For each missing modality NN8, a “modality pool” is sampled from the training set. NN9 instances {E1,,EN}\{E_1, \ldots, E_N\}0 are averaged to produce a neutral embedding {E1,,EN}\{E_1, \ldots, E_N\}1, capturing general modality characteristics while suppressing instance noise. {E1,,EN}\{E_1, \ldots, E_N\}2 is typically set to {E1,,EN}\{E_1, \ldots, E_N\}3.
  • Post-Imputation: After SMoE fusion with pre-imputed and present modalities, instance-specific refinement occurs. The pre-imputed token sequence {E1,,EN}\{E_1, \ldots, E_N\}4 is subjected to sparse cross-attention,

{E1,,EN}\{E_1, \ldots, E_N\}5

where only the top {E1,,EN}\{E_1, \ldots, E_N\}6 interactions are permitted. {E1,,EN}\{E_1, \ldots, E_N\}7 is set to select roughly {E1,,EN}\{E_1, \ldots, E_N\}8 of all candidate tokens per missing modality, ensuring computational tractability and focusing on most relevant context.

This imputation mechanism delivers significant improvements in both robustness and accuracy under various missingness scenarios (2505.19525).

4. Confidence-Guided Gating Mechanism

The core innovation of Conf-SMoE is its confidence-guided expert gating, replacing the softmax operation with a per-expert “ConfNet.” For each expert {E1,,EN}\{E_1, \ldots, E_N\}9, a sub-network xx0 computes a scalar xx1 from the shared embedding xx2. The confidence score xx3, where xx4 denotes the sigmoid function, represents the likelihood that expert xx5 is suitable for the current sample. During training, xx6 is regressed towards the true downstream confidence xx7 of the ground-truth label xx8, yielding a quadratic confidence loss:

xx9

At inference, GG0 is used directly as the gating score, selecting the Top-K experts. The output is then:

GG1

Unlike softmax, sigmoid-based gating does not create excessively sharp or vanishing gradients. Theoretical analysis demonstrates that the update term GG2 remains nonzero for all GG3 until GG4 saturates. This gates gradient flow to all experts, empirically preventing expert collapse without the need for auxiliary load balancing.

5. Comparisons with Alternative Gating Strategies

Conf-SMoE’s confidence-guided gating is contrasted with several alternatives:

  • Softmax Gating: GG5. Prone to sharpness and collapse.
  • Laplacian Gating (FuseMoE): GG6. Slight improvement in balance; collapse persists.
  • Gaussian Gating: GG7.
  • Mean Gating: GG8. Yields sinusoidal oscillation in expert usage. Empirical ablations demonstrate that only confidence-guided gates preserve both expert specialization and usage balance over extended training (2505.19525).

6. Pseudocode and Model Hyperparameters

The Conf-SMoE training loop interleaves modality imputation, SMoE routing with confidence gating, and output refinement. The essential operations are as follows:

y=x+iK(x)gi(x)Ei(x).y = x + \sum_{i \in \mathcal{K}(x)} g_i(x) \cdot E_i(x).1

Critical hyperparameters include: number of experts GG9 (MIMIC), u(x)RNu(x) \in \mathbb{R}^N0 (CMU); u(x)RNu(x) \in \mathbb{R}^N1 active experts per token; embedding dimension u(x)RNu(x) \in \mathbb{R}^N2; pre-imputation pool size u(x)RNu(x) \in \mathbb{R}^N3; sparse attention sparsity u(x)RNu(x) \in \mathbb{R}^N4; learning rate u(x)RNu(x) \in \mathbb{R}^N5; dropout u(x)RNu(x) \in \mathbb{R}^N6; u(x)RNu(x) \in \mathbb{R}^N7 weight u(x)RNu(x) \in \mathbb{R}^N8.

7. Experimental Evidence and Performance

Conf-SMoE was evaluated on MIMIC-III and MIMIC-IV (clinical timeseries/notes/ECG/X-ray) as well as multimodal sentiment datasets (CMU-MOSI, CMU-MOSEI). Three missingness scenarios were tested: natural missingness (clinical EHR), random modality dropout (up to 50%), and asymmetric dropout (half modalities always dropped during training; only 1–2 available at test). Performance was assessed with F1 and AUC metrics using 3-fold cross-validation.

Notably, on MIMIC-IV, Conf-SMoE-Token (“ConfMoE-T”) achieved F1 gains of u(x)RNu(x) \in \mathbb{R}^N9–gi(x)=exp(ui)j=1Nexp(uj).g_i(x) = \frac{\exp(u_i)}{\sum_{j=1}^N \exp(u_j)}.0 and AUC gains of gi(x)=exp(ui)j=1Nexp(uj).g_i(x) = \frac{\exp(u_i)}{\sum_{j=1}^N \exp(u_j)}.1–gi(x)=exp(ui)j=1Nexp(uj).g_i(x) = \frac{\exp(u_i)}{\sum_{j=1}^N \exp(u_j)}.2 over strong baselines (FlexMoE). On CMU-MOSI, ConfMoE-T maintained superiority by gi(x)=exp(ui)j=1Nexp(uj).g_i(x) = \frac{\exp(u_i)}{\sum_{j=1}^N \exp(u_j)}.3–gi(x)=exp(ui)j=1Nexp(uj).g_i(x) = \frac{\exp(u_i)}{\sum_{j=1}^N \exp(u_j)}.4 points in F1 and AUC even at gi(x)=exp(ui)j=1Nexp(uj).g_i(x) = \frac{\exp(u_i)}{\sum_{j=1}^N \exp(u_j)}.5 missing modalities. Ablations established that omitting two-stage imputation or confidence gating led to gi(x)=exp(ui)j=1Nexp(uj).g_i(x) = \frac{\exp(u_i)}{\sum_{j=1}^N \exp(u_j)}.6–gi(x)=exp(ui)j=1Nexp(uj).g_i(x) = \frac{\exp(u_i)}{\sum_{j=1}^N \exp(u_j)}.7 and gi(x)=exp(ui)j=1Nexp(uj).g_i(x) = \frac{\exp(u_i)}{\sum_{j=1}^N \exp(u_j)}.8 F1 drops, respectively. Alternative gating methods (Gaussian, Laplacian, mean) improved balance compared to raw softmax but did not match Conf-SMoE's robustness. Computational complexity was moderate: gi(x)=exp(ui)j=1Nexp(uj).g_i(x) = \frac{\exp(u_i)}{\sum_{j=1}^N \exp(u_j)}.9 GFLOPs and y=x+iK(x)gi(x)Ei(x).y = x + \sum_{i \in \mathcal{K}(x)} g_i(x) \cdot E_i(x).0M parameters on CMU-MOSI—slightly over a single Expert MoE and substantially less than large SMoE variants, but yielding highest F1 (43.9 vs. 41–42 for others) (2505.19525).

In summary, Conf-SMoE’s integration of two-stage imputation and confidence-guided gating addresses fundamental challenges in sparse MoE architectures for multimodal and incomplete data, achieving empirically validated improvements in robustness, balance, and accuracy over prior methods.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Confidence-Guided Gating in Sparse MoE (Conf-SMoE).