---
title: "Self-Refine: Iterative Refinement with Self-Feedback (2023)"
description: "How Self-Refine improves generated answers through repeated self-feedback, what its experiments establish, and where self-correction fails."
canonical: "https://research.elamur.ai/free/en/papers/madaan-2023-self-refine-iterative-refinement-self/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/madaan-2023-self-refine-iterative-refinement-self/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / Self-Refine: Iterative Refinement with Self-Feedback

# Self-Refine: Iterative Refinement with Self-Feedback

Paper · 2023 · Aman Madaan, Niket Tandon, Prakhar Gupta et al.

**Authors:** [Aman Madaan](https://md.research.elamur.ai/free/en/authors/aman-madaan/), [Niket Tandon](https://md.research.elamur.ai/free/en/authors/niket-tandon/), [Prakhar Gupta](https://md.research.elamur.ai/free/en/authors/prakhar-gupta/), [Skyler Hallinan](https://md.research.elamur.ai/free/en/authors/skyler-hallinan/), [Luyu Gao](https://md.research.elamur.ai/free/en/authors/luyu-gao/), [Sarah Wiegreffe](https://md.research.elamur.ai/free/en/authors/sarah-wiegreffe/), [Uri Alon](https://md.research.elamur.ai/free/en/authors/uri-alon/), [Nouha Dziri](https://md.research.elamur.ai/free/en/authors/nouha-dziri/), [Shrimai Prabhumoye](https://md.research.elamur.ai/free/en/authors/shrimai-prabhumoye/), [Yiming Yang](https://md.research.elamur.ai/free/en/authors/yiming-yang/), [Shashank Gupta](https://md.research.elamur.ai/free/en/authors/shashank-gupta/), [Bodhisattwa Prasad Majumder](https://md.research.elamur.ai/free/en/authors/bodhisattwa-prasad-majumder/), Katherine Hermann, [Sean Welleck](https://md.research.elamur.ai/free/en/authors/sean-welleck/), [Amir Yazdanbakhsh](https://md.research.elamur.ai/free/en/authors/amir-yazdanbakhsh/) and [Peter Clark](https://md.research.elamur.ai/free/en/authors/peter-clark/) · **Year:** 2023 · **Venue:** arXiv:2303.17651 · **Licence:** [CC BY 4.0 (arXiv)](http://creativecommons.org/licenses/by/4.0/)

[**618** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W7133236450) · [arXiv:2303.17651](https://openalex.org/S4363606243) · [licence](http://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2303.17651)
- [arXiv 2303.17651](https://arxiv.org/abs/2303.17651)
- [OpenAlex](https://openalex.org/W7133236450)

Citations: OpenAlex, 2026-10-14.

## Deep dive: Self-Refine: Iterative Refinement with Self-Feedback

How Self-Refine improves generated answers through repeated self-feedback, what its experiments establish, and where self-correction fails. · about 33 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A useful answer frequently needs revision. A reply can address a question while missing the speaker’s concerns; a program can produce the right result while wasting computation; a rewritten review can change its sentiment while remaining dull. Self-Refine studies whether a [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) can improve such outputs by examining and revising its own work. Its central proposal is to make criticism an explicit intermediate product. The same system produces a draft, identifies particular weaknesses, and writes a revised version informed by those weaknesses. Repeating that process can recover quality that a single generation leaves unrealized.

The method changes how an existing system is used, rather than changing its parameters. Separate prompts describe generation, criticism, and revision through worked examples. This is [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/): examples inside the input demonstrate the desired behavior without an additional training run. Feedback should locate something concrete in the draft and suggest a plausible improvement. Earlier drafts and their critiques remain in the context, giving later revisions access to the path already taken. A task-specific rule determines when to stop. Depending on the task, the returned answer is the latest revision or a candidate selected using the system’s own quality scores.

The authors evaluate the approach on 7 tasks involving conversation, programming, mathematical problem solving, sentiment rewriting, acronym creation, and generation under keyword constraints. Their principal comparisons apply Self-Refine to GPT-3.5, ChatGPT, and GPT-4, then compare the result with direct generation from the same underlying system. Codex is also tested on programming tasks. The abstract reports an average improvement of roughly 20% absolute in task performance. A concrete example is code optimization with GPT-4: the proportion of programs optimized rises from 27.3% to 36.0%. Other evaluations measure which output people or an automated judge prefer, so their scores describe comparative judgments rather than correctness.

The experiments support a narrower and more useful conclusion than a general claim that systems can reliably correct themselves. Explicit, targeted criticism usually helps more than vague encouragement or revision without a critique. Several rounds can help, although gains tend to diminish. Mathematical reasoning exposes an important weakness: recognizing that an answer is wrong can be harder than revising it once the error is identified. The paper also finds that a weaker conversational system struggles with the required feedback and editing behavior. Self-Refine therefore demonstrates a practical way to improve many outputs during use, while making the quality of self-evaluation a central condition of success. The authors release code, data, prompts, and generated outputs through the project’s official resources.

### Ideas worth borrowing

Separate diagnosis from revision. A request to improve an answer leaves the system to decide silently what improvement means. An explicit critique creates an inspectable account of what should change before the next draft is written. This makes the process easier to analyze: a failure can arise because the criticism was wrong, because the proposed repair was unsuitable, or because the editor failed to carry it out. That separation is useful in writing assistance, program transformation, and other tasks where a plausible final artifact can conceal a faulty editing process.

Make criticism local and actionable. A general instruction to improve efficiency or clarity does little to narrow the search. Feedback becomes more useful when it identifies the loop, phrase, variable name, or missing requirement responsible for the problem and proposes a change. The paper’s feedback ablations support this distinction. Elsewhere, the same principle can guide review forms, automated quality checks, and revision interfaces: identify the relevant part of the artifact, explain the defect, and connect it to an operation the editor can attempt.

Represent quality as several dimensions. Conversation and acronym generation do not have a single obvious success criterion. A response can become more informative while losing its conversational fit; an acronym can become easier to pronounce while becoming less connected to its title. Separate criteria make these tradeoffs visible. They also discourage an editor from treating every attractive change as an overall improvement. Researchers can borrow this design whenever a task combines competing goals, provided they remember that self-assigned scores are judgments rather than independent measurements.

Keep a record of the revision path. Self-Refine includes previous outputs and feedback in later prompts. The intended benefit is that an editor can see which problems have already been raised and how earlier attempts addressed them. This is a reusable approach to maintaining local state without changing system parameters. It can support document revision, design exploration, and code cleanup. Its value lies in making earlier decisions available; the paper does not establish that retaining an arbitrarily long history is always beneficial.

Test refinement against extra sampling. Generating several independent answers can also improve the chance of obtaining a useful result. A refinement method should therefore be compared with alternatives that spend additional generation effort without a critique-and-edit loop. The paper’s comparison with multiple ChatGPT samples asks whether the revised answer remains preferable when the baseline gets several attempts. This is a broadly useful experimental habit: identify the simple benefit that comes from extra computation before attributing an improvement to the proposed mechanism.

Treat stopping and selection as part of the method. Producing another draft does not guarantee progress. Self-Refine allows task-specific stopping rules and, in some settings, selects an answer using scores gathered during revision. This matters especially when an edit improves one criterion while damaging another. The transferable idea is to distinguish the ability to propose changes from the ability to choose an output. Applications with measurable constraints can use those constraints for selection; applications with subjective goals need a more cautious interpretation of internal scores.

Measure the critic’s mistakes separately. The qualitative analyses suggest that poor feedback is frequently the main obstacle when revision fails. That finding shifts attention from the editor alone to the reliability of diagnosis. In another system, useful evaluation would ask whether the critic identified a real problem, located it correctly, and proposed a suitable remedy. Merely counting successful final outputs can miss these distinctions. A component-level analysis helps determine whether to improve the critique prompt, supply an external check, or change how the editor responds to uncertain advice.

### How Mova uses it

For Mova, a small transparent language system written in Rust, Self-Refine offers a possible architecture for revision. The relevant idea is an explicit sequence of artifacts: a candidate answer, a diagnosis tied to that answer, and a proposed replacement. This section describes possible uses. It does not establish that Mova already implements the paper’s loop or reproduces its results.

A transparent implementation could represent feedback as data that a reader can inspect. A critique might identify a missing requirement, point to the affected passage, explain the mismatch, and propose a repair. Keeping these elements distinct would make it easier to understand why a revision happened. It would also permit simpler checks on whether the revised answer actually addresses the diagnosed issue. The paper expresses feedback mainly in natural language; a more structured representation for Mova would be an engineering adaptation of its principle.

The most plausible starting point would be a task whose requirements can be checked directly. If a generated passage must include supplied concepts, Mova could compare the draft with those requirements and pass the missing items to a revision stage. That resembles the role of omitted concepts in CommonGen-Hard. The important qualification is that a deterministic requirement check and an internally generated judgment have different evidential status. Finding an absent required item provides firmer guidance than declaring that a passage should be more engaging.

A revision history could also serve Mova’s transparency goals. Instead of replacing an answer without explanation, the system could retain the earlier candidate, the reason for changing it, and the resulting edit. A reader could then distinguish an attempted correction from a verified improvement. Such a record could support debugging when the system repeatedly introduces the same problem or when an edit satisfies one requirement while violating another. This would apply the paper’s use of history while making that history visible outside the generation context.

The negative result with Vicuna-13B is especially relevant to any proposal involving a small system. Being able to produce an initial answer does not establish an ability to criticize or revise it reliably. The paper reports problems with feedback format, instruction adherence, and repeated or irrelevant output. Mova should therefore treat criticism and revision as capabilities to demonstrate separately. A small implementation might benefit from constrained operations and external checks, but that is a design possibility rather than a result shown by Self-Refine.

The paper also suggests how to evaluate such an adaptation honestly. Mova’s revised answers should be compared with its initial answers and with alternatives that receive additional opportunities to generate. Errors should be classified by whether diagnosis or editing went wrong. Success on an explicit constraint should remain separate from success on a subjective judgment. The useful inheritance is a reviewable revision process with clear failure points; the reported gains from the paper’s systems cannot be transferred to Mova without experiments.

### The problem and its context

#### A coherent answer can still miss the goal

Self-Refine begins from a gap between producing intelligible material and satisfying a demanding request. Many generation tasks combine requirements that are individually understandable but difficult to meet together. In [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/), a response may need to be relevant, useful, engaging, safe, and sensitive to the speaker’s situation. In [code and programming](https://md.research.elamur.ai/free/en/topics/code-and-programming/), correctness leaves open questions about runtime and maintainability. A readable program is not simply a program that executes successfully.

These tasks also differ in how clearly quality can be defined. A program’s runtime can be measured under an evaluation procedure. Whether a reply feels interested rather than mechanical is less straightforward. The authors are interested in both kinds of task: those with relatively concrete objectives and those whose goals require qualitative judgment. Their proposal makes room for feedback that addresses several aspects of an output at once.

The motivating analogy is ordinary revision. A person can write a request, notice that its tone is too abrupt, and revise it without receiving a new lesson in writing. A programmer can recognize that a correct implementation is unnecessarily expensive and replace its algorithm. The paper does not use this analogy to establish that artificial and human revision have the same mechanism. It uses it to motivate a question about available capability: can a system recognize useful changes after producing an imperfect draft?

That question matters because a generation failure need not mean that the underlying capability is completely absent. Producing an artifact and evaluating a particular artifact are different tasks. Once a draft exists, its omissions or awkward choices may become easier to identify. Self-Refine attempts to exploit that difference by changing the sequence of requests made to the same system.

#### Earlier refinement usually required something extra

The paper places its approach among methods that already use feedback to improve generated material. It describes applications to summarization, scripts, program synthesis, and other generation tasks. The novelty claim is therefore not that revision or machine-generated criticism had never been studied. It concerns how the critic and editor are obtained and how broadly the resulting arrangement can be applied.

One earlier route trains a dedicated editor from examples of feedback and revision. The paper discusses [PEER](https://md.research.elamur.ai/free/en/papers/schick-2022-peer-collaborative-language-model/) and other supervised refinement approaches in this context. Such methods can make revision a learned specialty, but obtaining suitable examples brings a data requirement. Training an editor for a new domain can also become a separate project.

Another route gathers feedback from people. Human comments can identify shortcomings that a generator misses, but they require effort to obtain. The paper also discusses scalar reward signals used as a substitute for, or alternative to, direct human comments. Work such as [Training language models to follow instructions with human feedback](https://md.research.elamur.ai/free/en/papers/ouyang-2022-training-language-models-follow-instructions/) represents a parameter-updating approach to using feedback. Self-Refine instead presents criticism about an intermediate answer directly to the system while it is being used.

Feedback can also come from a source tied to a particular domain. Compiler diagnostics are useful for program repair because they identify problems according to an external formal process. Wikipedia edits offer examples of changes made to text. These sources can be valuable without being general-purpose critics. Their availability and meaning depend on the task.

The related-work discussion includes [Check Your Facts and Try Again](https://md.research.elamur.ai/free/en/papers/peng-2023-check-facts-try-again-improving/), which uses external knowledge and automated feedback, and [Self-critiquing models for assisting human evaluators](https://md.research.elamur.ai/free/en/papers/saunders-2022-self-critiquing-models-assisting-human/). These comparisons help locate the contribution: Self-Refine asks whether one existing system can generate the candidate, produce its criticism, and perform the edit across several domains.

#### Why natural-language feedback matters

Feedback can take the form of a reward, an example pair, a diagnostic, or a written explanation. Self-Refine chooses natural language because the same system can both produce and interpret it. A critique can identify several defects and suggest different repairs without requiring a new task-specific output representation.

This choice also distinguishes the method from simply assigning a score to an answer. A score expresses a judgment about quality but may leave the editor uncertain about what to change. Written feedback can connect a quality judgment to a location and an action. Scores remain useful for tracking several criteria or choosing among revisions, but they do not replace the explanatory role of criticism.

The paper connects detailed feedback to the broader use of intermediate reasoning, including [chain-of-thought prompting](https://md.research.elamur.ai/free/en/papers/wei-2022-chain-thought-prompting-elicits-reasoning/). Here, however, the intermediate text concerns an existing candidate. It explains why that candidate falls short and what might improve it. The contribution is an organized cycle around that distinction.

### The method, step by step

#### Begin with a draft

Self-Refine needs an input, an existing generation system, and prompts that demonstrate the required roles. The input might be a conversation, a mathematical question, a program to optimize, or a set of concepts to include in a sentence. The generation prompt supplies instructions or examples appropriate to that task.

The Self-Refine revision cycle The steps in order.

The initial generation is written as:

```
y₀ = ℳ(p_gen ∥ x)
```

Here, x is the task input. The symbol ℳ denotes the system used for generation, criticism, and editing. The prompt p_gen tells it how to produce an initial answer. The symbol ∥ means concatenation: the prompt and input are placed together in the context. The result y₀ is the first candidate.

A few-shot generation prompt contains demonstrations pairing an input with an output. These examples establish what the task asks for and what an acceptable response looks like. They do not change parameters. Instead, they condition the current generation.

Not every task needs a newly generated starting artifact. In the readability experiment, the starting point is an existing program. Initialization therefore leaves the supplied code in place, and the process begins with criticism. This is an important practical feature: the revision loop can operate on an artifact that already exists.

#### Ask for a diagnosis with a proposed remedy

The next stage passes the task and candidate back to the same system:

```
fb_t = ℳ(p_fb ∥ x ∥ y_t)
```

The index t identifies the current stage of revision. The symbol y_t is the candidate being examined, fb_t is the resulting feedback, and p_fb is the prompt for criticism. The input x remains available so the critic can evaluate the candidate against the original task.

Examples in p_fb contain an input, a candidate, and feedback on that candidate. They demonstrate more than the instruction to be critical. They show the expected level of detail and the relationship between a defect and a repair.

The paper distinguishes specificity from actionability. Specificity identifies the relevant part of the output. Actionability supplies a change that could improve it. A critique can possess one without the other. Pointing to a slow loop locates a possible problem; suggesting a different computational strategy gives the editor something to attempt. A broad request for faster code lacks much of this information.

The code example illustrates the distinction through a repeated summation that can be replaced with a direct expression:

```
n(n+1)/2
```

In this example, n is the upper limit of the consecutive integers being summed. The parentheses group the addition of n and 1, adjacent terms indicate multiplication, and division by 2 produces the direct sum. The expression belongs to the example’s proposed optimization. It is not an objective function for Self-Refine.

Feedback can also address several criteria. A conversation response might be insufficiently helpful and fail to acknowledge the speaker’s concern. An acronym might be awkward to pronounce and weakly related to its title. The prompt determines which dimensions the critic considers and whether it assigns scores alongside explanations.

#### Turn the critique into a revised candidate

The basic revision step is:

```
y_(t+1) = ℳ(p_refine ∥ x ∥ y_t ∥ fb_t)
```

The result y_(t+1) is the next candidate. The prompt p_refine demonstrates how to edit an answer using feedback. The remaining terms supply the original task, the current draft, and its critique.

Revision demonstrations contain an input, an initial answer, feedback, and an improved answer. This structure shows how an explanation should affect the artifact. It asks for a changed result, rather than an agreement with the critic or a discussion of possible changes.

The same system performs every role, but the roles remain distinct because their prompts and expected outputs differ. There is no additional trained critic or separately trained editor in the central method. There is also no parameter update during the loop. The new information available to a revision comes from its context.

This distinction is essential to interpreting the paper. Self-Refine does not establish that the underlying system permanently learns from each correction. A later call can use earlier criticism because that criticism is included in its input. The improvement is local to the prompted process.

#### Preserve earlier drafts and feedback

The implementation expands the revision context beyond the latest candidate:

```
y_(t+1) = ℳ(p_refine ∥ x ∥ y₀ ∥ fb₀ ∥ … ∥ y_t ∥ fb_t)
```

The terms y₀ and fb₀ refer to the initial candidate and its first critique. The ellipsis represents intermediate candidates and their feedback. The final pair, y_t and fb_t, is the most recent material. The symbols ℳ, p_refine, x, and ∥ retain their earlier meanings.

This history gives the editor access to previous attempts. The authors’ rationale is that it can help avoid repeating earlier mistakes. It also allows later revisions to be informed by more than a single isolated criticism. The paper does not provide a controlled history-length study, so this rationale should be distinguished from a measured explanation of the gains.

Keeping history also makes the actual method richer than a repeated request to rewrite. Each revision is conditioned on a growing record of task-specific judgments and attempted changes. Some of that record may be wrong. Its usefulness therefore depends on how the system handles earlier advice, not merely on whether the advice is retained.

#### Decide when to stop and which answer to return

The stopping rule is represented as:

```
stop(fb_t, t)
```

The function stop determines whether revision should end. Its arguments are the current feedback fb_t and the current iteration index t. A rule can stop at a fixed limit or inspect a stopping signal generated with the feedback. The criterion is chosen for the task.

The main evaluation describes a maximum of 4 feedback-and-revision iterations. Task-specific descriptions use different settings: the dialogue setup allows a maximum k=3, while sentiment reversal uses k=4. The separate readability experiment uses N=5. These settings belong to their respective experiments rather than one universal configuration.

Output selection also varies. The general method describes returning the last revision. For acronym generation, the analysis discusses choosing the candidate with the highest score across iterations because quality can fluctuate. The detailed dialogue setup selects the revised response with the highest total feedback score, excluding the initial response. These are meaningful choices: an evaluation of the complete procedure includes both how candidates are generated and how one is selected.

#### Construct demonstrations without training a new editor

Though the paper calls the method supervision-free, its prompts contain deliberately prepared examples. The accurate interpretation is that Self-Refine avoids an additional supervised training stage and a large training collection for a separate editor. It does not eliminate human judgment from the design.

For sentiment reversal, the authors construct positive and negative versions of a review and describe how to transform between them. For mathematical reasoning, they select two training examples on which Codex fails with program-aided prompts, then manually provide corrected solutions and explanations. For code optimization, they reuse slow and fast programs and the explanations supplied with the earlier task.

Acronym generation uses 15 title–acronym examples for initialization. The authors prepare feedback and revisions using a 5-point rubric, with 3 examples for criticism and editing. Constrained generation uses ten initialization examples. For feedback demonstrations, six training examples are altered to omit required concepts or become incoherent; the omissions and explanations of incoherence supply the critique.

The dialogue descriptions differ in their counts. The task setup describes 3 initialization examples, while the prompt-construction account says six examples are sampled. The feedback module also mentions 6 demonstrations. These details show the intended demonstration-based design, but they do not support replacing the task-specific descriptions with a single harmonized count.

#### The readability variant

The readability appendix expresses the same cycle through a critic and an editor:

```
c₁ = critique(y₀)
```

Here, y₀ is the original program, critique is the criticism operation, and c₁ is its first set of readability suggestions.

```
y₁ = editor(y₀, c₁)
```

The operation editor takes the original program and those suggestions, returning the revised program y₁.

```
c_(k+1) = critique(y_k)
```

The index k identifies a current program version. The next critique, c_(k+1), is generated from that version y_k.

```
y_(k+1) = editor(y_k, c_(k+1))
```

The next program version y_(k+1) results from applying the editor to the current code and its newly generated critique. The process repeats N times, where N is the chosen iteration limit.

These equations emphasize that criticism and editing can be separate operations without requiring different underlying systems. In the readability experiment, both operations use text-davinci-003. Their prompts and decoding settings determine their different behavior.

### Experiments and results

#### What is being compared

The main experimental question is whether Self-Refine improves an existing system’s output. The natural baseline is therefore direct generation from the same system using the task’s initial prompt. This comparison holds the underlying generator fixed while adding criticism, revision, and output selection.

The main systems are GPT-3.5, identified as text-davinci-003; ChatGPT, identified as gpt-3.5-turbo; and GPT-4. Programming experiments also include Codex, identified as code-davinci-002. The authors reuse prompts from earlier work where available, including code optimization and mathematical reasoning, and construct prompts for the other settings.

Even systems capable of responding to instructions receive few-shot feedback and revision prompts. The authors choose this arrangement to keep the evaluation consistent across systems. Accordingly, the experiments establish results for these demonstrated workflows. They do not isolate the performance of every possible instruction-only alternative.

The general setup describes decoding as greedy while also specifying a temperature of 0.7. Those descriptions do not identify the same decoding regime. The readability appendix provides a clearer task-specific distinction between greedy generation at T=0.0 and sampling at T=0.7. The results should be understood with that reporting inconsistency in mind.

#### Different tasks require different evidence

The evaluation combines automatic task measures and preference judgments. For mathematical reasoning, the measure is solve rate. For program optimization, it is the percentage of programs optimized. For constrained generation, it is coverage of the required concepts. These metrics address different properties and cannot be interpreted as interchangeable forms of accuracy.

For conversation, sentiment rewriting, and acronym creation, the paper uses blind comparisons between outputs. A human judge sees the task, its input, and candidate answers without knowing which method produced them. The judges are the authors. They choose the answer that better satisfies the task, with some settings allowing both candidates to be accepted.

GPT-4 is also used as a preference judge. The evaluation prompts ask for a short explanation and a choice. For reviews, the question concerns alignment with the desired sentiment. Acronyms are compared on pronunciation, spelling, relevance to the title, and connotation. Conversation responses are judged in their context.

The paper reports that agreement with human preference is 82% when reversing sentiment, 68% when generating acronyms, and 71% when generating dialogue responses. It describes these figures as correlation. They support using the automated judgments as a proxy, while also showing that the proxy does not simply reproduce every human choice.

The abstract’s roughly 20% absolute average gain summarizes this heterogeneous evaluation. It is useful as an account of the overall reported outcome, but it should not be read as a common improvement in correctness across all tasks. Preference rates, concept coverage, and optimization rates answer different questions.

#### Code optimization: improving programs that already work

The PIE task concerns functionally correct programs whose runtime can be improved through algorithmic edits. This makes it different from generating code from scratch or repairing a syntax error. An initial answer can preserve correctness while leaving the main computational inefficiency untouched.

With GPT-4, Self-Refine increases the reported percentage of programs optimized from 27.3% to 36.0%. The paper reports the corresponding absolute improvement as 8.7%. The comparison illustrates the practical claim that a strong generator can leave useful optimization opportunities for a later critique.

PIE code optimization with GPT-4, programs optimized Feedback and revision improve the optimization rate over direct generation.

**The numbers**

| System or setting | programs optimized % |
| --- | --- |
| GPT-4 direct generation | 27.3 |
| GPT-4 with Self-Refine (this paper) | 36.0 |

A qualitative example helps explain what a successful change can involve. The initial program searches combinations through nested loops. Its first generated optimization barely changes the underlying strategy. Self-Refine’s critique identifies the expensive search, after which the revised code uses dynamic programming.

The example’s reported complexity is:

```
𝒪(amount × coins)
```

The symbol 𝒪 expresses asymptotic growth. The variable amount represents the target amount in the coin problem, coins represents the coin choices involved, and × denotes multiplication. The expression describes the revised example’s computational structure. It is not a complexity guarantee for every optimization Self-Refine proposes.

The introduction reports improvements of up to absolute 13% in programming tasks with Codex. The comparison appendix also describes Self-Refine using at most 4 samples against alternatives using 16 and 32. Those statements indicate additional comparisons, but they do not by themselves establish a complete accounting of generated tokens, runtime, or monetary cost.

#### Dialogue: a large preference improvement

Dialogue response generation uses the FED dataset, which contains conversations annotated for fine-grained quality. The task asks for a response suited to the preceding conversation. Its feedback rubric considers 10 dimensions, including relevance, usefulness, informativeness, engagement, consistency, specificity, safety, user understanding, fluency, and interest.

The main results discussion gives a GPT-4 preference example in which direct outputs receive 25.4% and Self-Refine outputs receive 74.6%. These are comparative preference scores. They do not say that one percentage of all replies is correct and the remainder incorrect.

Dialogue response generation, GPT-4 preference evaluation The automated judge favors the responses produced through Self-Refine.

**The numbers**

| System or setting | preference % |
| --- | --- |
| Direct generation | 25.4 |
| Self-Refine (this paper) | 74.6 |

The detailed dialogue experiment describes automatic evaluation on a test set of 342 instances using text-davinci-003 as judge. It also describes human comparison on 100 randomly selected test instances. A separate general human-evaluation description gives 150 examples for each dataset. These accounts should be retained as descriptions of their respective evaluations rather than treated as one uniform sample.

The authors’ manual inspection finds that revised replies tend to be more engaging, more interesting, and more elaborate. The first two qualities align with the feedback rubric. Greater elaboration needs more careful interpretation: additional detail may help in these comparisons, but length alone is not a universal measure of conversational quality.

#### Mathematical reasoning: the critic becomes the bottleneck

The reasoning evaluation uses GSM-8k, associated with [Training Verifiers to Solve Math Word Problems](https://md.research.elamur.ai/free/en/papers/cobbe-2021-training-verifiers-solve-math-word/). Following the program-aided approach described in the paper, answers are expressed as Python solutions. Feedback inspects those solutions for errors before revision.

In the main discussion, mathematical gains are smaller than in several other tasks. The authors attribute this to unreliable error detection. A solution can look consistent while containing a mistaken operation or an incorrect interpretation of the question. ChatGPT’s feedback indicates that no change is needed for 94% of instances, illustrating how the loop can stop before attempting a useful repair.

The appendix also compares Self-Refine with [Generating Sequences by Learning to Self-Correct](https://md.research.elamur.ai/free/en/papers/welleck-2022-generating-sequences-learning-self-correct/). Under the stated matching GPT-3 and GSM8K conditions, the earlier approach achieves 45.9% accuracy and Self-Refine achieves 55.7%. This is a particular controlled comparison, separate from the main cross-task claim.

GSM8K accuracy under the matched GPT-3 comparison Self-Refine exceeds the trained correction baseline in the reported setting.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Self-Correction | 45.9 |
| Self-Refine (this paper) | 55.7 |

Some mathematical experiments use correctness information to decide whether revision should continue. Such an oracle changes the information available to the procedure. It should therefore be distinguished from a loop that relies completely on its own judgment. The paper’s separate oracle analysis is especially useful for identifying why these variants behave differently.

#### Sentiment reversal: a coarse classifier misses the main distinction

Sentiment reversal asks for a passage to be rewritten with the opposite sentiment. The authors focus on reviews containing several sentences, rather than only sentence-level transformation. Their discussion places this task alongside [Delete, Retrieve, Generate](https://md.research.elamur.ai/free/en/papers/li-2018-delete-retrieve-generate-simple-approach/) and [Style Transfer Through Back-Translation](https://md.research.elamur.ai/free/en/papers/prabhumoye-2018-style-transfer-through-back-translation/).

An off-the-shelf classifier, Vader, provides a coarse check. For positive targets, both the GPT-3.5 baseline and Self-Refine reach 100% classification accuracy. For negative targets, the reported scores are 92% for GPT-3.5 and 93.6% for Self-Refine. These results show why class membership alone does not capture the whole experiment.

The preference evaluation asks about strength of alignment and more vivid language. A review can already count as negative while still being less emphatic or less expressive than another negative review. Self-Refine’s advantage on those criteria is therefore a different claim from improving positive-versus-negative classification.

This distinction matters for reuse. If an application only needs a passage to cross a classification boundary, the baseline may already satisfy it. If the application values rhetorical force, the richer preference assessment is more relevant. The paper evaluates both, and their outcomes should remain separate.

#### Constrained generation and acronym creation

CommonGen-Hard extends constrained [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/) from 3-5 supplied concepts to 20-30. The output must incorporate the concepts while remaining coherent and grammatical. This creates readily identifiable omissions: a critic can compare the draft with the required concepts and name what is missing.

The authors see this task as particularly favorable to refinement. An initial candidate has many requirements to satisfy and many possible acceptable realizations. A later draft can repair omissions without needing to discover a single uniquely correct sentence. Coverage is the reported automatic metric, although coverage alone does not establish coherence.

Acronym generation presents the opposite evaluation challenge. The dataset contains 250 acronyms after manual filtering. Feedback considers pronunciation, spelling, relation to the source title, connotation, and familiarity. These criteria involve tradeoffs, and several depend on preference rather than a mechanical correctness test.

The task therefore tests whether explicit multi-criterion criticism can guide a creative choice. It also exposes the need for output selection: a later acronym can improve one property and worsen another. The paper’s iteration analysis treats that fluctuation as a real feature of the task.

#### Readability and demonstrations beyond benchmarks

The readability experiment uses a random CodeNet subset of 300 programs. Human annotators rewrite a 60-example subset for comparison. The automatic measures concern meaningful variable names, comments per line, and the number of functional units. These are interpretable indicators, but each captures only part of readability.

Both critic and editor use text-davinci-003. The critic is tested with T=0.0 and T=0.7, while the editor always uses T=0.0. Across the revision process, the reported averages for all three measures increase. More varied criticism produces more naming changes and comments; greedy criticism produces more suggestions for modularization.

The authors also show website-generation examples involving a fictional ice cream business and a page about photosynthesis. Feedback proposes layout, typography, color, and content changes, and later outputs incorporate revisions. These examples demonstrate the breadth of artifacts the loop can manipulate. They are not a benchmark establishing a measured improvement in usability or learning.

### What the ablations show

#### Detailed criticism helps beyond the act of rewriting

The feedback ablation compares targeted criticism with generic advice and with iterative revision that receives no explicit critique. This is a direct test of whether the written feedback contributes anything beyond another generation opportunity.

For code optimization with ChatGPT, the reported task score is 27.5 with Self-Refine’s feedback, 26.0 with generic feedback, and 24.8 without feedback. The pattern supports a benefit from both having guidance and making it concrete. The gap is smaller here than in some of the subjective generation tasks.

For sentiment reversal, the corresponding discussion reports 43.2 with the method’s feedback and 31.2 with generic feedback, and describes the version without feedback as failing. These values belong to the preference-based task evaluation. They should not be confused with Vader’s classification scores.

For acronym generation with GPT-3.5, performance falls from 56.4 to 48.0 when actionable feedback is absent. The result is consistent with the difficulty of navigating several qualitative criteria without an explicit account of what needs attention. Iteration alone does not supply that account.

The sentiment appendix offers another comparison using an uninformative signal that merely indicates a problem. On sentiment preference, detailed feedback reaches 85%, while the reduced-feedback variant reaches 73%. On preference for dramatic expression, the corresponding figures are 80.09% and 58.92%. These controlled changes support the value of identifying words or phrases that need revision.

They do not establish that every explanation the critic writes is accurate. A detailed diagnosis can still be wrong. The ablation shows that the demonstrated form of targeted feedback is more useful on average than the weaker alternatives tested.

#### Additional rounds help, with diminishing returns

The iteration analysis averages results across ChatGPT, GPT-3.5, and GPT-4. In code optimization, the reported score moves from 22.0 for the initial candidate to 28.8 after three iterations. For sentiment reversal, it moves from 33.9 to 36.8. For constrained generation, it moves from 29.0 to 49.7.

These are different task scores, not a shared metric. Their common pattern is that revision can continue to help beyond the first edited candidate. The authors also observe diminishing returns: later rounds generally add less than early ones.

That finding supports an iterative procedure without supporting unlimited revision. Every extra round creates another opportunity to repair a defect, but also another opportunity to alter an acceptable answer unnecessarily. The acronym analysis makes this risk explicit because its criteria can move in opposing directions.

Numerical scores for separate acronym qualities allow the procedure to compare candidates across the trajectory. The relevant lesson is that generating and selecting are coupled. A method can produce a good intermediate answer and still return a worse result if it always takes the final candidate.

#### Refinement versus several independent attempts

To test the extra-sampling explanation, the authors compare Self-Refine with k=4 independent ChatGPT outputs. The human comparison asks whether the refined candidate can outperform all the initial alternatives.

The paper reports that people still prefer Self-Refine in this setting. This supports a role for directed editing: later generations can use information about a particular candidate’s weaknesses, whereas independent samples do not share such a diagnosis.

The comparison is informative but has a boundary. It tests the reported multiple-sample baseline, not every possible strategy for allocating the same resources. More elaborate sampling, ranking, or selection procedures are not established as inferior by this experiment alone.

#### Initial generation does not guarantee revision ability

Vicuna-13B can follow the initial task prompt but struggles to produce feedback in the required form. Even when supplied with oracle or hard-coded criticism, it often repeats its earlier answer or generates an irrelevant conversational continuation.

The authors suggest that its conversational training may limit generalization to these few-shot feedback and revision tasks. They also note that the same prompts were used across systems and that more prompt engineering might help. The observation is therefore evidence of a failure in the tested configuration, not proof that every smaller system must fail.

A mixed setup uses Vicuna-13b for initialization and ChatGPT for criticism and editing. On mathematical reasoning, the reported result rises from 24.18% to 40.5%. This demonstrates a possible hybrid arrangement, while departing from the central claim of improvement through one system’s own feedback.

#### Oracle checks reveal a recognition problem

Oracle feedback uses correctness information to permit revision only when the current mathematical answer is wrong. The appendix reports improvements of 4.8% for GPT-3 and 0.7% for GPT-4 under this adjustment.

The experiment helps separate recognizing a failure from repairing one. If a system wrongly declares its answer acceptable, the revision stage never receives an opportunity to help. An external correctness signal can change that decision without itself providing a full repair.

This is especially relevant to reasoning tasks, where a polished solution can conceal a subtle mistake. The oracle result supports adding reliable checks where available. It does not show that internal criticism supplies the same information.

#### Error analysis locates the weakest links

The authors manually examine 70 cases from code optimization and mathematical reasoning, split into 35 successes and 35 failures. Among unsuccessful cases, 33% involve feedback locating the problem incorrectly, 61% involve an unsuitable proposed fix, and 6% involve the editor mishandling useful feedback.

Within this selected sample, diagnosis is therefore the dominant source of failure. The editor frequently carries out what it is told; the problem is that the instruction can direct it towards the wrong change. This finding argues against evaluating the revision component in isolation from the critic.

Among successful cases, accurate feedback guides a precise repair in 61%. In 33%, the editor succeeds despite partly incorrect feedback. This suggests some ability to avoid taking every piece of advice literally, but it does not establish reliable protection against misleading criticism.

The separate dialogue analysis reports incorrect criticism in 25%, generic criticism in 30%, and incorrect scoring in 10% of its sample. Revision-stage problems include failing to withstand bad feedback in 10%, ignoring feedback in 25%, and introducing another problem in 20%. The authors also report robustness to incorrect or generic feedback in 60% of cases. These are task-specific observations, useful for identifying failure modes instead of estimating a universal error rate.

### Limitations

#### Limits the authors state

The main stated requirement is sufficient ability to follow instructions or learn behavior from prompt examples. Self-Refine depends on more than ordinary generation. The system must produce an appropriate critique, interpret that critique, and return an edited artifact in the expected form. The Vicuna experiment shows that these abilities cannot be assumed from a plausible initial answer.

The principal positive experiments use systems whose internals are not openly available. The authors note incomplete disclosure of matters such as pretraining data, size, and biases. This limits what can be inferred about why a particular system benefits and complicates exact reproduction. Releasing prompts, code, and outputs makes the procedure inspectable without revealing the full underlying training process.

Access also has a cost. The authors identify the need for funding to use the evaluated services. Because refinement makes repeated calls, practical adoption depends on whether better output justifies the additional effort. The paper demonstrates quality improvements, but does not provide a comprehensive economic evaluation of every setting.

All evaluated datasets are in [English](https://md.research.elamur.ai/free/en/topics/english/). The authors explicitly decline to assume the same benefits in other languages. Criticism and revision both depend on language capability, so success in English does not independently establish success in a language with different coverage.

The authors also identify a misuse concern related to [bias, fairness, and safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/). Prompted revision could be directed towards more harmful outputs, and the approach has no explicit general safeguard against that use. Including safety among a dialogue rubric’s criteria does not amount to a comprehensive safety mechanism.

#### Limits apparent from the experimental design

A careful reader should distinguish self-consistency from independent verification. The generator and critic share underlying capabilities and weaknesses. If the system misunderstands the task, it may endorse a draft built on that misunderstanding. The mathematical feedback results provide a concrete example of this general risk.

The same caution applies to numerical self-scores. Assigning a value to fluency, relevance, or acronym quality makes comparisons convenient, but does not calibrate the judgment against an external standard. Selecting the highest-scoring candidate can amplify a scoring mistake. The dialogue analysis’s incorrect-scoring category shows that this is an observed possibility.

Preference evaluation also has limits. Blind judging conceals which method produced an answer, which helps reduce one source of influence. However, the human judges are the authors, and the paper does not establish how a broad range of readers would judge every task. The automated judge is useful but only partially aligned with human judgments.

Some metrics reward features that can be increased without guaranteeing overall quality. Additional comments may help explain code, yet comment density alone does not establish maintainability. More functions can improve modularity or create unnecessary fragmentation. A higher ratio of meaningful names captures one useful aspect of readability without proving semantic preservation or ease of understanding.

Similarly, keyword coverage measures whether required concepts appear. It does not independently establish that their combination is natural or sensible. The paper’s task definition includes coherence, but a coverage improvement should remain a coverage result.

The procedure’s success also includes prompt design. Demonstrations are chosen or written to show appropriate criticism and repairs. Calling the method free of additional training is accurate; treating it as free of all human supervision would overlook that design effort. The experiments do not isolate how much each task’s results depend on the particular examples.

#### Reporting and scope need careful reading

Several task appendices describe configurations that differ from the general account. The iteration limit, initialization examples, evaluation judge, and output selection are not completely uniform. These differences do not negate the observed improvements, but they matter when describing exactly what was tested.

The confidence-interval reporting contains a further inconsistency. The table caption names 95%, while the accompanying prose names 99%. The authors report that almost all GPT-4 gains are significant, compared with 4 out of 7 datasets for ChatGPT and 3 out of 7 for GPT-3.5. Without resolving the confidence-level discrepancy, those statements should be attributed to the authors rather than strengthened.

Finally, the paper does not show that revision always improves an individual answer, that a fixed number of rounds is optimal, or that self-feedback can replace reliable external evidence. It establishes gains across the tested tasks and configurations, supported by analyses explaining several mechanisms and failure modes. That is a substantial result without requiring a universal theory of self-correction.

### What came after

#### Reflection, criticism, and verification became distinct questions

[Reflexion](https://md.research.elamur.ai/free/en/papers/shinn-2023-reflexion-language-agents-verbal-reinforcement/) provides the clearest direct comparison because Self-Refine discusses it as concurrent work. The authors describe Reflexion in terms of reflection during planning with ReAct, where an agent considers whether a step was performed appropriately and how to proceed. Self-Refine instead emphasizes revising a candidate through more structured, multi-criterion feedback. The distinction is between reflection that helps choose a subsequent action and criticism that directly guides an edit. Both make generated language part of the control process.

[Self-RAG](https://md.research.elamur.ai/free/en/papers/asai-2023-self-rag-learning-retrieve-generate/) identifies retrieval, generation, and criticism through self-reflection as parts of a learned arrangement. Its title places Self-Refine’s criticism question beside the question of when external information should enter generation. That is a useful conceptual extension: an answer may need a better revision, more evidence, or both. The citation relationship alone does not establish that Self-RAG preserves Self-Refine’s prompts, stopping rules, or training-free configuration.

[CRITIC](https://md.research.elamur.ai/free/en/papers/gou-2023-critic-large-language-models-self/) foregrounds tool-interactive criticism. This direction addresses the boundary exposed by Self-Refine’s oracle experiments: useful feedback need not come only from internal judgment. Tools can make a revision process a different kind of system by contributing information unavailable to a purely self-contained critique. The title supports that distinction, while the exact experimental gains and implementation details require their own account.

[Chain-of-Verification](https://md.research.elamur.ai/free/en/papers/dhuliawala-2023-chain-verification-reduces-hallucination-large/) connects repeated checking with hallucination reduction. Relative to Self-Refine, it directs attention towards verifying claims instead of improving an artifact across a broad qualitative rubric. The shared interest is in using additional generation stages to examine an initial answer. It would be unwarranted to infer from that shared interest that any internally produced check is reliable.

#### Reasoning sharpened the challenge to self-correction

[Large Language Models Cannot Self-Correct Reasoning Yet](https://md.research.elamur.ai/free/en/papers/huang-2023-large-language-models-cannot-self/) makes the central qualification explicit in its title. It belongs alongside Self-Refine’s modest reasoning gains and its finding that a system may fail to notice an error. The relevant question is conditional: what information does the critic receive, how is correctness assessed, and what changes when an external signal is available?

This direction should not be treated as automatically contradicting improvements in dialogue, sentiment, or keyword coverage. Those tasks expose different kinds of defect. An omitted concept is available for direct comparison with a requirement; a mathematical misunderstanding may survive both generation and criticism. Self-Refine’s own experiments already suggest that success depends on the evaluability of the failure.

[Improving Factuality and Reasoning through Multiagent Debate](https://md.research.elamur.ai/free/en/papers/du-2023-improving-factuality-reasoning-language-models/) and [Encouraging Divergent Thinking through Multi-Agent Debate](https://md.research.elamur.ai/free/en/papers/liang-2023-encouraging-divergent-thinking-large-language/) identify debate as another way to organize additional reasoning. Their titles point toward exchanging perspectives among participants rather than repeatedly assigning roles to one system. The supplied citation relationship does not establish a comparative advantage over Self-Refine, but it locates an important alternative design question: whether criticism benefits from a different participant or perspective.

#### Revision became part of a broader computation question

[Scaling LLM Test-Time Compute Optimally](https://md.research.elamur.ai/free/en/papers/snell-2024-scaling-llm-test-time-compute/) places additional computation during use at the center of its title. Self-Refine supplies one concrete allocation: spend effort diagnosing and editing an existing answer. Its comparison with independent samples anticipates the need to ask which use of additional computation is worthwhile, rather than treating every extra call as equivalent.

[Large Language Monkeys](https://md.research.elamur.ai/free/en/papers/brown-2024-large-language-monkeys-scaling-inference/) highlights repeated sampling as another allocation. This makes it conceptually relevant to Self-Refine’s multiple-output baseline. Sampling searches for a better candidate through additional attempts; refinement conditions a new attempt on a particular candidate and its criticism. Neither title nor citation alone settles which arrangement is best for a given task.

[Large Language Models as Optimizers](https://md.research.elamur.ai/free/en/papers/yang-2023-large-language-models-optimizers/) broadens the framing towards optimization. Self-Refine can be understood as repeatedly proposing an artifact, evaluating its shortcomings, and proposing another. That resemblance is useful, but its feedback is not a guaranteed objective function and its edits need not improve monotonically. The optimization perspective makes the choice of evaluation signal especially important.

[DSPy](https://md.research.elamur.ai/free/en/papers/khattab-2023-dspy-compiling-declarative-language-model/) places self-improvement within pipelines of language-system calls. Self-Refine already shows why a sequence of calls can have behavior that a single call does not: each stage produces information for the next. The later title signals a broader pipeline perspective, while the evidence here does not support attributing particular compilation procedures or results to that connection.

Across these citing directions, the lasting question is how to turn additional opportunities to generate into dependable improvement. Self-Refine’s contribution is to make a specific answer available as an object of criticism, then make that criticism available to an editor. Its strongest evidence concerns the usefulness of this explicit intermediate feedback. Its most important caution is equally concrete: when diagnosis is wrong, a capable editor can still be led toward the wrong repair.

## Cite

Cite as Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta, Bodhisattwa Prasad Majumder, Katherine Hermann, Sean Welleck, Amir Yazdanbakhsh and Peter Clark. 2023. Self-Refine: Iterative Refinement with Self-Feedback. arXiv:2303.17651.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2303.17651](https://doi.org/10.48550/arxiv.2303.17651) · [arXiv 2303.17651](https://arxiv.org/abs/2303.17651)

```bibtex
@misc{madaan2023self,
  title = {{Self-Refine: Iterative Refinement with Self-Feedback}},
  author = {Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta, Bodhisattwa Prasad Majumder, Katherine Hermann, Sean Welleck, Amir Yazdanbakhsh and Peter Clark},
  year = {2023},
  doi = {10.48550/arxiv.2303.17651},
  eprint = {2303.17651},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2303.17651}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
