paper-with-me

Papers

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

2022-07-05 · Hung Le, Yue Wang, Akhilesh Deepak Gotmare, Silvio Savarese, Steven C. H. Hoi

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 some critical limitations. In particular, they often follow a standard supervised fine-tuning procedure to train a code generation model only from the pairs of natural-language problem descriptions and ground-truth programs. Such paradigm largely ignores some important but potentially useful signals in the problem specification such as unit tests, which thus often results in poor performance when solving complex unseen coding tasks. To address the limitations, we propose "CodeRL", a new framework for program synthesis tasks through pretrained LMs and deep reinforcement learning (RL). Specifically, during training, we treat the code-generating LM as an actor network, and introduce a critic network that is trained to predict the functional correctness of generated programs and provide dense feedback signals to the actor. During inference, we introduce a new generation procedure with a critical sampling strategy that allows a model to automatically regenerate programs based on feedback from example unit tests and critic scores. For the model backbones, we extended the encoder-decoder architecture of CodeT5 with enhanced learning objectives, larger model sizes, and better pretraining data. Our method not only achieves new SOTA results on the challenging APPS benchmark, but also shows strong zero-shot transfer capability with new SOTA results on the simpler MBPP benchmark.

📄 PDF Abstract BibTeX arXiv:2207.01780

Code (2)

salesforce/coderl 공식 구현 jax
salesforce/codet5 pytorch

Tasks

Code GenerationDecoderDeep Reinforcement LearningmbppProgram Synthesisreinforcement-learningReinforcement Learning (RL)

Methods 이 논문이 사용한 방법론

Attention 설명 없음
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…
Gated Linear Unit A Gated Linear Unit, or GLU computes: $$ \mathrm{GLU}(a, b) = a \otimes \sigma(b) $$ It is used in natural language processing architectures, for example the Gated CNN,…
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$…
Multi-Head Attention 설명 없음
Residual Connection 설명 없음
SentencePiece 설명 없음

Similar Papers 제목 키워드 기반

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

2025-10-21 · Xue Jiang, Yihong Dong, Mengyang Liu, Hongyi Deng 외 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 …

Reinforcement LearningCode Generation

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

ReasonTabQA: A Comprehensive Benchmark for Table Question Answering from Real World Industrial Scenarios

2026-01-12 · Changzai Pan, Jie Zhang, Kaiwen Wei, Chenshuo Pan 외 arxiv

Recent advancements in Large Language Models (LLMs) have significantly catalyzed table-based question answering (TableQA). However, existing TableQA benchmarks often overlook the intricacies of industrial scenarios, whic…

Reinforcement LearningQuestion AnsweringLogical Reasoning

Encoderless Gimbal Calibration of Dynamic Multi-Camera Clusters

2018-07-24 · Christopher L. Choi, Jason Rebello, Leonid Koppel, Pranav Ganti 외

Dynamic Camera Clusters (DCCs) are multi-camera systems where one or more cameras are mounted on actuated mechanisms such as a gimbal. Existing methods for DCC calibration rely on joint angle measurements to resolve the …