Pre-trained Graphformer-based Ranking at Web-scale Search (Extended Abstract)

Yuchen Li, Haoyi Xiong, Linghe Kong, Zeyi Sun, Hongyang Chen, Shuaiqiang Wang, Dawei YinarXiv 2024 · DOI

Abstract

Learning to Rank (LTR) for web-scale search faces significant challenges due to data sparsity and distribution shifts between massive pre-training datasets and specific target tasks. We present MPGraf, a modular "Graphformer" framework that unifies pairwise Transformer-based ranking with structural Graph Neural Network (GNN) link prediction. By utilizing a novel "Link Rippling" data construction method and a phased "surgical" fine-tuning strategy, MPGraf effectively captures both textual nuances and global graph topology. Experimental results on public benchmarks and live search deployments at Baidu demonstrate that MPGraf consistently outperforms state-of-the-art baselines, particularly for long-tail queries.

Introduction

In modern web search, ranking models typically follow two distinct paradigms: Transformers, which treat ranking as a pairwise regression problem focused on textual relevance, and Graph Neural Networks (GNNs), which leverage bipartite query-webpage graphs to capture structural relationships. While Transformers excel at local pair features, GNNs capture the "wisdom of the crowd" through graph topology.

However, integrating these approaches at web-scale is difficult. Search data is notoriously sparse, and the distribution shift between pre-training data and sparsely annotated target datasets often degrades performance. MPGraf addresses these issues through a modular architecture designed for robust representation learning and efficient fine-tuning.

The MPGraf Framework

The MPGraf pipeline consists of three core stages designed to bridge the gap between pairwise and structural learning.

  1. Graph Construction with Link Rippling: To combat data sparsity, MPGraf uses "Link Rippling." Query-centered Expanding Ripples propagate labels from annotated pairs to unlabeled ones, creating a denser training set. Conversely, Webpage-centered Shrinking Ripples act as a negative sampling strategy to identify irrelevant queries, teaching the model what to avoid.
  2. Hybrid Graphformer Architecture: The framework supports two modular configurations: Stacking, where GNN outputs feed into a Transformer, and Parallelizing, where both modules run concurrently and their features are fused before final prediction.
  3. Surgical Fine-tuning: To prevent "catastrophic forgetting" during adaptation to target datasets, MPGraf employs a phased approach. It first tunes the GNN module while freezing the Transformer, then jointly fine-tunes the entire stack. This ensures the model adapts to specific distributions without losing general ranking capabilities.
Overview of the MPGraf three-step pipeline: Link Rippling, Hybrid Graphformer, and Surgical Fine-tuning.

Experimental Evaluation

MPGraf was evaluated on public benchmarks (MSLR-Web30K, MQ2007, MQ2008) and a commercial dataset comprising 15,000 queries and 770,000 pairs from a major search engine.

Offline Performance

As shown in the table below, MPGraf consistently outperforms traditional Gradient Boosted Decision Trees (GBDTs) like XGBoost and LightGBM, as well as standard MLP-based rankers. The parallelized version of MPGraf using NeuralNDCG loss achieved the highest scores across varying ratios of labeled data, demonstrating its robustness in low-resource scenarios.

Comparison of MPGraf variants against state-of-the-art baselines across different labeled data ratios.

Online Deployment

In live search experiments at Baidu, MPGraf showed significant improvements over the legacy system. Notably, it achieved a 7.50% improvement in $\Delta_{GSB}$ (Good-Same-Bad) for long-tail queries (those appearing fewer than 10 times per week) and a 0.58% gain in side-by-side $\Delta_{AB}$ testing. These results indicate that the model is stable and effective for high-traffic production environments.

Discussion and Future Work

The success of MPGraf highlights the importance of combining structural and pairwise features in web-scale ranking. The "surgical" fine-tuning strategy proves that for over-parameterized models, freezing near-optimal pre-trained weights early in the fine-tuning process is critical for generalization.

Future research will focus on reducing the computational overhead of Graphformers to improve real-time inference latency and exploring more granular surgical strategies, such as freezing specific attention heads based on detected distribution shifts.

Summary updated

BibTeX
@misc{li2024pre,
  author = {Yuchen Li and Haoyi Xiong and Linghe Kong and Zeyi Sun and Hongyang Chen and Shuaiqiang Wang and Dawei Yin},
  title = {{Pre-trained Graphformer-based Ranking at Web-scale Search (Extended Abstract)}},
  year = {2024},
  eprint = {2409.16590},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.16590},
}
Figure