用组合测试设计构建新基准,解决代码生成评测中的数据泄露问题。
Addressing Data Leakage in HumanEval Using Combinatorial Test Design
- 用模板任务+组合设计生成可变代码题,防训练数据泄露。
- 新基准HumanEval_T与原版在相同任务上表现相近,验证有效性。
- 适合评估代码生成模型公平性,尤其关注训练数据污染的场景。
大型语言模型(LLM)在软件工程领域广泛应用,如程序生成和测试分类。衡量其性能的基准测试至关重要。例如,HumanEval 包含 164 个手工编写的任务,已成为评估 LLM 程序生成能力的重要工具。然而,由于基准任务及其解答可能泄露到训练数据中,导致评估结果失真,且因训练数据为黑盒,难以察觉泄露。为此,本文提出一种新基准构建方法:使用模板任务,通过组合测试设计生成具体任务。同一模板生成的任务需足够不同以减少数据泄露影响,同时保持足够相似以确保性能评估可比性。我们构建了替代 HumanEval 的 HumanEval_T 基准,验证该方法的有效性。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。