SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.29424 · 2026

ENTROROUTER: Learning Efficient Model Routing via Entropy Regulation

Wei Wu, Xueliang Zhao, Yankai Lin, Kaiyi Zhang, Zhuocheng Gong

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 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, 2 violated it and 0 have no contract verdict; 7 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2606.29424.json · badge: /api/ran/2606.29424.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
huggingface/Math-Verify canonical (classifier label)
classifier basis: census
10 ran · 0 no recorded run
FunctionStatusWhere it lives
compare_answers Ran
ran, violated the contract we drafted
huggingface/Math-Verify/evaluate_model_outputs.py
code served (permissive licence) · get_code("662b87687f2f200a")
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 bool, 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 sympy
import torch
import numpy as np

torch.manual_seed(0)

# The function compare_answers takes two parameters:
# - extracted: Any (the answer extracted from a model/process)
# - gold: Any (the ground truth answer)
#
# The function uses sympy.simplify on these values or their elements,
# so they should be sympy expressions or numeric types that sympy can handle.
# It also checks if they're lists/tuples and compares element-wise.

# Test case 1: Simple numeric values
extracted_val = sympy.sympify(2 + 3)
gold_val = sympy.sympify(5)

# Test case 2: Lists of sympy expressions
extracted_list = [sympy.sympify(x + 1) for x in range(3)]
gold_list = [sympy.sympify(1), sympy.sympify(2), sympy.sympify(3)]

# We'll use the list comparison case
ARGS = {
    "extracted": extracted_list,
    "gold": gold_list,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sympy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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_pct_val Ran
ran; our contract draft was wrong, not the code
huggingface/Math-Verify/src/math_verify/grader.py
code served (permissive licence) · get_code("a0e8ee05ceffced4")
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 Symbol. The image it ran in was not recorded. If your copy returns the same type 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.

from sympy import Basic, E, Eq, Float, GreaterThan, Interval, LessThan, MatrixBase, MatrixExpr, Mul, Number, Integer, Rational, Set, StrictGreaterThan, StrictLessThan, Symbol, Tuple, default_sort_key, nan, ordered, simplify, solve, zoo, UnevaluatedExpr

# Test case 1: expr is a Mul with two args where second is UnevaluatedExpr(Rational(1, 100))
# This should return expr.args[0]
x = Symbol('x')
expr1 = Mul(x, UnevaluatedExpr(Rational(1, 100)))

# Test case 2: expr that doesn't match the pattern, should return default
expr2 = Symbol('y')
default_val = None

# Test case 3: expr with multiple args that doesn't match
expr3 = Mul(x, Symbol('z'), UnevaluatedExpr(Rational(1, 100)))

ARGS = {
    "expr": expr1,
    "default": default_val,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Symbol — a Symbol output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Symbol output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
is_atomic_or_pct_atomic Ran
ran, violated the contract we drafted
huggingface/Math-Verify/src/math_verify/grader.py
code served (permissive licence) · get_code("e6139230da7df2e9")
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 bool, 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.

from sympy import Basic, E, Eq, Float, GreaterThan, Interval, LessThan, MatrixBase, MatrixExpr, Mul, Number, Integer, Rational, Set, StrictGreaterThan, StrictLessThan, Symbol, Tuple, default_sort_key, nan, ordered, simplify, solve, zoo, UnevaluatedExpr

# Test case 1: Simple atomic type (Integer)
expr1 = Integer(5)
atomic_type1 = Integer

# Test case 2: Percentage atomic type (Mul with Rational(1, 100))
expr2 = Mul(Integer(42), UnevaluatedExpr(Rational(1, 100)))
atomic_type2 = Integer

# Test case 3: Non-atomic expression
expr3 = Symbol('x')
atomic_type3 = Integer

# Test case 4: Float atomic type
expr4 = Float(3.14)
atomic_type4 = Float

ARGS = {
    "expr": expr1,
    "atomic_type": atomic_type1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
lazy_expr_regex Ran
ran; our contract draft was wrong, not the code
huggingface/Math-Verify/src/math_verify/parser.py
code served (permissive licence) · get_code("99ac53c2cf5425cd")
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 list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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.

from dataclasses import dataclass

@dataclass(frozen=True)
class ExprExtractionConfig:
    """Config for extracting mathematical expressions.

    Attributes:
        try_extract_without_anchor (bool): Whether to try extracting expressions without requiring specific anchors like "answer:" or "final answer is"
    """
    try_extract_without_anchor: bool = True

# Create a valid config instance
expr_config = ExprExtractionConfig(try_extract_without_anchor=True)

# Define ARGS mapping all parameters to values
ARGS = {
    "expr_config": expr_config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
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
lazy_string_regex Ran
ran; our contract draft was wrong, not the code
huggingface/Math-Verify/src/math_verify/parser.py
code served (permissive licence) · get_code("0ee1a161ce0e5b42")
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 list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 re
from dataclasses import dataclass, field

@dataclass(frozen=True)
class StringExtractionConfig:
    """Config for extracting literal strings.

    Attributes:
        strings (tuple[str]): The strings to extract
        try_extract_without_anchor (bool): Whether to try extracting strings without requiring specific anchors like "answer:" or "final answer is"
    """
    strings: tuple[str, ...] = field(default_factory=lambda: ('A', 'B', 'C', 'D'))
    try_extract_without_anchor: bool = True
    lowercase: bool = True

# Create a minimal StringExtractionConfig instance
config = StringExtractionConfig(
    strings=('A', 'B', 'C', 'D'),
    try_extract_without_anchor=True,
    lowercase=True
)

ARGS = {
    'string_extraction_config': config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
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
load_csv_data Ran
ran; our contract draft was wrong, not the code
huggingface/Math-Verify/evaluate_model_outputs.py
code served (permissive licence) · get_code("7e22a383e9fd48c5")
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 DataFrame. The image it ran in was not recorded. If your copy returns the same type 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 pandas as pd
import tempfile
import os

# Create a temporary CSV file with required columns
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, 'test_data.csv')

# Write a simple CSV with required columns
df_temp = pd.DataFrame({
    'answer': ['a1', 'a2'],
    'gold': ['g1', 'g2']
})
df_temp.to_csv(csv_path, index=False)

ARGS = {
    'csv_path': csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
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
load_csv_data Ran
ran; our contract draft was wrong, not the code
huggingface/Math-Verify/extract_answers.py
code served (permissive licence) · get_code("c518cad720d81620")
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 DataFrame. The image it ran in was not recorded. If your copy returns the same type 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 pandas as pd
import tempfile
import os

# Create a temporary CSV file with the required 'answer' column
with tempfile.NamedTemporaryFile(mode='w', suffix='.csv', delete=False) as f:
    csv_path = f.name
    f.write('answer,other_col\n')
    f.write('yes,value1\n')
    f.write('no,value2\n')

try:
    ARGS = {
        'csv_path': csv_path
    }
finally:
    # Clean up the temporary file after defining ARGS
    if os.path.exists(csv_path):
        os.remove(csv_path)
    # Recreate it since we just deleted it
    with open(csv_path, 'w') as f:
        f.write('answer,other_col\n')
        f.write('yes,value1\n')
        f.write('no,value2\n')

ARGS = {
    'csv_path': csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 and dtype family float describe that coercion, not the output, and are not stated
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
make_latex_env_pattern Ran
ran; our contract draft was wrong, not the code
huggingface/Math-Verify/src/math_verify/parser.py
code served (permissive licence) · get_code("7c6179a432ecaeb5")
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 str. The image it ran in was not recorded. If your copy returns the same type 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 re
from typing import Literal

# The function takes simple string parameters and returns a string
# No complex objects needed - just strings

ARGS = {
    'prefix': 'test_',
    'context': 'plain'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
safe_sympy_doit Ran
ran, honoured the contract we drafted
huggingface/Math-Verify/src/math_verify/grader.py
code served (permissive licence) · get_code("041e31803d5bd5db")
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 int, ndim 0, dtype family int, 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.

from sympy import Basic, E, Eq, Float, GreaterThan, Interval, LessThan, MatrixBase, MatrixExpr, Mul, Number, Integer, Rational, Set, StrictGreaterThan, StrictLessThan, Symbol, Tuple, default_sort_key, nan, ordered, simplify, solve, zoo, UnevaluatedExpr

# Create various sympy Basic expressions to test safe_sympy_doit
x = Symbol('x')
y = Symbol('y')

# Test case 1: Simple arithmetic expression that doit() can evaluate
expr1 = 1 + 1 + 1

# Test case 2: Expression with symbols
expr2 = x + x + 1

# Test case 3: More complex expression
expr3 = Mul(2, 3, evaluate=False)

# Test case 4: Equation
expr4 = Eq(x + 1, 2)

# Test case 5: Interval
expr5 = Interval(1, 5)

# Test case 6: Matrix expression (MatrixBase subclass)
from sympy import Matrix
expr6 = Matrix([[1, 2], [3, 4]])

# Test case 7: Unevaluated expression
expr7 = UnevaluatedExpr(x + y)

# Test case 8: Rational number
expr8 = Rational(1, 2)

# Create test cases - these are all valid sympy Basic or MatrixBase instances
test_expressions = [
    expr1,
    expr2,
    expr3,
    expr4,
    expr5,
    expr6,
    expr7,
    expr8,
]

# For the ARGS dict, we need to test with one expression at a time
# Use the first simple arithmetic expression
ARGS = {
    "a": 1 + 1 + 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
serialize_sympy_object Ran
ran; our contract draft was wrong, not the code
huggingface/Math-Verify/evaluate_model_outputs.py
code served (permissive licence) · get_code("56207677bc00b645")
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 str. The image it ran in was not recorded. If your copy returns the same type 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 sympy as sp
import torch

# Create various sympy objects to test the serialization function
ARGS = {
    'obj': sp.symbols('x y z')  # A sympy object - tuple of symbols
}

# Additional test cases could include:
# sp.sin(sp.Symbol('x')) - sympy expression
# sp.Matrix([[1, 2], [3, 4]]) - sympy matrix
# [sp.Symbol('a'), sp.Symbol('b')] - list of sympy objects
# (sp.Symbol('p'), sp.Symbol('q')) - tuple of sympy objects
# None - None value
# 42 - simple number
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sympy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 7 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
compare_answers 1 other paper
1 dated earlier
2505.20347 (2025-05)
SeRL: Self-Play Reinforcement Learning for Large Language Models with Limited Data
load_csv_data 1 other paper
1 dated earlier
2505.20347 (2025-05)
SeRL: Self-Play Reinforcement Learning for Large Language Models with Limited Data
serialize_sympy_object 1 other paper
1 dated earlier
2505.20347 (2025-05)
SeRL: Self-Play Reinforcement Learning for Large Language Models with Limited Data

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

Model routing balances solution accuracy and computational cost by selecting among models of varying capabilities. While recent multiround frameworks interleave reasoning and planning, we identify a structural failure mode termed Trust Region Collapse. We demonstrate that the deep coupling of reasoning and routing, exacerbated by the dominance of strong pre-training priors under sparse supervision, leads to degenerate local optima where capable experts are systematically suppressed. To decouple these processes, we propose ENTRO-ROUTER, a single-round routing framework that treats entropy regulation as a core objective. We first initialize the policy via Soft Supervision, fitting a distribution of suitable models to establish a high-entropy prior for exploration. Subsequently, we stabilize Reinforcement Learning using a Soft Anchor, which utilizes offline capability estimates to orchestrate controlled entropy contraction within a safe trust region. Extensive experiments demonstrate that ENTROROUTER retains 98.3% of the strongest expert's accuracy while reducing computational costs by 48.25%.

For agents

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

get_harvested_code_for_paper("2606.29424")
get_code_for_paper("2606.29424")
have("2606.29424")

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

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

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

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

Connect an agent — have() is free.