关注数据污染?评估代码语言模型中的应对措施
Concerned with Data Contamination? Assessing Countermeasures in Code Language Model
AI总结:
本文系统评估了使用更新数据、整理新数据和重构现有数据等应对措施对代码语言模型评估中数据污染威胁的缓解效果,基于超过200万个Python函数实验发现这些措施并不总能降低污染影响,且现有指标难以区分污染与净化数据。
摘要:
已有多种技术被提出,以利用代码语言模型(CLMs)的能力来完成软件工程(SE)任务。虽然这些技术通常使用公开可用的数据集来评估其有效性,但评估可能受到数据污染威胁的影响,即评估数据集已经被用于训练相关的代码语言模型。这可能显著影响评估的可靠性。为缓解数据污染威胁,人们提出了不同的应对措施。这些应对措施包括使用更新的数据、整理新数据以及重构现有数据,但目前尚不清楚这些应对措施是否真的能够缓解模型评估中的数据污染威胁。为填补这一空白,我们进行了系统研究,以量化这些应对措施对代码语言模型性能的影响。为支持该研究,我们收集了超过200万个Python函数,时间戳范围从2018年1月1日到2023年12月31日。在模型截止日期之前创建的数据被视为“污染数据”,而采取了应对措施的数据被视为“净化数据”。我们通过考察代码语言模型在由不同应对措施得到的污染数据和净化数据上的性能差异,来研究这些应对措施的影响。我们的实验得出了若干有趣的观察结果。例如,代码语言模型在模型截止日期之后的数据上并不一定表现更差;相反,它们有时表现更好。此外,重构并不总是导致性能下降;它反而可能带来性能提升。而且,现有的指标(如困惑度)无法区分污染数据与净化数据。我们希望这些结果和观察能够帮助加深对代码语言模型能力的理解,并使社区了解数据污染问题。
英文摘要:
Various techniques have been proposed to leverage the capabilities of code language models (CLMs) for SE tasks. While these techniques typically evaluate their effectiveness using publicly available datasets, the evaluation can be subject to data contamination threats where the evaluation datasets have already been used to train the concerned CLMs. This can significantly affect the reliability of the evaluation. Different countermeasures have been suggested to mitigate the data contamination threat. Countermeasures include using more recent data, curating new data, and refactoring existing data are introduced, yet it is unclear whether these countermeasures could really mitigate data contamination threats to model evaluation. To fill the gap, we systematically study to quantify the impacts of these countermeasures on CLMs' performance. To facilitate the study, we collected over 2 million Python functions with timestamps ranging from January 1st, 2018, to December 31st, 2023. The data created before the models' cut-off date are considered "contaminated data", while the data where the countermeasures are taken are regarded as "cleansed data". We study the impact of these countermeasures by investigating the difference in CLMs' performance on contaminated and cleansed data derived from different countermeasures. Our experiments yield several interesting observations. For instance, CLMs do not necessarily perform worse on data after the models' cut-off date; on the contrary, they sometimes perform better. In addition, refactoring did not always result in decreased performance; it could lead to improvements instead. Furthermore, existing metrics such as perplexity cannot distinguish contaminated/cleansed data. We hope that the results and observations could help deepen the understanding of CLMs' capabilities and inform the community about data contamination.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。