arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.09642cs.LGcs.AIcs.CLcs.DSstat.ML
收藏

论语言生成的极限:幻觉与模式崩溃之间的权衡

On the Limits of Language Generation: Trade-Offs Between Hallucination and Mode Collapse

Yale University(耶鲁大学)

Alkis Kalavasis, Anay Mehrotra, Grigoris Velegkas

AI总结:

本研究证明在统计语言生成中,对于大多数候选语言集合,同时实现一致性与广度的生成是不可能的,但引入负例可使其成为可能,从而为减少幻觉并限制模式崩溃提供新见解。

摘要:

指定语言模型的所有理想属性具有挑战性,但某些要求似乎是必不可少的。给定来自未知语言的样本,训练后的模型应生成训练中未见过的有效字符串,并具有足够的表达能力以捕捉该语言的全部丰富性。否则,输出无效字符串构成“幻觉”,而未能捕捉全部范围则导致“模式崩溃”。我们询问语言模型能否同时满足这两个要求。\n\n我们在基于Gold和Angluin工作的统计语言生成设置中对此进行研究。在此设置中,模型接收来自未知语言K上分布的随机样本,该语言K属于一个可能无限的候选语言集合。目标是生成K中未见过的字符串。我们说,如果随着训练规模增大,模型的输出收敛到K中的所有未见字符串,则该模型以一致性和广度从K生成。\n\nKleinberg和Mullainathan [KM24] 曾询问语言生成中的一致性和广度是否可能实现。我们对此给出否定回答:对于一大类语言模型,包括下一词预测模型,对于大多数候选语言集合,这是不可能的。这与[KM24]的结果形成对比,后者表明对于任何可数语言集合,无需广度的一致性生成是可能的。我们的发现强调,带广度的生成与不带广度的生成有根本区别。\n\n作为副产品,我们建立了带广度或不带广度生成所需样本数量的近紧界。\n\n最后,我们的结果带来希望:当负例(K之外的字符串)与正例同时可用时,对于任何可数语言集合,带广度的一致性生成是可以实现的。这表明,编码负例的训练后反馈在减少幻觉的同时限制模式崩溃方面可能至关重要。

英文摘要:

Specifying all desirable properties of a language model is challenging, but certain requirements seem essential. Given samples from an unknown language, the trained model should produce valid strings not seen in training and be expressive enough to capture the language's full richness. Otherwise, outputting invalid strings constitutes "hallucination," and failing to capture the full range leads to "mode collapse." We ask if a language model can meet both requirements. We investigate this within a statistical language generation setting building on Gold and Angluin. Here, the model receives random samples from a distribution over an unknown language K, which belongs to a possibly infinite collection of languages. The goal is to generate unseen strings from K. We say the model generates from K with consistency and breadth if, as training size increases, its output converges to all unseen strings in K. Kleinberg and Mullainathan [KM24] asked if consistency and breadth in language generation are possible. We answer this negatively: for a large class of language models, including next-token prediction models, this is impossible for most collections of candidate languages. This contrasts with [KM24]'s result, showing consistent generation without breadth is possible for any countable collection of languages. Our finding highlights that generation with breadth fundamentally differs from generation without breadth. As a byproduct, we establish near-tight bounds on the number of samples needed for generation with or without breadth. Finally, our results offer hope: consistent generation with breadth is achievable for any countable collection of languages when negative examples (strings outside K) are available alongside positive ones. This suggests that post-training feedback, which encodes negative examples, can be crucial in reducing hallucinations while limiting mode collapse.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑