Lesson 11 of 15 · Advanced Techniques
Self-Critique and Reflection
Improve AI output with draft, critique and revise: write a rubric, ask for specific problems and compare answers. Where self-checking works and where it fails.
- 6 min read
- Beginner
- Reviewed
- The draft, critique and revise pattern
- How to write a rubric that makes critique useful
- Generating several answers and choosing between them
- The limits of a model checking its own work
A second look
A first draft is rarely the best version, for people or for models. Asking a model to review its answer against clear criteria and then improve it often catches problems the first pass missed.
The basic loop has three steps:
- Draft: produce a first answer.
- Critique: check it against a list of criteria and name specific problems.
- Revise: rewrite it to fix those problems.
You can do this in one prompt ("Write a draft, check it against these rules, then give the improved version") or as a short chain of three calls, which is easier to inspect.
The rubric is everything
"Check your work" is too vague to help much. A critique is only as good as the criteria it checks against.
The program below checks a customer-service draft against a small rubric, then turns the problems it found into the next prompt.
draft = ("Dear customer, we are so so sorry!!! Your order is late because of "
"a problem with our courier. We are really sorry. It will arrive soon.")
# The rubric: what a good reply must do
issues = []
word_count = len(draft.split())
if word_count > 25:
issues.append(f"too long: {word_count} words (limit 25)")
if draft.lower().count("sorry") > 1:
issues.append("apologises more than once")
if "!!" in draft:
issues.append("uses several exclamation marks")
if "soon" in draft.lower():
issues.append("vague timing: give a delivery date")
if issues:
# Turn the critique into the next prompt
lines = ["Revise the reply below to fix these problems:"]
for issue in issues:
lines.append("- " + issue)
lines.append("")
lines.append("<reply>" + draft + "</reply>")
print("\n".join(lines))
else:
print("The draft passes every check.")Some checks are better done by code (word counts, banned words, required fields) and some need a model (tone, accuracy, whether an answer addresses every question). A good system uses both.
Prompt
Write a reply to a customer whose order is 5 days late. The new delivery date is Thursday 12 June.
Example response
Dear customer, we are so so sorry!!! Your order is late because of a problem with our courier. We are really sorry. It will arrive soon.
Over-apologetic, shouty, and it leaves out the one fact the customer needs: when.
Several answers, then choose
Another form of reflection is to generate several answers and then pick or combine:
- Pick the best: "Write 3 different subject lines. Then say which one is most likely to be opened by a busy manager, and why."
- Majority vote: for questions with one correct answer, ask several times (with some randomness) and take the most common answer. This is called self-consistency, and it reduces one-off reasoning slips.
Where self-critique falls short
Self-critique works best when:
- the criteria are specific and checkable (length, tone, missing points, format);
- checking is easier than creating, as with spotting a missing date;
- the reviewer gets outside information: test results, error messages, a source document to compare with, or a fresh conversation without the original reasoning.
For facts and code, external checks beat self-checks: run the code and its tests, compare claims with a trusted source, or have a person review.
Common mistakes
Check a model's answer against a rubric: which required points did it forget?
answer = "We are sorry your plant arrived damaged. We will send a replacement." required = ["sorry", "replacement", "refund", "order number"] # Print the required phrases that are missing from the answer, like: # Missing: refund, order number
Which critique instruction is most likely to improve a draft?
Summary
- Draft, critique, revise often improves output, in one prompt or as a short chain.
- The rubric decides the quality of the critique: make criteria specific and checkable.
- Generate several answers and pick the best, or take the majority for questions with one right answer.
- Models can share their own blind spots; external checks (tests, sources, people) are stronger.
- Stop revising when the rubric is met.
Next: practical prompting techniques for reducing hallucinations.
Finished reading? Tick it off to track your progress.