Wikiformer: Pre-training with Structured Information of Wikipedia for Ad-Hoc Retrieval

Weihang Su, Qingyao Ai, Xiangsheng Li, Jia Chen, Yiqun Liu, Xiaolong Wu, Shengluan Hou

Introduction

While Pre-trained Language Models (PLMs) like BERT have revolutionized natural language understanding, their direct application to Information Retrieval (IR) often falls short. Standard pre-training objectives, such as Masked Language Modeling (MLM), focus on linguistic context rather than the relevance matching required to pair a user's query with the most pertinent document. Wikiformer addresses this gap by leveraging the inherent human-edited structure of Wikipedia—hierarchical headings, abstracts, and internal links—to create specialized pre-training tasks that inherently model document relevance.

Methodology: The Wiki Structure Tree

The core innovation of Wikiformer is the transformation of Wikipedia articles into a Wiki Structure Tree (WST). This tree captures the organizational logic provided by human editors. From this structure, the authors derive four novel contrastive pre-training objectives:

  1. Simulated Re-ranking (SRR): This task uses the hierarchical heading path as a "query" to identify a specific passage. As shown in Figure 1, the model learns to distinguish a target passage from its siblings based on the heading hierarchy.
  2. Representative Words Identification (RWI): Section subtitles are treated as ideal queries for their respective content blocks, training the model to identify key descriptive terms.
  3. Abstract Texts Identification (ATI): This objective pairs article titles with their summary abstracts, distinguishing them from other sections.
  4. Long Texts Matching (LTM): By utilizing "See Also" links, the model is trained on document-to-document matching, which is particularly beneficial for complex retrieval scenarios in legal and medical domains.
Simulated Re-ranking (SRR) task illustration using Wikipedia structure.

Experimental Setup

Wikiformer was pre-trained on the January 2022 version of English Wikipedia using a BERT-base architecture. Its performance was evaluated across several benchmarks including general IR tasks like MS MARCO and TREC DL 2019, as well as vertical domains such as TREC Covid (biomedical) and LeCaRD/CAIL-LCR (legal case retrieval).

Results and Discussion

Wikiformer demonstrates superior performance in both zero-shot and fine-tuned settings. In zero-shot evaluations on MS MARCO, Wikiformer achieved an MRR@10 of 0.2844, significantly outperforming other IR-specific pre-trained models like ARES (0.2736) and PROP (0.2585).

Performance comparison of Wikiformer against baseline models on MS MARCO and TREC DL 2019.

The model's strength is particularly evident in vertical domains. On the TREC Covid dataset, Wikiformer's zero-shot nDCG@10 reached 0.5449, a substantial improvement over the standard BERT baseline of 0.4018. Ablation studies revealed that the SRR task is most critical for general search, while the LTM task provides the necessary edge for long-form query matching in specialized fields like law.

Conclusion

Wikiformer proves that the structural metadata of Wikipedia is a rich source of supervision for IR tasks. By "baking" human organizational logic into the model during pre-training, Wikiformer achieves state-of-the-art results across diverse domains. Future work will explore the scalability of these structured objectives to larger generative models and their applicability to non-Wikipedia-style datasets.

Summary updated

BibTeX
@inproceedings{su2024wikiformer,
  author = {Weihang Su and Qingyao Ai and Xiangsheng Li and Jia Chen and Yiqun Liu and Xiaolong Wu and Shengluan Hou},
  title = {{Wikiformer: Pre-training with Structured Information of Wikipedia for Ad-Hoc Retrieval}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i17.29869},
}
Figure