arXiv:2606.12003cs.CL2026-06

用嵌入空间的聚集性提升大模型开放生成任务的自洽性

Agreement in Representation Space for Open-Ended Self-Consistency

  • 通过聚类生成结果的嵌入向量,衡量语义一致性
  • 在数学、代码生成等任务中超越随机选择与现有方法
  • 适用于多种模型和嵌入空间,适合追求高可靠输出的研究者

自洽性通过采样多个输出并选择最一致的答案来提升大模型推理能力,但现有方法多依赖精确匹配,仅限于类别型输出任务。本文研究代码生成、文本摘要等开放生成任务中的自洽性,提出嵌入空间聚集性(EBA):通过在嵌入空间聚类采样结果来估计一致性。实验表明,该方法在数学推理、代码生成和摘要任务中表现稳定且优于随机选择,其缩放行为比基于LLM评估或不确定性估计的方法更稳健。进一步发现,生成结果在嵌入空间的几何位置与质量强相关——集中在中心区域的生成更可靠,边缘生成则准确率显著下降。结果支持将自洽性理解为生成分布的几何特性,而非符号完全重合。

原文摘要 · Abstract (English)

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.

自洽性嵌入空间开放生成大模型推理

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