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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wei, Zeming, Zhang, Yihao, Sun, Meng
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912018179555328
author Wei, Zeming
Zhang, Yihao
Sun, Meng
author_facet Wei, Zeming
Zhang, Yihao
Sun, Meng
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2409_04831
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle MILE: A Mutation Testing Framework of In-Context Learning Systems
Wei, Zeming
Zhang, Yihao
Sun, Meng
Software Engineering
Artificial Intelligence
Computation and Language
Cryptography and Security
Machine Learning
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.
title MILE: A Mutation Testing Framework of In-Context Learning Systems
topic Software Engineering
Artificial Intelligence
Computation and Language
Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2409.04831