paper-with-me

Papers

Effective LLM-Driven Code Generation with Pythoness

2025-01-03 · Kyla H. Levin, Kyle Gwilt, Emery D. Berger, Stephen N. Freund

The advent of large language models (LLMs) has paved the way for a new era of programming tools with both significant capabilities and risks, as the generated code lacks guarantees of correctness and reliability. Developers using LLMs currently face the difficult task of optimizing, integrating, and maintaining code generated by AI. We propose an embedded domain-specific language (DSL), Pythoness, to address those challenges. In Pythoness, developers program with LLMs at a higher level of abstraction. Rather than interacting directly with generated code, developers using Pythoness operate at the level of behavioral specifications when writing functions, classes, or an entire program. These specifications can take the form of unit tests and property-based tests, which may be expressed formally or in natural language. Guided by these specifications, Pythoness generates code that both passes the tests and can be continuously checked during execution. We posit that the Pythoness approach lets developers harness the full potential of LLMs for code generation while substantially mitigating their inherent risks. We describe our current prototype implementation of Pythoness and demonstrate that it can successfully leverage a combination of tests and code generation to yield higher quality code than specifications alone.

📄 PDF Abstract BibTeX arXiv:2501.02138

Code (1)

plasma-umass/pythoness 공식 구현

Tasks

Code Generation

Similar Papers 제목 키워드 기반

DreamTuner: Single Image is Enough for Subject-Driven Generation

2023-12-21 · Miao Hua, Jiawei Liu, Fei Ding, Wei Liu 외

Diffusion-based models have demonstrated impressive capabilities for text-to-image generation and are expected for personalized applications of subject-driven generation, which require the generation of customized concep…

Image GenerationText to Image GenerationText-to-Image Generation

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

LProtector: An LLM-driven Vulnerability Detection System

2024-11-10 · Ze Sheng, Fenghua Wu, Xiangwu Zuo, Chao Li 외

This paper presents LProtector, an automated vulnerability detection system for C/C++ codebases driven by the large language model (LLM) GPT-4o and Retrieval-Augmented Generation (RAG). As software complexity grows, trad…

Binary ClassificationLanguage ModelingLanguage ModellingLarge Language Model+4

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 deve…

Code GenerationHumanEvalmbpptest driven development

SSR-Encoder: Encoding Selective Subject Representation for Subject-Driven Generation

2023-12-26 · CVPR 2024 1 · Yuxuan Zhang, Yiren Song, Jiaming Liu, Rui Wang 외

Recent advancements in subject-driven image generation have led to zero-shot generation, yet precise selection and focus on crucial subject representations remain challenging. Addressing this, we introduce the SSR-Encode…

Image Generation