ReCatcher: Towards LLMs Regression Testing for Code Generation
Not on the map. Why?
Abstract (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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 33 of its 75 references that are in the map. First posted on arXiv 25 Jul 2025.
Builds on
33 of 75 references.
References · 33
- 2023GPT-4 Technical Reportcited by 18,396
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024A Survey on LLM-as-a-Judgecited by 1,423
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2023TIES-Merging: Resolving Interference When Merging Modelscited by 818
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
21 more
- 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 152
- 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 137
- 2023Domain Specialization as the Key to Make Large Language Models Disruptive: A Comprehensive Surveycited by 135
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 76
- 2024Fine-tuning large language models for domain adaptation: Exploration of training strategies, scaling, model merging and synergistic capabilitiescited by 69
- 2024Code-Aware Prompting: A study of Coverage Guided Test Generation in Regression Setting using LLMcited by 64
- 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 60
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 53
- 2024CodeJudge-Eval: Can Large Language Models be Good Judges in Code Understanding?cited by 30
- 2023(Why) Is My Prompt Getting Worse? Rethinking Regression Testing for Evolving LLM APIscited by 23
- 2024Code Less, Align More: Efficient LLM Fine-tuning for Code Generation with Data Pruningcited by 20
- 2025Sens-Merging: Sensitivity-Guided Parameter Balancing for Merging Large Language Modelscited by 16
- 2023Unit Test Generation using Generative AI : A Comparative Performance Analysis of Autogeneration Toolscited by 13
- 2025A Taxonomy of Inefficiencies in LLM-Generated Python Codecited by 10
- 2023Automating the Correctness Assessment of AI-generated Code for Security Contextscited by 6
- 2024On the Limitations of Embedding Based Methods for Measuring Functional Correctness for Code Generationcited by 6
- 2024An Empirical Study of False Negatives and Positives of Static Code Analyzers From the Perspective of Historical Issuescited by 4
- 2024RETAIN: Interactive Tool for Regression Testing Guided LLM Migrationcited by 3
- 2021Scaling up Memory-Efficient Formal Verification Tools for Tree Ensemblescited by 2
- 2023Case studies of development of verified programs with Dafny for accessibility assessmentcited by 2
- 2024On the Diffusion of Test Smells in LLM-Generated Unit Testscited by 2
Built on by
Not cited yet.