Verifiable Reinforcement Learning (GRPO) for Open-Weight Visual Coding Agents
Train open-weight code-writing agents with reinforcement learning against deterministic visual evaluators to close their rule-inference and efficiency gap with frontier models.
Time
Compute level
Resources
What the paper used
Prerequisites
Scope
The Gap
While the strongest video baseline (VBVR-Pro-Wan2.2-I2V-A14B) was post-trained with reinforcement learning on VBVR-Pro task families, the 23 open-weight coding agents were evaluated zero-shot through OpenCode without task-specific RL optimization, trailing closed agents by over 0.35 overall and performing worst on Abstraction.
“Reading the first frame correctly is within reach of the strongest open-weight models; rule inference is where they fall furthest behind.”
Limitation
Open-weight coding agents exhibit poor rule-inference accuracy and extreme token inefficiency (40-50 tool calls and over 20x Codex's input tokens for GLM-5) because they lack RL alignment on multi-turn visual program synthesis.
Proposed Solution
Post-train mid-sized open-weight coding models (e.g., Qwen3-Coder-30B-A3B or GLM-5) using Group Relative Policy Optimization (GRPO) over multi-turn sandboxed execution rollouts on the 50 in-domain VBVR-Pro training families, using the official deterministic evaluator score combined with a video-delivery bonus and a tool-call/token budget penalty as the verifiable reward signal.
The paper’s authors list this direction as future work, so they may already be pursuing it.
Why This Matters
RL fine-tuning with verifiable execution rewards is expected to substantially improve open-weight rule inference and sample efficiency, enabling a fairer comparison with RL-trained video models and reducing deployment costs.
How to Get Started
How to test it: Test whether GRPO post-training on the 50 in-domain task families improves held-out OOD VBVR-Pro-Bench score over zero-shot Qwen3-Coder-30B-A3B and GLM-5 baselines while reducing mean tool calls per instance; stop if OOD scores stagnate or collapse due to reward hacking on in-domain templates.
- Set up parallel CPU execution containers wrapping the VBVR-Pro procedural task generators for the 50 in-domain training families and the official rule-based evaluator.
- Implement a multi-turn GRPO training loop (e.g., using veRL or OpenRLHF) that samples agent tool-use trajectories and computes scalar rewards from evaluator scores minus delivery/token penalties.
- Run baseline zero-shot evaluations of Qwen3-Coder-30B-A3B and DeepSeek-V3.2 on the 50 OOD families to establish exact pre-RL reference scores.
- Train the open-weight policy on in-domain tasks and evaluate generalization on the 50 held-out OOD task families against both closed agents and RL-trained video models.
Suggested by AI. Adapt it to your setup.
Has This Been Done?
Visual-RFT: Visual Reinforcement Fine-Tuning and AR-GRPO apply reinforcement learning to visual tasks and image generation respectively. However, they do not explore applying GRPO specifically to mid-sized open-weight coding models over multi-turn execution rollouts for visual coding tasks with domain-specific reward signals.
- AR-GRPO: Training Autoregressive Image Generation Models via Reinforcement Learning · 2025 · 32 citations
- Visual-RFT: Visual Reinforcement Fine-Tuning · 2025 · 709 citations
We searched OpenAlex and arXiv for “GRPO reinforcement learning visual coding agents” and “Verifiable Reinforcement Learning (GRPO) for Open-Weight Visual Coding Agents” and an AI compared the idea with the top 10 results. A small search can miss relevant work.
Source Paper
Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video ModelsDezhi Luo, Fengyuan Yu, Haotian Zhang +11 more · 2026
This paper evaluates whether off-the-shelf coding agents outperform native video generation models on visual reasoning tasks when evaluated under identical inputs, output video format, and an unmodified deterministic evaluator on VBVR-Pro-Bench. By writing Python programs that render answer videos in a CPU sandbox, three closed-model coding agents achieve scores of 0.893 to 0.923, surpassing the best RL-trained video model (0.670) by over 0.22, while the strongest open-weight model (GLM-5) reaches 0.572.
Related Ideas
- Verifiable-Reward RL Fine-Tuning of Open-Weight VLMs for Parametric Motion Program Synthesis3AGameFactory-Motion: Agentic Rigging and Reliable Complex Motion Generation for Diverse 3D Assets🔴Hard
- Integration of Online Reinforcement Learning (PPO/GRPO)BitNet b1.58 2B4T Technical Report🟠Medium
- Probing Preference Optimization and Differentiable Reward Backpropagation Beyond Policy GradientsRL Post-Training in Diffusion Transformers Is Activation Steering🟠Medium
- Reinforcement Learning for Long-Horizon GUI Agent NavigationPenguin-VL: Exploring the Efficiency Limits of VLM with LLM-based Vision Encoders⛔Very hard
- Video-Grounded Open Critic for Fact Verification in Egocentric Captioning RLEgoCaptioner: Towards Comprehensive and Fine-Grained Egocentric Video Captioning🟠Medium