RECODE: Reasoning Through Code Generation for Visual Question Answering
On the map: LLM reasoning → Multimodal reasoning
Abstract (arXiv)
Multimodal Large Language Models (MLLMs) struggle with precise reasoning for structured visuals like charts and diagrams, as pixel-based perception lacks a mechanism for verification. To address this, we propose to leverage derendering -- the process of reverse-engineering visuals into executable code -- as a new modality for verifiable visual reasoning. Specifically, we propose RECODE, an agentic framework that first generates multiple candidate programs to reproduce the input image. It then uses a critic to select the most faithful reconstruction and iteratively refines the code. This process not only transforms an ambiguous perceptual task into a verifiable, symbolic problem, but also enables precise calculations and logical inferences later on. On various visual reasoning benchmarks such as CharXiv, ChartQA, and Geometry3K, RECODE significantly outperforms methods that do not leverage code or only use code for drawing auxiliary lines or cropping. Our work demonstrates that grounding visual perception in executable code provides a new path toward more accurate and verifiable multimodal reasoning.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Multimodal reasoning, one of 17 directions in LLM reasoning. Builds on 8 of its 43 references that are in the map. First posted on arXiv 15 Oct 2025.
Builds on
8 of 43 references.
References · 8
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2025Scaling Text-Rich Image Understanding via Code-Guided Synthetic Multimodal Data Generationcited by 54
- 2024ScribeAgent: Towards Specialized Web Agents Using Production-Scale Workflow Datacited by 39
- 2025CodePDE: An Inference Framework for LLM-driven PDE Solver Generationcited by 37
- 2025Thinking vs. Doing: Agents that Reason by Scaling Test-Time Interactioncited by 34
- 2024UPS: Efficiently Building Foundation Models for PDE Solving via Cross-Modal Adaptationcited by 27
- 2025CAT: Content-Adaptive Image Tokenizationcited by 18
- 2025Mixture-of-Mamba: Enhancing Multi-Modal State-Space Models with Modality-Aware Sparsitycited by 7
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Reasoning with Image Generation
- 2025Diagnosing Visual Reasoning: Challenges, Insights, and a Path Forward
- 2024From the Least to the Most: Building a Plug-and-Play Visual Reasoner via Data Synthesis
- 2025Long Grounded Thoughts: Synthesizing Visual Problems and Reasoning Chains at Scale
- 2026Thinking with Drafting: Optical Decompression via Logical Reconstruction
- 2025CodeV: Code with Images for Faithful Visual Reasoning via Tool-Aware Policy Optimization
- 2026Learning Adaptive Reasoning Paths for Efficient Visual Reasoning
- 2025SeeingEye: Agentic Information Flow Unlocks Multimodal Reasoning In Text-only LLMs