DynaMath: A Dynamic Visual Benchmark for Evaluating Mathematical Reasoning Robustness of Vision Language Models

Chengke Zou, Xingang Guo, Rui Yang, Junyu Zhang, Bin Hu, Huan Zhang

Vision-Language Models (VLMs) have made incredible strides in solving complex, multimodal tasks. However, a critical question remains: do these models actually understand the math they are solving, or are they simply memorizing patterns from their vast training data?

Current evaluations often rely on static benchmarks—fixed sets of images and questions. This approach makes it difficult to tell if a model is truly reasoning. Humans are robust reasoners; if you understand how to solve $2 + 2$, you can easily solve $3 + 3$. To test if VLMs possess this same robustness, researchers introduced DynaMath, a dynamic visual math benchmark that reveals a startling brittleness in state-of-the-art models.

The Robustness Problem

The authors observed that top-tier models frequently fail on simple visual tweaks that pose no challenge to humans. For example, GPT-4o might correctly identify that the absolute value function $y = |x|$ is not differentiable at $x=0$. However, when presented with a simple horizontal shift of the same graph (e.g., $y = |x-2|$), the model confidently—and incorrectly—claims that the non-differentiable "sharp corner" is still at $x=0$.

GPT-4o correctly identifies the non-differentiable point for y=|x| but fails when the graph is shifted, incorrectly claiming the corner remains at x=0.

This behavior suggests that VLMs are often "reciting" memorized facts about common functions rather than actively "reasoning" through the visual evidence provided in the prompt.

The DynaMath Approach

To systematically measure this reasoning robustness, DynaMath moves away from static question lists. Instead, the benchmark consists of 501 "seed" questions, each written as a standalone Python program.

Using libraries like Matplotlib, these programs procedurally generate diverse "concrete" instances of a problem. By varying parameters within the code, a single seed question can produce variants with different numerical values, function types, graph structures, and visual contexts.

For their evaluation, the researchers generated 10 variants for every seed question, resulting in a dataset of 5,010 concrete questions. The topics span nine areas—including Geometry, Algebra, Statistics, and Graph Theory—ranging from elementary school to undergraduate difficulty levels.

Key Findings: The Robustness Gap

The evaluation of 14 state-of-the-art models (including GPT-4o, Claude 3.5 Sonnet, and Gemini Pro 1.5) yielded several critical insights:

  • The Robustness Gap is Massive: The researchers measured both average-case accuracy (overall correctness across all variants) and worst-case accuracy (the percentage of seed questions where a model got all 10 variants right). While Claude 3.5 Sonnet achieved the highest zero-shot average accuracy at 64.8%, its worst-case accuracy plummeted to just 35.3%. Models are often getting "lucky" on specific variants but failing to generalize.
  • Hallucinatory Consistency: Models frequently exhibit a "memorization phenomenon." For instance, when asked for the period of a sine wave, a model might repeatedly answer $2\pi$ even when the generated image clearly displays a period of $\pi$ or $4\pi$.
  • Humans Still Dominate: Human evaluators achieved an average accuracy of 77.3% and maintained high consistency across variants, whereas VLM performance degraded significantly as problem difficulty increased.
  • Error Profiles: An analysis of Claude 3.5's failures showed that figure reading (33.1%) and reasoning errors (26.6%) were the primary culprits, highlighting a fundamental disconnect between visual processing and logical deduction.

Looking Ahead

DynaMath proves that evaluating VLMs on static datasets is no longer sufficient. While open-source models like Qwen2-VL-72B and InternVL2-76B are showing impressive average performance, a significant gap in reasoning robustness remains across the board.

Future iterations of DynaMath aim to scale the benchmark by using LLMs to automate the creation of Python seed programs, incorporating competition-level math problems, and combining multiple variation types to further stress-test the true reasoning capabilities of next-generation models.

Summary updated

BibTeX
@inproceedings{zou2025dynamath,
  author = {Chengke Zou and Xingang Guo and Rui Yang and Junyu Zhang and Bin Hu and Huan Zhang},
  title = {{DynaMath: A Dynamic Visual Benchmark for Evaluating Mathematical Reasoning Robustness of Vision Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=VOAMTA8jKu},
}
Figure