(Why) Is My Prompt Getting Worse? Rethinking Regression Testing for Evolving LLM APIs

Wanqin Ma, Chenyang Yang, Christian Kästner
11/18/2023
cs.SEcs.CL

No official code found. Best implementation: MAWanqin2002/LLM_Regression_Testing (2 stars, last commit 2025-06-03).

Abstract

Large Language Models (LLMs) are increasingly integrated into software applications. Downstream application developers often access LLMs through APIs provided as a service. However, LLM APIs are often updated silently and scheduled to be deprecated, forcing users to continuously adapt to evolving models. This can cause performance regression and affect prompt design choices, as evidenced by our case study on toxicity detection. Based on our case study, we emphasize the need for and re-examine the concept of regression testing for evolving LLM APIs. We argue that regression testing LLMs requires fundamental changes to traditional testing approaches, due to different correctness notions, prompting brittleness, and non-determinism in LLM APIs.

View on arXivView PDF

Code Implementations(1)

20PythonJan 25, 20241 years ago

Similar Papers

Cite this paper

@article{ma2023why,
  title  = {(Why) Is My Prompt Getting Worse? Rethinking Regression Testing for Evolving LLM APIs},
  author = {Wanqin Ma and Chenyang Yang and Christian Kästner},
  year   = {2023},
  eprint = {2311.11123},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.11123v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.11123.svg)](https://codeofpaper.com/paper/2311.11123)

Discussion