LLM & Transformer Fundamentals·Question 43 of 109Intermediate

What is the reversal curse, and what does it reveal about how LLMs store knowledge?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

The reversal curse (Berglund et al., 2023) is the finding that a model trained on "A is B" does not automatically learn "B is A". Fine-tune a model on statements like "Daphne Barrington is the director of 'A Journey Through Time'" and it answers "Who is Daphne Barrington?" but does no better than chance on "Who directed 'A Journey Through Time'?". The same asymmetry shows up for real facts: models name a celebrity's parent far more reliably than they name that parent's famous child.

Full worked answer

The reversal curse (Berglund et al., 2023) is the finding that a model trained on "A is B" does not automatically learn "B is A". Fine-tune a model on statements like "Daphne Barrington is the director of 'A Journey Through Time'" and it answers "Who is Daphne Barrington?" but does no better than chance on "Who directed 'A Journey Through Time'?". The same asymmetry shows up for real facts: models name a celebrity's parent far more reliably than they name that parent's famous child.

Why: next-token prediction only trains the direction the text was written in. The gradient from "A is B" strengthens the path from A's representation to B's tokens, and nothing in that update teaches the model to retrieve A when given B. This fits the picture of FFN layers as key-value memories: the fact is stored under a key built from the subject, and a lookup keyed on the object finds nothing. Parametric knowledge is a set of directed associations, not a symmetric database.

The distinction that matters: in context, models reverse fine. Put "A is B" in the prompt and ask who B is, and the model answers, because attention can read the context in any order. The curse is about knowledge stored in weights, which is the same split you see between knowledge editing and retrieval.

Practical consequences:

  • Do not assume fine-tuning a fact teaches its inverse or its consequences. This is the same failure as ripple effects in knowledge editing.
  • If you inject knowledge by fine-tuning, state each fact in both directions and several phrasings. Paraphrasing alone did not fix it in the original experiments; explicitly including the reverse direction, or training on reversed text, does help.
  • Famous facts often survive in both directions only because pretraining saw them written both ways.
  • It is one more argument for retrieval when facts must be queryable from arbitrary angles.

It is also a useful antidote to anthropomorphising. A person who learns "A is B" gets "B is A" for free. A model has to have seen it.

What a good answer covers

  • The reversal curse (Berglund et al., 2023) is the finding that a model trained on "A is B" does not…
  • Fine-tune a model on statements like "Daphne Barrington is the director of 'A Journey Through Time'" and…
  • The same asymmetry shows up for real facts
  • Why: next-token prediction only trains the direction the text was written in
  • The gradient from "A is B" strengthens the path from A's representation to B's tokens, and nothing in…

Interviewer follow-ups to expect

  1. Why does reversal work in context when it fails in weights?

  2. How would you structure fine-tuning data so a set of product facts is retrievable from any direction?

  3. Would you expect a bidirectional encoder to show the same asymmetry?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep