Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Self-Refine: Iterative Refinement with Self-Feedback

Self-Refine lets one LLM critique and improve its own outputs

  • Problem Single-pass LLM outputs often miss quality goals that are hard to define. Fixing this usually requires a refiner model trained on domain-specific data and costly annotations.
  • Method Self-Refine has one LLM write a first draft, write feedback on it, and rewrite it in a loop. Unlike trained refiners, it needs no supervised data or extra training.
  • Results Across seven tasks, Self-Refine outputs were preferred by humans and automatic metrics over one-pass outputs. On Code Optimization, GPT-4 optimized 36.0% of programs, up from 27.3%.

Where single-pass outputs fall short

Large language models can produce a readable first draft and still miss what a task demands. The gap is widest when a task has several goals at once, such as a dialogue reply that must be engaging and show user understanding, or code that must be readable.

The usual fix is a refinement model trained on domain-specific data, and such models need large training sets or costly human annotations. That cost is the reason the authors look for a refinement method that works across tasks without extensive supervision.

One model as writer, critic and editor

The key idea is to let one model play three roles: it writes the first draft, writes feedback on that draft, and rewrites the draft using the feedback. No second model, reward model or training step is involved.

The loop starts with an initial output y0, produced from the input x and a generation prompt. A FEEDBACK step then reads x and the current output and writes feedback, and a REFINE step rewrites the output from the input, the earlier outputs and the feedback.

The feedback is meant to be actionable and specific. Actionable means it names a concrete change, and specific means it points to the phrases in the output that should change. For example, the code case flags a brute-force loop and suggests a closed-form formula instead.

Every prompt is a few-shot prompt, even for models that follow instructions well, so the authors keep the comparison consistent across models. The loop stops when the stop condition is met or after at most 4 iterations, and the last refinement is returned as the output.

Gains across tasks and base models

The authors ran the loop on seven tasks with GPT-3.5, ChatGPT and GPT-4, and compared each refined output with the same model's single-pass output. The largest preference gain is on Dialogue Response Generation, where GPT-4's preference rate rose from 25.4% to 74.6%.

Code Optimization shows a smaller gain. GPT-4 with SELF-REFINE optimized 36.0% of programs, up from 27.3%, an 8.7 point absolute gain over base GPT-4.

Math Reasoning is the exception, since the solve rate barely moved, from 92.9 to 93.1 for GPT-4. The authors attribute this to the difficulty of spotting an error inside a consistent-looking reasoning chain, and ChatGPT's feedback said 'everything looks good' in 94% of instances.

Oracle feedback changes that picture. When refinement runs only if the current answer is wrong, GPT-3.5 rises from 64.06 to 68.9 on Math Reasoning, and GPT-4 gains 0.7 points. That setup uses an external correctness signal, so it measures a different situation from self-feedback alone.

Statistical support is uneven across models. Nearly all GPT-4 gains are significant, while ChatGPT gains are significant on 4 of 7 datasets and GPT-3.5 gains on 3 of 7.

Feedback specificity and the number of iterations

The authors swap the specific feedback for a vague goal, such as making the code more efficient, and also remove feedback altogether. On Code Optimization with ChatGPT, specific feedback gave 27.5, generic feedback 26.0 and no feedback 24.8.

The effect is larger on Sentiment Reversal. Its score falls from 43.2 with specific feedback to 31.2 with generic feedback, and the score is 0 without feedback.

Iterations also matter. Averaged over the three models, Code Optimization rises from 22.0 at the initial output to 28.8 after three iterations. The gains are largest in the first iterations and flatten later, so each extra round adds less.

Scores do not always rise, because Acronym Generation can gain on one aspect while losing on another. The total score moved 11, 17, 12 and 17 across four iterations, so the method keeps the highest-scoring output across iterations.

Refinement versus simply drawing more samples

A reader might ask whether the gain comes from refinement or just from generating more drafts. The authors compare SELF-REFINE with ChatGPT drawing k = 4 samples without feedback, in a 1 vs. k evaluation on Acronym Generation.

Human raters still preferred the SELF-REFINE output over all four initial samples. The authors read this as evidence that feedback-guided refinement adds something that extra candidates do not.

Limitations

The method depends on the base model having enough few-shot or instruction-following ability to critique and rewrite in context. The authors note that without that ability the approach would need supervised training, which it avoids.

All experiments use closed models, namely GPT-3.5, ChatGPT, GPT-4 and CODEX. Their pretraining corpus, model sizes and biases are not fully described, and using them for research requires funding.

All datasets are in English, so the gains in other languages are untested. The approach gives no explicit guard against prompts that steer a model toward toxic or harmful text.

Paper info

Authors
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, Peter Clark
Venue
arXiv · Preprint
First published
2023-3-30
Added
2026-11-12
Updated
2023-5-25
Version
v2
arXiv
2303.17651
Category
cs.CL · cs.AI · cs.LG
Original paper terms
CC BY 4.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

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, Peter Clark (2023). Self-Refine: Iterative Refinement with Self-Feedback. arXiv:2303.17651v2. https://arxiv.org/abs/2303.17651v2

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

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up