The Math Retrieval System of ICST for NTCIR-12 MathIR Task

Liangcai Gao, Ke Yuan, Yuehan Wang, Zhuoren Jiang, Zhi Tang

Abstract

Mathematical Information Retrieval (MIR) presents unique challenges due to the non-linear, hierarchical nature of formulae. This paper presents WikiMir, a system developed by researchers at Peking University for the NTCIR-12 MathIR task. WikiMir utilizes a multi-stage pipeline that includes tree-based formula preprocessing, hybrid tokenization, and a supervised "Learning to Rank" (LTR) framework. By incorporating structural features and document-level context, such as "formula importance," the system achieves significant improvements in retrieval precision, particularly within the Wikipedia domain.

Introduction

Traditional text-based search engines are ill-equipped to handle mathematical formulae. Unlike linear text, equations are inherently structured; for instance, the expression $a+b$ is a fundamental sub-structure of $(a+b)^y$. Standard keyword-based approaches fail to capture these hierarchical relationships. Furthermore, existing MIR systems often struggle to distinguish between "star" formulae—those central to a paper's contribution—and incidental intermediate steps. There is also a need for "fuzzy" matching capabilities, where users can retrieve equations based on structure even if specific variable names differ.

Methodology

The WikiMir system implements a robust retrieval pipeline designed to address structural and contextual nuances in mathematical documents.

Overview of the WikiMir system architecture and retrieval pipeline.

1. Tree-Based Preprocessing

To move beyond visual layout, WikiMir converts LaTeX and MathML inputs into a Semantic Operator Tree. This representation focuses on the mathematical meaning by organizing operators and operands hierarchically, rather than just their visual positioning.

Semantic operator tree representation of a mathematical formula.

2. Hybrid Tokenization

The system employs two distinct tokenizers to capture different aspects of the data:

  • Formula Tokenizer: This extracts both original terms and "generalized" terms. In generalized terms, variables are replaced by wildcards, allowing the system to match the "shape" or structure of an equation regardless of the specific variables used.
  • Context Tokenizer: This captures the surrounding text to provide semantic context for the search, helping to disambiguate formulae that may look similar but appear in different scientific fields.

3. Learning to Rank (RankBoost)

WikiMir utilizes the RankBoost algorithm, employing 255 features to determine relevance. These features are categorized into:

  • Formula-based: Structural metrics like variable counts and tree layer depth.
  • Relevance-based: Direct query-to-formula matching scores.
  • Document-based: A novel set of features including "Formula Importance"—measured by the amount of descriptive text associated with a formula—and document metadata like image and link counts.

4. Regex Re-ranking

A final refinement stage applies regular expression matching to the top 1,000 retrieved results. This ensures that the most structurally precise matches are prioritized in the final output.

Evaluation and Results

The system was evaluated using the NTCIR-12 MathIR dataset across two primary tasks:

  • Wikipedia Main Task: 30 queries against ~320,000 HTML articles containing over 590,000 formulae.
  • ArXiv Main Task: 29 queries against a 173GB collection of scientific papers.

Key Results

WikiMir demonstrated strong performance, particularly on the Wikipedia dataset. Using "Precision at K" (P-K) as the metric:

  • Wikipedia Task: Achieved a P-5 (Relevant) score of 0.4733. When considering "partially relevant" results, the P-5 score increased to 0.8533.
  • ArXiv Task: Performance was more modest, with a P-5 (Relevant) score of 0.2276.

The performance discrepancy suggests that the ranking model, which was trained on Wikipedia data, benefited significantly from domain-specific alignment, highlighting the impact of training data on LTR performance.

Discussion and Conclusion

A key insight from this work is the value of Formula Importance. By quantifying how much text an author uses to describe a formula, the system can effectively identify core equations. Additionally, Structural Generalization via wildcards proves essential for handling user queries where exact variable names are unknown.

However, the "domain gap" remains a limitation; the model's reliance on Wikipedia training data hindered its performance on the more technical ArXiv corpus. Future research will focus on diversifying training sets and further refining importance metrics to better capture the nuances of mathematical communication across different scientific disciplines.

Summary updated

BibTeX
@inproceedings{gao2016math,
  author = {Liangcai Gao and Ke Yuan and Yuehan Wang and Zhuoren Jiang and Zhi Tang},
  title = {{The Math Retrieval System of ICST for NTCIR-12 MathIR Task}},
  booktitle = {NTCIR},
  year = {2016},
}
Figure