Quantifying Behavioral Dissimilarity Between Mathematical Expressions

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Mežnar, Sebastian, Džeroski, Sašo, Todorovski, Ljupčo
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911284058914816
author Mežnar, Sebastian
Džeroski, Sašo
Todorovski, Ljupčo
author_facet Mežnar, Sebastian
Džeroski, Sašo
Todorovski, Ljupčo
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2408_11515
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Quantifying Behavioral Dissimilarity Between Mathematical Expressions
Mežnar, Sebastian
Džeroski, Sašo
Todorovski, Ljupčo
Artificial Intelligence
68T01
I.1.1; I.2.0
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.
title Quantifying Behavioral Dissimilarity Between Mathematical Expressions
topic Artificial Intelligence
68T01
I.1.1; I.2.0
url https://arxiv.org/abs/2408.11515