Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedback
Abstract Multimodal Large Language Models (MLLMs) exhibit impressive performance across various visual tasks. Subsequent investigations into enhancing their visual reasoning abilities have significantly expanded their performance envelope. 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, i.e., verifying the rendered output against the source image is substantially easier than performing deep visual reasoning to generate a faithful, structured representation such as code. We demonstrate that this relative ease provides an ideal reward signal for optimization via Reinforcement Learning (RL), thereby reducing reliance on image-text supervision. RRVF implements a closed-loop iterative process encompassing reasoning, rendering, and visual feedback components, enabling the model to perform complex reasoning, including self-correction through multi-turn interactions. This process is optimized end-to-end using the GRPO algorithm. Extensive evaluations are conducted on image-to-code generation across two diverse domains: data charts and web interfaces. The RRVF-trained model not only outperforms existing similarly sized open-source MLLMs and supervised finetuning baselines but also exhibits superior generalization. Notably, the model outperforms the more advanced MLLM used to generate visual feedback during training. Code is available at https://github.com/L-O-I/RRVF.
Introduction. Improving complex reasoning in Large Language Models (LLMs) represents a fundamental challenge in AI research and a critical milestone on the path to Artificial General Intelligence (AGI) (OpenAI 2024b; DeepSeek-AI et al. 2025; Hu et al. 2025; Team et al. 2025b). Recent works have attempted to replicate this success in Multimodal Large Language Models (MLLMs) for addressing complex visual tasks, yet this paradigm introduces several challenges (Huang et al. 2025; Shen et al. 2025a).
Specifically, for MLLMs, effective reasoning necessitates capabilities that extend beyond elementary visual perception to achieve sophisticated visual comprehension and inference. This paradigm requires models to not only perform object recognition but also to analyze underlying visual semantics, spatial-geometric relationships, and complex interobject dependencies (Su et al. 2025c; Luo et al. 2024). While accurate visual perception serves as a fundamental prerequisite for such reasoning capabilities, it inherently depends on robust reasoning mechanisms, creating a challenging bidirectional dependency where perception and reasoning are mutually reinforcing. Recently, the pioneering work, like OpenAI’s “Think with Images” (OpenAI 2025b; Su et al. 2025a), has shown how external tools like OCR and zoom can enable models to interact proactively with visual content. Subsequent approaches expand beyond limited tool sets by generating executable code for visual operations through Reinforcement Learning (RL) training (Sutton, Barto et al. 1998), as seen in VRAG-RL (Wang et al. 2025b; Liu et al. 2025b). This
Related work. Multimodal Large Language Models (MLLMs) are rapidly evolving (Liu et al. 2023; Bai et al. 2025; Zhu et al. 2025; Anthropic 2025; OpenAI 2025a; Google 2025), demonstrating remarkable capabilities in visual understanding and cross-modal interaction. At the forefront are powerful proprietary models such as OpenAI o3 (OpenAI 2025a) and Gemini-2.5 (Google 2025), which employ a unified Transformer architecture for end-to-end processing of diverse inputs, including images, text, and long videos. Concurrently, the open-source community is making significant strides (Team et al. 2025c; Guo et al. 2025; Team et al. 2025a). For instance, InternVL3 (Zhu et al. 2025) has achieved state-of-the-art (SOTA) performance on numerous multimodal benchmarks through its robust visual encoder and refined alignment mechanism. Similarly, models like Qwen2.5-VL (Bai et al. 2025) have shown strong capabilities in multi-language support and specialized tasks like optical character recognition (OCR) and document understanding. These collective efforts, from both proprietary and open-source domains, have significantly advanced the field and promoted the democratization of related technologies (Chu et al. 2025; Liu et al. 2025a). Despite these advances in visual representation and long-context processing, current MLLMs still have limitations in deep visual reasoning and do not fully utilize visual information (Su et al. 2025c; Wang et al. 2025c; Mao et al. 2025).
Visual Reasoning Visual reasoning, as a core capability in multimodal understanding, has garnered significant attention from the academic community in recent years (Su et al. 2025c). Efforts to bridge the semantic gap between continuous visual information and discrete language have evolved through several stages: from encoding images into static visual features for Large Language Models (LLMs), to leveraging text-based Chain-of-Thought (CoT) for reasoning (Zhang et al. 2023; Wang et al. 2025c), which explicitly breaks down complex visual problems into textual intermediate steps (Shao et al. 2024a), and more recently, to accomplishing tasks by invoking external tools (Zheng et al. 2025; Xu et al. 2025; Wu et al. 2024b; Fu et al. 2025). This paradigm, where models learn to call APIs, was pioneered in language-only contexts by works like Toolformer (Schick et al. 2023) and extended to multimodal scenarios (Wu et al. 2023). Building upon this, some models act as advanced planners (Qi et al. 2024; Su et al. 2025b), enriching visual understanding at a finer-grained level by iteratively invoking tools like “zoom in” and “crop” as reasoning steps.
Method. Inspired by this, we propose an MLLM RL framework called “Reasoning-Rendering-Visual-Feedback” (RRVF) to endow MLLMs with enhanced visual comprehension and reasoning capabilities. As shown in Figure 1, this framework enhances visual understanding through a cycle of reasoning, rendering, and visual feedback, relying solely on images as training data. The core design is motivated by the “Asymmetry of Verification” principle (Wei 2025), i.e., for many tasks, a proposed solution is substantially easier to verify than to generate. Specifically, tasks exhibiting this property are particularly amenable to RL training, as the efficient verification process can be directly formulated as a reward signal. Remarkably, we observe that for image-to-code tasks, e.g., converting the chart image to the executable code, verifying the visual similarity between rendered outputs and source images proves substantially more tractable than generating rendering code from scratch. Within the RRVF framework, the MLLM reasons about an input image to generate rendering code, which is then executed by a tool. Based on the visual discrepancy between the rendered and original images, the MLLM iteratively refines its code across multiple turns. To optimize this closed-loop refinement process, the system is modeled as a reinforcement learning task driven by the GRPO algorithm (Shao et al. 2024b). The learning is guided by a reward signal that incorporates the final visual similarity score. This mechanism compels the model to understand the image’s generative logic from raw pixels, leading to semantically correct code. The training process requires no text-based ground truth. This naturally resolves the “semantic equivalence” issue, as any program that produces the correct visual output is rewarded. Moreover, the GRPO optimization is guided by a hybrid reward function. (1) The primary component is a visual similarity reward that quantifies the fidelity between the rendered image and the original image by integrating signals from established vision-language models. (2) This is supplemented by a format correctness reward to ensure the generation of syntactically correct and executable code. (3) An adaptive tool-use reward is introduced to balance exploration and convergence. This hybrid reward function effectively enables the model to learn underlying generative logic directly from pixel-level visual representations. To demonstrate the effectiveness of the proposed RRVF framework, we evaluate our method in two distinct domains, data charts and web interfaces, while using only raw pixelbased images as input. Extensive experiments show that the RRVF framework enables MLLMs to effectively learn the underlying generative logic for both domains, capturing structures that range from the strict syntax of programming toolkits to the flexible layouts of web pages. Our main contributions are as follows:
• The exploration of the “Asymmetry of Verification” principle for MLLM training in complex visual reasoning tasks. We establish that verifying the visual correctness of a rendered output against a source image is a significantly more tractable problem than generating the initial code. This asymmetry provides an effective learning signal that circumvents the need for textual supervision. • A novel framework, termed Reasoning-Rendering- Visual-Feedback (RRVF), is proposed. It implements a closed-loop iterative process that enables model selfcorrection through multi-turn interactions and tool invocation, and this pipeline is optimized in an end-to-end manner using the GRPO algorithm. • Extensive evaluation of the RRVF framework across two structurally diverse domains (i.e., data charts and web interfaces) demonstrates that the proposed approach successfully learns underlying generative logic directly from pixel-level representations.
Discussion. The main experimental results are presented in Table 1, Table 2, and Table 3. The findings indicate that the RRVFtrained model achieves SOTA performance among opensource MLLMs of comparable size. Case studies are provided in Appendix B.
Chart-to-Code Task. On the ChartMimic benchmark (Table 1), the RRVF-trained model exhibits substantial improvements over its base model, Qwen2.5-VL-7B-Instruct. The most notable result is the code execution rate (Exec rate) of 97.83%, which surpasses all other evaluated models, including proprietary systems like OpenAI o3 and Gemini-2.5-Pro. This exceptional reliability in generating valid code is a direct result of the RL process, which penalizes non-executable outputs. Consequently, the model attains an Overall score of 64.36, securing the highest performance among all open-source models. This performance is further supported by a strong score in layout understanding (Layout: 80.97), suggesting that the visual feedback loop effectively teaches the model to infer and replicate the underlying structural logic of data visualizations. On the Plot2Code dataset (Table 2), the RRVF model achieves the highest execution rate (96.21%) among all models. Consequently, RRVF surpasses similarly sized models on the primary Text and GPT-4o Score metrics, underscoring its enhanced robustness and reliability. When considering “pass” scores, which are calculated only on successfully executed code, models with lower execution rates are effectively evaluated on easier subsets of data. Despite RRVF’s high execution rate exposing it to more challenging examples, its performance remains highly competitive.
Web-to-Code Task. The applicability of RRVF is further tested on the WebSight benchmark, a domain characterized by high structural freedom (Table 3). In this task, our RRVFtrained model achieves strong performance with a CLIP score of 88.29 and a GPT score of 91.50, surpassing similarly sized models. Crucially, this advantage is obtained without any access to ground-truth HTML, relying instead on our proposed method. This demonstrates that the framework can effectively learn to deconstruct and replicate complex layouts and component relationships from raw pixels alone, validating the potential of learning through pure visual feedback even in highly unstructured domains.
Generalization Ability. To evaluate the true extent of the learned skills, we test the models’ generalization ability via a zero-shot evaluation on the unseen Plot2Code dataset. As shown in Table 2, the SFT-trained model’s execution rate dramatically plummets from 69.00% on the Chartmimic to 49.24% on the Plot2Code. This sharp decline suggests that SFT learns brittle, non-transferable knowledge tied to the specific code patterns of the ChartMimic dataset. In stark contrast, our RRVF-trained model showcases exceptional generalization. Its execution rate remains remarkably stable, decreasing only negligibly from 97.83% to 96.21%. This stability is strong evidence that RRVF learns the fundamental and transferable principles of translating visual elements into programmatic logic, rather than simply memorizing code templates.
Conclusion. This paper presents RRVF, a framework that enhances visual reasoning in multimodal large language models through a reasoning-rendering-visual-feedback loop. The framework leverages the “Asymmetry of Verification” principle to learn generative logic directly from raw images, eliminating the need for paired textual supervision. Comprehensive experiments across charts and web interfaces show that RRVF consistently outperforms strong open-source baselines. The ablation study further confirms the superiority of the proposed framework over traditional supervised fine-tuning, validating its effectiveness in fostering robust visual reasoning.
Limitations. The framework’s applicability is currently limited to code reconstruction tasks. Investigating the adaptation of RRVF to broader tasks, particularly those involving abstract reasoning where verification is non-trivial, remains an important avenue for future work.
Lines of inquiry this paper opens 24
Research framings built by reading the notes related to this paper — the questions it feeds into.
Can visual rendering-based rewards effectively improve code and layout quality?- How does rendering and measuring beat vision-language models for slide assessment?
- Can bounding-box signals replace image encoders for visual output evaluation?
- Do iterative reflection methods underperform single-pass RL for slide generation?
- Why do vision-based rewards for web generation incur substantial computational overhead?
- What performance gains does ALISA achieve over prior WebUI-to-Code training methods?
- How does the rendering reward weight code executability against visual fidelity failures?
- Can code generation tools learn ARIA attributes from specification summaries?
- Can render-and-judge mechanisms generalize beyond chart-to-code to other executable outputs?
- Can professional design workflows integrate vector generation from pretrained vision-language models?
- Can bounding-box signals prevent visual flaws better than code APIs?
- Why can differentiable rendering not backpropagate through discrete token sampling in code generation?
- Which reward component matters most: pixel reconstruction, semantic similarity, or code efficiency?
- How does visual-similarity reward resolve semantic equivalence problems in code?
- Can visual rendering rewards work for tasks beyond code reconstruction?
- What makes code-matching training brittle compared to image-matching training?
- What other code generation tasks face similar uniform loss limitations?
- What limits SlideCoder to single-slide generation from reference images?
- How does render-and-compare training differ from expert-judged rewards in visual tasks?
- Do vision-language models learn design taste differently than structure recognition?
- Has the MLLM visual critic been validated against human judgments of front-end quality?
- How does color-gradient segmentation compare to learned visual decomposition for slides?