arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.04831cs.SEcs.AIcs.CLcs.CRcs.LG
收藏

MILE:一个面向上下文学习系统的变异测试框架

MILE: A Mutation Testing Framework of In-Context Learning Systems

Peking University(北京大学)

Zeming Wei, Yihao Zhang, Meng Sun

AI总结:

本文提出MILE变异测试框架,通过面向ICL演示的专用变异算子和变异分数评估ICL测试套件的可靠性与质量。

摘要:

上下文学习(In-context Learning,ICL)已在大型语言模型(LLM)应用中取得显著成功。只需添加少量用于演示新任务的输入-输出对,LLM便可在推理过程中高效学习该任务,而无需修改模型参数。LLM的这种神秘能力吸引了大量研究关注,重点在于理解、格式化和改进上下文演示;但它仍受到黑箱机制以及对示例选择敏感等缺陷的困扰。本文受在机器学习(ML)系统中采用测试技术的基础思想启发,提出一个变异测试框架,旨在刻画ICL系统测试数据的质量与有效性。首先,我们提出若干专门针对ICL演示的变异算子,以及相应的ICL测试集变异分数。通过全面实验,我们展示了该框架在评估ICL测试套件可靠性和质量方面的有效性。代码可在 https://github.com/weizeming/MILE 获取。

英文摘要:

In-context Learning (ICL) has achieved notable success in the applications of large language models (LLMs). By adding only a few input-output pairs that demonstrate a new task, the LLM can efficiently learn the task during inference without modifying the model parameters. Such mysterious ability of LLMs has attracted great research interests in understanding, formatting, and improving the in-context demonstrations, while still suffering from drawbacks like black-box mechanisms and sensitivity against the selection of examples. In this work, inspired by the foundations of adopting testing techniques in machine learning (ML) systems, we propose a mutation testing framework designed to characterize the quality and effectiveness of test data for ICL systems. First, we propose several mutation operators specialized for ICL demonstrations, as well as corresponding mutation scores for ICL test sets. With comprehensive experiments, we showcase the effectiveness of our framework in evaluating the reliability and quality of ICL test suites. Our code is available at https://github.com/weizeming/MILE.

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

↑