Papers › Enhancing LLM Metacognition via Cognitive Pairwise Training

Enhancing LLM Metacognition via Cognitive Pairwise Training

30 May 2026arXiv:2606.00869added by Syntology

Weitao Li, Hao Zhou, Xuanyu Lei, Fandong Meng, Yuanhang Liu, Jingyi Ren, Ante Wang, Xiaolong Wang, Yuanchi Zhang, Fuwen Luo, Guangwen Yang, Lin Gan, Weizhi Ma, Yang Liu

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Reinforcement learning with verifiable rewards (RLVR) has become central to LLM reasoning, but its outcome-level rewards can make models more willing to give confident answers when evidence or reasoning is unreliable. Existing SFT or RL methods mainly teach LLMs to refuse or express uncertainty at the response level, which can overfit abstention behavior rather than improve reasoning reliability. To address this limitation, we propose Cognitive Pairwise Training (CPT), a cognitive mid-training alignment stage that turns pairwise comparisons over reasoning traces into a reusable alignment signal. By learning to distinguish trustworthy from flawed reasoning, CPT encourages the model to internalize a reasoning-quality discrimination boundary rather than memorize surface refusal patterns. Across five model scales and three model families, CPT improves the reasoning--metacognition trade-off. At 14B, CPT+RL outperforms the standard SFT+RL pipeline by +2.2 math-average points and +5.6 abstention-F1 points. Further analyses show that CPT improves trace quality and exhibits strong robustness and scalability across evaluation and training settings. Code and models are released at https://github.com/Tsinghua-dhy/CPT.

PaperPDFCode 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="2606.00869")

Code

Syntology Ran 21 of 23 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 21 ran with no contract checked.

By repository: found in paper text by Syntology: 23 samples from 1 repository, 21 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Tsinghua-dhy/CPT found in paper text by Syntology report

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

23 samples harvested; 21 ran; 0 honoured the contract we drafted; 2 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.

21ran
2unverified

Licence: 0 of the 23 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 Tsinghua-dhy/CPT. “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.

build_prompt Tsinghua-dhy/CPT/data_construction/4_build_sft/build_sft_dataset.py found in paper text by Syntology ran Apache-2.0 (permissive) · 74944fb1c9af1d08 · report
detect_model_type Tsinghua-dhy/CPT/eval/abstention/eval_abstention.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · b9d58aa1639207a0 · report
extract_answer_math Tsinghua-dhy/CPT/data_construction/1_rollout/rollout.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 0f9fe639bed6c737 · report
extract_answer_math Tsinghua-dhy/CPT/eval/math/eval_math.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · ffcf6f704a28bb3b · report
extract_boxed_content Tsinghua-dhy/CPT/data_construction/3_judge/judge_pairs.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 5a65ce548f2db502 · report
get_all_highest_confidence_answers Tsinghua-dhy/CPT/data_construction/4_build_sft/build_sft_dataset.py found in paper text by Syntology ran Apache-2.0 (permissive) · e5cec7c5865db846 · report
get_model_size Tsinghua-dhy/CPT/data_construction/2_pair/build_pairs.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · faa29ea87424c295 · report
get_prompt Tsinghua-dhy/CPT/eval/utils/judge_math_answer_gpt.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 04002d844af70af7 · report
get_prompt Tsinghua-dhy/CPT/eval/utils/math_equal.py found in paper text by Syntology ran Apache-2.0 (permissive) · a8eed4c1f2f2831b · report
get_task_type Tsinghua-dhy/CPT/eval/rag/eval_rag_conflicts.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 41a2c29e0316585f · report
is_instruct_model Tsinghua-dhy/CPT/eval/math/eval_math.py found in paper text by Syntology ran Apache-2.0 (permissive) · 5d63c771657aa174 · report
is_instruct_model Tsinghua-dhy/CPT/eval/rag/eval_rag_conflicts.py found in paper text by Syntology ran Apache-2.0 (permissive) · a2cb58cb395f9e4b · report
load_all_questions Tsinghua-dhy/CPT/data_construction/2_pair/build_pairs.py found in paper text by Syntology ran Apache-2.0 (permissive) · 4afecbe3b89e8ab8 · report
normalize_judgment Tsinghua-dhy/CPT/data_construction/3_judge/judge_pairs.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · bc1311386b177375 · report
normalize_rollout Tsinghua-dhy/CPT/data_construction/2_pair/build_pairs.py found in paper text by Syntology ran Apache-2.0 (permissive) · d4cd0d203051a63a · report
parse_judge_output Tsinghua-dhy/CPT/data_construction/3_judge/judge_pairs.py found in paper text by Syntology ran Apache-2.0 (permissive) · ce2f3b3913ae8706 · report
process_text Tsinghua-dhy/CPT/data_construction/1_rollout/rollout.py found in paper text by Syntology ran Apache-2.0 (permissive) · 13430c1445a0990c · report
process_text Tsinghua-dhy/CPT/eval/math/eval_math.py found in paper text by Syntology ran Apache-2.0 (permissive) · 7f580ad4df20e7bd · report
split_consensus_data Tsinghua-dhy/CPT/data_construction/4_build_sft/split_consensus.py found in paper text by Syntology ran Apache-2.0 (permissive) · 14c46927d4562367 · report
validate_datasets Tsinghua-dhy/CPT/eval/abstention/eval_abstention.py found in paper text by Syntology ran Apache-2.0 (permissive) · 6f4528b6a787c430 · report
validate_prompt_styles Tsinghua-dhy/CPT/eval/abstention/eval_abstention.py found in paper text by Syntology ran Apache-2.0 (permissive) · fbe2f6cfb047b17e · report
compute_math_score Tsinghua-dhy/CPT/eval/abstention/correctness_evaluator.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 990b7ec66e5cee70 · report
process_text Tsinghua-dhy/CPT/eval/rag/eval_rag_conflicts.py found in paper text by Syntology unverified Apache-2.0 (permissive) · ba60eead339e8791 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.00869, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

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