A Domain Generalization Perspective on Listwise Context Modeling

Lin Zhu, Yihong Chen, Bowen He

Abstract: As one of the most popular techniques for solving the ranking problem in information retrieval, Learning-to-rank (LETOR) has received a lot of attention both in academia and industry due to its importance in a wide variety of data mining applications. However, most of existing LETOR approaches choose to learn a single global ranking function to handle all queries, and ignore the substantial differences that exist between queries. In this paper, we propose a domain generalization strategy to tackle this problem. We propose Query-Invariant Listwise Context Modeling (QILCM), a novel neural architecture which eliminates the detrimental influence of inter-query variability by learning query-invariant latent representations, such that the ranking system could generalize better to unseen queries. We evaluate our techniques on benchmark datasets, demonstrating that QILCM outperforms previous state-of-the-art approaches by a substantial margin.

Introduction

Traditional Learning-to-Rank (LETOR) models often operate under the assumption that a single global ranking function can effectively score items across all possible queries. However, search queries are inherently heterogeneous; for instance, the feature distributions for a query like "cheap batteries" differ significantly from those for "luxury Caribbean cruises." This inter-query variability poses a challenge for models that fail to account for distribution shifts, often leading to poor generalization on unseen or "anomalous" queries. While some approaches utilize Recurrent Neural Networks (RNNs) to capture local context, they frequently suffer from overfitting or the artificial imposition of sequential order on inherently orderless sets of search results.

Methodology

To address these limitations, we introduce Query-Invariant Listwise Context Modeling (QILCM). QILCM reframes the ranking task as a domain generalization problem, treating each query as a unique domain. The objective is to learn "query-invariant" representations that focus on the fundamental relationship between items and relevance, stripping away query-specific noise.

The QILCM architecture featuring query-invariant representation learning.

The architecture consists of several key innovations:

  • Self-Attention Pooling: Unlike RNNs, QILCM employs a self-attention mechanism to generate a global context vector. This ensures the model is order-invariant, respecting the set-like nature of query results.
  • Query Normalization (QN) Layer: Similar to batch normalization but applied at the query level, this layer centers the latent features of each query to a zero mean and unit variance, facilitating "apples-to-apples" comparisons across diverse searches.
  • Query Confusion Loss: Utilizing Chamfer distance, this secondary loss function penalizes the model when latent feature distributions between different queries diverge too significantly, forcing the discovery of a shared semantic space.
  • AttRank Loss: A listwise cross-entropy loss serves as the primary objective for optimizing ranking accuracy.

Experimental Evaluation

We evaluated QILCM on three benchmark datasets: Microsoft 30k (MSLR-WEB30K) for web search, Istella-S for ranking refinement, and an Airline Itinerary dataset for user choice ranking. These datasets represent a wide range of query types and feature dimensionalities.

Key Results

QILCM consistently outperforms state-of-the-art baselines, including DLCM, DCM, and LambdaMART. As shown in the results table, the model achieves significant gains in both NDCG and Precision metrics.

Comparison of QILCM with baseline models across multiple ranking metrics.

Specifically, on the Microsoft 30k dataset, QILCM improved NDCG@1 by 9.53% over the best baseline. On the Airline Itinerary dataset, it demonstrated an 8.21% improvement in Precision@1. Furthermore, analysis of "anomalous" queries—those most dissimilar to the training set—revealed that the performance gap between QILCM and standard models widens as queries become more atypical, confirming the robustness provided by the domain generalization approach.

Conclusion

By treating queries as individual domains and learning query-invariant representations, QILCM effectively mitigates the negative impact of inter-query variability. While the model shows great promise, future work may address the potential for information loss during aggressive normalization and the computational cost of the Query Confusion Loss. Exploring "meta-domains" to group similar queries could also provide more structured supervision for even more robust ranking systems.

Summary updated

BibTeX
@inproceedings{zhu2019domain,
  author = {Lin Zhu and Yihong Chen and Bowen He},
  title = {{A Domain Generalization Perspective on Listwise Context Modeling}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33015965},
}
Figure