Abstract
Ranking is a fundamental task for Large Language Models (LLMs) in search and recommendation systems. However, standard preference optimization methods often struggle with list-wise ranking, either being too coarse (partial-order) or overly sensitive to noise in low-relevance items (full-order). This paper introduces K-order Ranking Preference Optimization (KPO), a framework designed to prioritize the top-K most relevant items. By combining query-adaptive K selection with curriculum learning, KPO focuses model capacity on critical results. Experimental results on MovieLens, Goodreads, and ESCI datasets demonstrate that KPO significantly outperforms existing methods in both ranking accuracy and sample efficiency.
Introduction
Ranking is a core capability for LLMs in modern information retrieval. However, standard Direct Preference Optimization (DPO) is primarily designed for pairwise preferences and does not naturally scale to list-wise scenarios. Existing list-wise approaches typically adopt one of two paradigms: partial-order methods, which only distinguish the top item from the rest, or full-order methods, which attempt to rank the entire list perfectly.
Partial-order methods lose valuable information about the relative ranking of other relevant items, while full-order methods are often hindered by the inherent noise and lack of clear ground truth for "tail" items (low-relevance results). The authors argue that real-world users primarily care about the top-K results, making K-order ranking the "just right" level of granularity.
Methodology
The KPO framework addresses these limitations by optimizing for a "K-order" preference. This approach ensures the top $K$ items are correctly ranked relative to each other and are collectively preferred over the remaining $M-K$ items.
Key technical innovations include:
- Query-adaptive K: Recognizing that some queries have many relevant results while others have only one, the authors use the LLM's own internal confidence (logits) to dynamically determine an appropriate $K$ for each sample. This allows the training process to automatically ignore items the model is already very uncertain about.
- K-aware Curriculum Learning: To stabilize training, the model starts by learning from "simple" queries (small $K$) and gradually progresses to "challenging" queries (large $K$).
- Theoretical Foundation: The authors provide a mathematical proof demonstrating that KPO achieves higher optimal ranking accuracy than partial-order methods like S-DPO.
Experiments and Results
KPO was evaluated across three diverse datasets: MovieLens (movie recommendation), Goodreads (book recommendation), and Amazon's ESCI (product search).
Performance and Efficiency
KPO consistently outperformed baselines across all datasets and metrics (Hit Ratio and NDCG). On MovieLens, KPO achieved an HR@1 of 0.5579, significantly higher than DPO (0.5263) and S-DPO (0.5368). Furthermore, KPO demonstrates superior sample efficiency, reaching higher reward levels much faster than S-DPO, meaning it requires fewer training steps to achieve better results.
Robustness and Curriculum Impact
The method is remarkably robust to noise; even when errors were intentionally introduced into the logits used to select $K$, performance remained stable. Additionally, the curriculum learning strategy proved crucial: sorting training data by $K$ in ascending order significantly improved both the stability and the final performance of the model compared to random or descending orders.
Conclusion
KPO provides a balanced approach to list-wise ranking by focusing on the top-K results, aligning with real-world user behavior. By combining adaptive candidate selection with curriculum learning, it offers a robust and efficient solution for aligning LLMs with complex ranking preferences. Future work will investigate more principled ways to derive the optimal $K$ threshold and explore improved logit calibration to further boost performance.
Summary updated