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

通过问答的语义聚类评估大语言模型响应的一致性

Evaluating Consistencies in LLM responses through a Semantic Clustering of Question Answering

Dongguk University(东国大学)

Yanggyu Lee, Jihie Kim

AI总结:

本文提出一种基于语义聚类的LLM响应一致性评估方法,并在TruthfulQA数据集上比较RAG与Zero-shot-CoT对37类问答任务一致性的影响。

摘要:

在大语言模型(LLM)功能领域,提供可靠信息至关重要,但有报告表明LLM的输出缺乏一致性。这种不一致通常归因于token采样中的随机性,由于即使对于相同的查询也会产生不同的响应,从而削弱了用户信任。在本文中,我们提出了一种评估LLM语义一致性的新方法,包括对替代技术的比较。我们的方法评估LLM响应对于给定问题在语义上是否一致,同时认识到句法不同的句子可能传达相同的含义。迄今为止,为了增强LLM一致性,主要探索了两种方法:利用外部知识作为上下文,如RAG模式,或使用Zero-shot-CoT来提升LLM自身的性能。我们将评估方法应用于这些技术,并展示如何比较这些方法在不同领域的问答任务中对LLM响应一致性的影响。该研究使用TruthfulQA数据集评估LLM响应,对每个问题从LLM中诱导出N个响应,并对语义等价的句子进行聚类,以衡量37个类别中的语义一致性。通过这种方式,定量分析了上述方法在采用前后对提升LLM性能的有效性。

英文摘要:

In the realm of Large Language Model (LLM) functionalities, providing reliable information is paramount, yet reports suggest that LLM outputs lack consistency. This inconsistency, often at-tributed to randomness in token sampling, under-mines user trust as it leads to varying responses even for identical queries. In this paper, we present a new approach for evaluating semantic consistencies of LLM including comparison of alternative tech-niques. Our approach evaluates whether LLM re-sponses are semantically congruent for a given question, recognizing that as syntactically different sentences may convey the same meaning. Here-tofore, To enhance LLM consistency, two main approaches have been explored: Leverage external knowledge as context like the RAG pattern or use Zero-shot-CoT to improve performance of LLM itself. We apply our evaluation approach to these techniques, and demonstrate to compare the im-pact of these methods on LLM response con-sistency across different domains of question an-swering tasks. Using the TruthfulQA dataset to assess LLM responses, the study induces N re-sponses per question from the LLM and clusters semantically equivalent sentences to measure semantic consistency across 37 categories. Through this, it quantitatively analyzes the effectiveness of the aforementioned methods in improving LLM performance before and after their adoption.

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

↑