Energy-Based Models for Code Generation under Compilability Constraints
원문 초록
Neural language models can be successfully trained on source code, leading to applications such as code completion. However, their versatile autoregressive self-supervision objective overlooks important global sequence-level features that are present in the data such as syntactic correctness or compilability. In this work, we pose the problem of learning to generate compilable code as constraint satisfaction. We define an Energy-Based Model (EBM) representing a pre-trained generative model with an imposed constraint of generating only compilable sequences. We then use the KL-Adaptive Distributional Policy Gradient algorithm (Khalifa et al., 2021) to train a generative model approximating the EBM. We conduct experiments showing that our proposed approach is able to improve compilability rates without sacrificing diversity and complexity of the generated samples.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Seed-Coder: Let the Code Model Curate Data for Itself
RMoA: Optimizing Mixture-of-Agents through Diversity Maximization and Residual Compensation
Turning the Tide: Repository-based Code Reflection
Why Do Open-Source LLMs Struggle with Data Analysis? A Systematic Empirical Study
A Reward-driven Automated Webshell Malicious-code Generator for Red-teaming
The Devil behind the mask: An emergent safety vulnerability of Diffusion LLMs
토론
이 논문과 연결된 포럼 글이 아직 없습니다.