Skip to main content
QUICK REVIEW

[Paper Review] Pre-training for Ad-hoc Retrieval: Hyperlink is Also You Need

Zhengyi Ma, Zhicheng Dou|arXiv (Cornell University)|Aug 20, 2021
Topic ModelingComputer Science62 references7 citations
TL;DR

This paper proposes HARP, a pre-training framework for ad-hoc retrieval that leverages hyperlinks and anchor texts to create more reliable, human-curated supervision signals. By designing four novel pre-training tasks based on anchor-document relationships and jointly optimizing with masked language modeling, HARP significantly improves retrieval performance on MS MARCO and TREC-COVID, outperforming BERT and existing IR-tailored methods.

ABSTRACT

Designing pre-training objectives that more closely resemble the downstream tasks for pre-trained language models can lead to better performance at the fine-tuning stage, especially in the ad-hoc retrieval area. Existing pre-training approaches tailored for IR tried to incorporate weak supervised signals, such as query-likelihood based sampling, to construct pseudo query-document pairs from the raw textual corpus. However, these signals rely heavily on the sampling method. For example, the query likelihood model may lead to much noise in the constructed pre-training data. \blfootnote{$\dagger$ This work was done during an internship at Huawei.} In this paper, we propose to leverage the large-scale hyperlinks and anchor texts to pre-train the language model for ad-hoc retrieval. Since the anchor texts are created by webmasters and can usually summarize the target document, it can help to build more accurate and reliable pre-training samples than a specific algorithm. Considering different views of the downstream ad-hoc retrieval, we devise four pre-training tasks based on the hyperlinks. We then pre-train the Transformer model to predict the pair-wise preference, jointly with the Masked Language Model objective. Experimental results on two large-scale ad-hoc retrieval datasets show the significant improvement of our model compared with the existing methods.

Motivation & Objective

  • To address the limitation of weak supervision in existing IR-tailored pre-training methods, which rely on noisy algorithmic signals like query-likelihood sampling.
  • To explore the use of hyperlinks and anchor texts—created by human webmasters—as more reliable, high-quality supervision signals for pre-training.
  • To design four distinct pre-training tasks that model different aspects of anchor-document relationships to improve relevance matching in ad-hoc retrieval.
  • To evaluate whether hyperlink-based pre-training can enhance model generalization, especially in low-resource and large-scale fine-tuning settings.

Proposed method

  • Leverage large-scale hyperlinks and anchor texts from web corpora as a source of human-curated, descriptive signals for pre-training.
  • Design four pre-training tasks: (1) Relevance Ranking of Pairs (RQP), (2) Relevance Distillation of Pairs (RDP), (3) Query-Document Matching (QDM), and (4) Anchor Co-occurrence Modeling (ACM), each capturing different aspects of anchor-document semantics.
  • Jointly pre-train a Transformer model using these four tasks alongside the standard Masked Language Model (MLM) objective to learn robust representations.
  • Use the context surrounding anchor texts to enrich query representations, reducing ambiguity and improving semantic relevance modeling.
  • Fine-tune the pre-trained HARP model on downstream ad-hoc retrieval tasks using labeled relevance judgments.
  • Evaluate performance using standard IR metrics like MRR@100 and MRR@10 on MS MARCO and TREC-COVID datasets.

Experimental results

Research questions

  • RQ1Can hyperlink and anchor text signals serve as more reliable supervision than algorithmically generated pseudo-query pairs in IR pre-training?
  • RQ2How do different views of anchor-document relationships (e.g., relevance, context, co-occurrence) contribute to retrieval performance?
  • RQ3To what extent does pre-training with hyperlink-based objectives improve generalization in low-resource and large-scale fine-tuning scenarios?
  • RQ4Does the joint optimization of multiple hyperlink-based tasks with MLM lead to better retrieval effectiveness than single-objective or BERT-style pre-training?

Key findings

  • Removing any of the four pre-training tasks leads to performance degradation, confirming the effectiveness and necessity of each task in the HARP framework.
  • The RQP task causes the largest performance drop when removed, indicating that direct relevance modeling between anchors and documents is the most impactful component.
  • HARP outperforms BERT across all evaluation metrics on both MS MARCO and TREC-COVID, demonstrating the advantage of IR-specific pre-training.
  • In few-shot settings, HARP maintains strong performance with only 5–20 labeled queries, showing improved data efficiency and robustness to data sparsity.
  • On large-scale query sets (50k–200k), HARP consistently outperforms baselines, and performance improves with more fine-tuning data, indicating scalability and effective use of labeled data.
  • The ablation study confirms that MLM alone is insufficient for ad-hoc retrieval, and that the addition of hyperlink-based objectives is essential for optimal performance.

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.