Requirement-Guided Test-Driven Development for Modular Code Generation with Large Language Model

Read full text
Authors: Wasay Mohammed Abdul, Ragib Shahariar Ayon, Shibbir Ahmed, Rodion Podorozhny
Cited by: 1
References: 8

Abstract

Large Language Models (LLMs) show promise for synthesizing software directly from natural-language problem descriptions. However, LLM-based code synthesis remains unreliable: models may hallucinate features, generated tests and code may diverge, and repairs often require manual effort. We present a test-driven pipeline that extracts functional requirements (FR) from a problem description, resolves dependencies, maps them into a modular Model-View-Controller (MVC) structure, and generates tests before code, followed by bounded, execution-driven refinement. We evaluate execution reliability with Pass@1 and refine@k, and assess the faithfulness of FR extraction using NLI-based entailment.

Publication details

Journal / source
Proceedings of the 34th ACM International Conference on the Foundations of Software Engineering
Publisher
ACM
Pages
1404–1405
Publication date
5 July 2026