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
In modern recommendation systems, the final stage of delivering content to users is the reranking process. While initial ranking models focus on filtering a vast item set into a manageable candidate list, the reranking stage is responsible for the final ordering of these items before they reach the user. Traditionally, this stage has been optimized for a single objective: accuracy, often measured by click-through rates. However, as user expectations and platform responsibilities evolve, there is an increasing need to balance accuracy with other critical dimensions such as diversity and fairness.
The challenge lies in the inherent conflict between these goals. For instance, maximizing diversity might reduce immediate click probability. Existing mathematical models often struggle to bridge the "semantic gap" between these qualitative goals and quantitative ranking scores. Furthermore, these models are typically rigid, requiring significant retraining to adjust the balance between different criteria.
The LLM4Rerank Framework
To address these limitations, we propose LLM4Rerank, a framework that leverages the reasoning capabilities of Large Language Models (LLMs) to perform dynamic, multi-objective reranking. Instead of a fixed pipeline, LLM4Rerank treats reranking as a navigation problem within a function graph.
The Function Graph and Node Structure
The core of the framework is a fully connected graph consisting of two types of nodes:
- Aspect Nodes: These represent specific reranking criteria, such as Accuracy, Diversity, and Fairness. Each node contains a specialized prompt template that instructs the LLM to refine the current list based on that specific aspect.
- Functional Nodes: These include Stop and Backward nodes. The "Stop" node concludes the process when the goal is met, while the "Backward" node allows the model to self-reflect and undo a previous step if it negatively impacted the overall goal.
Chain-of-Thought (CoT) Reasoning
LLM4Rerank employs a Chain-of-Thought process where the LLM acts as an intelligent agent. Given a natural language "Goal" (e.g., "Prioritize diversity, then ensure fairness"), the LLM decides which node to visit next. This dynamic routing allows the model to tailor its reasoning path to the specific items and user context. To maintain consistency across steps, the framework utilizes a Historical Reranking Pool, which serves as a memory of previous iterations, preventing the model from losing progress.
Experimental Evaluation
The framework was evaluated using three diverse datasets: ML-1M (movies), KuaiRand (short videos), and Douban-Movie (social movie ratings). For each dataset, specific features were used to define diversity (e.g., genres) and fairness (e.g., release year or video length).
Key Results
- Superior Performance: LLM4Rerank consistently outperformed state-of-the-art specialized models like DLCM (accuracy-focused) and FairRec (fairness-focused) across almost all metrics.
- Balanced Optimization: When configured to optimize for all three aspects (LLM4Rerank-ADF), the model achieved a superior balance, maintaining high accuracy while significantly improving diversity and fairness metrics compared to single-objective baselines.
- Path Efficiency: Analysis of the reasoning paths showed that the LLM typically reaches an optimal solution in 3 to 4 steps, demonstrating that the graph-based approach is both effective and relatively efficient.
Discussion and Future Work
LLM4Rerank demonstrates that LLMs can serve as powerful "semantic bridges," translating high-level business goals into concrete ranking decisions. The ability to change system behavior by simply modifying a natural language prompt offers unprecedented flexibility for personalized recommendations.
However, challenges remain regarding inference latency. Currently, the time required per sample (approximately 14 seconds) makes the system difficult to deploy in real-time, high-traffic environments. Additionally, the performance of the model tends to degrade as the candidate list size grows beyond 20 items due to context window limitations. Future research will focus on model distillation to reduce latency and exploring advanced context management techniques to handle larger candidate sets.
Summary updated