arXiv:2610.31239cs.AIOct 2026

Manuscript Offprint

arXiv:2610.31239

Reward-Weighted Preference Optimization for Selective Combinatorial Optimization Problems

Haohui Zhang, Xinyu Hu, Wouter van Heeswijk, Neil Yorke-Smith, Martijn Mes

Haohui Zhang

University of Twente

Enschede

Netherlands

h.zhang-5@utwente.nl

Wouter van Heeswijk

University of Twente

Enschede

Netherlands

w.j.a.vanheeswijk@utwente.nl

Xinyu Hu

University of Bath

Bath

United Kingdom

xh922@bath.ac.uk

Neil Yorke-Smith

Delft University of Technology

Delft

Netherlands

n.yorke-smith@tudelft.nl

Martijn Mes

University of Twente

Enschede

Netherlands

m.r.k.mes@utwente.nl

ABSTRACT

Reinforcement learning has emerged as an effective approach for combinatorial optimization, but most existing methods focus on problems such as the Travelling Salesperson Problem (TSP) in which all elements must be served. Selective combinatorial optimization problems (SCOPs), including the Orienteering Problem (OP), Prize-Collecting TSP (PCTSP), Stochastic PCTSP and Knapsack Problem (KP), additionally require selecting which elements to include. This selection creates sampled solutions with substantially different objective values, yet standard preference optimization reduces such comparisons to binary rankings and discards the magnitude of these differences.

We introduce Reward-Weighted Preference Optimization (RWPO), a pairwise training objective that incorporates reward-gap information into preference learning. For candidate trajectories sampled from the same instance, RWPO weights each preference loss according to the normalized difference in their rewards, assigning greater training emphasis to comparisons that represent larger improvements in solution quality. We further combine RWPO with scale-specific fine-tuning and reward- and likelihood-weighted tilted sampling to adapt trained policies to larger and shifted instance distributions without relying on local-search post-processing.

Experiments on the OP, PCTSP, Stochastic PCTSP, and KP show that RWPO consistently improves over unweighted preference optimization and policy-gradient baselines across a wide range of instance sizes. On the OP, the resulting solver exceeds the mean reward of the Compass metaheuristic at scales from 100 to 2,000 nodes. The results demonstrate that preserving reward-gap information can substantially improve preference-based learning for selective combinatorial optimization and support generalization to large-scale instances.

Keywords Combinatorial Optimization · Reinforcement Learning · Preference Optimization · Large-Scale Combinatorial Optimization · Vehicle Routing Problems · Machine Learning

1 Introduction

Many routing and resource allocation problems involve deciding which customers to serve or which items to select under resource constraints. These decisions are naturally formulated as selective combinatorial optimization problems (SCOPs), including the Orienteering Problem (OP), Prize-Collecting Travelling Salesperson Problem (PCTSP), Stochastic PCTSP (SPCTSP), and the Knapsack Problem (KP) [Gunawan et al., 2016, Balas, 1989, Martello and Toth, 1990]. Unlike the canonical Travelling Salesperson Problem (TSP) and Capacitated Vehicle Routing Problem (CVRP), SCOPs

Figure

Figure 1: Overview of the RWPO training and adaptation pipeline. The distributions below are conceptual visualizations of probability mass over solutions (with empirical validation provided in Appendix E.2.1). Starting from a random initial policy, RWPO learns reward-aware preferences, scale-specific fine-tuning adapts the policy to different scales (N), and tilted sampling further refines the policy toward high-quality solutions. Yellow stars denote solution quality, and τ∗\tau^{*} marks the optimal solution.

require choosing which elements to include in a feasible solution. In selective routing, this choice also affects route construction: visiting a customer changes both the objective value and the resources required to maintain feasibility. Sequential construction therefore produces candidate solutions with potentially large differences in objective value. Preference-based training can exploit these comparisons, but binary preference labels discard the magnitude of these quality differences.

Neural constructive solvers have emerged as effective approaches to combinatorial optimization, learning policies that construct solutions sequentially and enabling fast inference on new instances Bengio et al. [2021], Kool et al. [2019]. To tackle large-scale combinatorial optimization problems (COPs), recent efforts have introduced sophisticated scaling techniques such as divide-and-conquer strategies and advanced search guidance Cheng et al. [2023], Hou et al. [2023], Zheng et al. [2024], Ye et al. [2024], Pan et al. [2025b], Chen et al. [2026]. Although neural-based methods have been applied to selective problems such as OP, PCTSP, and KP Kool et al. [2019], Xin et al. [2021], Kim et al. [2022], Drakulic et al. [2023], Zheng et al. [2024], Ye et al. [2024], their performance at large and shifted instance scales remains challenging.

Policy-based Reinforcement Learning (RL) methods train such policies by directly optimizing expected rewards, but their stochastic gradient estimates can have high variance [Nazari et al., 2018, Hottung and Tierney, 2020, Kool et al., 2019, Kwon et al., 2020, Wu et al., 2021]. Preference Optimization (PO) offers an alternative by learning from comparisons between sampled solutions [Rafailov et al., 2023] and has been applied to TSP and CVRP [Pan et al., 2025a]. However, standard PO reduces each pair of solutions to a strictly binary preference: one solution is preferred to the other, regardless of whether their rewards differ marginally or substantially. This discards information that is directly available in combinatorial optimization, where exact objective values can be evaluated for every sampled solution. This limitation is particularly relevant to SCOPs, where different subset selections can produce widely varying solution quality. We therefore ask whether preference learning can retain its pairwise stability while exploiting the magnitude of observed reward differences.

To address these challenges, we introduce Reward-Weighted Preference Optimization (RWPO), for SCOP-solving RL agents. Rather than relying solely on binary preferences, RWPO directly embeds batch-normalized reward gaps as external weights on the pairwise log-likelihood differences. Unlike BOPO [Liao et al., 2025], which uses best-anchored comparisons and reward-dependent scaling inside the sigmoid, RWPO retains all sampled rollout pairs and applies reward-dependent weights to the loss while maintaining a shared inverse temperature parameter.

Second, we develop a confidence-regularized all-pair formulation that combines weighted-reward-gap preference fitting with a symmetric pairwise penalty over sampled rollout pairs. We use all sampled rollout pairs and regularize pairwise confidence, so that small reward differences do not induce unnecessarily strong separation while larger improvements receive stronger supervision.

Third, beyond the training objective, we develop a scale adaptation pipeline that combines RWPO with scale-specific fine-tuning and tilted sampling. These components enable transfer to larger and shifted instance distributions without retraining from scratch or relying on local-search (LS) post-processing during inference, providing a scalable approach for improving generalizability of neural solver across SCOPs.

Summarizing, our contributions are as follows: 1) We introduce RWPO for SCOPs, a preference learning objective that explicitly incorporates solution-quality differences by weighting pairwise comparisons using normalized reward gaps. 2) We develop a scalable training and adaptation pipeline combining RWPO, scale-specific fine-tuning, and tilted sampling. Across SCOP benchmarks, the resulting neural solver achieves state-of-the-art (SOTA) solution quality and generalizes robustly to larger instance sizes. 3) We evaluate solution quality and cross-scale generalization, separating the zero-shot performance of the trained policy from the gains obtained through adaptation. Finally, 4) we benchmark against standard preference and policy-gradient baselines, characterizing the learned policies through information-theoretic analyses.

Due to space limitations, we provide a more comprehensive discussion of related work in Appendix A.

References (98)