Abstract: Ranking tasks are ubiquitous, encompassing applications such as recommendation systems, LLM routing, and item re-ranking. We propose to unify these tasks using a single ranking foundation model (FM), as it eliminates the need for designing different models for each specific ranking task. However, unlike general supervision tasks in LLMs, ranking tasks do not have clear labels for supervision, posing great challenges to developing a ranking FM. To overcome these challenges, we propose IRanker, a ranking FM framework with reinforcement learning (RL) and iterative decoding. Our insight is to decompose the complex ranking task into an iterative decoding process that eliminates the worst candidate from the candidate pool step by step, which significantly reduces the output combinatorial space and better utilizes the limited context length during RL training. We meticulously train and comprehensively evaluate an IRanker-3B model on nine datasets across three scenarios: recommendation, routing, and passage ranking. The results show that a single IRanker-3B achieves state-of-the-art results on several datasets compared to models of similar size, and even surpasses the performance of larger models on certain datasets.
Introduction
Ranking is a fundamental challenge in AI, appearing in everything from search engines to recommendation systems and "LLM Routing" (deciding which AI model should answer a specific query). Current LLM-based rankers face significant hurdles, including domain specificity, the difficulty of generating a full ranked list in a single pass (the "one-shot trap"), and a lack of iterative refinement mechanisms. Most models are fine-tuned for one specific task and fail when moved to another, while standard models often see their reasoning break down as the list of candidates grows.
Methodology
To address these challenges, we introduce a framework that uses Reinforcement Learning (specifically Proximal Policy Optimization, or PPO) to incentivize reasoning. We propose two distinct architectures:
- DRanker (Direct Ranker): A baseline approach that generates a full ranking in one shot, optimized using format and ranking rewards.
- IRanker (Iterative Ranker): A novel approach that performs step-wise elimination. Instead of ranking everything at once, IRanker reasons about which candidate is the least relevant and excludes it, repeating the process until the final order is determined. This "divide and conquer" strategy simplifies the output space and allows the model to focus its reasoning power on one decision at a time.
Experimental Setup
The models were trained and evaluated on nine diverse datasets spanning three distinct scenarios:
- Recommendation: MovieLens (movies), Amazon CD & Vinyl, and Amazon Video Games.
- Routing: Performance, Cost, and Balance scenarios where the model ranks which LLM is best suited for a specific query.
- Passage Ranking: The MS MARCO dataset, tested with varying candidate pool sizes (5, 7, and 9 passages).
Results and Discussion
IRanker-3B achieved state-of-the-art (SOTA) performance, with a 15.7% average relative improvement in Mean Reciprocal Rank (MRR) over general ranker baselines. Notably, the model demonstrated strong zero-shot generalization; when tested on tasks unseen during training, IRanker-3B improved performance by over 9% compared to the base model.
Key insights from our evaluation include:
- Iterative Reasoning is Robust: Excluding the worst candidate is easier and more robust for an LLM than picking the best one from a large pool.
- Reasoning is Transferable: Training on specific ranking tasks improves performance on general logic benchmarks like GSM8K and IFEval.
- Efficiency: A 3B-parameter model using RL-driven reasoning can consistently outperform 7B-parameter models that lack the iterative framework.
Conclusion
IRanker demonstrates that sophisticated ranking doesn't require massive models, but rather better training strategies that leverage iterative reasoning. While the iterative nature increases inference latency, it provides a significant boost in accuracy and generalization across diverse domains. Future work will explore scaling this approach to larger candidate pools and multi-objective ranking scenarios.
Summary updated