TY - JOUR T1 - Automatic Bug Report Generation for Open Source Projects via QLoRA Fine-Tuning, CTQRS-Structured Prompting, and the Integration of CoT and Few-Shot Strategies AU - Choi, Seojin AU - Yang, Geunseok JO - Journal of KIISE, JOK PY - 2026 DA - 2026/1/14 DO - 10.5626/JOK.2026.53.3.217 KW - automatic bug report generation KW - large language models KW - QLoRA-4bit KW - CTQRS KW - chain-of-thought KW - few-shot generation AB - Bug reports are crucial for tracking defects and maintaining software. However, in open-source environments, they are often created by non-experts, which can result in incomplete, inconsistent and less reproducible reports. Previous studies have primarily focused on template-based methods or simple fine-tuning, without fully utilizing multidimensional quality metrics like CTQRS or systematically assessing the effectiveness of few-shot prompting. This paper proposes a novel approach that integrates QLoRA-4bit fine-tuning of large language models with CTQRS-based structured prompting, Chain-of-Thought reasoning, and one or two-shot examples. Experiments conducted on a Bugzilla dataset of 3,966 pairs demonstrated significant improvements: CTQRS increased from 77% to 94%, ROUGE-1 Recall rose from 0.61 to 0.87, and SBERT similarity improved from 85 to 90. Additionally, QLoRA alone outperformed the baseline, with the supplementary strategies contributing complementary gains. These findings empirically validate that structured prompting, reasoning guidance, and minimal example provision are critical factors in enhancing performance, highlighting the practical potential of resource-efficient fine-tuning for open-source software maintenance.