SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.15346 · ICLR · 2025

When to Ensemble: Identifying Token-Level Points for Stable and Fast LLM Ensembling WHEN TO ENSEMBLE: IDENTIFYING TOKEN-LEVEL POINTS FOR STABLE AND FAST LLM ENSEMBLING

Eunho Yang, Kaist, Junghyun Lee, Heecheol Yun, Kwangmin Ki

arXiv · PDF · Open in the Atlas

Code that ran

10 of 14 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 4 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/2510.15346.json · badge: /api/ran/2510.15346.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
yoon6503/SAFE canonical (classifier label)
classifier basis: census
10 ran · 4 no recorded run
FunctionStatusWhere it lives
check_byte_mappings Ran
ran; our contract draft was wrong, not the code
yoon6503/SAFE/safe_generate_gac.py
pointer only (licence: NONE) · get_code("8f6d8e2c52477e99")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

format_example Ran
ran; our contract draft was wrong, not the code
yoon6503/SAFE/run_safe.py
pointer only (licence: NONE) · get_code("c8947f39a6f3b186")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

format_example Ran
ran; our contract draft was wrong, not the code
yoon6503/SAFE/run_safe_mmlu.py
pointer only (licence: NONE) · get_code("914abaca965ea62f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

get_union_vocab Ran
ran; our contract draft was wrong, not the code
yoon6503/SAFE/safe_generate_unite.py
pointer only (licence: NONE) · get_code("46d9414b894b9482")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

get_union_vocab Ran
ran; our contract draft was wrong, not the code
yoon6503/SAFE/safe_generate_unite_three.py
pointer only (licence: NONE) · get_code("54de62c71b112f59")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

prune_cache Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yoon6503/SAFE/caching.py
pointer only (licence: NONE) · get_code("eb44ad2ef1751c0b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

prune_tuple_cache Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yoon6503/SAFE/caching.py
pointer only (licence: NONE) · get_code("13d0e4b4a4a6bae9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

setup_custom_logger Ran
ran; our contract draft was wrong, not the code
yoon6503/SAFE/logger.py
pointer only (licence: NONE) · get_code("e008364719672578")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

update_vocab Ran
ran; our contract draft was wrong, not the code
yoon6503/SAFE/safe_generate_unite.py
pointer only (licence: NONE) · get_code("67d7a56dc464538f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

update_vocab Ran
ran; our contract draft was wrong, not the code
yoon6503/SAFE/safe_generate_unite_three.py
pointer only (licence: NONE) · get_code("d225287774b5b272")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

generate_single Not yet run
unverified (harvested, no recorded run)
yoon6503/SAFE/generate_utils.py
pointer only (licence: NONE) · get_code("af06fa7b0799844f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

get_top_k_tokens Not yet run
unverified (harvested, no recorded run)
yoon6503/SAFE/safe_generate_unite.py
pointer only (licence: NONE) · get_code("5e6a0610bd64a373")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

load_models_tokenizer Not yet run
unverified (harvested, no recorded run)
yoon6503/SAFE/run_safe.py
pointer only (licence: NONE) · get_code("73bded896c5b3ffa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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.

prune_dynamic_cache Not yet run
unverified (harvested, no recorded run)
yoon6503/SAFE/caching.py
pointer only (licence: NONE) · get_code("2e507b94b63c62d4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yoon6503/SAFE 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 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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
setup_custom_logger 1 other paper
1 dated earlier
2406.12585 (2024-06)
Breaking the Ceiling of the LLM Community by Treating Token Generation as a Classification for Ensembling

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

Ensembling Large Language Models (LLMs) has gained attention as a promising approach to surpass the performance of individual models by leveraging their complementary strengths. In particular, aggregating models' next-token probability distributions to select the next token has been shown to be effective in various tasks. However, while successful for short-form answers, its application to long-form generation remains underexplored. In this paper, we show that using existing ensemble methods in long-form generation requires a careful choice of ensembling positions, since the standard practice of ensembling at every token often degrades performance. We identify two key factors for determining the ensembling positions: tokenization mismatch across models and consensus in their next-token probability distributions. Based on this, we propose SAFE, (Stable And Fast LLM Ensembling), a framework that selectively ensembles by jointly considering these factors. To further improve stability, we apply a probability sharpening strategy when the ensemble distribution becomes overly smooth, enabling the selection of more confident tokens during ensembling. Our experiments on diverse benchmarks, including MATH500 and BBH, demonstrate that SAFE outperforms existing methods in both accuracy and efficiency, with gains achieved even when ensembling fewer than 1% of tokens. The code is available at https://github.com/yoon6503/SAFE.

For agents

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

get_harvested_code_for_paper("2510.15346")
get_code_for_paper("2510.15346")
have("2510.15346")

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

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

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

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

Connect an agent — have() is free.