SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.13380 · 2025

CompeteSMoE -- Statistically Guaranteed Mixture of Experts Training via Competition

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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.13380.json · badge: /api/ran/2505.13380.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
fsoft-aic/competesmoe canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
giangdip2410/competesmoe community (classifier label)
classifier basis not recorded on the link
3 ran · 2 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
cal_mse_loss Ran
ran; our contract draft was wrong, not the code
giangdip2410/competesmoe/custom_layers_opt.py
code served (permissive licence) · get_code("bafe746746157c90")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create small tensors for input and target
# Both should have the same shape for MSELoss
input_tensor = torch.randn(2, 4)  # batch_size=2, features=4
target_tensor = torch.randn(2, 4)  # batch_size=2, features=4

ARGS = {
    "input": input_tensor,
    "target": target_tensor,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_cache_dir Ran
ran; our contract draft was wrong, not the code
fsoft-aic/competesmoe/evaluate/lmms_eval/tasks/_task_utils/video_loader.py
pointer only (licence: NOASSERTION) · get_code("b05e3f5d170026a2")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, fsoft-aic/competesmoe (NOASSERTION). 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.

get_video Ran
ran; our contract draft was wrong, not the code
fsoft-aic/competesmoe/evaluate/lmms_eval/tasks/_task_utils/video_loader.py
pointer only (licence: NOASSERTION) · get_code("7ac7deae0a636b3f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, fsoft-aic/competesmoe (NOASSERTION). 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.

hash_args Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from opengvlab/videochat-r1
pointer only; the stored copy get_code serves, from opengvlab/videochat-r1, is pointer only (licence: NONE) · get_code("ea06eaae4fc1eaf0")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

kl_divergence Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
giangdip2410/competesmoe/custom_layers_opt.py
code served (permissive licence) · get_code("b334bcc524847095")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from torchmetrics.regression import KLDivergence

torch.manual_seed(0)

# Create small softmax probability tensors
# batch_size=2, num_classes=4
softmax_1 = torch.softmax(torch.randn(2, 4), dim=1)
softmax_2 = torch.softmax(torch.randn(2, 4), dim=1)

ARGS = {
    "softmax_1": softmax_1,
    "softmax_2": softmax_2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchmetrics — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pad_sequence_reverse Ran
ran, honoured the contract we drafted
giangdip2410/competesmoe/finetune_data.py
code served (permissive licence) · get_code("a1a2a52efd68fd82")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects a list of 1D tensors
# It will pad them to the same length and stack them horizontally
data = [
    torch.tensor([1.0, 2.0, 3.0]),
    torch.tensor([4.0, 5.0]),
    torch.tensor([6.0, 7.0, 8.0, 9.0])
]

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 3) — shape (4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
full_eval Not yet run
unverified (harvested, no recorded run)
giangdip2410/competesmoe/finetune_trainer.py
code served (permissive licence) · get_code("65e0b3de6d8d8ac4")
How it ran

no invocation recorded.

train_iteration Not yet run
unverified (harvested, no recorded run)
giangdip2410/competesmoe/finetune_trainer.py
code served (permissive licence) · get_code("ff471c763eaed63c")
How it ran

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, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 1 later) and 3 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
hash_args 44 other papers
33 dated earlier, 8 later, 2 same year, order not determinable, 1 undated
2005.14165 (2020-05)
Language Models are Few-Shot Learners
2110.04374 (2021-10)
A Few More Examples May Be Worth Billions of Parameters
2303.17003 (2023-03)
Evaluating GPT-3.5 and GPT-4 Models on Brazilian University Admission Exams
and 41 more not named here
pad_sequence_reverse 2 other papers
2 dated earlier
2303.01610 (2023-03)
Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformers
2410.14574 (2024-10)
MomentumSMoE: Integrating Momentum into Sparse Mixture of Experts
cal_mse_loss 1 other paper
1 dated earlier
2410.14574 (2024-10)
MomentumSMoE: Integrating Momentum into Sparse Mixture of Experts
full_eval 1 other paper
1 dated earlier
2410.14574 (2024-10)
MomentumSMoE: Integrating Momentum into Sparse Mixture of Experts
kl_divergence 1 other paper
1 dated earlier
2410.14574 (2024-10)
MomentumSMoE: Integrating Momentum into Sparse 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-23.

Repositories linked to this paper

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

Abstract

Sparse mixture of experts (SMoE) offers an appealing solution to scale up the model complexity beyond the mean of increasing the network's depth or width. However, we argue that effective SMoE training remains challenging because of the suboptimal routing process where experts that perform computation do not directly contribute to the routing process. In this work, we propose competition, a novel mechanism to route tokens to experts with the highest neural response. Theoretically, we show that the competition mechanism enjoys a better sample efficiency than the traditional softmax routing. Furthermore, we develop CompeteSMoE, a simple yet effective algorithm to train large language models by deploying a router to learn the competition policy, thus enjoying strong performances at a low training overhead. Our extensive empirical evaluations on both the visual instruction tuning and language pre-training tasks demonstrate the efficacy, robustness, and scalability of CompeteSMoE compared to state-of-the-art SMoE strategies. We have made the implementation available at: https://github.com/Fsoft-AIC/CompeteSMoE. This work is an improved version of the previous study at arXiv:2402.02526

For agents

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

get_harvested_code_for_paper("2505.13380")
get_code_for_paper("2505.13380")
have("2505.13380")

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

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

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

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

Connect an agent — have() is free.