{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2511-02603","title":"CGES: Confidence-Guided Early Stopping for Efficient and Accurate Self-Consistency","arxiv_id":"2511.02603","date":"2025-11-04","proceeding":"NeurIPS","authors":["Ehsan Aghazadeh","Ahmad Ghasemi","Hedyeh Beyhaghi","Hossein Pishro-Nik"],"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.","url_abs":"https://arxiv.org/abs/2511.02603","url_pdf":"https://arxiv.org/pdf/2511.02603","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2511.02603","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2511.02603"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/EhsanAghazadeh/cges","reach":{"status":"ok"}}],"summary":{"unverified":19},"by_repo_kind":{"found_in_text":{"samples":19,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":19,"samples":[{"code_sha256_prefix":"546dabb913df1a0e","entry":"beta_should_stop","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/asc_baseline.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/asc_baseline.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"546dabb913df1a0e"}},{"code_sha256_prefix":"ae97a2e0006c47b1","entry":"bottom10","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/analysis_calibration.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/analysis_calibration.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ae97a2e0006c47b1"}},{"code_sha256_prefix":"dec03666d73ffc16","entry":"bottom10_confidence","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/cges_lns.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/cges_lns.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dec03666d73ffc16"}},{"code_sha256_prefix":"d769be2cb966e759","entry":"compute_prm_rewards","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/cges_rm.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/cges_rm.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d769be2cb966e759"}},{"code_sha256_prefix":"ba05cb54b4bd8be7","entry":"dirichlet_should_stop","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/asc_baseline.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/asc_baseline.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ba05cb54b4bd8be7"}},{"code_sha256_prefix":"b98ff0e95979c4ad","entry":"evaluate_noise","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/analysis_noise_injection.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/analysis_noise_injection.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b98ff0e95979c4ad"}},{"code_sha256_prefix":"8dfbaadda61026a8","entry":"lns_arith","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/cges_lns.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/cges_lns.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8dfbaadda61026a8"}},{"code_sha256_prefix":"9009eb422b16f501","entry":"lns_arith","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/analysis_calibration.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/analysis_calibration.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9009eb422b16f501"}},{"code_sha256_prefix":"efa99b9628ce3dc5","entry":"lns_arith","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/analysis_figure1.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/analysis_figure1.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"efa99b9628ce3dc5"}},{"code_sha256_prefix":"033aa2ada98ca210","entry":"lns_geom","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/cges_lns.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/cges_lns.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"033aa2ada98ca210"}},{"code_sha256_prefix":"bdaa5418f7c7b497","entry":"lns_geom","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/analysis_calibration.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/analysis_calibration.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bdaa5418f7c7b497"}},{"code_sha256_prefix":"0c45698ad1143608","entry":"load_csvs","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/analysis_pareto.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/analysis_pareto.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0c45698ad1143608"}},{"code_sha256_prefix":"17c0fdeb49024467","entry":"make_masked_texts","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/cges_mars.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/cges_mars.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"17c0fdeb49024467"}},{"code_sha256_prefix":"6eac44c997db257b","entry":"parse_asc","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/aggregate_results.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/aggregate_results.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6eac44c997db257b"}},{"code_sha256_prefix":"cd4dbee18277451e","entry":"parse_cges","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/analysis_threshold.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/analysis_threshold.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cd4dbee18277451e"}},{"code_sha256_prefix":"598015937ed87649","entry":"parse_esc","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/aggregate_results.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/aggregate_results.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"598015937ed87649"}},{"code_sha256_prefix":"7de55445c26cfc85","entry":"parse_sc","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/aggregate_results.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/aggregate_results.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7de55445c26cfc85"}},{"code_sha256_prefix":"2ae24ee6bfbc2cbf","entry":"segment_token_spans","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/cges_mars.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/cges_mars.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2ae24ee6bfbc2cbf"}},{"code_sha256_prefix":"4109c0d7f29219c7","entry":"split_into_segments","repo":"EhsanAghazadeh/cges","repo_kind":"found_in_text","path":"src/cges_mars.py","file_url":"https://github.com/EhsanAghazadeh/cges/blob/HEAD/src/cges_mars.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4109c0d7f29219c7"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_api"},"syntology_extracted_results":null}