mlsanityData to 14 Oct 2026

An empirical study of LoRA-based fine-tuning of large language models for automated test case generation

arXiv 2604.06946 ↗First posted 8 Apr 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Automated test case generation from natural language requirements remains a challenging problem in software engineering due to the ambiguity of requirements and the need to produce structured, executable test artifacts. Recent advances in LLMs have shown promise in addressing this task; however, their effectiveness depends on task-specific adaptation and efficient fine-tuning strategies. In this paper, we present a comprehensive empirical study on the use of parameter-efficient fine-tuning, specifically LoRA, for requirement-based test case generation. We evaluate multiple LLM families, including open-source and proprietary models, under a unified experimental pipeline. The study systematically explores the impact of key LoRA hyperparameters, including rank, scaling factor, and dropout, on downstream performance. We propose an automated evaluation framework based on GPT-4o, which assesses generated test cases across nine quality dimensions. Experimental results demonstrate that LoRA-based fine-tuning significantly improves the performance of all open-source models, with Ministral-8B achieving the best results among them. Furthermore, we show that a fine-tuned 8B open-source model can achieve performance comparable to pre-fine-tuned GPT-4.1 models, highlighting the effectiveness of parameter-efficient adaptation. While GPT-4.1 models achieve the highest overall performance, the performance gap between proprietary and open-source models is substantially reduced after fine-tuning. These findings provide important insights into model selection, fine-tuning strategies, and evaluation methods for automated test generation. In particular, they demonstrate that cost-efficient, locally deployable open-source models can serve as viable alternatives to proprietary systems when combined with well-designed fine-tuning approaches.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 24 of its 51 references that are in the map. First posted on arXiv 8 Apr 2026.

Builds on

24 of 51 references.

References · 24

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  4. 2024A Survey on Large Language Models for Code Generationcited by 658
  5. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
  6. 2023A Survey of Reinforcement Learning from Human Feedbackcited by 264
  7. 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 220
  8. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 194
  9. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 181
  10. 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 166
  11. 2024Foundational Autoraters: Taming Large Language Models for Better Automatic Evaluationcited by 74
  12. 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 68
12 more
  1. 2023Effective Test Generation Using Pre-trained Large Language Models and Mutation Testingcited by 51
  2. 2024Understanding the Performance and Estimating the Cost of LLM Fine-Tuningcited by 48
  3. 2024TESTEVAL: Benchmarking Large Language Models for Test Case Generationcited by 40
  4. 2024Low-Rank Adaptation for Foundation Models: A Comprehensive Reviewcited by 37
  5. 2024Unveiling the Generalization Power of Fine-Tuned Large Language Modelscited by 36
  6. 2023A3Test: Assertion-Augmented Automated Test Case Generationcited by 33
  7. 2025Assessing and Advancing Benchmarks for Evaluating Large Language Models in Software Engineering Taskscited by 17
  8. 2024Grade Like a Human: Rethinking Automated Assessment with Large Language Modelscited by 16
  9. 2025Large Language Models (LLMs) for Requirements Engineering (RE): A Systematic Literature Reviewcited by 9
  10. 2024Enhancing Large Language Models for Text-to-Testcase Generationcited by 7
  11. 2025Requirements-Based Test Generation: A Comprehensive Surveycited by 4
  12. 2024A critical review of methods and challenges in large language modelscited by 2

Built on by

Not cited yet.