paper-with-me

Papers

Test-Driven Development for Code Generation

2024-02-21 · Noble Saji Mathews, Meiyappan Nagappan

Recent Large Language Models (LLMs) have demonstrated significant capabilities in generating code snippets directly from problem statements. This increasingly automated process mirrors traditional human-led software development, where code is often written in response to a requirement. Historically, Test-Driven Development (TDD) has proven its merit, requiring developers to write tests before the functional code, ensuring alignment with the initial problem statements. Applying TDD principles to LLM-based code generation offers one distinct benefit: it enables developers to verify the correctness of generated code against predefined tests. This paper investigates if and how TDD can be incorporated into AI-assisted code-generation processes. We experimentally evaluate our hypothesis that providing LLMs like GPT-4 and Llama 3 with tests in addition to the problem statements enhances code generation outcomes. We experimented with established function-level code generation benchmarks such as MBPP and HumanEval. Our results consistently demonstrate that including test cases leads to higher success in solving programming challenges. We assert that TDD is a promising paradigm for helping ensure that the code generated by LLMs effectively captures the requirements.

📄 PDF Abstract BibTeX arXiv:2402.13521

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationHumanEvalmbpptest driven development

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Adam 설명 없음
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

Towards Code Generation from BDD Test Case Specifications: A Vision

2023-05-19 · Leon Chemnitz, David Reichenbach, Hani Aldebes, Mariam Naveed 외

Automatic code generation has recently attracted large attention and is becoming more significant to the software development process. Solutions based on Machine Learning and Artificial Intelligence are being used to inc…

Code Generation

Tests as Prompt: A Test-Driven-Development Benchmark for LLM Code Generation

2025-05-13 · Yi Cui

We introduce WebApp1K, a novel benchmark for evaluating large language models (LLMs) in test-driven development (TDD) tasks, where test cases serve as both prompt and verification for code generation. Unlike traditional …

Code GenerationIn-Context LearningInstruction Followingtest driven development

Enhancing LLM Code Generation Capabilities through Test-Driven Development and Code Interpreter

2025-11-16 · Sajed Jalil, Shuvo Saha, Hossain Mohammad Seym arxiv

Over the past few years, improving LLM code generation capabilities has been a key focus in NLP research. Despite Bengali having 242 million native speakers worldwide, it receives little attention when it comes to traini…

Code Generation

TENET: One Step Toward Test-Driven Development for Repository-Level Code Generation

2025-09-29 · Yiran Hu, Nan Jiang, Shanchao Liang, Yi Wu 외 arxiv

Test-Driven Development (TDD) is a widely adopted practice that requires developers to create and execute tests alongside implementation. With recent advances in Large Language Models (LLMs), developers can shift from ma…

Code Generation

GenAI for Automotive Software Development: From Requirements to Wheels

2025-07-24 · Nenad Petrovic, Fengjunjie Pan, Vahid Zolfaghari, Krzysztof Lebioda 외 arxiv

This paper introduces a GenAI-empowered approach to automated development of automotive software, with emphasis on autonomous and Advanced Driver Assistance Systems (ADAS) capabilities. The process starts with requiremen…

Autonomous DrivingCode Generation