arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.14197cs.CLcs.FL
收藏

神经语言模型在思维链推理中的表征能力

On the Representational Capacity of Neural Language Models with Chain-of-Thought Reasoning

Franz Nowak, Anej Svete, Alexandra Butoi, Ryan Cotterell

AI总结:

本文在概率框架下形式化思维链推理,证明带有CoT的循环和Transformer语言模型可表征与概率图灵机相同的字符串分布族,从而解释其计算能力提升。

摘要:

现代语言模型(LMs)的性能已通过思维链(CoT)推理得到提升,即生成中间结果以引导模型得出最终答案的过程。对此改进的一种可能解释是,CoT推理扩展了LM的计算能力,因为带有额外暂存空间的RNN和Transformer已知是图灵完备的。然而,将LM与图灵机进行比较会引入范畴错误——图灵机判定语言成员资格,而LM定义字符串上的概率分布。为弥合这一差距,我们在概率框架下形式化了CoT推理。我们提出了关于带有CoT推理的循环和Transformer LM表征能力的若干结果,表明它们能表示与概率图灵机相同的字符串分布族。

英文摘要:

The performance of modern language models (LMs) has been improved by chain-of-thought (CoT) reasoning, i.e., the process of generating intermediate results that guide the model towards a final answer. A possible explanation for this improvement is that CoT reasoning extends an LM's computational power, as RNNs and transformers with additional scratch space are known to be Turing complete. Comparing LMs to Turing machines, however, introduces a category error - Turing machines decide language membership, whereas LMs define distributions over strings. To bridge this gap, we formalize CoT reasoning in a probabilistic setting. We present several results on the representational capacity of recurrent and transformer LMs with CoT reasoning, showing that they can represent the same family of distributions over strings as probabilistic Turing machines.

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

↑