逆转诅咒:被训练为“A 是 B”的大语言模型无法学会“B 是 A”
The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"

原始链接: https://arxiv.org/abs/2309.12288

“反转诅咒”(Reversal Curse)是自回归大语言模型(LLM)中发现的一种重大的泛化失败现象。研究表明,当模型接受“A 是 B”这类陈述的训练时,它无法逻辑推导出反向关系“B 是 A”。 例如,一个被训练识别“瓦莲京娜·捷列什科娃是第一位进入太空的女性”的模型,无法可靠地回答“谁是第一位进入太空的女性?”这一问题。这种缺陷存在于各种规模和系列的模型中,且无法通过数据增强来解决。无论是使用虚构陈述(例如“尤赖亚·霍桑是《深渊旋律》的作曲家”)还是真实名人的数据进行的实验,都证实了语言模型难以在训练数据的反方向上检索信息。虽然如果直接在上下文提供信息,模型可以推导出反转关系,但它们无法从底层训练数据中固有地泛化出这种双向联系。

抱歉。
相关文章

原文

View a PDF of the paper titled The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A", by Lukas Berglund and 6 other authors

View PDF HTML (experimental)
Abstract:We expose a surprising failure of generalization in auto-regressive large language models (LLMs). If a model is trained on a sentence of the form "A is B", it will not automatically generalize to the reverse direction "B is A". This is the Reversal Curse. For instance, if a model is trained on "Valentina Tereshkova was the first woman to travel to space", it will not automatically be able to answer the question, "Who was the first woman to travel to space?". Moreover, the likelihood of the correct answer ("Valentina Tershkova") will not be higher than for a random name. Thus, models do not generalize a prevalent pattern in their training set: if "A is B" occurs, "B is A" is more likely to occur. It is worth noting, however, that if "A is B" appears in-context, models can deduce the reverse relationship. We provide evidence for the Reversal Curse by finetuning GPT-3 and Llama-1 on fictitious statements such as "Uriah Hawthorne is the composer of Abyssal Melodies" and showing that they fail to correctly answer "Who composed Abyssal Melodies?". The Reversal Curse is robust across model sizes and model families and is not alleviated by data augmentation. We also evaluate ChatGPT (GPT-3.5 and GPT-4) on questions about real-world celebrities, such as "Who is Tom Cruise's mother? [A: Mary Lee Pfeiffer]" and the reverse "Who is Mary Lee Pfeiffer's son?". GPT-4 correctly answers questions like the former 79% of the time, compared to 33% for the latter.
Code available at: this https URL.
From: Owain Evans [view email]
[v1] Thu, 21 Sep 2023 17:52:19 UTC (1,320 KB)
[v2] Fri, 22 Sep 2023 18:08:20 UTC (1,319 KB)
[v3] Thu, 4 Apr 2024 21:25:17 UTC (1,336 KB)
[v4] Sun, 26 May 2024 17:45:21 UTC (1,336 KB)
联系我们 contact @ memedata.com