mlsanityData to 14 Oct 2026

GeoCoder: Solving Geometry Problems by Generating Modular Code through Vision-Language Models

arXiv 2410.13510 ↗First posted 17 Oct 2024cs.CL cs.CVcited by 5

On the map: LLM reasoning → Spatial and embodied reasoning

also in 1 more
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

  1. 2023GeomVerse: A Systematic Evaluation of Large Models for Geometric Reasoning19 Dec
  2. 2022UniGeo: Unifying Geometry Logical Reasoning via Reformulating Mathematical Expression6 Dec

Other references · 25

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  5. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
  6. 2024LLaVA-OneVision: Easy Visual Task Transfercited by 2,719
  7. 2017Billion-scale similarity search with GPUscited by 2,497
  8. 2022ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoningcited by 1,479
  9. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
  10. 2022PaLI: A Jointly-Scaled Multilingual Language-Image Modelcited by 766
  11. 2024A Survey on Large Language Models for Code Generationcited by 658
  12. 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 603
13 more
  1. 2024MathVerse: Does Your Multi-modal LLM Truly See the Diagrams in Visual Math Problems?cited by 586
  2. 2022Visual Programming: Compositional visual reasoning without trainingcited by 516
  3. 2021Inter-GPS: Interpretable Geometry Problem Solving with Formal Language and Symbolic Reasoningcited by 383
  4. 2019PlotQA: Reasoning over Scientific Plotscited by 321
  5. 2023ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solvingcited by 282
  6. 2021GeoQA: A Geometric Question Answering Benchmark Towards Multimodal Numerical Reasoningcited by 228
  7. 2023G-LLaVA: Solving Geometric Problem with Multi-Modal Large Language Modelcited by 210
  8. 2023MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoningcited by 156
  9. 2024MARIO: MAth Reasoning with code Interpreter Output -- A Reproducible Pipelinecited by 81
  10. 2024VISTA: Visualized Text Embedding For Universal Multi-Modal Retrievalcited by 67
  11. 2024InfiMM-WebMath-40B: Advancing Multimodal Pre-Training for Enhanced Mathematical Reasoningcited by 36
  12. 2024GeoGPT4V: Towards Geometric Multi-modal Large Language Models with Geometric Image Generationcited by 32
  13. 2024Multimodal Self-Instruct: Synthetic Abstract Image and Visual Reasoning Instruction Using Language Modelcited by 21

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 1.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025GeoThought: A Dataset for Enhancing Mathematical Geometry Reasoning in Vision-Language Models
  2. 2024GeoX: Geometric Problem Solving Through Unified Formalized Vision-Language Pre-training
  3. 2026GeoTikzBridge: Advancing Multimodal Code Generation for Geometric Perception and Reasoning
  4. 2026Synthesizing Multimodal Geometry Datasets from Scratch and Enabling Visual Alignment via Plotting Code
  5. 2025GeoBench: Rethinking Multimodal Geometric Problem-Solving via Hierarchical Evaluation
  6. 2025GeoSense: Evaluating Identification and Application of Geometric Principles in Multimodal Reasoning
  7. 2026GeoMathCode: Understanding Interleaved Math-Code Reasoning for Geometry Problem Solving
  8. 2025GeoGramBench: Benchmarking the Geometric Program Reasoning in Modern LLMs