paper-with-me

Papers

CodeRL+: Improving Code Generation via Reinforcement with Execution Semantics Alignment

2025-10-21 · Xue Jiang, Yihong Dong, Mengyang Liu, Hongyi Deng, Tian Wang, Yongding Tao, Rongyu Cao, Binhua Li, Zhi Jin, Wenpin Jiao, Fei Huang, Yongbin Li, Ge Li arxiv

While Large Language Models (LLMs) excel at code generation by learning from vast code corpora, a fundamental semantic gap remains between their training on textual patterns and the goal of functional correctness, which is governed by formal execution semantics. Reinforcement Learning with Verifiable Rewards (RLVR) approaches attempt to bridge this gap using outcome rewards from executing test cases. However, solely relying on binary pass/fail signals is inefficient for establishing a well-aligned connection between the textual representation of code and its execution semantics, especially for subtle logical errors within the code. In this paper, we propose CodeRL+, a novel approach that integrates execution semantics alignment into the RLVR training pipeline for code generation. CodeRL+ enables the model to infer variable-level execution trajectory, providing a direct learning signal of execution semantics. CodeRL+ can construct execution semantics alignment directly using existing on-policy rollouts and integrates seamlessly with various RL algorithms. Extensive experiments demonstrate that CodeRL+ outperforms post-training baselines (including RLVR and Distillation), achieving a 4.6% average relative improvement in pass@1. CodeRL+ generalizes effectively to other coding tasks, yielding 15.5% and 4.4% higher accuracy on code-reasoning and test-output-generation benchmarks, respectively. CodeRL+ shows strong applicability across diverse RL algorithms and LLMs. Furthermore, probe analyses provide compelling evidence that CodeRL+ strengthens the alignment between code's textual representations and its underlying execution semantics.

📄 PDF Abstract BibTeX arXiv:2510.18471

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement LearningCode Generation

Similar Papers 제목 키워드 기반

Integrating Symbolic Execution into the Fine-Tuning of Code-Generating LLMs

2025-04-21 · Marina Sakharova, Abhinav Anand, Mira Mezini

Code-generating Large Language Models (LLMs) have become essential tools in modern software development, enhancing productivity and accelerating development. This paper aims to investigate the fine-tuning of code-generat…

Automatic Unit Test Data Generation and Actor-Critic Reinforcement Learning for Code Synthesis

2023-10-20 · Philip John Gorinski, Matthieu Zimmer, Gerasimos Lampouras, Derrick Goh Xin Deik 외

The advent of large pre-trained language models in the domain of Code Synthesis has shown remarkable performance on various benchmarks, treating the problem of Code Generation in a fashion similar to Natural Language Gen…

Code GenerationLanguage ModellingReinforcement Learning (RL)Text Generation

CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learning

2022-07-05 · Hung Le, Yue Wang, Akhilesh Deepak Gotmare, Silvio Savarese 외

Program synthesis or code generation aims to generate a program that satisfies a problem specification. Recent approaches using large-scale pretrained language models (LMs) have shown promising results, yet they have som…

Code GenerationDecoderDeep Reinforcement Learningmbpp+3

DecoderLens: Layerwise Interpretation of Encoder-Decoder Transformers

2023-10-05 · Anna Langedijk, Hosein Mohebbi, Gabriele Sarti, Willem Zuidema 외

In recent years, many interpretability methods have been proposed to help interpret the internal states of Transformer-models, at different levels of precision and complexity. Here, to analyze encoder-decoder Transformer…

DecoderLogical ReasoningMachine TranslationQuestion Answering+2

Relay Variational Inference: A Method for Accelerated Encoderless VI

2021-10-26 · Amir Zadeh, Santiago Benoit, Louis-Philippe Morency

Variational Inference (VI) offers a method for approximating intractable likelihoods. In neural VI, inference of approximate posteriors is commonly done using an encoder. Alternatively, encoderless VI offers a framework …

ImputationVariational Inference