GeoMathCode: Understanding Interleaved Math-Code Reasoning for Geometry Problem Solving

Yingji Zhang, Yong Dai, André Freitas
5/25/2026
cs.CL

No confident code implementation found for this paper.

Abstract

Mathematical reasoning is a hallmark of human intelligence, requiring logical deduction, symbolic manipulation, and abstract thinking. Recent multimodal large language models (MLLMs) have demonstrated strong performance on geometry problems through multi-step reasoning.

Show full abstract

To better emulate human problem-solving, intermediate steps can incorporate auxiliary visual constructions, such as additional lines or points, which improve geometric interpretation and educational clarity. In this work, we introduce the GeoMathCode, where programmatic representations serve as intermediate visual outputs. We further conduct an in-depth analysis of the underlying reasoning geometry. Experimental results show that reasoning and code generation steps can be disentangled in the latent space, while supervised fine-tuning (SFT) makes the reasoning manifold more structured and informative. Moreover, hierarchical syntactic code structures emerge as disentangled latent subspaces, and contain more mathematical symbolic information than visual representations.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2026geomathcode,
  title  = {GeoMathCode: Understanding Interleaved Math-Code Reasoning for Geometry Problem Solving},
  author = {Yingji Zhang and Yong Dai and André Freitas},
  year   = {2026},
  eprint = {2605.25384},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.25384v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.25384.svg)](https://codeofpaper.com/paper/2605.25384)

Discussion