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

使用组合测试设计解决 HumanEval 中的数据泄漏问题

Addressing Data Leakage in HumanEval Using Combinatorial Test Design

Ontario Tech University(安大略理工大学)

Jeremy S. Bradbury, Riddhi More

AI总结:

针对 HumanEval 任务可能泄漏进 LLM 训练数据导致评估失真的问题,本文提出基于模板任务与组合测试设计生成可互换具体任务的基准构建方法,并构建替代基准 HumanEval_T。

摘要:

大型语言模型(LLM)在许多领域得到广泛应用,包括软件工程;在该领域中,它们被用于自动化程序生成和测试分类等任务。随着基于 LLM 的方法持续发展,我们必须定义清晰、稳健且能够公平评估性能的方法。基准测试是评估 LLM 解决特定问题任务能力,以及评估不同版本 LLM 随时间推移解决任务表现的常用方法。例如,HumanEval 基准由 164 个手工制作的任务组成,并已成为评估基于 LLM 的程序生成能力的重要工具。然而,使用 HumanEval 等基准公平评估 LLM 的一个主要障碍,是基准任务和解决方案泄漏到训练数据集中所造成的数据污染。由于 LLM 训练数据具有黑箱性质,甚至很难判断是否发生了数据泄漏,这使该障碍进一步加剧。为解决数据泄漏问题,我们提出一种新的基准构建方法:基准由模板任务组成,这些模板任务可通过组合测试设计实例化为新的具体任务。同一模板任务对应的具体任务必须足够不同,使数据泄漏的影响降到最低,同时又必须足够相似,使这些任务在性能评估方面可以互换。为评估我们的基准构建方法,我们提出 HumanEval_T,这是使用模板任务和组合测试设计构建的 HumanEval 替代基准。

英文摘要:

The use of large language models (LLMs) is widespread across many domains, including Software Engineering, where they have been used to automate tasks such as program generation and test classification. As LLM-based methods continue to evolve, it is important that we define clear and robust methods that fairly evaluate performance. Benchmarks are a common approach to assess LLMs with respect to their ability to solve problem-specific tasks as well as assess different versions of an LLM to solve tasks over time. For example, the HumanEval benchmark is composed of 164 hand-crafted tasks and has become an important tool in assessing LLM-based program generation. However, a major barrier to a fair evaluation of LLMs using benchmarks like HumanEval is data contamination resulting from data leakage of benchmark tasks and solutions into the training data set. This barrier is compounded by the black-box nature of LLM training data which makes it difficult to even know if data leakage has occurred. To address the data leakage problem, we propose a new benchmark construction method where a benchmark is composed of template tasks that can be instantiated into new concrete tasks using combinatorial test design. Concrete tasks for the same template task must be different enough that data leakage has minimal impact and similar enough that the tasks are interchangeable with respect to performance evaluation. To assess our benchmark construction method, we propose HumanEval_T, an alternative benchmark to HumanEval that was constructed using template tasks and combinatorial test design.

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

↑