ReVeal: Self-Evolving Code Agents via Reliable Self-Verification

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Jin, Yiyang, Xu, Kunzhao, Li, Hang, Han, Xueting, Zhou, Yanmin, Li, Cheng, Bai, Jing
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909862095486976
author Jin, Yiyang
Xu, Kunzhao
Li, Hang
Han, Xueting
Zhou, Yanmin
Li, Cheng
Bai, Jing
author_facet Jin, Yiyang
Xu, Kunzhao
Li, Hang
Han, Xueting
Zhou, Yanmin
Li, Cheng
Bai, Jing
contents Reinforcement learning with verifiable rewards (RLVR) has advanced the reasoning capabilities of large language models. However, existing methods rely solely on outcome rewards, without explicitly optimizing verification or leveraging reliable signals from realistic environments, leading to unreliable self-verification and limited test-time scaling. To address this, we widen the verification-generation asymmetry by explicitly optimizing self-verification, making it a reliable driver of deeper test-time scaling. We introduce ReVeal, a multi-turn reinforcement learning framework that evolves code generation through self-verification and tool-based evaluation. ReVeal structures long-horizon reasoning as iterative generation-verification turns and incorporates TAPO for turn-level credit assignment, fostering the co-evolution of code and test generation. At inference, this strengthened self-verification enables the model to use self-constructed tests and tool feedback to continuously evolve code for 20+ turns on LiveCodeBench despite training on only three. It also significantly improves Pass@k, indicating stronger exploration that expands the reasoning boundaries of the base model. These findings highlight the promise of ReVeal as a scalable paradigm for RL training and test-time scaling, paving the way for more robust and autonomous AI agents.
format Preprint
id arxiv_https___arxiv_org_abs_2506_11442
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ReVeal: Self-Evolving Code Agents via Reliable Self-Verification
Jin, Yiyang
Xu, Kunzhao
Li, Hang
Han, Xueting
Zhou, Yanmin
Li, Cheng
Bai, Jing
Software Engineering
Machine Learning
Reinforcement learning with verifiable rewards (RLVR) has advanced the reasoning capabilities of large language models. However, existing methods rely solely on outcome rewards, without explicitly optimizing verification or leveraging reliable signals from realistic environments, leading to unreliable self-verification and limited test-time scaling. To address this, we widen the verification-generation asymmetry by explicitly optimizing self-verification, making it a reliable driver of deeper test-time scaling. We introduce ReVeal, a multi-turn reinforcement learning framework that evolves code generation through self-verification and tool-based evaluation. ReVeal structures long-horizon reasoning as iterative generation-verification turns and incorporates TAPO for turn-level credit assignment, fostering the co-evolution of code and test generation. At inference, this strengthened self-verification enables the model to use self-constructed tests and tool feedback to continuously evolve code for 20+ turns on LiveCodeBench despite training on only three. It also significantly improves Pass@k, indicating stronger exploration that expands the reasoning boundaries of the base model. These findings highlight the promise of ReVeal as a scalable paradigm for RL training and test-time scaling, paving the way for more robust and autonomous AI agents.
title ReVeal: Self-Evolving Code Agents via Reliable Self-Verification
topic Software Engineering
Machine Learning
url https://arxiv.org/abs/2506.11442