SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.22823 · EMNLP · 2025

Self-Critique and Refinement for Faithful Natural Language Explanations

Pepa Atanasova, Yingming Wang

arXiv · PDF · Open in the Atlas

Code that ran

3 of 8 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 5 no recorded run), measured 2026-11-24; 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/2505.22823.json · badge: /api/ran/2505.22823.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
ymwangv/SR-NLE community
Papers with Code archive
3 ran · 5 no recorded run
FunctionStatusWhere it lives
fill_prompt_template Ran
ran; our contract draft was wrong, not the code
ymwangv/SR-NLE/src/modules/refinement_generator.py
pointer only (licence: NONE) · get_code("d16d614f67054efa")
How it ran

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

format_options Ran
ran; our contract draft was wrong, not the code
ymwangv/SR-NLE/src/modules/refinement_generator.py
pointer only (licence: NONE) · get_code("93b536159e7d6e60")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ymwangv/SR-NLE 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 Ran
ran; our contract draft was wrong, not the code
ymwangv/SR-NLE/src/modules/refinement_generator.py
pointer only (licence: NONE) · get_code("0011e2b3c7468a9f")
How it ran

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

GeneralGenerator Not yet run
unverified (harvested, no recorded run)
ymwangv/SR-NLE/src/modules/refinement_generator.py
pointer only (licence: NONE) · get_code("7d4964fef332d343")
How it ran

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

GenerationModel Not yet run
unverified (harvested, no recorded run)
ymwangv/SR-NLE/src/modules/refinement_generator.py
pointer only (licence: NONE) · get_code("94757c101dbb4570")
How it ran

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

RefinementGenerator Not yet run
unverified (harvested, no recorded run)
ymwangv/SR-NLE/src/modules/refinement_generator.py
pointer only (licence: NONE) · get_code("12443c71b583199b")
How it ran

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

apply_voting Not yet run
unverified (harvested, no recorded run)
ymwangv/SR-NLE/src/modules/refinement_generator.py
pointer only (licence: NONE) · get_code("03a86ea75bc5be98")
How it ran

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

get_prompt_template Not yet run
unverified (harvested, no recorded run)
ymwangv/SR-NLE/src/modules/refinement_generator.py
pointer only (licence: NONE) · get_code("d78b1f961441eb3c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ymwangv/SR-NLE 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 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 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 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.

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

With the rapid development of Large Language Models (LLMs), Natural Language Explanations (NLEs) have become increasingly important for understanding model predictions. However, these explanations often fail to faithfully represent the model's actual reasoning process. While existing work has demonstrated that LLMs can self-critique and refine their initial outputs for various tasks, this capability remains unexplored for improving explanation faithfulness. To address this gap, we introduce Self-critique and Refinement for Natural Language Explanations (SR-NLE), a framework that enables models to improve the faithfulness of their own explanations -specifically, posthoc NLEs -through an iterative critique and refinement process without external supervision. Our framework leverages different feedback mechanisms to guide the refinement process, including natural language self-feedback and, notably, a novel feedback approach based on feature attribution that highlights important input words. Our experiments across three datasets and four state-of-the-art LLMs demonstrate that SR-NLE significantly reduces unfaithfulness rates, with our best method achieving an average unfaithfulness rate of 36.02%, compared to 54.81% for baseline -an absolute reduction of 18.79%. These findings reveal that the investigated LLMs can indeed refine their explanations to better reflect their actual reasoning process, requiring only appropriate guidance through feedback without additional training or fine-tuning. Our code is available at https://github.com/ymwangv/SR-NLE. Identify the logical relationship between premise and hypothesis. Premise: A man in a red shirt is playing guitar on stage. Hypothesis: A man is performing music. Please, provide an explanation for your answer.

For agents

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

get_harvested_code_for_paper("2505.22823")
get_code_for_paper("2505.22823")
have("2505.22823")

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

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

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

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

Connect an agent — have() is free.