paper-with-me

Papers

Iterative Self-Training for Code Generation via Reinforced Re-Ranking

2025-04-13 · Nikita Sorokin, Ivan Sedykh, Valentin Malykh

Generating high-quality code that solves complex programming tasks is challenging, especially with current decoder-based models that produce highly stochastic outputs. In code generation, even minor errors can easily break the entire solution. Leveraging multiple sampled solutions can significantly improve the overall output quality. One effective way to enhance code generation is by pairing a code generation model with a reranker model, which selects the best solution from the generated samples. We propose a novel iterative self-training approach for self-training reranker models using Proximal Policy Optimization (PPO), aimed at improving both reranking accuracy and the overall code generation process. Unlike traditional PPO approaches, where the focus is on optimizing a generative model with a reward model, our approach emphasizes the development of a robust reward/reranking model. This model improves the quality of generated code through reranking and addresses problems and errors that the reward model might overlook during PPO alignment with the reranker. Our method iteratively refines the training dataset by re-evaluating outputs, identifying high-scoring negative examples, and incorporating them into the training loop, that boosting model performance. Our evaluation on the MultiPL-E dataset demonstrates that our 13.4B parameter model outperforms a 33B model in code generation quality while being three times faster. Moreover, it achieves performance comparable to GPT-4 and surpasses it in one programming language.

📄 PDF Abstract BibTeX arXiv:2504.09643

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationRerankingRe-Ranking

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
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$…
Position-Wise Feed-Forward Layer 설명 없음
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…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Residual Connection 설명 없음
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…

Similar Papers 제목 키워드 기반

Reasoning-Enhanced Self-Training for Long-Form Personalized Text Generation

2025-01-07 · Alireza Salemi, Cheng Li, Mingyang Zhang, Qiaozhu Mei 외

Personalized text generation requires a unique ability of large language models (LLMs) to learn from context that they often do not encounter during their standard training. One way to encourage LLMs to better use person…

FormResponse GenerationText Generation

Re-ReST: Reflection-Reinforced Self-Training for Language Agents

2024-06-03 · Zi-Yi Dou, Cheng-Fu Yang, Xueqing Wu, Kai-Wei Chang 외

Finetuning language agents with reasoning-action trajectories is effective, but obtaining these trajectories from human annotations or stronger models is costly and sometimes impractical. In this paper, we investigate th…

Code GenerationImage GenerationMulti-hop Question AnsweringQuestion Answering+4

Text Diffusion with Reinforced Conditioning

2024-02-19 · Yuxuan Liu, Tianchi Yang, Shaohan Huang, Zihan Zhang 외

Diffusion models have demonstrated exceptional capability in generating high-quality images, videos, and audio. Due to their adaptiveness in iterative refinement, they provide a strong potential for achieving better non-…

Reinforced Information Retrieval

2025-02-17 · Chaofan Li, Zheng Liu, Jianlyv Chen, Defu Lian 외

While retrieval techniques are widely used in practice, they still face significant challenges in cross-domain scenarios. Recently, generation-augmented methods have emerged as a promising solution to this problem. These…

Domain AdaptationInformation RetrievalRetrieval

Self-Reinforced Cascaded Regression for Face Alignment

2017-11-23 · Xin Fan, Risheng Liu, Kang Huyan, Yuyao Feng 외

Cascaded regression is prevailing in face alignment thanks to its accuracy and robustness, but typically demands manually annotated examples having low discrepancy between shape-indexed features and shape updates. In thi…

Face AlignmentPhilosophyregression