SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.17287 · 2024

When to Trust LLMs: Aligning Confidence with Response Quality

arXiv · PDF · Open in the Atlas

Code that ran

11 of 12 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, 2 violated it and 0 have no contract verdict; 7 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2404.17287.json · badge: /api/ran/2404.17287.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
taoshuchang/conqord canonical (classifier label)
classifier basis: census
11 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_alignment_score Ran
ran, honoured the contract we drafted
taoshuchang/conqord/step4_evaluation/utils_eval.py
pointer only (licence: NONE) · get_code("edc4fbad6e2e05e4")
How it ran

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

construct_input_message_acc Ran
ran; our contract draft was wrong, not the code
taoshuchang/conqord/step4_evaluation/gpt_evaluation.py
pointer only (licence: NONE) · get_code("ebd8ce82886cfb61")
How it ran

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

construct_input_message_win Ran
ran; our contract draft was wrong, not the code
taoshuchang/conqord/step4_evaluation/gpt_evaluation.py
pointer only (licence: NONE) · get_code("88c86c03537cdd0e")
How it ran

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

gather_log_probs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
taoshuchang/conqord/step3_RL_finetune_LLM/ppo_trainer.py
pointer only (licence: NONE); the stored copy get_code serves, from zyushun/adam-mini, is pointer only (licence: NONE) · get_code("2f0a690c70d11c23")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, taoshuchang/conqord 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_eval_ds_config Ran
ran; our contract draft was wrong, not the code
taoshuchang/conqord/utils/ds_utils.py
pointer only (licence: NONE) · get_code("cfada7d71672fe57")
How it ran

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

is_supported Ran
ran, violated the contract we drafted
taoshuchang/conqord/step4_evaluation/metric.py
pointer only (licence: NONE) · get_code("c738ea3c51d5346e")
How it ran

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

log_init Ran
ran, honoured the contract we drafted
taoshuchang/conqord/step3_RL_finetune_LLM/rlhf_engine.py
pointer only (licence: NONE) · get_code("429d42a3bf925da5")
How it ran

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

prepare_datapair Ran
ran; our contract draft was wrong, not the code
taoshuchang/conqord/step2_reward_model/rw_eval.py
pointer only (licence: NONE); the stored copy get_code serves, from JiancongXiao/PM_RLHF, is pointer only (licence: NONE) · get_code("ed8922a081978462")
How it ran

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

prepare_singlesample Ran
ran; our contract draft was wrong, not the code
taoshuchang/conqord/step2_reward_model/rw_eval.py
pointer only (licence: NONE); the stored copy get_code serves, from JiancongXiao/PM_RLHF, is pointer only (licence: NONE) · get_code("779ea48e220986c3")
How it ran

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

sigmoid Ran
ran, violated the contract we drafted
taoshuchang/conqord/step4_evaluation/gpt_evaluation.py
pointer only (licence: NONE) · get_code("98ad060df3b6c611")
How it ran

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

single_run Ran
ran; our contract draft was wrong, not the code
taoshuchang/conqord/step4_evaluation/metric.py
pointer only (licence: NONE) · get_code("9c523c9f490d4f2d")
How it ran

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

construct_input_message Not yet run
unverified (harvested, no recorded run)
taoshuchang/conqord/step4_evaluation/metric.py
pointer only (licence: NONE) · get_code("bdf021dd3c83826a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, taoshuchang/conqord 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 4 later) and 8 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
gather_log_probs 9 other papers
4 dated earlier, 4 later, 1 same year, order not determinable
2308.02223 (2023-08)
ESRL: Efficient Sampling-based Reinforcement Learning for Sequence Generation
2310.10505 (2023-10)
ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Models
2024.naacl-long.326 (2024 (year only))
LSTDial: Enhancing Dialogue Generation via Long-and Short-Term Measurement Feedback
and 6 more not named here
log_init 9 other papers
4 dated earlier, 4 later, 1 same year, order not determinable
2308.02223 (2023-08)
ESRL: Efficient Sampling-based Reinforcement Learning for Sequence Generation
2310.10505 (2023-10)
ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Models
2024.naacl-long.326 (2024 (year only))
LSTDial: Enhancing Dialogue Generation via Long-and Short-Term Measurement Feedback
and 6 more not named here
prepare_datapair 3 other papers
1 dated earlier, 1 later, 1 same year, order not determinable
2310.10505 (2023-10)
ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Models
2024.naacl-long.326 (2024 (year only))
LSTDial: Enhancing Dialogue Generation via Long-and Short-Term Measurement Feedback
2405.16455 (2024-05)
On the Algorithmic Bias of Aligning Large Language Models with RLHF: Preference Collapse and Matching Regularization
prepare_singlesample 3 other papers
1 dated earlier, 1 later, 1 same year, order not determinable
2310.10505 (2023-10)
ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Models
2024.naacl-long.326 (2024 (year only))
LSTDial: Enhancing Dialogue Generation via Long-and Short-Term Measurement Feedback
2405.16455 (2024-05)
On the Algorithmic Bias of Aligning Large Language Models with RLHF: Preference Collapse and Matching Regularization

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

Despite the success of large language models (LLMs) in natural language generation, much evidence shows that LLMs may produce incorrect or nonsensical text. This limitation highlights the importance of discerning when to trust LLMs, especially in safety-critical domains. Existing methods often express reliability by confidence level, however, their effectiveness is limited by the lack of objective guidance. To address this, we propose CONfidence-Quality-ORDer-preserving alignment approach (CONQORD), which leverages reinforcement learning guided by a tailored dual-component reward function. This function integrates quality reward and order-preserving alignment reward functions. Specifically, the order-preserving reward incentivizes the model to verbalize greater confidence for responses of higher quality to align the order of confidence and quality. Experiments demonstrate that CONQORD significantly improves the alignment performance between confidence and response accuracy, without causing over-cautious. Furthermore, the aligned confidence provided by CONQORD informs when to trust LLMs, and acts as a determinant for initiating the retrieval process of external knowledge. Aligning confidence with response quality ensures more transparent and reliable responses, providing better trustworthiness.

For agents

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

get_harvested_code_for_paper("2404.17287")
get_code_for_paper("2404.17287")
have("2404.17287")

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

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

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

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

Connect an agent — have() is free.