Skip to content
AI-generated research idea🔴Hard💡Moderate InnovationRelated work found

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

a couple of months

Compute level

Large cluster

Resources

Multi-node GPU training cluster for GRPO rollouts on open-weight LLMs, parallel CPU execution sandboxes, and VBVR-Pro in-domain training generators

What the paper used

CPU-only Python sandbox with 30-minute wall-clock limit per instance; 500 instances evaluated via closed-model APIs (Codex, Claude Code, Gemini CLI) and 23 open-weight models via Amazon Bedrock; video model baselines taken from published leaderboard without rerunning.

Prerequisites

reinforcement learning, LLM post-training, distributed sandbox orchestration

Scope

modify existing code

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.”
From the paper, Section 3.2, page 5. Matched against the PDF text.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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?

Related work found

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.

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 Models

Dezhi 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

Is this a good idea?

Share onXLinkedIn