MathBode: Understanding LLM Reasoning with Dynamical Systems
Abstract
We present $\textbf{MathBode}$, a dynamic diagnostic for mathematical reasoning in large language models (LLMs). Instead of one-shot accuracy, MathBode treats each parametric problem as a system: we drive a single parameter sinusoidally and fit first-harmonic responses of model outputs and exact solutions. This yields interpretable, frequency-resolved metrics—gain (amplitude tracking) and phase (lag)—that form Bode-style fingerprints. Across five closed-form families (linear solve, ratio/saturation, compound interest, $2\times2$ linear systems, similar triangles), the diagnostic surfaces systematic low-pass behavior and growing phase lag that accuracy alone obscures. We compare several models against a symbolic baseline that calibrates the instrument (G ≈ 1, φ ≈ 0). Results separate frontier from mid-tier models on dynamics, providing a compact, reproducible protocol that complements standard benchmarks with actionable measurements of reasoning fidelity and consistency. We open-source the dataset and code to enable further research and adoption.
BibTeX
@inproceedings{wang2025mathbode,
author = {Charles L. Wang},
title = {{MathBode: Understanding LLM Reasoning with Dynamical Systems}},
booktitle = {MATH-AI @ NeurIPS},
year = {2025},
url = {https://openreview.net/forum?id=fh63jTxYeA},
}Ask Althea to put this paper to the test.
Loading related content...