GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
ICLR 2024

The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"

Fine-tune a model on "Uriah Hawthorne is the composer of Abyssal Melodies" and it cannot say who composed Abyssal Melodies. GPT-4 named 79% of celebrities' parents and 33% of their children.

Breakdown by FDE Interviews · 10 min read · Updated

About the original · 2023
AUTHORS
Berglund, Tong, Kaufmann, Balesni, Stickland, Korbak, Evans
FROM
Vanderbilt, Oxford, UK AI Safety Institute, Apollo Research
PUBLISHED
Sep 2023 · ICLR 2024
CITED BY
566Semantic Scholar · Nov 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 20% of this breakdown.

01

The paper in one minute

Write "Daphne Barrington is the director of 'A Journey Through Time'" into a model's fine-tuning data and it will learn to answer "Who is Daphne Barrington?". Ask "Who directed 'A Journey Through Time'?" and it has no idea. The authors call this the Reversal Curse: training on "A is B" does not raise the model's probability of "B is A".

The test uses invented people, so pretraining cannot have taught either direction. GPT-4 generated 30 name-description pairs for each of three subsets: one written name first, one description first, and one written both ways in separate documents. Each fact was paraphrased 30 times. GPT-3 models from 350M to 175B parameters and Llama-1 7B were fine-tuned, then asked with held-out prompts in both directions.

In the trained direction, GPT-3 175B answered 96.7% of description-first facts and 50.0% of name-first ones by exact match. Reversed, it scored 0.0% and 0.1%, below what guessing among the 30 trained names would get. The log-probability of the correct name, given the reversed prompt, was no higher than that of a random name. A hyperparameter sweep, bigger and smaller models, the both-ways subset, a dataset ten times larger and prompt tuning all failed to change this.

A second experiment uses real facts: GPT-4 named the parent of 79% of 1,000 popular celebrities, and given those parents, named the celebrity 33% of the time. A third repeats the first with question-answer instructions. Facts placed in the prompt, by contrast, reverse fine.

THE IDEA, VISUALLY
FINE-TUNE ONE DIRECTION, ASK BOTH (FIGURE 2) Training document, 30 paraphrases, always name first: "Daphne Barrington is the director of 'A Journey Through Time'." Q: Who is Daphne Barrington? A: the director of 'A Journey Through Time' Q: Who directed 'A Journey Through Time'? A: John Smith. same direction: works reversed: about zero WHY: THE UPDATE ONLY RUNS ONE WAY (SECTION 4) Training on "A is B" adjusts how the model represents A so that B follows. Nothing in that update asks the model to produce A after seeing B. IN CONTEXT IT WORKS (APPENDIX B.6) Put the fact in the prompt and GPT-3 reverses it almost perfectly. Retrieval avoids the curse; fine-tuning facts in one direction does not. TRAINED DIRECTION VS REVERSED GPT-3 175B, description first Table 1 96.7% 0.1% GPT-3 175B, name first Table 1 50% 0% GPT-4, celebrity <-> parent Section 2.2 79% 33% Llama-1, instructions Figure 6 >80% <7% dashed: guessing 1 of 30 names, 3.3% grey = trained direction, red = reversed arXiv 2309.12288
Fine-tune a model on facts written in one order and it answers questions in that order. Ask in the reverse order and exact-match accuracy is about zero, below the 3.3% that guessing among the 30 trained names would get, and the correct name is no more likely than a random one. GPT-3 175B scored 96.7% with the description first and 0.1% reversed; GPT-4 found 79% of celebrities' parents and 33% of the parents' children.
Research notes: the problem, approach and results
96.7% / 0.1%

GPT-3 175B exact match, description-first facts asked the trained way and reversed (Table 1)

79% / 33%

GPT-4 naming celebrities' parents against naming those parents' children, across 1,573 pairs (Section 2.2)

11 of 12

Table 3 runs in which the correct name scored below a random name; a coin gives that 0.3% of the time (our count)

THE PROBLEM

If a model learns that Valentina Tereshkova was the first woman in space, it should be able to answer who the first woman in space was. Whether training on one direction of a fact teaches the other had not been tested directly.

THE IDEA

Fine-tune GPT-3 and Llama-1 on invented facts written only as "name is description" or only as "description is name", then test both directions with held-out prompts, by exact match and by the likelihood of the correct name. Test real celebrity-parent pairs on GPT-4 for comparison.

THE RESULT

Models answered in the trained direction and failed completely in reverse, at every size, under a hyperparameter sweep, with paraphrases, with both-order examples for other facts and with ten times more data. GPT-4 showed the same asymmetry on real parents and children. In context, reversal worked.

02

Why it matters to an FDE

The most common request to "fine-tune the model on our documents" runs straight into this result.

Fine-tuning stores facts in the direction they were written. If the documentation says "SKU 4471 is the 40-amp breaker" and a user asks which SKU is the 40-amp breaker, a model that learned the fact from fine-tuning may not answer. Customers think of facts as symmetric. Models trained this way do not store them that way.

Lookups by attribute are the risky case. Name-to-property questions follow the usual direction of text. Property-to-name questions (which customer has this account number, which policy covers this case, which part has this rating) often run against it, and those are exactly the questions support and operations teams ask.

Put facts in context instead. The same paper shows models reverse facts in their prompt almost perfectly. Retrieval that places the record in context avoids the curse. If you must fine-tune, write each fact in every direction users will ask, and test the reverse direction explicitly.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 290 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The three experiments, the likelihood test, what did not help, and two common misreadings

    Free account
  2. 04How it works

    Dataset construction, fine-tuning setup, both evaluations, the celebrity test and instructions

    Premium
  3. 05The numbers that matter

    Table 1, the log-probability tests, the ablations, celebrities and the instruction results

    Premium
  4. 06Try it yourself

    Train a two-matrix model to see the mechanism, sign-test Table 3, and recheck the counts

    Premium
  5. 07Where it breaks

    Fine-tuning not pretraining, synthetic facts, an unclear baseline, Experiment 2's caveats, slips

    Premium
  6. 08Using it on a deployment

    Test both directions, prefer retrieval for facts, and write facts both ways if you fine-tune

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →