IN THIS BREAKDOWN · 10 SECTIONS
You can read 20% of this breakdown.
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.
Research notes: the problem, approach and results
GPT-3 175B exact match, description-first facts asked the trained way and reversed (Table 1)
GPT-4 naming celebrities' parents against naming those parents' children, across 1,573 pairs (Section 2.2)
Table 3 runs in which the correct name scored below a random name; a coin gives that 0.3% of the time (our count)
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.
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.
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.
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.
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
- ◇1 architecture diagram
- </>1 runnable code experiment
- ▦2 results tables
- ?5 interview questions with answers
- 03Key takeaways
The three experiments, the likelihood test, what did not help, and two common misreadings
Free account - 04How it works
Dataset construction, fine-tuning setup, both evaluations, the celebrity test and instructions
Premium - 05The numbers that matter
Table 1, the log-probability tests, the ablations, celebrities and the instruction results
Premium - 06Try it yourself
Train a two-matrix model to see the mechanism, sign-test Table 3, and recheck the counts
Premium - 07Where it breaks
Fine-tuning not pretraining, synthetic facts, an unclear baseline, Experiment 2's caveats, slips
Premium - 08Using it on a deployment
Test both directions, prefer retrieval for facts, and write facts both ways if you fine-tune
Premium - 09Interview angles
Five questions this paper prepares you for, with answer hints
Premium - 10Read next
Where to go from here on this site
Premium
