Abstract
Reranking is a critical component in recommender systems, playing an essential role in refining the output of recommendation algorithms. Traditional reranking models have focused predominantly on accuracy, but modern applications demand consideration of additional criteria such as diversity and fairness. Existing reranking approaches often fail to harmonize these diverse criteria effectively at the model level. Moreover, these models frequently encounter challenges with scalability and personalization due to their complexity and the varying significance of different reranking criteria in diverse scenarios. In response, we introduce a comprehensive reranking framework enhanced by LLM, designed to seamlessly integrate various reranking criteria while maintaining scalability and facilitating personalized recommendations. This framework employs a fully connected graph structure, allowing the LLM to simultaneously consider multiple aspects such as accuracy, diversity, and fairness through a coherent Chain-of-Thought (CoT) process. A customizable input mechanism is also integrated, enabling the tuning of the language model's focus to meet specific reranking needs. We validate our approach using three popular public datasets, where our framework demonstrates superior performance over existing state-of-the-art reranking models in balancing multiple criteria.
Introduction: The Multi-Objective Challenge in Reranking
In modern recommender systems, the "reranking" stage serves as the final refinement layer. After a base ranking model identifies a set of candidate items, the reranker determines their final presentation order. Historically, this process was optimized solely for accuracy—maximizing the likelihood of user engagement.
However, real-world requirements have evolved. Modern systems must balance accuracy with diversity (preventing repetitive content) and fairness (ensuring equitable exposure for different categories or creators). Existing models often struggle with this balance because these objectives are mathematically distinct and frequently in conflict. Furthermore, traditional rerankers are "static"; adjusting the priority of diversity over accuracy typically requires model retraining, limiting real-time personalization.
The LLM4Rerank Framework
To address these limitations, we propose LLM4Rerank, a framework that conceptualizes reranking as a dynamic navigation task within a function graph.
1. The Function Graph
The core of the framework is a fully connected graph consisting of:
- Aspect Nodes: Representing specific objectives like Accuracy, Diversity, and Fairness.
- Functional Nodes: Including "Backward" (to undo a step) and "Stop" (to finalize the list).
2. Chain-of-Thought (CoT) Navigation
Instead of a fixed pipeline, the Large Language Model (LLM) acts as an autonomous agent. Guided by a user-defined Goal (e.g., "Mainly focus on accuracy, followed by diversity"), the LLM determines the optimal path through the graph. It can visit nodes sequentially, evaluate the resulting list, and even use the Backward node to revert to a previous state if a specific step compromised the overall goal.
3. Historical Reranking Pool
A critical component of LLM4Rerank is its memory. The Historical Reranking Pool stores the results and metrics of every step in the current session. This allows the LLM to compare different versions of the reranked list, enabling informed decisions about whether to proceed or backtrack.
Experimental Evaluation
The framework was evaluated on three industrial datasets: ML-1M (MovieLens), KuaiRand (short videos), and Douban-Movie. Using GMF (Generalized Matrix Factorization) as the base ranker to generate 20-item candidate lists, LLM4Rerank was compared against state-of-the-art (SOTA) baselines.
Key Results
- Superior Trade-offs: The balanced configuration (LLM4Rerank-ADF) achieved the best overall performance across Hit Ratio (Accuracy), $\alpha$-NDCG (Diversity), and MAD (Fairness).
- The Power of Memory: Ablation studies confirmed that removing the Historical Reranking Pool significantly degraded performance, highlighting the necessity of "memory" for multi-objective optimization.
- Reasoning Efficiency: Experiments showed that the LLM typically reached a "Stop" node within 3–4 steps, demonstrating that the graph-based approach is efficient for complex reasoning.
Discussion and Future Work
LLM4Rerank shifts reranking from a single-shot optimization problem to a sequential decision-making process. By leveraging the semantic understanding of LLMs, the framework bridges the gap between numerical objectives and natural language descriptions of items (e.g., genres, titles). This allows for zero-shot personalization, where system behavior can be adjusted via natural language prompts without retraining.
Despite its performance, inference latency remains a significant challenge. Current implementations using Llama-2-13B take approximately 14 seconds per sample, which is unsuitable for real-time production environments. Future research will focus on model distillation to smaller, faster architectures and improving context window management to handle larger candidate sets.
Summary updated