Papers › An Analysis and Mitigation of the Reversal Curse

An Analysis and Mitigation of the Reversal Curse

13 Nov 2023arXiv:2311.07468archive 2025-07-28

Ang Lv, Kaiyi Zhang, Shufang Xie, Quan Tu, Yuhan Chen, Ji-Rong Wen, Rui Yan

Recent research observed a noteworthy phenomenon in large language models (LLMs), referred to as the ``reversal curse.'' The reversal curse is that when dealing with two entities, denoted as a and b, connected by their relation R and its inverse R⁻¹, LLMs excel in handling sequences in the form of ``aRb,'' but encounter challenges when processing ``bR⁻¹a,'' whether in generation or comprehension. For instance, GPT-4 can accurately respond to the query ``Tom Cruise's mother is?'' with ``Mary Lee Pfeiffer,'' but it struggles to provide a satisfactory answer when asked ``Mary Lee Pfeiffer's son is?'' In this paper, we undertake the first-ever study of how the reversal curse happens in LLMs. Our investigations reveal that the reversal curse can stem from the specific training objectives, which become particularly evident in the widespread use of next-token prediction within most causal language models. We hope this initial investigation can draw more attention to the reversal curse, as well as other underlying limitations in current LLMs.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2311.07468")

Code

Syntology Ran 4 of 14 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 4 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

trestad/mitigating-reversal-curse officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 4 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran
10unverified

Licence: 14 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from trestad/mitigating-reversal-curse. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_bleu trestad/mitigating-reversal-curse/generate.py official repository ran no licence file found · pointer only · f0d20ebd827390d6 · report
compute_metric trestad/mitigating-reversal-curse/generate.py official repository ran no licence file found · pointer only · 33553b56020f3138 · report
evaluate_completion trestad/mitigating-reversal-curse/generate.py official repository ran no licence file found · pointer only · 0fe702a77b67a5de · report
new_torch_call trestad/mitigating-reversal-curse/run_mlm.py official repository ran no licence file found · pointer only · 8a3c4f29d18d7783 · report
gelu_fast trestad/mitigating-reversal-curse/transformers/src/transformers/activations_tf.py official repository unverified no licence file found · pointer only · 37a5eed2dbd663ca · report
get_architectures_from_config_class trestad/mitigating-reversal-curse/transformers/utils/create_dummy_models.py official repository unverified no licence file found · pointer only · b176efb26f72e507 · report
get_config_class_from_processor_class trestad/mitigating-reversal-curse/transformers/utils/create_dummy_models.py official repository unverified no licence file found · pointer only · 3d999b95009c7537 · report
get_processor_types_from_config_class trestad/mitigating-reversal-curse/transformers/utils/create_dummy_models.py official repository unverified no licence file found · pointer only · 0c0b81b081919d8e · report
hertz_to_mel trestad/mitigating-reversal-curse/transformers/src/transformers/audio_utils.py official repository unverified no licence file found · pointer only · 9a09cbf63a4ddff4 · report
mel_filter_bank trestad/mitigating-reversal-curse/transformers/src/transformers/audio_utils.py official repository unverified no licence file found · pointer only · 7e7c601df5b22499 · report
mel_to_hertz trestad/mitigating-reversal-curse/transformers/src/transformers/audio_utils.py official repository unverified no licence file found · pointer only · 2650530d2f0dd9b2 · report
mish trestad/mitigating-reversal-curse/transformers/src/transformers/activations_tf.py official repository unverified no licence file found · pointer only · cc8c8c3ebf0c343f · report
prepare_model_for_training trestad/mitigating-reversal-curse/run_mlm.py official repository unverified no licence file found · pointer only · d30fdeea401b3cc5 · report
quick_gelu trestad/mitigating-reversal-curse/transformers/src/transformers/activations_tf.py official repository unverified no licence file found · pointer only · e2d56cb91f999bef · report

Tasks

DenoisingLanguage Modelling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

FocusGLM

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections