SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.19525 · ICML · 2025

Rethinking Gating Mechanism in Sparse MoE: Handling Arbitrary Modality Inputs with Confidence-Guided Gate

Wei Zhang, Mingyu Guo, Weitong Chen, Liangwei Zheng, Olaf Maennel

arXiv · PDF · Open in the Atlas

Code that ran

3 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 5 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2505.19525.json · badge: /api/ran/2505.19525.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
zehuiwu/MMML community
Papers with Code archive
2 ran · 3 no recorded run
icuraslw/official-repository-of-confsmoe alias (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input · constructed an object; no result was computed
icuraslw/official-repository-of-confsmoe/models.py
pointer only (licence: NONE) · get_code("8cd46b9068cdd1b0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, icuraslw/official-repository-of-confsmoe when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BertCrossattLayer Ran
ran on a synthesized input
zehuiwu/MMML/utils/cross_attn_encoder.py
pointer only (licence: NONE) · get_code("4e5ef0a7605c7ce9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zehuiwu/MMML when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BertIntermediate Ran
ran on a synthesized input · constructed an object; no result was computed
zehuiwu/MMML/utils/cross_attn_encoder.py
pointer only (licence: NONE) · get_code("10838ca8dd1e6973")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zehuiwu/MMML when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BertAttention Not yet run
unverified (harvested, no recorded run)
zehuiwu/MMML/utils/cross_attn_encoder.py
pointer only (licence: NONE) · get_code("8bd97889b987d97e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zehuiwu/MMML when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

BertSelfattLayer Not yet run
unverified (harvested, no recorded run)
zehuiwu/MMML/utils/cross_attn_encoder.py
pointer only (licence: NONE) · get_code("c443f3042c5494ec")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zehuiwu/MMML when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

CMELayer Not yet run
unverified (harvested, no recorded run)
zehuiwu/MMML/utils/cross_attn_encoder.py
pointer only (licence: NONE) · get_code("f860121836e52aad")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zehuiwu/MMML when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

ConfSMoE Not yet run
unverified (harvested, no recorded run)
icuraslw/official-repository-of-confsmoe/models.py
pointer only (licence: NONE) · get_code("f6a076dfda26262a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, icuraslw/official-repository-of-confsmoe when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

TransformerEncoderLayer Not yet run
unverified (harvested, no recorded run)
icuraslw/official-repository-of-confsmoe/models.py
pointer only (licence: NONE) · get_code("3c8b32bf9f9c0e48")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, icuraslw/official-repository-of-confsmoe when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
BertIntermediate
brick of this paper's assembly: helper
8 other papers
8 dated earlier · 6 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1908.02265 (2019-08)
ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks
1908.03557 (2019-08)
VisualBERT: A Simple and Performant Baseline for Vision and Language
and 5 more not named here
BertSelfattLayer
brick of this paper's assembly: helper
6 other papers
6 dated earlier · 5 only as an assembly brick
1908.03557 (2019-08)
VisualBERT: A Simple and Performant Baseline for Vision and Language
1908.07490 (2019-08)
LXMERT: Learning Cross-Modality Encoder Representations from Transformers
2006.06195 (2020-06)
Large-Scale Adversarial Training for Vision-and-Language Representation Learning
and 3 more not named here
BertCrossattLayer
brick of this paper's assembly: model
4 other papers
4 dated earlier · 3 only as an assembly brick
1908.07490 (2019-08)
LXMERT: Learning Cross-Modality Encoder Representations from Transformers
2006.06195 (2020-06)
Large-Scale Adversarial Training for Vision-and-Language Representation Learning
2103.03493 (2021-03)
Causal Attention for Vision-Language Tasks
and 1 more not named here
Attention
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
2410.08245 (2024-10)
Flex-MoE: Modeling Arbitrary Modality Combination via the Flexible Mixture-of-Experts

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Effectively managing missing modalities is a fundamental challenge in real-world multimodal learning scenarios, where data incompleteness often results from systematic collection errors or sensor failures. Sparse Mixture-of-Experts (SMoE) architecture has shown the potential to naturally handle multimodal data, with experts specializing in different modalities. However, existing SMoE approaches often lack proper ability to handle missing modality, leading to performance degradation and poor generalization in real-world applications. We propose ConfSMoE to introduce a two-stage imputation module to handle the missing modality problem for the SMoE architecture by taking the opinion of experts and revealing the insight of expert collapse from gradient analysis with strong empirical evidence. Inspired by our gradient analysis, ConfSMoE proposed a novel expert gating mechanism by detaching the softmax routing score to task confidence score w.r.t ground truth signal. This naturally relieves expert collapse without introducing additional load balance loss function. We show that the insights of expert collapse empirically align with other gating mechanism such as Gaussian and Laplacian gate. The proposed method is evaluated on four different real-world datasets with three distinct experiment settings to conduct comprehensive analysis of ConfSMoE on resistance to missing modality and the impacts of proposed gating mechanism. We have released our code in: https://github.com/IcurasLW/ Official-Repository-of-ConfSMoE. git

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2505.19525")
get_code_for_paper("2505.19525")
have("2505.19525")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2505.19525.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2505.19525.svg)](https://syntology.ai/paper/2505.19525)

Connect an agent — have() is free.