English

Semantic Representations of Mathematical Expressions in a Continuous Vector Space

Computation and Language 2023-09-06 v3 Artificial Intelligence Logic in Computer Science

Abstract

Mathematical notation makes up a large portion of STEM literature, yet finding semantic representations for formulae remains a challenging problem. Because mathematical notation is precise, and its meaning changes significantly with small character shifts, the methods that work for natural text do not necessarily work well for mathematical expressions. This work describes an approach for representing mathematical expressions in a continuous vector space. We use the encoder of a sequence-to-sequence architecture, trained on visually different but mathematically equivalent expressions, to generate vector representations (or embeddings). We compare this approach with a structural approach that considers visual layout to embed an expression and show that our proposed approach is better at capturing mathematical semantics. Finally, to expedite future research, we publish a corpus of equivalent transcendental and algebraic expression pairs.

Keywords

Cite

@article{arxiv.2211.08142,
  title  = {Semantic Representations of Mathematical Expressions in a Continuous Vector Space},
  author = {Neeraj Gangwar and Nickvash Kani},
  journal= {arXiv preprint arXiv:2211.08142},
  year   = {2023}
}

Comments

Transactions on Machine Learning Research (TMLR), September 2023

R2 v1 2026-06-28T05:56:58.246Z