TL;DR
This paper introduces FIGR, a novel approach that integrates executable visual construction into multi-turn reasoning for AI models. By generating and executing code to create diagrams, FIGR allows models to better understand and reason about complex spatial and geometric relationships, leading to significant improvements in mathematical problem-solving.
What Problem Does This Paper Address?
Many complex reasoning tasks, especially in domains like geometry, rely heavily on understanding spatial and geometric relationships. While current AI models excel at text-based reasoning, they often struggle to capture these implicit relationships, leading to errors. Existing methods either rely solely on internal, text-based representations (which can be error-prone) or use external tools in a limited way. The challenge is to enable AI models to actively construct and leverage visual representations to improve their reasoning capabilities, especially for problems where visual intuition is crucial.
Methods
FIGR tackles this by introducing an "executable visual construction" loop. At each step of reasoning, the model can choose to generate executable code that, when run, creates a visual diagram. This diagram then serves as feedback for the model's next reasoning step. This process is managed by an end-to-end reinforcement learning framework. A key innovation is the "adaptive reward mechanism," which intelligently decides when visual construction is beneficial, preventing unnecessary or distracting visualizations. This allows the model to learn to use visual reasoning strategically, rather than indiscriminately. The system is trained using reinforcement learning, optimizing for overall task success rather than step-by-step supervision.
Datasets
FIGR is trained on DeepMath-103K, a large dataset of challenging mathematical problems. For evaluation, the authors use a suite of established mathematical reasoning benchmarks, including:
- AIME 2024 and AIME 2025
- BeyondAIME
- MATH 500
- AMC
- MinervaMath
- OE_TO_maths_en_COMP (from OlympiadBench)
Key Insights and Ideas
- Visuals as Executable States: The core idea is treating diagrams not just as static images, but as "executable visual states." This means the diagrams are generated by code, making them precise, reproducible, and directly usable as feedback.
- Adaptive Visual Reasoning: The adaptive reward mechanism is crucial. It learns when to draw, preventing the model from getting bogged down in generating visuals for simple problems and ensuring it leverages them for complex ones. This is a significant step beyond simply adding visual capabilities.
- Bridging Symbolic and Visual: FIGR effectively bridges the gap between symbolic, text-based reasoning and visual understanding, mimicking how humans often use diagrams to solve complex problems.
- Improved Robustness: By externalizing spatial constraints into visual states, FIGR can enforce geometric consistency, leading to more robust reasoning and fewer cascading errors, especially in geometry-heavy tasks.
Key Results
FIGR demonstrates substantial improvements over strong text-only baselines on mathematical reasoning benchmarks.
- It achieves an average accuracy of 74.11% across seven benchmarks.
- This represents an improvement of 13.12% on AIME 2025 and 11.00% on BeyondAIME compared to the base model.
- FIGR outperforms both similarly sized text-only models and larger multimodal models that lack its executable visual construction capabilities.
- Ablation studies show that removing the adaptive reward mechanism or visual feedback significantly degrades performance, highlighting the importance of these components.
Limitations and Future Work
The authors acknowledge that FIGR incurs additional computational cost due to multi-turn reasoning and code execution. They suggest future work could focus on more efficient reasoning-execution loops through compact visual representations or adaptive control strategies. They also note that FIGR is most beneficial for problems requiring global structural or relational constraints, and its advantage might be less pronounced for tasks solvable with purely local or symbolic reasoning. Extending FIGR to other domains like scientific reasoning, program synthesis, and long-horizon planning is also a promising direction.
Summary updated