基于经验累积分布函数的LLM代理系统分析聚类
Empirical Cumulative Distribution Function Clustering for LLM-based Agent System Analysis
AI总结:
本文提出基于经验累积分布函数的LLM代理系统评估方法,通过聚类分析揭示不同配置下的响应质量分布差异。
摘要:
大型语言模型(LLM)越来越多地被用作代理来解决复杂任务,如问答(QA)、科学辩论和软件开发。标准的评估流程将多个LLM代理的响应汇总成一个最终答案,通常通过多数投票,然后与参考答案进行比较。然而,这一过程可能会掩盖原始响应的质量和分布特征。在本文中,我们提出了一种基于生成响应与参考答案余弦相似度的经验累积分布函数(ECDF)的新型评估框架。这使得能够超越精确匹配度量的更细致的响应质量评估。为了分析不同代理配置下的响应分布,我们进一步引入了一种基于ECDF距离和k-均值算法的ECDF聚类方法。我们在QA数据集上的实验表明,ECDF可以区分出最终准确率相似但质量分布不同的代理设置。聚类分析还揭示了响应中的可解释群体结构,提供了温度、角色和问题主题的影响见解。
英文摘要:
Large language models (LLMs) are increasingly used as agents to solve complex tasks such as question answering (QA), scientific debate, and software development. A standard evaluation procedure aggregates multiple responses from LLM agents into a single final answer, often via majority voting, and compares it against reference answers. However, this process can obscure the quality and distributional characteristics of the original responses. In this paper, we propose a novel evaluation framework based on the empirical cumulative distribution function (ECDF) of cosine similarities between generated responses and reference answers. This enables a more nuanced assessment of response quality beyond exact match metrics. To analyze the response distributions across different agent configurations, we further introduce a clustering method for ECDFs using their distances and the $k$-medoids algorithm. Our experiments on a QA dataset demonstrate that ECDFs can distinguish between agent settings with similar final accuracies but different quality distributions. The clustering analysis also reveals interpretable group structures in the responses, offering insights into the impact of temperature, persona, and question topics.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。