通过一致性检测提升大模型答案聚合准确率
Representation Consistency for Accurate and Coherent LLM Answer Aggregation
- 基于模型内部激活一致性评估多个回答的可信度
- 在四个数据集上提升准确率最高达4%
- 无需额外推理,适合需要稳定输出的场景
测试时扩展通过增加推理阶段计算资源提升大语言模型性能。现有方法通常需复杂调整提示和采样策略。本文提出表示一致性(RC),一种不依赖生成方式的问答聚合方法,适用于不同提示和采样策略产生的候选回答。RC不仅考虑答案出现频次,还评估生成这些回答时模型内部激活的一致性,激活可为密集或稀疏(经预训练稀疏自编码器编码)。若多个回答指向同一答案但激活差异大,则该答案更可能源于不连贯推理,应降低权重。本方法仅使用缓存激活和轻量相似度计算,无需额外模型调用。在四个开源LLM和四个推理数据集上的实验表明,RC在推理阶段显著提升任务表现,较强基线平均提升1.5%~4%,且稀疏激活一致性与人类对连贯推理的认知高度吻合。
原文摘要 · Abstract (English)
Test-time scaling improves large language models' (LLMs) performance by allocating more compute budget during inference. To achieve this, existing methods often require intricate modifications to prompting and sampling strategies. In this work, we introduce representation consistency (RC), a test-time scaling method for aggregating answers drawn from multiple candidate responses of an LLM regardless of how they were generated, including variations in prompt phrasing and sampling strategy. RC enhances answer aggregation by not only considering the number of occurrences of each answer in the candidate response set, but also the consistency of the model's internal activations while generating the set of responses leading to each answer. These activations can be either dense (raw model activations) or sparse (encoded via pretrained sparse autoencoders). Our rationale is that if the model's representations of multiple responses converging on the same answer are highly variable, this answer is more likely to be the result of incoherent reasoning and should be down-weighted during aggregation. Importantly, our method only uses cached activations and lightweight similarity computations and requires no additional model queries. Through experiments with four open-source LLMs and four reasoning datasets, we validate the effectiveness of RC for improving task performance during inference, with consistent accuracy improvements (up to 4%) over strong test-time scaling baselines. We also show that consistency in the sparse activation signals aligns well with the common notion of coherent reasoning.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。