NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MathFlow: Enhancing the Perceptual Flow of MLLMs for Visual Mathematical Problems

Felix Chen, Hangjie Yuan, Yunqiu Xu, Tao Feng, Jun Cen, Pengwei Liu, Zeying Huang, Yi Yang · OpenReview

Abstract

Despite impressive performance across diverse tasks, Multimodal Large Language Models (MLLMs) have yet to fully demonstrate their potential in visual mathematical problem-solving, particularly in accurately perceiving and interpreting diagrams. Inspired by typical processes of humans, we hypothesize that the perception capabilities to extract meaningful information from diagrams is crucial, as it directly impacts subsequent inference processes. To validate this hypothesis, we developed FlowVerse, a comprehensive benchmark that categorizes all information used during problem-solving into four components, which are then combined into six problem versions for evaluation. Our preliminary results on FlowVerse reveal that existing MLLMs exhibit substantial limitations when extracting essential information and reasoned property from diagrams and performing complex reasoning based on these visual inputs. In response, we introduce MathFlow, a modular problem-solving pipeline that decouples perception and inference into distinct stages, thereby optimizing each independently. Given the perceptual limitations observed in current MLLMs, we trained MathFlow-P-7B as a dedicated perception model. Experimental results indicate that MathFlow-P-7B yields substantial performance gains when integrated with various closed-source and open-source inference models. This demonstrates the effectiveness of the MathFlow pipeline and its compatibility to diverse inference frameworks.

Introduction

While Multimodal Large Language Models (MLLMs) like GPT-4V have shown impressive reasoning capabilities, they often stumble on "visual math"—problems where critical information is embedded in a diagram rather than the text. These models frequently suffer from "visual blindness" or hallucinations, failing to accurately perceive geometric relationships (like parallel lines) or precise values (like angle degrees) shown in an image.

The core bottleneck isn't necessarily the models' mathematical reasoning capacity, but rather their perceptual accuracy. Current end-to-end MLLMs attempt to perceive and reason simultaneously, which often leads to error propagation. If the initial perception of the diagram is flawed, the subsequent reasoning, no matter how sophisticated, will inevitably lead to the wrong answer. MathFlow addresses this by decoupling diagram perception from mathematical reasoning, using a specialized perception model to translate visual diagrams into enriched text.

Methodology: The MathFlow Pipeline

MathFlow is a modular framework inspired by the human problem-solving process, which separates perception and inference into two distinct stages.

The MathFlow pipeline decouples perception and inference into two distinct stages, mimicking the human multi-step reasoning process.
  1. Perception Stage: A specialized model, MathFlow-P-7B (based on Qwen2-VL-7B), is tasked solely with extracting "Essential Information" (EI) and "Reasoned Properties" (RP) from the diagram. It converts these visual cues into a detailed textual description.
  2. Inference Stage: This enriched textual description is combined with the original problem statement and fed into a powerful "inference engine"—which can be any high-performing LLM or MLLM (like GPT-4o or DeepSeek-r1)—to derive the final solution.

Datasets and Benchmarking

To evaluate this approach and train the perception model, the researchers developed several new resources:

  • FlowVerse: A comprehensive benchmark containing 2,000 visual math problems (12,000 test samples) across plane geometry, algebra, and functions. It categorizes information into four components: Descriptive Information, Essential Information, Only Question, and Reasoned Property.
  • MathFlow-RP & MathFlow-SFT: Datasets comprising 130,000 samples used to train the perception model to extract higher-level abstract relationships and precise numerical values from diagrams.
An example problem from the FlowVerse benchmark requiring the extraction of essential information (lengths) and reasoned properties (midpoints).

Key Insights and Results

Preliminary results on FlowVerse confirmed that perception is the primary bottleneck: MLLMs often perform better when visual diagrams are replaced with high-quality textual descriptions. By letting a specialized model "read" the diagram into text, the inference model can focus entirely on logic and calculation.

MathFlow demonstrated substantial performance gains across multiple benchmarks:

  • MathVerse: MathFlow-P-7B paired with GPT-4V achieved an accuracy of 56.7%, outperforming vanilla GPT-4V (54.4%).
  • FlowVerse: When integrated with DeepSeek-r1, MathFlow reached a peak performance of 75.6% accuracy.
  • Error Reduction: Qualitative analysis showed that MathFlow significantly reduced "visual perception errors"—cases where the model simply misidentified parts of the diagram—compared to standard end-to-end models.

Conclusion and Future Work

MathFlow proves that decoupling perception from inference is a highly effective strategy for visual math. Future work will focus on expanding language support beyond English and Chinese, improving the basic reasoning capabilities within the perception model itself, and exploring integration with "O1-style" high-reasoning models to further push the boundaries of automated mathematical problem-solving.

Summary updated

BibTeX
@inproceedings{chen2026mathflow,
  author = {Felix Chen and Hangjie Yuan and Yunqiu Xu and Tao Feng and Jun Cen and Pengwei Liu and Zeying Huang and Yi Yang},
  title = {{MathFlow: Enhancing the Perceptual Flow of MLLMs for Visual Mathematical Problems}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.43},
}
Figure