Papers › CER: Confidence Enhanced Reasoning in LLMs

CER: Confidence Enhanced Reasoning in LLMs

20 Feb 2025arXiv:2502.14634archive 2025-07-28

Ali Razghandi, Seyed Mohammad Hadi Hosseini, Mahdieh Soleymani Baghshah

Ensuring the reliability of Large Language Models (LLMs) in complex reasoning tasks remains a formidable challenge, particularly in scenarios that demand precise mathematical calculations and knowledge-intensive open-domain generation. In this work, we introduce an uncertainty-aware framework designed to enhance the accuracy of LLM responses by systematically incorporating model confidence at critical decision points. We propose an approach that encourages multi-step reasoning in LLMs and quantify the confidence of intermediate answers such as numerical results in mathematical reasoning and proper nouns in open-domain generation. Then, the overall confidence of each reasoning chain is evaluated based on confidence of these critical intermediate steps. Finally, we aggregate the answer of generated response paths in a way that reflects the reliability of each generated content (as opposed to self-consistency in which each generated chain contributes equally to majority voting). We conducted extensive experiments in five datasets, three mathematical datasets and two open-domain datasets, using four LLMs. The results consistently validate the effectiveness of our novel confidence aggregation method, leading to an accuracy improvement of up to 7.4% and 5.8% over baseline approaches in math and open-domain generation tasks, respectively. Code is publicly available at https://github.com/ Aquasar11/CER.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2502.14634")

Code

Syntology Ran 9 of 15 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 7 ran · our draft was wrong; 2 ran · fixture could not drive it.

By repository: official repository: 15 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

sharif-ml-lab/CER officialmentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 9 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

7ran · our draft was wrong
2ran · fixture could not drive it
6unverified

Licence: 15 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from sharif-ml-lab/CER. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

_find_subsequence_indices sharif-ml-lab/CER/src/decoding.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · aa1cedb61cbeeac0 · report
aggregate_paths_based_on_scores sharif-ml-lab/CER/src/decoding.py official repository ran · our draft was wrong no licence file found · pointer only · 73874e65d650cef0 · report
calculate_confidence_for_final_answer sharif-ml-lab/CER/src/decoding.py official repository ran · fixture could not drive it no licence file found · pointer only · dde79f1d781f0671 · report
extract_all_numerical_values sharif-ml-lab/CER/src/decoding.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · b29db381e43c4adb · report
extract_all_steps sharif-ml-lab/CER/src/decoding.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 8e25443514150f6f · report
extract_final_answer sharif-ml-lab/CER/src/decoding.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 89e7e36459462915 · report
extract_last_numerical_value sharif-ml-lab/CER/src/decoding.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · d20c7138d1b654ef · report
number_step_by_step_extraction sharif-ml-lab/CER/src/decoding.py official repository ran · our draft was wrong no licence file found · pointer only · 76e07053dd45b75d · report
postprocess_final_answer sharif-ml-lab/CER/src/decoding.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 3fae2e5c8fbd21cf · report
_handle_all_decoding sharif-ml-lab/CER/src/decoding.py official repository unverified no licence file found · pointer only · a448a32f720595c0 · report
_handle_last_decoding sharif-ml-lab/CER/src/decoding.py official repository unverified no licence file found · pointer only · e82ebdf98178e2b1 · report
_k_seperate_generation sharif-ml-lab/CER/src/decoding.py official repository unverified no licence file found · pointer only · af9b934faa3771fc · report
cer_decode sharif-ml-lab/CER/src/decoding.py official repository unverified no licence file found · pointer only · 6c17fb008603bd82 · report
extract_proper_nouns sharif-ml-lab/CER/src/decoding.py official repository unverified no licence file found · pointer only · 970c62e19d1f0b90 · report
proper_noun_step_by_step_extraction sharif-ml-lab/CER/src/decoding.py official repository unverified no licence file found · pointer only · 16897e2f9de270de · report

Tasks

MathMathematical Reasoning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections