Skip to main content
QUICK REVIEW

[Paper Review] The Tangent Search Engine: Improved Similarity Metrics and Scalability for Math Formula Search

Richard Zanibbi, Kenny Davila|arXiv (Cornell University)|Jul 22, 2015
Mathematics, Computing, and Information ProcessingComputer Science24 references6 citations
TL;DR

This paper proposes the Tangent Search Engine, a two-stage approach for math formula retrieval that uses a lightweight inverted index over symbol pairs for fast candidate retrieval, followed by Maximum Subtree Similarity (MSS) for accurate, appearance-based ranking. The method achieves state-of-the-art performance on the NTCIR-11 Wikipedia formula retrieval benchmark with significantly smaller index size and faster retrieval times than prior systems.

ABSTRACT

With the ever-increasing quantity and variety of data worldwide, the Web has become a rich repository of mathematical formulae. This necessitates the creation of robust and scalable systems for Mathematical Information Retrieval, where users search for mathematical information using individual formulae (query-by-expression) or a combination of keywords and formulae. Often, the pages that best satisfy users' information needs contain expressions that only approximately match the query formulae. For users trying to locate or re-find a specific expression, browse for similar formulae, or who are mathematical non-experts, the similarity of formulae depends more on the relative positions of symbols than on deep mathematical semantics. We propose the Maximum Subtree Similarity (MSS) metric for query-by-expression that produces intuitive rankings of formulae based on their appearance, as represented by the types and relative positions of symbols. Because it is too expensive to apply the metric against all formulae in large collections, we first retrieve expressions using an inverted index over tuples that encode relationships between pairs of symbols, ranking hits using the Dice coefficient. The top-k formulae are then re-ranked using MSS. Our approach obtains state-of-the-art performance on the NTCIR-11 Wikipedia formula retrieval benchmark and is efficient in terms of both index space and overall retrieval time. Retrieval systems for other graphical forms, including chemical diagrams, flowcharts, figures, and tables, may also benefit from adopting our approach.

Motivation & Objective

  • To address the challenge of retrieving mathematically similar formulas when exact matches are rare or absent, especially for non-experts or when searching by visual structure.
  • To develop a scalable retrieval system that efficiently ranks formulae based on visual and syntactic similarity rather than deep semantic equivalence.
  • To reduce index size and improve retrieval efficiency while maintaining or exceeding state-of-the-art performance on benchmark formula retrieval tasks.
  • To provide an intuitive, visually grounded ranking of formulae that reflects relative symbol positions and types, enhancing usability for users unfamiliar with formal mathematical notation.

Proposed method

  • The system uses an inverted index over symbol pairs—tuples encoding relationships between adjacent or nested symbols in formulae—to enable fast candidate retrieval using the Dice coefficient for ranking.
  • Top-k candidates from the first stage are re-ranked using the Maximum Subtree Similarity (MSS) metric, which computes similarity based on greedy unification of symbol types and maximizes the size of connected matching subtrees.
  • The MSS metric prioritizes large, structurally coherent matches between query and target formulae, emphasizing relative symbol positions and types over semantic equivalence.
  • The two-stage architecture decouples fast filtering from precise similarity computation, enabling efficient scaling to large formula collections.
  • The system supports approximate matching, including wildcards, and groups results by match type (e.g., exact, variable substitution) for improved user interpretability.
  • Index compression and efficient tuple encoding reduce storage requirements, enabling deployment on large-scale repositories like Wikipedia.

Experimental results

Research questions

  • RQ1Can a lightweight inverted index over symbol pairs effectively retrieve candidate formulae for mathematical query-by-expression?
  • RQ2Does the Maximum Subtree Similarity (MSS) metric produce rankings that align with human perception of formula similarity based on visual and structural features?
  • RQ3Can a two-stage retrieval pipeline combining fast filtering and precise re-ranking achieve state-of-the-art performance with significantly reduced index size?
  • RQ4How does the system perform under varying query types, including those with wildcards or partial matches?

Key findings

  • The Tangent Search Engine achieved state-of-the-art performance on the NTCIR-11 Wikipedia formula retrieval benchmark, outperforming prior systems in effectiveness and efficiency.
  • The MSS metric produced rankings that closely matched human similarity judgments, with top-ranked formulae consistently rated as 'Very Similar' or 'Similar' on a five-point Likert scale.
  • A window size of 1 in the retrieval model yielded strong results with minimal index overhead and fastest retrieval times, indicating high efficiency.
  • The system achieved high retrieval effectiveness using a much smaller index than previous approaches, demonstrating improved space efficiency without sacrificing performance.
  • Participants in user evaluation reported that the system's grouping of results by match structure and similarity type enhanced usability and interpretability.
  • The two-stage architecture reduced overall retrieval time while maintaining high precision, proving scalable for large formula repositories.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.