Towards Boosting LLMs-driven Relevance Modeling with Progressive Retrieved Behavior-augmented Prompting

Zeyuan Chen, Haiyan Wu, Kaixin Wu, Wei Chen, Mingjie Zhong, Jia Xu, Zhongyi Liu, Wei Zhang

Abstract

This paper studies the relevance modeling problem by integrating world knowledge stored in the parameters of LLMs with specialized domain knowledge represented by user behavior data for achieving promising performance. The novel framework ProRBP is proposed, which innovatively develops user-driven behavior neighbor retrieval module to learn domain-specific knowledge in time and introduces progressive prompting and aggregation module for considering diverse aspects of the relevance and prediction stability. We explore an industrial implementation to deploy LLMs to handle full-scale search traffics of Alipay with acceptable cost and latency. The comprehensive experiments on real-world industry data and online A/B testing validate the superiority of our proposal and the effectiveness of its main modules.

Introduction

In modern search engines, achieving high "relevance" is critical. Traditional models primarily rely on semantic matching—evaluating whether query terms align with item descriptions. However, search queries are frequently short, ambiguous, or context-dependent. For instance, a query like "Zhe Yi" (a local hospital abbreviation) might be misinterpreted by a general LLM lacking regional domain knowledge.

While Large Language Models (LLMs) possess vast general knowledge, they often lack the domain-specific, real-time insights derived from actual user behavior. Furthermore, LLMs can exhibit "prompt insensitivity," where a single query may not elicit a sufficiently nuanced judgment. Finally, the computational cost and latency of deploying massive LLMs for high-volume search traffic present significant industrial challenges.

The ProRBP Framework

To address these issues, the authors propose ProRBP (Progressive Retrieved Behavior-augmented Prompting), a framework built on three core pillars: behavior retrieval, progressive prompting, and industrial-scale serving.

User-driven Behavior Neighbor Retrieval (BNR)

Rather than relying solely on textual semantics, ProRBP retrieves "behavior neighbors" from historical search logs. If users searching for "Query A" frequently interact with "Item B," this behavioral link is injected into the LLM's context. This process ensures the model has access to fresh, domain-specific knowledge that reflects real-world user intent.

The User-driven Behavior Neighbor Retrieval (BNR) process.

Progressive Prompting and Aggregation (PPA)

Instead of requesting an immediate relevance judgment, ProRBP employs a "least-to-most" progressive prompting strategy. This mimics Chain-of-Thought reasoning by breaking the task into logical steps:

  1. Context Validation: Are the retrieved behavior neighbors for the query and item related?
  2. Attribute Analysis: Given the neighbors, are the specific attributes (e.g., brand, intent) related?
  3. Final Judgment: Given all previous context, is the original query-item pair related?
The ProRBP framework illustrating progressive prompting and aggregation.

To ensure stability, the framework uses a Progressive Aggregation module. It employs an exponential kernel function to combine probabilities from each step, resulting in a holistic and robust relevance score.

Industrial Serving Architecture

To manage the cost and latency of LLMs in a production environment like Alipay, a hybrid architecture is utilized. A large LLM (10B parameters) performs offline inference for the most frequent query-item pairs, which are then cached in a high-speed index. For the "long tail" of infrequent or new queries, a smaller, distilled LLM (2B parameters) provides real-time inference. In practice, approximately 95% of traffic is served via the offline cache.

Experimental Evaluation

The framework was evaluated using a massive dataset from Alipay’s mini-app search engine, comprising over 773,000 training and 96,000 test samples with human-annotated relevance labels. The authors noted that public benchmarks like WANDS or MSLR were insufficient for this study because they lack the raw user behavior logs necessary to test behavior-augmented models.

Key Results

  • Performance Gains: ProRBP significantly outperformed vanilla LLMs. For example, it improved the AUC of a GLM-10B model from 0.8751 to 0.9143.
  • Ablation Studies: Removing either the Behavior Neighbor Retrieval (BNR) or the Progressive Prompting and Aggregation (PPA) modules led to a marked decline in performance, confirming their individual importance.
  • Online Impact: In live A/B testing on the Alipay platform, ProRBP increased the Page View Click-Through Rate (PV-CTR) by 0.33% and reduced irrelevant results by 1.07% without increasing end-user latency.

Conclusion

ProRBP demonstrates that integrating real-time user behavior with the reasoning capabilities of LLMs can significantly boost search relevance. By using progressive prompting, the model achieves higher accuracy and stability. Future work will explore more complex graph-based relationships within behavior neighbors and further refine the distillation process for real-time serving.

Summary updated

BibTeX
@inproceedings{chen2025towards,
  author = {Zeyuan Chen and Haiyan Wu and Kaixin Wu and Wei Chen and Mingjie Zhong and Jia Xu and Zhongyi Liu and Wei Zhang},
  title = {{Towards Boosting LLMs-driven Relevance Modeling with Progressive Retrieved Behavior-augmented Prompting}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=yIbtqQH2Zb},
}
Figure