Elamur Research

Self-Refine: Iterative Refinement with Self-Feedback

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

Summary

A reply can follow a conversation without addressing what the speaker cares about. A program can return the right result and still spend most of its time doing avoidable work. Self-Refine asks what happens when a language model gets a chance to examine an answer it has already produced. The authors turn that examination into a distinct step. The system reads the original request and its draft, writes feedback about what could be improved, and then uses that feedback to make another attempt. The process can repeat when the revised answer still needs work.

Each job has its own prompt. Worked examples show the system how to answer a request, how to identify a particular defect and propose a change, and how to turn that advice into a new draft. This use of examples during generation is called few-shot learning. Previous drafts and critiques can travel forward in the prompt, allowing the editor to see what has already been tried. A rule suited to the task decides when to finish. Some experiments return the latest draft, while others use scores from the feedback to select a revision. All of this takes place during use, with the underlying parameters fixed and without a separate training stage.

The authors test 7 tasks, covering conversation, program speed and readability, school mathematics, review rewriting, acronym creation, and sentences with required concepts. The main comparison gives GPT-3.5, ChatGPT, and GPT-4 a direct attempt and measures what changes when the same system gets a critique-and-edit loop. The programming experiments also include Codex. The abstract reports an average absolute gain of about 20% across the task measures. On the PIE programming benchmark, for example, the share of programs optimized by GPT-4 rises from 27.3% to 36.0%. Other experiments ask people or an automated judge to choose between candidates, so the reported gains cover several kinds of improvement.

The experiments make the role of criticism clearer. In the tested comparisons, a critique that identifies a concrete problem and proposes a remedy helps more than a broad request for improvement or another pass with no explicit feedback. Later rounds can add gains, with the largest changes generally arriving early. Mathematics reveals a sticking point. A solution can look convincing enough that the system sees little reason to revise it, even when the answer is wrong. The authors get larger gains in some settings when they supply a correctness signal. A separate test with Vicuna-13B also shows that producing a plausible draft and following instructions to critique and edit it are distinct abilities. The authors release the implementation, data, prompts, and generated outputs.

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

Self-Refine tests whether a language model can improve its answers by critiquing and revising them, and shows where that process breaks down. · about 39 minutes to read

The problem and its context

A draft gives the system something to inspect

A request for a conversational reply is easy to understand in general and surprisingly hard to satisfy in detail. A satisfactory reply may have to acknowledge a concern, offer relevant information, and leave room for the speaker to respond. A fluent sentence can accomplish some of those jobs while neglecting others. The introduction puts this kind of open-ended request alongside another case familiar to people who write software. Once a program works, a reader can still ask whether the algorithm does unnecessary work or whether someone else could follow the implementation. These questions concern different properties of a candidate and can lead to different edits. Dialogue systems · Code & programming languages

The paper treats the first draft as an opportunity to make those questions more concrete. Before there is a reply, an instruction like “show that you understand the speaker” leaves many decisions open. With a reply in hand, a critic can ask which part of the conversation it overlooked. A runtime concern likewise becomes easier to discuss once there is a specific operation to examine. This is the point of the authors’ analogy with human writing and programming. Someone rereading a short request can spot an unnecessarily abrupt turn of phrase. A programmer revisiting a working solution can see that its search strategy is more expensive than the problem requires. In both cases, the artifact gives the reviewer a place to start.

For generated outputs, that analogy motivates a testable question. The system may have difficulty composing an answer that satisfies every part of the request in one pass. Given the answer afterward, it may be able to recognize a shortcoming and describe a change that would help. Those abilities need to come together for self-revision to work. An astute diagnosis has little effect if the editor merely restates it, and a capable editor may make matters worse if the diagnosis is mistaken. The paper’s organization around separate calls is what makes it possible to examine these failures individually.

The tasks also differ in the kind of evidence that makes a defect visible. A sentence with a supplied concept list offers an immediate question about which concepts are absent. Helpfulness in an open conversation takes interpretation. A mathematical solution may contain a mistaken assumption that survives a quick reading of the subsequent calculations. The paper groups these cases under generation because each produces a candidate that can be revised. The variety matters because a procedure that depends on identifying defects may fare quite differently across them.

Where earlier approaches got their feedback

The related-work discussion treats revision as an established technique. It describes earlier uses of written feedback in summarization, script generation, and program synthesis, among other tasks. The source of information can be a person familiar with the task, a signal calculated by a program, or an existing record of edits. Human comments can name problems that a scalar reward would leave implicit. They can also take substantial effort to collect. A compiler supplies detailed diagnostics for a particular class of programming problems, while Wikipedia edit histories provide examples of how written material has been changed. What such sources can tell an editor depends on how the source was obtained and what it observes.

Training a dedicated editor is one way to put these sources to use. In the paper’s account of PEER and related supervised work, pairs of feedback and revised text can teach a refiner how to perform edits. Other approaches generate examples automatically to reduce the burden of gathering them. The authors emphasize that learning a refiner for each new domain still involves a separate training procedure. They give particular attention to Self-Correction, which learns to revise without first writing an explicit critique for each candidate. That comparison motivates a question about where to put the work of correction. It can be learned as a specialized editing behavior or demonstrated in the prompt of a system already able to produce text. PEER · Generating Sequences by Learning to Self-Correct

Another route uses a reward to change how future outputs will be generated. The paper describes reinforcement learning approaches in which a scalar signal is used to optimize parameters. A reward can register how well an output meets an objective. To correct an intermediate answer with Self-Refine, the system instead receives a written account of an issue with that particular answer while the task is still in progress. The distinction concerns when the signal is used and what information it contains. The paper cites both instruction-following work that uses human feedback and programming work that uses reinforcement learning. Training Language Models to Follow Instructions with Human Feedback · CodeRL

The authors also describe work that assigns feedback to a language system. One cited approach uses automated feedback alongside external knowledge. Another studies critiques written to assist human evaluators. Re3 uses prompted feedback and editing in story generation. These precedents place Self-Refine’s novelty in the combination it tests across tasks. The generator produces the criticism of its own candidate and undertakes the edit itself, with the roles specified at the time of use. Each task can supply its own criteria and examples while reusing this arrangement. Check Your Facts and Try Again · Self-Critiquing Models for Assisting Human Evaluators

What a written critique contributes

A quality score can tell an editor that a draft did poorly on relevance. An explanation can say which part of the original question went unanswered. If the critic can also suggest what to address, the editor has a concrete task. This is why Self-Refine makes feedback an output in its own right. The editor receives ordinary language that can refer directly to a phrase, a program operation, or a requirement in the input. A prompt can ask for several judgments together, such as whether a reply is relevant and whether it is sufficiently informative.

Scores still have a role. A set of scores can register several qualities of an acronym, and a score can help decide when further effort is unlikely to be worthwhile under the task’s rule. What a score does for the procedure depends on its purpose. Selection needs some basis for comparing candidates. Revision needs enough information to change the candidate. The paper’s prompts can ask for both kinds of information in the same feedback, with an explanation connecting each judgment to something in the draft. In the sentiment and acronym discussions, the authors relate this format to chain-of-thought prompting, which elicits intermediate reasoning in text.

The method, step by step

From the request to the next draft

Consider a task that supplies concepts for a sentence. The first call attempts the sentence. The next call sees the concept list and the resulting sentence together. It can say which concepts are absent and flag an awkward connection between ideas that do appear. The editing call then has the same request, the candidate, and an account of what needs attention. Its job is to produce a sentence that meets more of the request while still reading coherently. The edited sentence can be reviewed on the next pass. This example captures the method’s basic division of labor in constrained text generation.

The authors specify the roles through examples in the prompts. An example of a good reply to a conversation is useful to the writer. The critic benefits from seeing an imperfect reply and an explanation of its weaknesses. The editor benefits from seeing what that explanation leads someone to change. The demonstrations therefore contain different material at each stage. A single underlying system can take each role because its input and the expected form of its output change from call to call. The method draws on the earlier work Language Models Are Few-Shot Learners.

How Self-Refine produces and revises an answer

The steps in order.

How Self-Refine produces and revises an answerStep 1: Take the task input1. Take the task inputStep 2: Produce an initial candidate2. Produce an initial candidateStep 3: Identify weaknesses and propose changes3. Identify weaknesses and propose changesStep 4: Check the task’s stopping rule4. Check the task’s stopping ruleStep 5: Edit using the critique and earlier attempts5. Edit using the critique and earlier attemptsStep 6: Repeat the review or return a candidate6. Repeat the review or return a candidate

How a prompt becomes a candidate

The first call produces an answer from the generation prompt and the current input.

y₀ = ℳ(p_gen ∥ x)

The symbol x denotes the current task input, such as the conversation so far or a program to optimize. The task’s generation prompt is p_gen. The operator ∥ joins the pieces in order, giving the system ℳ a single input. Parentheses enclose what goes into the call, and the equals sign identifies the answer it produces as y₀. The subscript ₀ marks the starting candidate, before any feedback has been applied.

When the generation prompt uses worked examples, each has the following form.

⟨x⁽ᵏ⁾, y⁽ᵏ⁾⟩

The angle brackets enclose a demonstration and the comma separates its fields. The superscript ⁽ᵏ⁾ identifies which example the fields belong to. In that example, x⁽ᵏ⁾ is a task input and y⁽ᵏ⁾ is an accompanying answer. These examples appear in the prompt before the actual request. The system generates a new answer conditioned on them, keeping its parameters fixed. The general description also allows a generation instruction, and the readability variant can start directly from supplied code.

What the feedback call receives

With a candidate available, Self-Refine asks the same system to review it.

fb_t = ℳ(p_fb ∥ x ∥ y_t)

Here t identifies the current pass through the procedure. The input remains x, y_t is the current candidate, and p_fb is the prompt that demonstrates how to review it. The join operator ∥ places those pieces in sequence. The call to ℳ returns fb_t, the critique for candidate y_t. Including the original request lets the critic examine how well the candidate fits the particular task.

A demonstration for this call includes the critique itself.

⟨x⁽ᵏ⁾, y⁽ᵏ⁾, fb⁽ᵏ⁾⟩

In this ordered group, x⁽ᵏ⁾ and y⁽ᵏ⁾ are the example input and candidate, and fb⁽ᵏ⁾ is the example feedback about that candidate. The index k keeps the fields of one demonstration together. A demonstration can illustrate how to give reasons for a score, point out an omitted concept, or direct attention to a specific part of a program.

The authors ask for two properties in the feedback. Specificity concerns where the problem lies. In a program, the relevant passage could be a loop that recomputes the same quantity. In a review, it could be a phrase that still conveys the original attitude. Actionability concerns what the editor can do about it. Suggesting that a repeated calculation be replaced by a direct expression has this property. A judgment about efficiency alone leaves the editor to work out both the source of the cost and what alternative could help.

One illustration uses a loop that sums consecutive integers. The advice identifies that loop and proposes this expression for the sum.

(n(n + 1))/2

Here n is the last integer being added. The plus sign adds 1 to n, the juxtaposition of n and the inner parentheses indicates multiplication, and the slash divides the resulting product by 2. The expression illustrates the content of one critique. In the method itself, the feedback is generated anew for the particular candidate and can cover several parts of the artifact.

What goes into the edit

The simplest expression of the editing call uses the current draft and the critique that immediately precedes it.

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

The prompt p_refine demonstrates revision, x is the original input, y_t is the draft under review, and fb_t is its feedback. The operator ∥ joins them for the call to ℳ. The result y_(t+1) is the candidate at the following pass, with t+1 identifying the successor to t. The requested output is an edited artifact the next feedback call can review.

Its demonstrations can show a full transition from a candidate to its revision.

⟨x⁽ᵏ⁾, y_t⁽ᵏ⁾, fb_t⁽ᵏ⁾, y_(t+1)⁽ᵏ⁾⟩

The demonstration indexed by k contains the task input x⁽ᵏ⁾, a candidate y_t⁽ᵏ⁾, a critique fb_t⁽ᵏ⁾ for that candidate, and the edited version y_(t+1)⁽ᵏ⁾. The subscripts mark the draft before and after the edit within the demonstration. The last field shows what following the critique looks like in practice. An editor can see, for example, how an explanation about an awkward phrase leads to a replacement that fits the original passage.

For iterative use, the paper gives a fuller form of the revision prompt.

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

The revision prompt p_refine and original request x still come first. The first draft is y₀ and its critique is fb₀. The ellipsis stands for the intervening draft-and-critique pairs in their original order. The sequence ends with the current y_t and fb_t. The join operator ∥ combines all these elements for ℳ, which returns the next candidate y_(t+1). Previous advice is available because the running record is carried into the call.

Suppose an edit in an early round improved a reply’s relevance, and a later critique calls for a warmer tone. The editor has access to both the earlier change and the newer request. The authors give avoiding repeated mistakes as a reason to keep the record. A consequence of this design is that the record can also include mistaken critiques. The next call has that material available alongside any accurate observations it received.

When the process finishes

The paper represents the task-specific stopping decision as a function of the feedback and the current pass.

stop(fb_t, t)

The function stop determines whether to end the loop. Its first argument, fb_t, is the feedback just produced, and its second argument, t, is the iteration index. An implementation can use t to enforce a maximum. It can also interpret a signal carried in fb_t, such as a numerical judgment about whether another edit is warranted. The prompt and the application determine what such a signal means.

The main evaluation describes a ceiling of 4 feedback-and-edit rounds. The detailed dialogue setup gives a maximum of 3, sentiment reversal allows up to 4, and the separate readability study uses 5 because of its budget. In sentiment rewriting, reaching the requested sentiment is the stated stopping goal. The math appendix also describes a setting with an external correctness label, which changes how the process decides to continue. A known answer supplies a different kind of signal from an internally generated assessment of the draft.

The general procedure returns the final revision. In the detailed dialogue setup, the authors choose the edited response with the highest total feedback score and leave the original draft out of that selection. For acronyms, they describe selecting by the maximum score recorded across the iterations. The reason is easy to see in that task. If the editor makes a candidate easier to say and simultaneously makes its relationship to the title harder to recognize, choosing the newest version can give up an advantage an earlier version held. The score provides a rule for choosing among the drafts the loop has made available.

How the authors assembled the demonstrations

For some tasks the authors could start from examples that already existed. The code optimization prompt uses slow programs and their faster counterparts from the PIE work. The explanations released with those pairs supply material for the critique and editing prompts. In mathematics, the generation examples come from the program-aided approach called PaL. For the other calls, the authors choose training problems on which Codex had failed with those prompts, then write explanations and corrected solutions. A failed attempt is useful here because it gives the example critic an actual mistake to discuss.

In other tasks, the authors construct candidate defects. For sentiment rewriting, they make positive and negative versions from a training review, write guidance for reversing each version, and use that guidance when preparing feedback. For CommonGen-Hard, the authors supply ten examples for initial generation. They also alter six training examples for use in demonstrating feedback, creating incomplete or incoherent responses and identifying the omissions or incoherence. The task’s input contains the required concepts, so the example can show exactly how the candidate falls short.

In acronym generation, the initial prompt uses 15 pairs of titles and acronyms. The authors generate example candidates with ChatGPT, assess them against a rubric, and write revised versions. The feedback and revision prompts use 3 such demonstrations. The dialogue examples likewise pair contexts and replies with scores, explanations, and edits. The detailed dialogue setup describes 3 examples for initialization and mentions 6 feedback examples in its account of the module. The broader prompt-construction appendix describes sampling six examples for initial generation. The paper gives both accounts for dialogue, with differing initialization counts.

The wording about supervision is best understood at the level of how these examples are used. They are chosen or written to demonstrate the behavior the authors want. At run time the critique comes from the system. The demonstrations go into its context, and Self-Refine does not use them in an extra supervised training procedure or in reinforcement learning. This leaves a design task for the prompt author, visible in the examples of what to notice and how to revise it.

When the starting draft is supplied

For code readability, the input already contains the program the authors want to improve. The first call in the research procedure is therefore a critique of that program. The appendix writes the first review as follows.

c₁ = critique(y₀)

The symbol y₀ denotes the supplied program. The function critique is the prompted call that reviews the code, and its output c₁ contains the first set of readability suggestions. The subscripts mark the original code and the first review of it.

y₁ = editor(y₀, c₁)

The function editor receives the original program y₀ and the review c₁ as its two arguments. It returns y₁, the program after the first edit. The comma marks the distinction between the artifact and the advice supplied with it.

c_(k+1) = critique(y_k)

Here k indexes the current edition of the program. The current version y_k is passed to critique, which produces the next review c_(k+1). The increment k+1 indicates that the feedback is for the next editing step.

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

In turn, editor uses y_k and c_(k+1) to produce y_(k+1), the next version of the code. Repeating this pair of operations N times gives the readability experiment its revision sequence, where N is the specified number of rounds. Both operations in that experiment use text-davinci-003. The prompts assign the roles and the decoding settings control how the two calls produce their outputs.

Experiments and results

How the paper measures improvement

The central experiment compares a direct answer with the outcome of continuing from an answer through the feedback and editing calls. GPT-3.5, denoted by text-davinci-003 in the paper, is among the starting systems. ChatGPT is represented by gpt-3.5-turbo, and the authors also use GPT-4. Codex, represented by code-davinci-002, appears in the programming comparisons. The main direct baseline for each system uses the initial task prompt. This lets the authors ask what the prompted procedure adds when the source of the first answer is held fixed. GPT-4 Technical Report · Evaluating Large Language Models Trained on Code

The tests maintain few-shot feedback and editing prompts even for systems that readily follow instructions. The authors reuse earlier generation prompts where available, including the ones for program optimization and math, and build demonstrations for other tasks. They also compare against additional few-shot and fine-tuned alternatives in the programming and math appendices. Fine-tuning here means adapting parameters through training. The paper’s primary same-system comparisons answer a different question from those broader benchmark comparisons. They measure the effect of extending an existing generation workflow with opportunities to critique and edit.

The experiments use measurements appropriate to the individual tasks. Mathematical solve rate counts how often an answer is correct. The optimization rate measures how often an input program is successfully optimized. Concept coverage captures how much of the supplied list appears in a generated sentence. These outcomes are directly defined by the task. For decisions such as whether an acronym is appealing or a conversational reply fits the context, the paper relies on preferences. The abstract’s approximately 20% absolute average improvement summarizes this mix of measures. It represents the paper’s overall task-performance figure, with a different meaning from a solve rate on a single benchmark. Evaluation & benchmarks

In the general human evaluation, the authors serve as judges. A judge sees the instruction, the input, and a pair of outputs, with the producing method concealed. The preferred output is the one the judge considers better aligned with the task. The general human-evaluation appendix describes 150 examples per dataset for its A/B comparisons. Some task-specific evaluations make room for a tie or for accepting both outputs. The denominator and decision options matter when interpreting a reported preference. For example, a candidate can be favored in a pair even when both options have flaws.

The authors also prompt GPT-4 to judge pairs. For a review, the judge assesses alignment with a target sentiment. For a dialogue reply, it evaluates the response in context. For an acronym, it considers how it sounds, how it is spelled, how it relates to the title, and the associations it carries. The prompts ask for a short rationale and a decision, with options for outcomes such as a tie. According to the authors, the correlations with human preference were 82% on sentiment reversal, 68% on acronym generation, and 71% on dialogue response generation. These are figures about the proxy evaluation in each task, separate from the preference scores for any generation system.

Optimizing an already functional program

In Performance-Improving Code Edits, or PIE, the aim is to speed up a program that already performs its intended function. The starting program gives the generator a known computation to preserve. An initial optimization may change the way the program reads its input and leave an expensive algorithm intact. A critique of that output can ask which operation accounts for the cost and suggest a way to do less work. The task metric records the percentage of programs optimized, so the effect of refinement is judged through the benchmark’s performance objective.

The main GPT-4 comparison reports 27.3% of programs optimized by direct generation and 36.0% with Self-Refine. The authors state the absolute gain as 8.7%. The comparison is about the share of qualifying programs across PIE, distinct from the speedup of any particular program.

PIE benchmark, percentage of programs optimized by GPT-4

More programs meet the optimization objective when GPT-4 reviews and revises its edits.

PIE benchmark, percentage of programs optimized by GPT-4Direct GPT-4: 27.3Direct GPT-427.3GPT-4 with Self-Refine (this paper): 36.0GPT-4 with Self-Refine (this paper)36.0
The numbers
System or settingprograms optimized %
Direct GPT-427.3
GPT-4 with Self-Refine (this paper)36.0

A coin problem illustrates what the later call can change. The first suggested edit leaves a search through combinations of coins essentially in place and concentrates on input handling. The critique identifies the nested search as the expensive operation. The revised approach uses dynamic programming, keeping results for smaller parts of the computation so they can be reused. The paper describes the revised program’s running-time growth with this expression.

𝒪(amount × coins)

The symbol 𝒪 describes the order of growth of the running time in this example. The term amount refers to the target amount in the coin problem, coins represents the coin choices considered by the computation, and × denotes multiplication. This example illustrates a change to the algorithm instead of a change to its presentation.

The authors report similar trends with Codex and describe gains of up to absolute 13% for Codex in their introduction to the programming experiments. Their PIE appendix also compares against human references, earlier baselines, fine-tuned PIE systems, and Scalene. It describes Self-Refine as using at most 4 samples in that comparison, alongside alternatives using 16 and 32 samples. Those figures refer to the samples used by the systems in the comparison. Computational work also depends on the length and type of each call.

Replying to an open conversation

The dialogue task uses FED, a collection of conversations between people or between a person and a system. FED contains annotations about qualities of individual turns and whole conversations. In the paper’s generation task, the input is the preceding conversation and the output is a proposed next reply. The ability to choose among many plausible next turns makes it practical to review the candidate against several criteria. It also makes a reference answer a limited basis for evaluation. Unsupervised Evaluation of Interactive Dialog with DialoGPT

The feedback prompt organizes the review around 10 qualities. Relevance and consistency concern fit to the exchange. Informativeness and specificity concern what the response actually contributes. Helpfulness and engagement address whether the contribution aids the speaker and supports further conversation. The rubric also asks about interest, fluency, safety, and whether the response shows an understanding of the person’s situation. Feedback can give an explanation for a low score, which can guide an edit toward a missed point in the conversation.

In the main results discussion, the GPT-4 preference comparison gives 25.4% to direct generation and 74.6% to Self-Refine. The paper reports the gap as 49.2%. These are the shares associated with the competing replies in an automated preference evaluation. They concern how the judge chooses among the answers it sees.

FED dialogue responses, GPT-4 preference comparison

The automated preference judge chooses revised replies more often.

FED dialogue responses, GPT-4 preference comparisonDirect generation: 25.4Direct generation25.4Self-Refine (this paper): 74.6Self-Refine (this paper)74.6
The numbers
System or settingpreference %
Direct generation25.4
Self-Refine (this paper)74.6

The detailed FED setup also describes a test using text-davinci-003 as an automated evaluator, with no examples in the judging prompt. That account gives 342 test instances for automated evaluation and 100 randomly selected test instances for a human comparison. The human judges see the quality criteria and may accept both responses when they have difficulty choosing. These sample descriptions appear in the task-specific discussion alongside the general evaluation protocol. In their manual inspection, the authors observe that revised replies are typically more engaging and interesting, and tend to be more elaborate. Elaboration describes a change in the replies the authors saw. The preference comparisons concern how well those replies serve the particular exchange.

Solving word problems in Python

The reasoning task uses GSM-8k, a benchmark of grade-school mathematics problems. Following PaL, the authors express solutions as Python. A generated program renders the interpretation of the word problem and the intended computation in a form the critic can examine. The judge of final task success is whether the answer solves the problem. The benchmark therefore provides a way to distinguish an acceptable answer from an impressive-looking attempt. Training Verifiers to Solve Math Word Problems

In one example a price relationship between cups and plates is mistranslated into an assignment that equates the two unit prices. The feedback notices the mistaken equality and directs attention to the relationship between quantities and total costs. This shows what targeted mathematical criticism can look like. It also shows how much depends on the critic’s reading of the original question. An internally consistent calculation can be wrong from its first assumption onward. The relevant change begins with repairing the interpretation that produced the calculation.

Overall, the main reasoning gains are modest relative to several other tasks. The authors report that for 94% of the instances in their ChatGPT feedback example, the system indicates that the solution looks satisfactory. That is the frequency of a particular kind of feedback, regardless of the true correctness of each candidate. It helps explain why the loop can accomplish little in math even when a repair is possible. An editor has less opportunity to act when the critique gives it no reason to reopen the solution.

The appendix gives a specific comparison against the earlier Self-Correction procedure. Under the stated GPT-3 setup with matching settings on GSM8K, Self-Correction reaches 45.9% accuracy and Self-Refine reaches 55.7%. This comparison tests the complete procedures as configured there. The paper also describes math experiments that use the known correctness label to decide whether to continue. That control signal is part of those conditions and is considered separately in the analysis.

GSM8K accuracy in the matched GPT-3 comparison

Self-Refine attains higher accuracy in this comparison with the earlier Self-Correction procedure.

GSM8K accuracy in the matched GPT-3 comparisonSelf-Correction: 45.9Self-Correction45.9Self-Refine (this paper): 55.7Self-Refine (this paper)55.7
The numbers
System or settingaccuracy %
Self-Correction45.9
Self-Refine (this paper)55.7

Reversing a review’s sentiment

In the sentiment task, the authors ask for a passage to be rewritten so that its attitude changes from positive to negative or from negative to positive. The unit is a review spanning several sentences. This gives the editor more than a single conspicuous adjective to consider. A rewrite may need to trace the original stance through the whole passage and decide where it is still expressed. The paper places this setup alongside earlier style-transfer work that mostly treats sentiment at the sentence level. Delete, Retrieve, Generate · Style Transfer Through Back-Translation

The authors check the target polarity with Vader, a sentiment classifier. On reviews rewritten to be positive, both GPT-3.5 and its Self-Refine variant reach 100% classification accuracy. On the negative-target rewrites, GPT-3.5 scores 92% and Self-Refine scores 93.6% on that check. In this part of the experiment, the outcome is whether the classifier assigns the requested category to the rewritten text. The high figures for the direct system show that crossing into the target category is usually within its reach.

The preference comparisons ask a finer question about the language. A judge can compare how strongly each review expresses the target attitude, and a separate evaluation considers how vivid or dramatic the wording is. A mildly disappointed review and an emphatically negative one can both count as negative under the classifier while earning different judgments from a reader. The authors use automated and human comparison to assess such differences between rewrites. The feedback demonstrations show how to discuss words or phrases that could move the review further towards the desired effect.

Creating acronyms and satisfying many constraints

For acronym generation, the authors obtain a collection of 250 acronyms after manually removing entries they considered offensive or uninformative. The task uses a title or phrase as the starting point for generating a suitable short form. A candidate needs a recognizable connection to the title while remaining reasonably easy to pronounce and spell. The feedback rubric also considers connotation and familiarity. The system gives reasons for its scores, which lets an edit respond to a particular weakness. Final preferences come from human evaluation and from the automated comparison, whose prompt names criteria related to pronunciation, spelling, relevance, and connotation.

An acronym that is easy to say can still have a weak relation to the title. A revision that brings in a more recognizable part of the title can make the candidate harder to pronounce. This makes the task a test of how a revision process handles competing qualities. Scoring previous candidates gives the procedure alternatives to taking whatever came out of the final edit. In the paper’s main results, acronym generation is among the preference tasks for which the authors describe substantial benefits from refinement. The ablation gives a closer look at how much targeted feedback contributes.

CommonGen-Hard supplies a different kind of challenge. It increases the number of concepts to incorporate from 3-5 in CommonGen to 20-30. The requested result is a coherent, grammatical sentence involving those concepts. The automatic metric is coverage, measuring which supplied concepts the sentence incorporates. Many sentences could satisfy the same request. An editor can therefore look for a way to include an omission while keeping a portion of the earlier sentence or restructuring the whole idea.

The authors report that constrained generation is among the tasks with the largest gains over direct generation. Their explanation is that a long concept list creates more opportunities for omission and that the space of possible sentences gives revision room to find another arrangement. A critique can name the missing elements in terms that already occur in the request. It can also discuss why a sentence is incoherent, although the coverage measure answers the question about inclusion specifically. Their separate iteration analysis traces how average coverage changes as the procedure has more opportunities to revise.

Cleaning up existing code

The readability study takes difficult-to-read competitive programming snippets from CodeNet. Self-Refine works on a random subset of 300 examples, starting its review from the supplied code. Human annotators rewrite a 60-example subset for comparison. This lets the authors examine edits to the same material made by the prompted procedure and by people instructed to improve readability. CodeNet

One heuristic measures the fraction of distinct variables with names judged meaningful in context. A prompted system identifies the distinct variables and the ones it considers well named. Another measure counts comment pieces per line of code. A third counts function units to track whether code is broken into smaller functional pieces. The measures reflect choices a reader might see in an edited program. Clear names can make program state easier to follow, while comments or function boundaries can help explain the organization of the computation.

For criticism, the authors compare temperatures of 0.0 and 0.7. In this appendix, 0.0 denotes greedy decoding and 0.7 is used to sample more varied suggestions. The editor always uses 0.0. The authors report increases in the averages of all the readability measures over the sequence of edits. Sampling in the critique leads to more changes involving meaningful names and comments. Greedy criticism more frequently suggests edits involving modularization.

On the 60-example human comparison, the authors report that the last revision with critique temperature 0. Compared with the human edits, 7 averages more variables with meaningful names, more function units, and slightly more comments. With critique temperature 0.0, the final versions have fewer meaningfully named variables and fewer comments per line than the human edits, along with more function units. These are comparisons on the particular heuristics. The paper illustrates the editing process with densely written code that is initially adjusted through indentation and ultimately rewritten as a sequence of simpler operations.

How far the main results extend

The authors report that the main comparisons improve on direct generation across the tasks and that GPT-4 with refinement generally leads the corresponding GPT-3.5 and ChatGPT workflows. They observe this even in some comparisons where GPT-4’s direct starting point is lower. The statistical appendix reports significant gains for almost all of the GPT-4 comparisons, for ChatGPT on 4 out of 7 datasets, and for GPT-3.5 on 3 out of 7 datasets. The paper describes these in connection with Wilson confidence intervals, which express uncertainty around estimated proportions. Its prose and table caption give different confidence levels, so these summaries are best read as the authors’ reported significance counts.

The website examples explore a kind of output beyond the benchmarks. ChatGPT starts with a simple layout and then suggests changes to elements such as color, type size, copy, and spacing. The ice cream parlor example incorporates a revised heading treatment and additional promotional text. The photosynthesis example uses feedback on legibility and presentation, as well as a request for more explanatory content. These examples show the procedure acting on artifacts that combine content and layout. The evidence consists of initial and edited designs with their feedback, giving individual cases to inspect alongside the benchmark outcomes.

What the ablations show

Reviewing is more useful when the advice identifies a change

The feedback ablation varies what goes into the editing stage. The full procedure supplies a critique aimed at a specific problem and a possible repair. The generic version gives broad direction, and the no-feedback version still allows repeated editing while omitting the written diagnosis. This design tests whether the feedback contributes to refinement beyond the opportunity to produce another candidate.

On PIE, where the ablation uses ChatGPT, the percentage of programs optimized is reported as 27.5 with targeted feedback, 26.0 with generic feedback, and 24.8 with no feedback. For sentiment reversal with ChatGPT, the reported preference-based task score is 43.2 for the full procedure and 31.2 with generic feedback. The authors describe the no-feedback sentiment condition as failing. For acronym generation with GPT-3.5, they report a decline from 56.4 to 48.0 on the preference-based task measure when actionable feedback is absent. The ability to ask for repeated edits is common to the variants, which makes the usefulness of the intervening information the focus of the comparison.

The sentiment appendix varies that information in another way. Its reduced-feedback version tells the editor that there is a problem, leaving it to determine which phrase needs attention and what to change. The full informative version has a sentiment-alignment preference rate of 85%, compared with 73% for the reduced version. In the evaluation for dramatic expression, the corresponding preference rates are 80.09% and 58.92%. Those figures are from the two preference evaluations in the sentiment study, distinct from both the main ablation’s task-score figures and the Vader classification check. They show that a signal to keep trying can be less helpful than directions about where to focus the attempt.

Taken together, these comparisons test the feedback packages as implemented. The full critique provides several things at once, including a judgment about a draft, a location for the change, and a proposed course of action. The analysis supports the package’s value on the tested tasks. Its figures leave open how much each ingredient contributes in isolation, and whether a critic offering a different kind of precise diagnosis would perform as well.

The first rounds do much of the work

The paper traces intermediate results on several tasks, averaging over ChatGPT, GPT-3.5, and GPT-4 in the iteration analysis. For code optimization, the average rate moves from 22.0 at the initial draft to 28.8 after three iterations. The sentiment preference score moves from 33.9 to 36.8 over that span. The constrained-generation coverage score rises from 29.0 to 49.7. Each trajectory uses the measure for its own task. The authors observe that early rounds account for much of the progress and that further rounds generally add less.

Acronym generation shows what a trajectory can conceal if it is viewed only as an overall score. A candidate’s pronunciation and spelling may improve together while its connection to the title weakens. That kind of tradeoff can make the order of the drafts a poor guide to which one to keep. The paper’s selection rule uses the maximum score among candidates because the best internal assessment can occur before the final round. In the settings where the average rises more steadily, choosing the last draft is more consistent with the observed trajectory. Both observations concern the revision sequence in the tested configuration.

Comparison with independent attempts

More calls give a system more opportunities to produce a good answer. The authors therefore test Self-Refine against a simpler use of extra generation. ChatGPT independently produces (k) candidates in the baseline comparison, with the reported setting of k=4. The procedure is:

k = 4

Here k counts independent initial candidates for each input in the multiple-sample baseline, and 4 is the experimental setting for that count. Each is a fresh direct answer. The human comparison asks whether the Self-Refine output can beat the alternatives from that collection.

The authors report that the refined answer still receives the human preference in this comparison against several initial candidates. The result gives experimental support to directing additional generations with a critique. Independent candidates can offer variety, while the revision call can act on what was learned about the specific candidate under review. The experiment measures the reported multiple-sample setup. The two approaches can make calls of different lengths and use different amounts of context, so the comparison by candidate count leaves total computational cost open.

When an external signal tells the editor to try again

The oracle experiment changes one part of math refinement. It reveals whether the current answer is correct and allows editing to proceed when it is wrong. The term oracle refers to access to that correctness information. The signal can identify that further work is needed while leaving the location of the mistake and the repair to the feedback and editing calls.

In the detailed oracle analysis, the authors report a 4.8% improvement on mathematical reasoning for GPT-3 and a 0.7% improvement for GPT-4 from this adjustment. The main results discussion also describes gains of 5%+ in connection with external error identification. The detailed figures identify the specific systems reported in the appendix. Together the accounts frame the role of the external check as a change to the decision about whether to continue, with benefits that vary by system.

This comparison explains why a self-contained loop can lose opportunities. An answer may be wrong, its critique may approve of it, and the procedure may end before any repair is attempted. Conversely, checking an answer that is already correct gives a reason to keep it. The oracle results therefore concern the combination of a trusted correctness signal and a prompted repair process. They help locate the bottleneck that arises when mathematical success depends on the system recognizing its own error.

Critiquing and editing are abilities in their own right

With Vicuna-13B, the authors use the same prompts that they use elsewhere. The system can produce initial outputs but struggles with the expected form of the feedback and with returning a revision. It may repeat its original candidate or continue as if the prompt were itself a conversation. Even supplied feedback, including oracle or hard-coded advice, frequently leaves the editing problem unresolved. This shows that a task can be easy enough for an initial attempt and still demand unfamiliar behavior at the review and editing stages.

The authors suggest that training on conversations may contribute to the observed response pattern. They also allow for the possibility that different prompt engineering would work better. Their mixed experiment changes the assignment of roles by keeping Vicuna-13b for the initial output and using ChatGPT to criticize and edit. Its reported solve rate on mathematical reasoning goes from 24.18% for Vicuna-13b to 40.5% in the mixed setting. This establishes that a stronger feedback-and-editing workflow helped those starting answers in the test. Because both later roles change together, it leaves their individual contributions open.

Looking at the mistakes behind the final scores

For code optimization and mathematics together, the authors manually inspect 70 selected cases, with 35 successes and 35 failures. Of the failure cases, 33% involve criticism pointing to the wrong place, 61% involve advice that proposes an unsuitable fix, and 6% involve an editor executing good advice incorrectly. The distinction between the first two failures matters. A critic can locate the right operation while proposing the wrong replacement. It can also give plausible advice about an operation that was never the source of the problem.

Among the successes in that review, accurate and useful feedback guides a precise correction in 61% of cases. In 33% of the successes, the editor makes a repair in spite of partly incorrect advice. That pattern suggests that revision can use some parts of the feedback and leave others aside. The sample was assembled with equal numbers of successes and failures, so the percentages describe the kinds of case the authors inspected within those groups.

The dialogue analysis uses its own error categories. The authors report incorrect critiques in 25% of their sample, overly general critiques in 30%, and incorrect scores in 10%. The editing analysis reports failures to handle poor advice in 10%, feedback being ignored in 25%, and a new problem appearing in 20%. It also reports robustness to generic or incorrect feedback in 60% of the cases it describes. These observations show the possible behavior of each role. Bad feedback may be ignored, good feedback may go unused, and a revision can create a problem that the preceding critique had no opportunity to consider.

Limitations

Limits identified by the authors

The method depends on the underlying system’s ability to follow role-specific instructions or infer the expected behavior from examples. This applies to the feedback format as well as to the substance of the advice and its use in revision. The authors identify this dependence as the main limitation. The Vicuna experiment puts it in concrete terms by showing how an output that looks reasonable in the initial role can be followed by a critique or edit that fails to carry out the requested operation.

The main experiments use GPT-3.5, ChatGPT, GPT-4, and Codex, which the authors describe as closed systems that cost money to use. They point out gaps in public knowledge about the underlying training corpora, system sizes, and biases. They make the prompts, code, data, and outputs available, giving readers access to the procedure and examples of what it generates. Reproducing it still calls for access to the relevant systems, and the public artifacts leave the contribution of prior training and instruction-following capabilities incompletely explained.

All of the evaluation datasets are in English. The authors flag uncertainty about whether the gains will carry into other languages. They also acknowledge that the same prompting mechanism could be used to seek more toxic or otherwise harmful outputs. Their rubric for dialogue includes a safety criterion, while the authors identify the absence of an explicit general safeguard against misuse of the method. Bias, fairness & safety

Limits that follow from the experiments

The generator and critic in the main workflow share the same underlying system and both receive the task as text. A mistake in interpreting the request can therefore carry through generation, criticism, and editing. The independent information used in the math oracle experiment changes that situation. Its results apply when the procedure has the specified correctness signal. The unaided mathematical experiment exposes what can happen when a convincing-looking solution receives a favorable review. A numerical self-score used to choose a candidate is also subject to the system’s interpretation of the task. The dialogue analysis documents errors in those scores.

The human preference results describe the judgments of the authors on the evaluated examples. Blinding conceals the source of an answer, while the judging criteria and the readers themselves still shape the outcome. The automated ratings provide an additional view, with different degrees of agreement with human judgments across tasks. The preference experiments establish how candidates fare under those protocols. Broader claims about how helpful a reply would be in actual use or how a wider population would judge an acronym would require evidence involving those readers and settings.

The automatic metrics have similarly bounded interpretations. A name judged meaningful may make code clearer, whereas the number of comments and function units says little by itself about the quality of those comments or the design of the functions. CommonGen-Hard’s coverage score captures inclusion of concepts, leaving sentence coherence as a separate property of the result. The website examples demonstrate visible revisions without supplying a benchmark for usability. Each form of evaluation supports claims about the aspect of quality the authors measured or illustrated.

Revision uses additional calls and, in the history-based form, growing inputs to later calls. The paper compares against repeated sampling and gives task-specific iteration limits. Its results leave unresolved how to choose a critique budget under a constraint on time or expenditure. The evidence for including the full history is also primarily architectural. The authors explain why seeing earlier attempts could help, while the measured comparisons give more direct evidence about feedback quality and iteration than about how much history to retain.

Some reporting details matter for replication. The general setup pairs the description of greedy decoding with a temperature of 0.7. The readability appendix explicitly distinguishes greedy decoding at 0.0 from sampling at 0.7. In the statistical appendix, the table caption names a 95% Wilson confidence level and the accompanying prose gives 99%. Those differences leave ambiguity about the main decoding description and the intended confidence level. The task-specific protocols also vary in their stopping criteria, evaluation judges, and selection rules. Interpretation is clearest when each result stays attached to the version of the procedure the paper associates with it.

What came after

From revising a reply to choosing another action

The paper describes Reflexion as concurrent work and offers a direct comparison. Reflexion uses reflection in a planning setting with ReAct. According to Self-Refine’s account, the reflection can consider whether a step was carried out successfully and what to try next. That puts the feedback in the service of choosing a subsequent action. Self-Refine’s dialogue and writing tasks show a different object for criticism, a completed draft that can be changed directly. Its score-bearing rubrics are especially relevant when several distinct properties of that draft matter. The papers make reflection part of an ongoing process, with different decisions for the reflection to inform. Reflexion

Self-RAG brings retrieval into a learned arrangement for generating and critiquing answers through self-reflection. This connects revision to a question the Self-Refine math experiments make particularly clear. The information needed to improve an answer may have to come from elsewhere. In mathematical evaluation the extra signal can tell the loop whether the current solution is correct. In work centered on retrieval-augmented generation, the corresponding issue is how retrieving material relates to evaluating and producing the answer. The visible point of connection is the coordination of generation with a critique stage and access to information. Self-RAG

CRITIC studies self-correction through tool-interactive criticism. The use of tools changes what can inform the critique about a candidate. This extends the question raised by Self-Refine’s comparison of internally generated criticism and externally supplied correctness information. A critique that draws on a tool can have grounds for evaluating a claim or operation beyond what the generator wrote in its own answer. The citing work places the interaction with tools at the center of that correction problem. CRITIC

Checking claims and testing reasoning

Chain-of-Verification brings the issue of hallucination into the design of a verification procedure. Its title describes a chain of checks aimed at reducing unsupported or erroneous content. That gives the review stage a particular job among the various ones Self-Refine considers. When the goal is a more engaging reply, assessment includes how the message responds to the preceding conversation. In a verification task, the issue is whether the claims in the proposed answer survive checking. The connection is the use of a separate stage to scrutinize an answer already on hand. Chain-of-Verification

The work on whether language systems can self-correct reasoning takes up the more difficult side of Self-Refine’s findings. A convincing draft can preserve a mistaken premise through both initial generation and review. Self-Refine observes this risk in the high frequency of approving math critiques, and uses known correctness to examine what changes when revision is allowed to proceed under a better signal. The citing work makes the capacity for reasoning correction itself the question. Its relationship to Self-Refine is clearest in those mathematical results, where the information available to the critic materially affects the interpretation of success. Large Language Models Cannot Self-Correct Reasoning Yet

Work on multiagent debate frames additional scrutiny around an exchange among participants. One citing paper puts factuality and reasoning at the center of this arrangement. Another studies debate as a way to encourage divergent thinking. Both connect to the problem of getting a response examined again, with the review organized through several voices. Self-Refine gives successive prompts to one system and carries the text produced by those prompts forward. Debate makes the participants’ exchanges part of the process, raising a related question about what an additional perspective contributes to criticism. Improving Factuality and Reasoning through Multiagent Debate · Encouraging Divergent Thinking through Multi-Agent Debate

Spending computation while answering

The paper on scaling test-time computation asks how to use extra work during generation and how that investment compares with increasing parameters. Self-Refine is a concrete instance of allocating extra work to an answer after it exists. Its independent-sampling experiment illustrates the choice within a single task setup. Additional calls can produce fresh candidates, or they can examine and modify a candidate that has already been produced. Its iteration evidence adds a second consideration, since a later round can have less effect than an early one. The citing work puts the allocation of computation at the center of the research question. Scaling LLM Test-Time Compute Optimally

Large Language Models as Optimizers approaches language generation in terms of optimization. The connection to Self-Refine is visible in the repeated proposal and evaluation of candidate outputs. In Self-Refine, the rule for choosing among candidates is especially consequential where quality has several dimensions. The acronym experiment records cases in which a change helps one property and hurts another, leaving the scores to govern which version is returned. An optimization perspective puts that evaluative decision in focus, alongside the ability to propose a change. Large Language Models as Optimizers

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 · arXiv 2303.17651

@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}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/madaan-2023-self-refine-iterative-refinement-self/

References

52 references, from the paper's own bibliography.

  1. Teresa M. Amabile. 1983. A Theoretical Framework (https://doi.org/10.1007/978-1-4612-5533-8_4). In The Social Psychology of Creativity, pages 65–96. Springer New York, New York, NY. OpenAlex ↗ · Scholar ↗
  2. Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. 2022a. Training a helpful and harmless assistant with reinforcement learning from human feedback (https://arxiv.org/abs/2204.05862). ArXiv:2204.05862. OpenAlex ↗ · Scholar ↗
  3. Yuntao Bai, Saurav Kadavath, Sandipan Kundu, Amanda Askell, Jackson Kernion, Andy Jones, Anna Chen, Anna Goldie, Azalia Mirhoseini, Cameron McKinnon, et al. 2022b. Constitutional ai: Harmlessness from ai feedback. arXiv preprint arXiv:2212.08073. our card
  4. Emery D Berger, Sam Stern, and Juan Altmayer Pizzorno. 2022. Triangulating Python Performance Issues with SCALENE (https://arxiv.org/pdf/2212.07597.pdf) (https://arxiv.org/abs/2212.07597). ArXiv preprint, abs/2212.07597. OpenAlex ↗ · Scholar ↗
  5. Lawrence D Brown, T Tony Cai, and Anirban DasGupta. 2001. Interval estimation for a binomial proportion. Statistical science, 16(2):101–133. OpenAlex ↗ · Scholar ↗
  6. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners (https://proceedings.neurips.cc/paper/2020/file/1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf). In Advances in Neural Information Processing Systems, volume 33, pages 1877–1901, Online. Curran Associates, Inc. our card
  7. Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. 2021. Evaluating Large Language Models Trained on Code (https://arxiv.org/abs/2107.03374). arXiv preprint arXiv:2107.03374. our card
  8. Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E Gonzalez, et al. 2023. Vicuna: An open-source chatbot impressing gpt-4 with 90%* chatgpt quality. OpenAlex ↗ · Scholar ↗
  9. Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168. our card
  10. Sanjoy Dasgupta, Daniel Hsu, Stefanos Poulis, and Xiaojin Zhu. 2019. Teaching a black-box learner (http://proceedings.mlr.press/v97/dasgupta19a.html). In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pages 1547–1555. PMLR. OpenAlex ↗ · Scholar ↗
  11. Wanyu Du, Zae Myung Kim, Vipul Raheja, Dhruv Kumar, and Dongyeop Kang. 2022. Read, revise, repeat: A system demonstration for human-in-the-loop iterative text revision (https://aclanthology.org/2022.in2writing-1.14). In Proceedings of the First Workshop on Intelligent and Interactive Writing Assistants (In2Writing 2022), pages 96–108, Dublin, Ireland. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  12. Ahmed Elgohary, Christopher Meek, Matthew Richardson, Adam Fourney, Gonzalo Ramos, and Ahmed Hassan Awadallah. 2021. NL-EDIT: Correcting semantic parse errors through natural language interaction (https://doi.org/10.18653/v1/2021.naacl-main.444). In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5599–5610, Online. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  13. Linda Flower and John R Hayes. 1981. A cognitive process theory of writing. College composition and communication, 32(4):365–387. OpenAlex ↗ · Scholar ↗
  14. Jinlan Fu, See-Kiong Ng, Zhengbao Jiang, and Pengfei Liu. 2023. Gptscore: Evaluate as you desire (https://arxiv.org/abs/2302.04166). arXiv preprint arXiv:2302.04166. OpenAlex ↗ · Scholar ↗
  15. Luyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon, Pengfei Liu, Yiming Yang, Jamie Callan, and Graham Neubig. 2022. Pal: Program-aided language models. arXiv preprint arXiv:2211.10435. OpenAlex ↗ · Scholar ↗
  16. Xinyang Geng, Arnav Gudibande, Hao Liu, Eric Wallace, Pieter Abbeel, Sergey Levine, and Dawn Song. 2023. Koala: A dialogue model for academic research (https://bair.berkeley.edu/blog/2023/04/03/koala/). Blog post. OpenAlex ↗ · Scholar ↗
  17. Hung Le, Yue Wang, Akhilesh Deepak Gotmare, Silvio Savarese, and Steven C. H. Hoi. 2022a. CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learning (http://arxiv.org/abs/2207.01780). our card
  18. Hung Le, Yue Wang, Akhilesh Deepak Gotmare, Silvio Savarese, and Steven C. H. Hoi. 2022b. Coderl: Mastering code generation through pretrained models and deep reinforcement learning. ArXiv, abs/2207.01780. our card
  19. Juncen Li, Robin Jia, He He, and Percy Liang. 2018. Delete, retrieve, generate: a simple approach to sentiment and style transfer (https://doi.org/10.18653/v1/N18-1169). In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 1865–1874, New Orleans, Louisiana. Association for Computational Linguistics. our card
  20. Bill Yuchen Lin, Wangchunshu Zhou, Ming Shen, Pei Zhou, Chandra Bhagavatula, Yejin Choi, and Xiang Ren. 2020. CommonGen: A constrained text generation challenge for generative commonsense reasoning (https://doi.org/10.18653/v1/2020.findings-emnlp.165). In Findings of the Association for Computational Linguistics: EMNLP 2020, pages 1823–1840, Online. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  21. Jiacheng Liu, Skyler Hallinan, Ximing Lu, Pengfei He, Sean Welleck, Hannaneh Hajishirzi, and Yejin Choi. 2022. Rainier: Reinforced knowledge introspector for commonsense question answering. In Conference on Empirical Methods in Natural Language Processing. our card
  22. Ximing Lu, Sean Welleck, Liwei Jiang, Jack Hessel, Lianhui Qin, Peter West, Prithviraj Ammanabrolu, and Yejin Choi. 2022. Quark: Controllable text generation with reinforced unlearning. ArXiv, abs/2205.13636. our card
  23. Aman Madaan, Alexander Shypula, Uri Alon, Milad Hashemi, Parthasarathy Ranganathan, Yiming Yang, Graham Neubig, and Amir Yazdanbakhsh. 2023. Learning performance-improving code edits. arXiv preprint arXiv:2302.07867. OpenAlex ↗ · Scholar ↗
  24. Aman Madaan, Niket Tandon, Dheeraj Rajagopal, Peter Clark, Yiming Yang, and Eduard Hovy. 2021. Think about it! improving defeasible reasoning by first modeling the question scenario. (https://doi.org/10.18653/v1/2021.emnlp-main.508) In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 6291–6310, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  25. Shikib Mehri and Maxine Eskenazi. 2020. Unsupervised evaluation of interactive dialog with DialoGPT (https://aclanthology.org/2020.sigdial-1.28). In Proceedings of the 21th Annual Meeting of the Special Interest Group on Discourse and Dialogue, pages 225–235, 1st virtual meeting. Association for Computational Linguistics. our card
  26. Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, and Caiming Xiong. 2022. Codegen: An open large language model for code with multi-turn program synthesis (https://arxiv.org/abs/2203.13474). ArXiv preprint, abs/2203.13474. OpenAlex ↗ · Scholar ↗
  27. OpenAI. Model index for researchers. https://platform.openai.com/docs/model-index-for-researchers. Accessed: May 14, 2023. OpenAlex ↗ · Scholar ↗
  28. OpenAI. 2022. Model index for researchers (https://beta.openai.com/docs/model-index-for-researchers). Blogpost. OpenAlex ↗ · Scholar ↗
  29. OpenAI. 2023. Gpt-4 technical report (http://arxiv.org/abs/2303.08774). our card
  30. Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke E. Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Francis Christiano, Jan Leike, and Ryan J. Lowe. 2022. Training language models to follow instructions with human feedback (https://arxiv.org/abs/2203.02155). ArXiv:2203.02155. our card
  31. Baolin Peng, Michel Galley, Pengcheng He, Hao Cheng, Yujia Xie, Yu Hu, Qiuyuan Huang, Lars Liden, Zhou Yu, Weizhu Chen, and Jianfeng Gao. 2023. Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedback (http://arxiv.org/abs/2302.12813). our card
  32. Shrimai Prabhumoye, Yulia Tsvetkov, Ruslan Salakhutdinov, and Alan W Black. 2018. Style transfer through back-translation (https://doi.org/10.18653/v1/P18-1080). In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 866–876, Melbourne, Australia. Association for Computational Linguistics. our card
  33. Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah A Smith, and Mike Lewis. 2022. Measuring and narrowing the compositionality gap in language models (https://arxiv.org/abs/2210.03350). arXiv preprint arXiv:2210.03350. OpenAlex ↗ · Scholar ↗
  34. Ruchir Puri, David Kung, Geert Janssen, Wei Zhang, Giacomo Domeniconi, Vladmir Zolotov, Julian Dolby, Jie Chen, Mihir Choudhury, Lindsey Decker, Veronika Thost, Luca Buratti, Saurabh Pujar, Shyam Ramji, Ulrich Finkler, Susan Malaika, and Frederick Reiss. 2021. Codenet: A large-scale ai for code dataset for learning a diversity of coding tasks (https://arxiv.org/abs/2105.12655). arXiv preprint arXiv:2105.12655. our card
  35. Machel Reid and Graham Neubig. 2022. Learning to model editing processes. arXiv preprint arXiv:2205.12374. OpenAlex ↗ · Scholar ↗
  36. William Saunders, Catherine Yeh, Jeff Wu, Steven Bills, Long Ouyang, Jonathan Ward, and Jan Leike. 2022a. Self-critiquing models for assisting human evaluators (http://arxiv.org/abs/2206.05802). our card
  37. William Saunders, Catherine Yeh, Jeff Wu, Steven Bills, Long Ouyang, Jonathan Ward, and Jan Leike. 2022b. Self-critiquing models for assisting human evaluators (https://arxiv.org/abs/2206.05802). ArXiv:2206.05802. our card
  38. Jérémy Scheurer, Jon Ander Campos, Jun Shern Chan, Angelica Chen, Kyunghyun Cho, and Ethan Perez. 2022. Training language models with natural language feedback (https://arxiv.org/abs/2204.14146). ArXiv:2204.14146. OpenAlex ↗ · Scholar ↗
  39. Timo Schick, Jane Dwivedi-Yu, Zhengbao Jiang, Fabio Petroni, Patrick Lewis, Gautier Izacard, Qingfei You, Christoforos Nalmpantis, Edouard Grave, and Sebastian Riedel. 2022a. Peer: A collaborative language model (https://doi.org/10.48550/ARXIV.2208.11663). our card
  40. Timo Schick, Jane Dwivedi-Yu, Zhengbao Jiang, Fabio Petroni, Patrick Lewis, Gautier Izacard, Qingfei You, Christoforos Nalmpantis, Edouard Grave, and Sebastian Riedel. 2022b. Peer: A collaborative language model. ArXiv, abs/2208.11663. our card
  41. Noah Shinn, Beck Labash, and Ashwin Gopinath. 2023. Reflexion: an autonomous agent with dynamic memory and self-reflection (http://arxiv.org/abs/2303.11366). OpenAlex ↗ · Scholar ↗
  42. Herbert A. Simon. 1962. The architecture of complexity (http://www.jstor.org/stable/985254). Proceedings of the American Philosophical Society, 106(6):467–482. OpenAlex ↗ · Scholar ↗
  43. Nisan Stiennon, Long Ouyang, Jeffrey Wu, Daniel Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul F Christiano. 2020. Learning to summarize with human feedback (https://proceedings.neurips.cc/paper/2020/file/1f89885d556929e98d3ef9b86448f951-Paper.pdf). In Advances in Neural Information Processing Systems, volume 33, pages 3008–3021. Curran Associates, Inc. OpenAlex ↗ · Scholar ↗
  44. Zhiqing Sun, Yikang Shen, Qinhong Zhou, Hongxin Zhang, Zhenfang Chen, David Cox, Yiming Yang, and Chuang Gan. 2023. Principle-driven self-alignment of language models from scratch with minimal human supervision. arXiv preprint arXiv:2305.03047. our card
  45. Niket Tandon, Aman Madaan, Peter Clark, Keisuke Sakaguchi, and Yiming Yang. 2021. Interscript: A dataset for interactive learning of scripts through error feedback. arXiv preprint arXiv:2112.07867. OpenAlex ↗ · Scholar ↗
  46. Niket Tandon, Aman Madaan, Peter Clark, and Yiming Yang. 2022. Learning to repair: Repairing model output errors after deployment using a dynamic memory of feedback. In Findings of the Association for Computational Linguistics: NAACL 2022, pages 339–352. OpenAlex ↗ · Scholar ↗
  47. Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. 2023. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971. our card
  48. Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. 2022. Chain of Thought Prompting Elicits Reasoning in Large Language Models (https://arxiv.org/abs/2201.11903). arXiv preprint arXiv:2201.11903. our card
  49. Sean Welleck, Ximing Lu, Peter West, Faeze Brahman, Tianxiao Shen, Daniel Khashabi, and Yejin Choi. 2022. Generating sequences by learning to self-correct. arXiv preprint arXiv:2211.00053. our card
  50. Kevin Yang, Nanyun Peng, Yuandong Tian, and Dan Klein. 2022. Re3: Generating longer stories with recursive reprompting and revision. In Conference on Empirical Methods in Natural Language Processing. our card
  51. Michihiro Yasunaga and Percy Liang. 2020. Graph-based, self-supervised program repair from diagnostic feedback (http://arxiv.org/abs/2005.10636). 37th Int. Conf. Mach. Learn. ICML 2020, PartF168147-14:10730–10739. OpenAlex ↗ · Scholar ↗
  52. Xiang Zhang, Junbo Zhao, and Yann LeCun. 2015. Character-level convolutional networks for text classification. Advances in neural information processing systems, 28. our card