paper-with-me

Papers

ReCatcher: Towards LLMs Regression Testing for Code Generation

2025-07-25 · Altaf Allah Abbassi, Leuson Da Silva, Amin Nikanjam, Foutse Khomh arxiv

Large Language Models (LLMs) for code generation evolve rapidly through fine-tuning, merging, or new model releases. However, such updates can introduce regressions, not only in correctness but also in code quality and performance. To address this, we present ReCatcher, a regression testing framework for Python code generation. ReCatcher systematically compares two LLMs, typically a current model and a candidate update, across three dimensions: logical correctness, static code quality, and execution performance. We apply ReCatcher to assess regressions across three update scenarios, fine-tuning, merging, and model release, using CodeLlama, DeepSeek-Coder, and GPT-4o. Our evaluation shows that fine-tuning with cross-language datasets increases syntax errors by up to 12%. Merging with general-purpose models like Llama2 leads to regressions in correctness by up to 18%. GPT-4o introduces regressions of up to 50% in handling missing imports compared to GPT-3.5-turbo, while GPT-4o-mini suffers up to 80% performance degradation in execution time versus GPT-4o. Overall, logical correctness, performance, and error handling (e.g., syntax errors and missing imports) are the most regression-prone areas. Comparing ReCatcher with baseline solutions, it presents better and consistent accuracy across logical and performance aspects. ReCatcher highlights the importance of systematic regression evaluation before adopting new models, while assisting researchers and practitioners in making more informed update decisions.

📄 PDF Abstract BibTeX arXiv:2507.19390

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

Generating Unseen Code Tests In Infinitum

2024-07-29 · Marcel Zalmanovici, Orna Raz, Eitan Farchi, Iftach Freund

Large Language Models (LLMs) are used for many tasks, including those related to coding. An important aspect of being able to utilize LLMs is the ability to assess their fitness for specific usages. The common practice i…

Code GenerationregressionText-to-Code Generation

RobuNFR: Evaluating the Robustness of Large Language Models on Non-Functional Requirements Aware Code Generation

2025-03-28 · Feng Lin, Dong Jae Kim, Zhenhao Li, Jinqiu Yang 외

When using LLMs to address Non-Functional Requirements (NFRs), developers may behave differently (e.g., expressing the same NFR in different words). Robust LLMs should output consistent results across these variations; h…

Code Generation

Code-Aware Prompting: A study of Coverage Guided Test Generation in Regression Setting using LLM

2024-01-31 · Gabriel Ryan, Siddhartha Jain, Mingyue Shang, Shiqi Wang 외

Testing plays a pivotal role in ensuring software quality, yet conventional Search Based Software Testing (SBST) methods often struggle with complex software units, achieving suboptimal test coverage. Recent works using …

software testing

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

2023-11-18 · Wanqin Ma, Chenyang Yang, Christian Kästner

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 an…

regression

Can LLM Generate Regression Tests for Software Commits?

2025-01-19 · Jing Liu, Seongmin Lee, Eleonora Losiouk, Marcel Böhme

Large Language Models (LLMs) have shown tremendous promise in automated software engineering. In this paper, we investigate the opportunities of LLMs for automatic regression test generation for programs that take highly…

regression