Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Does My Embedding Reflect That $A = B$? Evaluating Mathematical Equivalence in Embedding Models

About

Because mathematics is highly abstract, a single statement can take very different forms depending on what subfield it is framed in. There are many examples where breakthroughs occurred after researchers discovered that a question had already been answered in a different field. At the same time, the growth of new resources related to formalization has increased the need for tools that enable efficient and reliable navigation between mathematical 'languages' (e.g., from Lean to natural language). In this paper, we investigate whether current embedding models capture mathematical equivalence. To do this, we introduce the Mathematically Equivalent but Lexically Different Pairs (MELD) Dataset, a collection of mathematically equivalent statements that are expressed in very different language. We show that current state-of-the-art embedding models tend to group statements by the terminology used to make them instead of the underlying math. Motivated by this, we propose a contrastive approach to learning embeddings of mathematical text that focuses on aligning informal statements with different formalizations. Our experiments demonstrate that this leads to improvements not only on informal-formal retrieval tasks but also on MELD, which only contains natural language statements.

Jiaying Ye, Samarth Rao, Leo Carlin, Kedar Chintalapati, Saharsh Bhargava, Rachit Jaiswal, Michael Zhou, Jared Darlington, Jiahe Lu, Jarod Alper, Vasily Ilin, Henry Kvinge• 2026

Related benchmarks

TaskDatasetResultRank
Lean type to informal description retrievalmathlib (test)
R@172.77
18
Informal description to Lean signature retrievalMathlib
R@167.4
9
Informal description to Lean type retrievalmathlib (test)
R@170.18
9
Lean signature to Lean type retrievalmathlib v4.16.0
R@173.34
9
Mathematical Retrievalmathlib Lean type to Lean signature (test)
R@165.26
9
Mathematical RetrievalMELD
MMR45
9
Information RetrievalMELD
Recall@128.9
8
Mathematical Statement Retrievalblueprints
Recall@164.73
8
Mathematical Information RetrievalMIRB
MO Duplicate (nDCG@10)82.1
8
Showing 9 of 9 rows

Other info

Follow for update