SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2511.02603 · NeurIPS · 2025

CGES: Confidence-Guided Early Stopping for Efficient and Accurate Self-Consistency

Ehsan Aghazadeh, Ahmad Ghasemi, Hedyeh Beyhaghi, Hossein Pishro-Nik

arXiv · PDF · Open in the Atlas

Code that ran

15 of 19 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; 2 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 12 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/2511.02603.json · badge: /api/ran/2511.02603.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
EhsanAghazadeh/cges canonical (classifier label)
classifier basis: census
15 ran · 4 no recorded run
FunctionStatusWhere it lives
beta_should_stop Ran
ran; our contract draft was wrong, not the code
EhsanAghazadeh/cges/src/asc_baseline.py
pointer only (licence: NONE) · get_code("546dabb913df1a0e")
How it ran

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

bottom10 Ran
ran; our contract draft was wrong, not the code
EhsanAghazadeh/cges/src/analysis_calibration.py
pointer only (licence: NONE) · get_code("ae97a2e0006c47b1")
How it ran

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

bottom10_confidence Ran
ran; our contract draft was wrong, not the code
EhsanAghazadeh/cges/src/cges_lns.py
pointer only (licence: NONE) · get_code("dec03666d73ffc16")
How it ran

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

dirichlet_should_stop Ran
ran; our contract draft was wrong, not the code
EhsanAghazadeh/cges/src/asc_baseline.py
pointer only (licence: NONE) · get_code("ba05cb54b4bd8be7")
How it ran

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

evaluate_noise Ran
ran; our contract draft was wrong, not the code
EhsanAghazadeh/cges/src/analysis_noise_injection.py
pointer only (licence: NONE) · get_code("b98ff0e95979c4ad")
How it ran

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

lns_arith Ran
ran, honoured the contract we drafted
EhsanAghazadeh/cges/src/cges_lns.py
pointer only (licence: NONE) · get_code("8dfbaadda61026a8")
How it ran

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

lns_geom Ran
ran, honoured the contract we drafted
EhsanAghazadeh/cges/src/cges_lns.py
pointer only (licence: NONE) · get_code("033aa2ada98ca210")
How it ran

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

lns_geom Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
EhsanAghazadeh/cges/src/analysis_calibration.py
pointer only (licence: NONE) · get_code("bdaa5418f7c7b497")
How it ran

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

load_csvs Ran
ran; our contract draft was wrong, not the code
EhsanAghazadeh/cges/src/analysis_pareto.py
pointer only (licence: NONE) · get_code("0c45698ad1143608")
How it ran

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

make_masked_texts Ran
ran; our contract draft was wrong, not the code
EhsanAghazadeh/cges/src/cges_mars.py
pointer only (licence: NONE) · get_code("17c0fdeb49024467")
How it ran

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

parse_asc Ran
ran on a synthesized input
EhsanAghazadeh/cges/src/aggregate_results.py
pointer only (licence: NONE) · get_code("6eac44c997db257b")
How it ran

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

parse_cges Ran
ran; our contract draft was wrong, not the code
EhsanAghazadeh/cges/src/analysis_threshold.py
pointer only (licence: NONE) · get_code("cd4dbee18277451e")
How it ran

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

parse_esc Ran
ran; our contract draft was wrong, not the code
EhsanAghazadeh/cges/src/aggregate_results.py
pointer only (licence: NONE) · get_code("598015937ed87649")
How it ran

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

parse_sc Ran
ran; our contract draft was wrong, not the code
EhsanAghazadeh/cges/src/aggregate_results.py
pointer only (licence: NONE) · get_code("7de55445c26cfc85")
How it ran

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

split_into_segments Ran
ran; our contract draft was wrong, not the code
EhsanAghazadeh/cges/src/cges_mars.py
pointer only (licence: NONE) · get_code("4109c0d7f29219c7")
How it ran

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

compute_prm_rewards Not yet run
unverified (harvested, no recorded run)
EhsanAghazadeh/cges/src/cges_rm.py
pointer only (licence: NONE) · get_code("d769be2cb966e759")
How it ran

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

lns_arith Not yet run
unverified (harvested, no recorded run)
EhsanAghazadeh/cges/src/analysis_calibration.py
pointer only (licence: NONE) · get_code("9009eb422b16f501")
How it ran

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

lns_arith Not yet run
unverified (harvested, no recorded run)
EhsanAghazadeh/cges/src/analysis_figure1.py
pointer only (licence: NONE) · get_code("efa99b9628ce3dc5")
How it ran

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

segment_token_spans Not yet run
unverified (harvested, no recorded run)
EhsanAghazadeh/cges/src/cges_mars.py
pointer only (licence: NONE) · get_code("2ae24ee6bfbc2cbf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, EhsanAghazadeh/cges 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 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 19 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.

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

Large language models (LLMs) are often queried multiple times at test time, with predictions aggregated by majority vote. While effective, this self-consistency (Wang et al., 2023) strategy requires a fixed number of calls and fails when the correct answer is infrequent. We introduce Confidence-Guided Early Stopping (CGES), a Bayesian framework that forms posteriors over candidate answers and adaptively halts sampling once one answer accumulates enough posterior mass. We prove guarantees in both an ideal calibrated regime and a realistic noisy-confidence regime under a directional drift condition. Averaged over five reasoning benchmarks, CGES reduces the average number of calls by 58% on average (from 16.0 to 6.7) while matching its accuracy within 0.4 percentage points of self-consistency.

For agents

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

get_harvested_code_for_paper("2511.02603")
get_code_for_paper("2511.02603")
have("2511.02603")

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

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

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

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

Connect an agent — have() is free.