arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.12003cs.CL
收藏

表示空间中的一致性:面向开放式自洽性

Agreement in Representation Space for Open-Ended Self-Consistency

HiTZ Center - Ixa, University of the Basque Country (UPV/EHU)(HiTZ中心 - Ixa,巴斯克大学(UPV/EHU))

Paula Ontalvilla, Gorka Azkune, Aitor Ormazabal

AI总结:

针对开放式生成任务,提出基于嵌入的协议(EBA),通过聚类采样生成的嵌入表示来估计自洽性,无需训练即可鲁棒地选择更可靠的输出。

摘要:

自洽性通过采样多个输出并选择最一致的答案来改进大语言模型的推理,但现有方法主要依赖于精确匹配,因此仅限于具有分类输出的任务。在这项工作中,我们研究开放式生成任务(如代码合成和文本摘要)中的自洽性。我们假设一致性可以理解为生成空间的几何属性,其中语义兼容的生成在表示空间的相似区域中集中。为了研究这一假设,我们引入了基于嵌入的协议(EBA),这是一种简单的无需训练的操作方法,通过在嵌入空间中对采样生成进行聚类来估计一致性。通过在数学推理、代码生成和摘要上的实验,我们表明表示空间中的一致性为开放式任务提供了鲁棒且可扩展的自洽性信号。特别是,EBA 始终优于随机选择,并且比最近基于大语言模型评估或不确定性估计的选择方法表现出更稳定的扩展行为。我们进一步表明,这些一致性信号在不同模型家族和嵌入空间中保持稳定,即使使用原生隐藏表示也是如此。最后,我们的分析表明,采样生成所占据的几何位置与生成质量强相关:集中在表示空间中心区域附近的生成往往对应于更可靠的输出,而外围生成则显著不准确。总体而言,我们的研究结果支持将自洽性视为采样生成的几何组织属性,而非精确符号重叠。

英文摘要:

Self-consistency improves LLM reasoning by sampling multiple outputs and selecting the most consistent answer, but existing formulations largely rely on exact matching and therefore remain limited to tasks with categorical outputs. In this work, we study self-consistency in open-ended generation tasks such as code synthesis and text summarization. We hypothesize that consistency can be understood as a geometric property of the generation space, where semantically compatible generations concentrate in similar regions of representation space. To study this hypothesis, we introduce Embedding-Based Agreement (EBA), a simple training-free operationalization that estimates agreement by clustering sampled generations in embedding space. Through experiments on mathematical reasoning, code generation, and summarization, we show that agreement in representation space provides a robust and scalable signal of self-consistency for open-ended tasks. In particular, EBA consistently outperforms random selection and exhibits more stable scaling behavior than recent selection approaches based on LLM evaluation or uncertainty estimation. We further show that these agreement signals remain stable across model families and embedding spaces, even with native hidden representations. Finally, our analysis shows that the geometric location occupied by sampled generations is strongly correlated with generation quality: generations concentrated near central regions of representation space tend to correspond to more reliable outputs, whereas peripheral generations are substantially less accurate. Overall, our findings support viewing self-consistency as a property of the geometric organization of sampled generations rather than exact symbolic overlap.

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

↑