arXiv:2410.18808cs.CL2024-10NeurIPS被引 12

大模型难以反向推理,根源在于训练数据结构的隐性偏见。

Delving into the Reversal Curse: How Far Can Large Language Models Generalize?

  • 发现模型仅在上下文显式给出时能反推'A是B'为'B是A'
  • 反向推理成功率取决于训练文本是否为'名称是描述'结构
  • 提出模型存在知识回忆偏见,适合研究模型认知机制的人阅读

尽管大型语言模型展现出前所未有的能力,但在面对看似简单的任务时仍存在固有局限。一个典型例子是近期争议的「反转诅咒」:模型在学习了事实「A是B」后,难以将其泛化为「B是A」。本文考察了该现象在多种任务中的表现,并深入分析了大模型的泛化能力与解题机制。研究发现:(1)当上下文显式呈现A和B时,如多选题场景,模型可实现反向推理;(2)这种泛化能力与训练文档中事实的结构高度相关——仅适用于「名称是描述」结构,而对「描述是名称」结构无效;(3)我们提出并验证了模型在知识应用中存在内在的回忆偏见,这解释了文档结构的重要性;(4)这种偏见对下游性能的负面影响无法仅通过训练缓解。这些发现为理解大模型的泛化机制提供了新视角,并为开发更有效的学习方法提供了启示。代码与数据已开源。

原文摘要 · Abstract (English)

While large language models (LLMs) showcase unprecedented capabilities, they also exhibit certain inherent limitations when facing seemingly trivial tasks. A prime example is the recently debated "reversal curse", which surfaces when models, having been trained on the fact "A is B", struggle to generalize this knowledge to infer that "B is A". In this paper, we examine the manifestation of the reversal curse across various tasks and delve into both the generalization abilities and the problem-solving mechanisms of LLMs. This investigation leads to a series of significant insights: (1) LLMs are able to generalize to "B is A" when both A and B are presented in the context as in the case of a multiple-choice question. (2) This generalization ability is highly correlated to the structure of the fact "A is B" in the training documents. For example, this generalization only applies to biographies structured in "[Name] is [Description]" but not to "[Description] is [Name]". (3) We propose and verify the hypothesis that LLMs possess an inherent bias in fact recalling during knowledge application, which explains and underscores the importance of the document structure to successful learning. (4) The negative impact of this bias on the downstream performance of LLMs can hardly be mitigated through training alone. These findings offer a novel perspective on interpreting LLMs' generalization through their intrinsic mechanisms and provide insights for developing more effective learning methods. Our code and data are available at https://github.com/alibaba/thinking_bias.git.

大模型推理机制知识泛化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。