Query Weighting for Ranking Model Adaptation

Peng Cai, Wei Gao, Aoying Zhou, Kam-Fai Wong

Query Weighting for Ranking Model Adaptation

Introduction: The Challenge of Domain Adaptation in Ranking

Learning to Rank (LTR) models are essential for modern search engines, yet they often struggle with domain shift. A model trained on "Home Page" finding tasks may perform poorly when applied to "Topic Distillation" because the underlying distribution of relevant documents and query characteristics changes. Traditionally, researchers have addressed this using instance weighting, which assigns importance to individual source data points that resemble the target domain.

However, ranking is fundamentally a listwise task. Documents are not independent; they are grouped by queries. Standard instance weighting often ignores this structure, treating each document as an isolated unit. This paper argues that the query—not the document—should be the atomic unit of importance for adaptation.

The Shift from Instance to Query Weighting

The core innovation presented is the transition from weighting individual documents to weighting entire queries. If a document appears "target-like" but belongs to a query that is irrelevant to the target task, training on it can introduce noise. By weighting at the query level, the model preserves the contextual relationship between documents in a result list.

Comparison between (a) Instance-based weighting and (b) Query-based weighting.

Proposed Methodologies

The authors introduce two primary schemes for estimating query importance:

  1. Query-aggr (Document Feature Aggregation): This approach compresses a query into a single feature vector representing the mean and variance of its associated documents. A domain separator then identifies source queries that are most similar to the target domain. This method is highly efficient, significantly reducing the computational load compared to document-level weighting.
  2. Query-comp (Granular Query Comparison): To avoid the information loss inherent in aggregation, this method performs a more detailed comparison between source and target queries. While more computationally intensive, it captures subtle nuances that simple averaging might miss, leading to higher accuracy.

These weights are integrated into a modified Ranking SVM (RSVM) framework, where the loss function is adjusted to prioritize errors on high-weight source queries.

Datasets and Experimental Setup

The proposed methods were evaluated using the LETOR 3.0 benchmark, focusing on the TREC 2003 and 2004 web track datasets. These datasets cover three distinct search tasks: Home Page finding (HP), Named Page finding (NP), and Topic Distillation (TD).

Query distribution across TREC 2003 and 2004 tasks in the LETOR 3.0 benchmark.

Key Results and Insights

The experimental results demonstrate that query weighting consistently outperforms standard document-level weighting across various adaptation scenarios.

  • Accuracy Gains: In the HP03 to TD03 adaptation task, the query-comp method achieved a Mean Average Precision (MAP) of 0.2816, a significant improvement over the unweighted baseline (0.2508) and document-level weighting (0.2505).
  • Efficiency: The query-aggr method proved to be remarkably fast. In the TD to HP task, it operated nearly 150 times faster than document-level weighting by drastically reducing the number of instances processed by the domain separator.
  • Validation of Importance: Using Kendall’s $\tau$, the authors confirmed a positive correlation between the assigned query weights and the actual utility of those queries for target domain performance.

Conclusion and Future Directions

This research highlights that preserving the query structure is vital for effective ranking model adaptation. While query-comp offers superior accuracy, its scalability for massive datasets remains a challenge. Future work will explore the application of query weighting to more advanced listwise ranking algorithms like AdaRank or ListNet, which are naturally aligned with the query-centric philosophy of this approach.

Summary updated

BibTeX
@inproceedings{cai2011query,
  author = {Peng Cai and Wei Gao and Aoying Zhou and Kam-Fai Wong},
  title = {{Query Weighting for Ranking Model Adaptation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2011},
}
Figure