2025-05-29 · 专家 · 机器学习 · 自然语言处理

Let's Predict Sentence by Sentence

这篇论文提出了一种基于预训练语言模型的句子级推理框架,通过自回归预测连续的句子嵌入来实现对抽象语义单元的推理,并在多个领域展示了其有效性和效率。

更新于 2025-05-30。作者:Hyeonbin Hwang、Byeongguk Jeon、Seungone Kim、Jiyeon Kim、Hoyeon Chang、Sohee Yang、Seungpil Won、Dohaeng Lee、Youbin Ahn、Minjoon Seo。

中文摘要

自回归语言模型(LMs)一次生成一个标记,然而人类的推理是在更高层次的抽象上进行的——句子、命题和概念。这种对比引发了一个核心问题——LMs是否也能学习到在结构化语义单元上进行推理,而不是在原始标记序列上进行推理?在这项工作中,我们研究了通过构建它们学习到的表示,预训练的LMs是否可以被提升到这样的抽象推理空间。我们提出了一种框架,该框架通过自回归地预测下一个句子的连续嵌入来将预训练的标记级LM适配到句子空间。我们探索了两种受经典表示学习启发的嵌入范式:1)语义嵌入,通过自编码学习以保留表面意义;2)上下文嵌入,通过下一个句子预测训练以编码预期结构。我们在两种推理制度下对两者进行了评估:离散化,将每个预测嵌入解码为文本后再重新编码;连续推理,完全在嵌入空间中进行推理以提高效率。在数学、逻辑、常识和规划四个领域,连续推理下的上下文嵌入在性能上与思维链(CoT)具有竞争力,同时平均减少了推理时间的FLOPs一半。我们还展示了可扩展性和模块化适应的早期迹象。最后,为了可视化潜在轨迹,我们引入了SentenceLens,这是一种诊断工具,可以将中间模型状态解码为可解释的句子。我们的结果表明,预训练的LMs可以有效地过渡到潜在嵌入空间中的抽象、结构化推理。

英文摘要

Autoregressive language models (LMs) generate one token at a time, yet human reasoning operates over higher-level abstractions - sentences, propositions, and concepts. This contrast raises a central question- Can LMs likewise learn to reason over structured semantic units rather than raw token sequences? In this work, we investigate whether pretrained LMs can be lifted into such abstract reasoning spaces by building on their learned representations. We present a framework that adapts a pretrained token-level LM to operate in sentence space by autoregressively predicting continuous embeddings of next sentences. We explore two embedding paradigms inspired by classical representation learning: 1) semantic embeddings, learned via autoencoding to preserve surface meaning; and 2) contextual embeddings, trained via next-sentence prediction to encode anticipatory structure. We evaluate both under two inference regimes: Discretized, which decodes each predicted embedding into text before re-encoding; and Continuous, which reasons entirely in embedding space for improved efficiency. Across four domains - mathematics, logic, commonsense, and planning - contextual embeddings under continuous inference show competitive performance with Chain-of-Thought (CoT) while reducing inference-time FLOPs on average by half. We also present early signs of scalability and modular adaptation. Finally, to visualize latent trajectories, we introduce SentenceLens, a diagnostic tool that decodes intermediate model states into interpretable sentences. Together, our results indicate that pretrained LMs can effectively transition to abstract, structured reasoning within latent embedding spaces.

解读

一句话总结

这篇论文提出了一种基于预训练语言模型的句子级推理框架,通过自回归预测连续的句子嵌入来实现对抽象语义单元的推理,并在多个领域展示了其有效性和效率。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源