Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedback

Yang Chen, Yufan Shen, Wenxuan Huang, Sheng Zhou, Qunshu Lin, Xinyu Cai, Zhi Yu, Jiajun Bu, Botian Shi, Yu Qiao

Abstract

Multimodal Large Language Models (MLLMs) exhibit impressive performance across various visual tasks. However, a critical bottleneck in the advancement of MLLMs toward deep visual reasoning is their heavy reliance on curated image-text supervision. To solve this problem, we introduce a novel framework, "Reasoning-Rendering-Visual-Feedback" (RRVF), that enables MLLMs to learn complex visual reasoning from only raw images. This framework builds on the "Asymmetry of Verification" principle, where verifying rendered output against a source image is easier than generating the structured representation itself. RRVF implements a closed-loop iterative process optimized via Group Relative Policy Optimization (GRPO). Evaluations on image-to-code generation for charts and web interfaces show that RRVF-trained models outperform existing open-source MLLMs and supervised baselines, even surpassing the teacher models used for feedback.

Introduction

While MLLMs have made significant strides in image description, "deep" visual reasoning—such as converting a complex data chart or a website wireframe into functional code—remains a significant challenge. Traditional Supervised Fine-Tuning (SFT) requires expensive, high-quality image-text pairs and often results in models that memorize patterns rather than understanding underlying visual logic.

The RRVF framework addresses this by leveraging the "Asymmetry of Verification": it is computationally and conceptually simpler to verify if a rendered image matches a source than to generate the code from scratch. By treating image-to-code generation as a reinforcement learning task, models can learn to self-correct without needing ground-truth text labels.

The RRVF Framework

The RRVF framework operates as a closed-loop, multi-turn system designed to refine the model's reasoning capabilities through iterative feedback.

The RRVF framework architecture, illustrating the multi-turn reasoning, rendering, and visual feedback loop.

The process consists of four main stages:

  1. Reasoning: The MLLM (the actor) analyzes an input image and generates code (e.g., Python/Matplotlib or HTML/CSS) using a Chain-of-Thought (CoT) approach.
  2. Rendering: External tools, such as a Python interpreter or Playwright, execute the generated code to produce a rendered image.
  3. Visual Feedback: A "Visual Judge" (typically a more powerful MLLM) compares the rendered output to the original source image, providing natural language feedback on discrepancies like layout errors or missing elements.
  4. Optimization: The system employs Group Relative Policy Optimization (GRPO) to refine the actor model. The reward signal is a hybrid of visual similarity (measured by CLIP and LLMs), format correctness, and tool-use efficiency.

Experimental Results

The framework was evaluated on two diverse domains: Chart-to-Code (using ChartMimic) and Web-to-Code (using WebSight).

Performance comparison on the ChartMimic benchmark. RRVF significantly outperforms SFT baselines and rivals proprietary models.

Key Findings

  • Superior Execution and Accuracy: On the ChartMimic benchmark, the RRVF-trained 7B model achieved a 97.83% code execution rate, significantly higher than the SFT baseline (69.00%) and even proprietary models like GPT-4o (90.00%). Its overall score of 64.36 is the highest among open-source models under 10B parameters.
  • The Student Surpasses the Teacher: Remarkably, the 7B parameter model trained via RRVF eventually outperformed its 72B parameter "teacher" (the Visual Judge). This indicates that the RL process allows for more effective exploration of the solution space than simple imitation.
  • Robust Generalization: Unlike SFT-trained models, which often fail when tested on unseen datasets (e.g., Plot2Code), RRVF-trained models maintain high performance. For instance, on Plot2Code, the RRVF model maintained a 96.21% execution rate, while the SFT model's performance dropped to 49.24%.

Conclusion

RRVF demonstrates that MLLMs can achieve deep visual reasoning by learning from raw images alone. By bypassing the need for curated text labels and utilizing a verification-based reward system, the framework enables models to internalize structural and layout principles. This approach not only improves performance on specific benchmarks but also enhances the model's ability to generalize to new, unseen visual domains. Future work will explore adapting RRVF for more abstract reasoning tasks where visual rendering is less straightforward.

Summary updated

BibTeX
@misc{chen2025learning,
  author = {Yang Chen and Yufan Shen and Wenxuan Huang and Sheng Zhou and Qunshu Lin and Xinyu Cai and Zhi Yu and Jiajun Bu and Botian Shi and Yu Qiao},
  title = {{Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedback}},
  year = {2025},
  eprint = {2507.20766},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.20766},
}
Figure