Objective Shaping with Hard Negatives: Windowed Partial AUC Optimization for RL-based LLM Recommenders
Abstract
Reinforcement learning (RL) effectively optimizes Large Language Model (LLM)-based recommenders by contrasting positive and negative items. Empirically, training with beam-search negatives consistently outperforms random negatives, yet the mechanism is not well understood. We address this gap by analyzing the induced optimization objective and show that: (i) Under binary reward feedback, optimizing LLM recommenders with Group Relative Policy Optimization (GRPO) is theoretically equivalent to maximizing the Area Under the ROC Curve (AUC), which is often misaligned with Top-$K$ recommendation; and (ii) Replacing random negatives with beam-search negatives reshapes the objective toward partial AUC, improving alignment with Top-$K$ metrics. Motivated by this perspective, we introduce **W**indowed **P**artial **AUC** (**WPAUC**), which constrains the false positive rate (FPR) to a window [$\alpha,\alpha+d$] to more directly align with Top-$K$ metrics. We further propose an efficient **T**hreshold-**A**djusted **Win**dowed reweighting (**TAWin**) RL method for its optimization, enabling explicit control over the targeted Top-$K$ performance. Experiments on four real-world datasets validate the theory and deliver consistent state-of-the-art performance.
Empirical ResultsBrowse all benchmarks →
| Benchmark | Method | Metric | Score | Protocol / Evidence |
|---|---|---|---|---|
| Toys | ReRe* (ReRe with ranking reward) | R@1 | 0.0442 | params=0.5B · backbone=Qwen2.5-0.5BSource quoteL1254: 0.0442 │ 0.0740 │ 0.0615 |
| Toys | TAWin | R@1 | 0.0471 | params=0.5B · backbone=Qwen2.5-0.5BSource quoteL1261: 0.0471 │ 0.0761 │ 0.0639 |
| Industrial | ReRe* (ReRe with ranking reward) | R@1 | 0.0882 | params=0.5B · backbone=Qwen2.5-0.5BSource quoteL1255: 0.0882 │ 0.1224 │ 0.1091 |
| Industrial | TAWin | R@1 | 0.0904 | params=0.5B · backbone=Qwen2.5-0.5BSource quoteL1262: 0.0904 │ 0.1237 │ 0.1099 |
| Yelp | ReRe* (ReRe with ranking reward) | R@1 | 0.0206 | params=0.5B · backbone=Qwen2.5-0.5BSource quoteL1257: 0.0206 │ 0.0358 │ 0.0295 |
| Yelp | TAWin | R@1 | 0.0227 | params=0.5B · backbone=Qwen2.5-0.5BSource quoteL1264: 0.0227 │ 0.0370 │ 0.0301 |
BibTeX
@inproceedings{shi2026objective,
author = {Wentao Shi and Qifan Wang and Chen Chen and Fei Liu and Dongfang Liu and Xu Liu and Wanli Ma and Junfeng Pan and Linhong Zhu and Fuli Feng},
title = {{Objective Shaping with Hard Negatives: Windowed Partial AUC Optimization for RL-based LLM Recommenders}},
booktitle = {Advances in Neural Information Processing Systems},
year = {2026},
url = {https://openreview.net/forum?id=1WfjtTf5CM},
}Ask Althea to put this paper to the test.