mlsanityData to 7 Oct 2026

Quantifying Behavioral Dissimilarity Between Mathematical Expressions

arXiv 2408.11515 ↗First posted 21 Aug 2024cs.AIcited by 0

On the map: LLM reasoning → Mathematical reasoning

Abstract (arXiv)

Quantifying the similarity between mathematical expressions is a fundamental problem in computational mathematics, symbolic reasoning, and scientific discovery. While behavioral notions of similarity have previously been explored in the context of software and program analysis, existing measures for mathematical expressions rely primarily on syntactic form, assessing similarity through symbolic structure rather than actual behavior. Yet syntactically distinct expressions can exhibit nearly identical outputs, while structurally similar ones may behave very differently-especially when the expressions contain free parameters that define families of functions. To address these limitations, we introduce Behavior-aware Expression Dissimilarity (BED), a principled framework for quantifying behavioral distance between mathematical expressions with free parameters. BED represents expressions as joint probability distributions over their input-output pairs and applies the Wasserstein distance to measure behavioral dissimilarity. A computationally efficient stochastic approximation is proposed and shown to be consistent, robust, and capable of inducing a smoother, more meaningful structure over the space of expressions than syntax-based measures. The approach provides a foundation for behavior-based comparison, clustering, and learning of mathematical expressions, with potential direct applications in equation discovery, symbolic regression, and neuro-symbolic modeling.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 8 of its 31 references that are in the map. First posted on arXiv 21 Aug 2024.

Builds on

8 of 31 references.

References · 8

  1. 2016Automatic chemical design using a data-driven continuous representation of moleculescited by 762
  2. 2019Deep symbolic regression: Recovering mathematical expressions from data via risk-seeking policy gradientscited by 294
  3. 2017Grammar Variational Autoencodercited by 283
  4. 2015On Wasserstein Two Sample Testing and Related Families of Nonparametric Testscited by 165
  5. 2020A Bayesian machine scientist to aid in the solution of challenging scientific problemscited by 61
  6. 2023SNIP: Bridging Mathematical Symbolic and Numeric Realms with Unified Pre-trainingcited by 41
  7. 2020Probabilistic Grammars for Equation Discoverycited by 36
  8. 2023Efficient Generator of Mathematical Expressions for Symbolic Regressioncited by 13

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Complex Mathematical Expression Recognition: Benchmark, Large-Scale Dataset and Strong Baseline
  2. 2022A Causal Framework to Quantify the Robustness of Mathematical Reasoning with Language Models
  3. 2026Measuring Progress in Reasoning Toward Mathematical Discovery with Automatic Verification
  4. 2026TheoremGraph: Bridging Formal and Informal Mathematics
  5. 2025SalaMAnder: Shapley-based Mathematical Expression Attribution and Metric for Chain-of-Thought Reasoning
  6. 2023Tree-Based Representation and Generation of Natural and Mathematical Language
  7. 2025RealMath: A Continuous Benchmark for Evaluating Language Models on Research-Level Mathematics
  8. 2026Re2Math: Benchmarking Theorem Retrieval in Research-Level Mathematics