GeoCoder: Solving Geometry Problems by Generating Modular Code through Vision-Language Models
On the map: LLM reasoning → Spatial and embodied reasoning
Abstract (arXiv)
Geometry problem-solving demands advanced reasoning abilities to process multimodal inputs and employ mathematical knowledge effectively. Vision-language models (VLMs) have made significant progress in various multimodal tasks. Yet, they still struggle with geometry problems and are significantly limited by their inability to perform mathematical operations not seen during pre-training, such as calculating the cosine of an arbitrary angle, and by difficulties in correctly applying relevant geometry formulas. To overcome these challenges, we present GeoCoder, which leverages modular code-finetuning to generate and execute code using a predefined geometry function library. By executing the code, we achieve accurate and deterministic calculations, contrasting the stochastic nature of autoregressive token prediction, while the function library minimizes errors in formula usage. We also propose a multimodal retrieval-augmented variant of GeoCoder, named RAG-GeoCoder, which incorporates a non-parametric memory module for retrieving functions from the geometry library, thereby reducing reliance on parametric memory. Our modular code-finetuning approach enhances the geometric reasoning capabilities of VLMs, yielding an average improvement of over 16% across various question complexities on the GeomVerse dataset compared to other finetuning methods.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Spatial and embodied reasoning, one of 17 directions in LLM reasoning. Builds on 27 of its 59 references that are in the map. First posted on arXiv 17 Oct 2024.
Builds on
27 of 59 references.
Closest ancestors · 2
Same direction, newest first
- 2023GeomVerse: A Systematic Evaluation of Large Models for Geometric Reasoning19 Dec
- 2022UniGeo: Unifying Geometry Logical Reasoning via Reformulating Mathematical Expression6 Dec
Other references · 25
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2024LLaVA-OneVision: Easy Visual Task Transfercited by 2,719
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2022ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoningcited by 1,479
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
- 2022PaLI: A Jointly-Scaled Multilingual Language-Image Modelcited by 766
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 603
13 more
- 2024MathVerse: Does Your Multi-modal LLM Truly See the Diagrams in Visual Math Problems?cited by 586
- 2022Visual Programming: Compositional visual reasoning without trainingcited by 516
- 2021Inter-GPS: Interpretable Geometry Problem Solving with Formal Language and Symbolic Reasoningcited by 383
- 2019PlotQA: Reasoning over Scientific Plotscited by 321
- 2023ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solvingcited by 282
- 2021GeoQA: A Geometric Question Answering Benchmark Towards Multimodal Numerical Reasoningcited by 228
- 2023G-LLaVA: Solving Geometric Problem with Multi-Modal Large Language Modelcited by 210
- 2023MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoningcited by 156
- 2024MARIO: MAth Reasoning with code Interpreter Output -- A Reproducible Pipelinecited by 81
- 2024VISTA: Visualized Text Embedding For Universal Multi-Modal Retrievalcited by 67
- 2024InfiMM-WebMath-40B: Advancing Multimodal Pre-Training for Enhanced Mathematical Reasoningcited by 36
- 2024GeoGPT4V: Towards Geometric Multi-modal Large Language Models with Geometric Image Generationcited by 32
- 2024Multimodal Self-Instruct: Synthetic Abstract Image and Visual Reasoning Instruction Using Language Modelcited by 21
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 1.
5 papers.
- 2024BlueLM-V-3B: Algorithm and System Co-Design for Multimodal Large Language Models on Mobile Devicescited by 25
- 2025Towards Geometry Problem Solving in the Large Model Era: A Surveycited by 8
- 2025A Survey of Deep Learning for Geometry Problem Solvingcited by 4
- 2026Thinking with Constructions: A Benchmark and Policy Optimization for Visual-Text Interleaved Geometric Reasoningcited by 1
- 2025NeedleChain: Measuring Intact Context Comprehension Capability of Large Language Modelscited by 0
- 2026Thinking with Constructions: A Benchmark and Policy Optimization for Visual-Text Interleaved Geometric Reasoning19 Mar 2026
- 2025NeedleChain: Measuring Intact Context Comprehension Capability of Large Language Models30 Jul 2025
- 2025A Survey of Deep Learning for Geometry Problem Solving16 Jul 2025
- 2025Towards Geometry Problem Solving in the Large Model Era: A Survey3 Jun 2025
- 2024BlueLM-V-3B: Algorithm and System Co-Design for Multimodal Large Language Models on Mobile Devices16 Nov 2024
Similar, not cited
Close in wording, no citation either way
- 2025GeoThought: A Dataset for Enhancing Mathematical Geometry Reasoning in Vision-Language Models
- 2024GeoX: Geometric Problem Solving Through Unified Formalized Vision-Language Pre-training
- 2026GeoTikzBridge: Advancing Multimodal Code Generation for Geometric Perception and Reasoning
- 2026Synthesizing Multimodal Geometry Datasets from Scratch and Enabling Visual Alignment via Plotting Code
- 2025GeoBench: Rethinking Multimodal Geometric Problem-Solving via Hierarchical Evaluation
- 2025GeoSense: Evaluating Identification and Application of Geometric Principles in Multimodal Reasoning
- 2026GeoMathCode: Understanding Interleaved Math-Code Reasoning for Geometry Problem Solving
- 2025GeoGramBench: Benchmarking the Geometric Program Reasoning in Modern LLMs