Manuscript Offprint
arXiv:2610.31239Reward-Weighted Preference Optimization for Selective Combinatorial Optimization Problems
Haohui Zhang
University of Twente
Enschede
Netherlands
Wouter van Heeswijk
University of Twente
Enschede
Netherlands
Xinyu Hu
University of Bath
Bath
United Kingdom
Neil Yorke-Smith
Delft University of Technology
Delft
Netherlands
Martijn Mes
University of Twente
Enschede
Netherlands
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 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 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.
2.1 Constructive Neural Solvers
Constructive neural solvers generate a feasible solution sequentially by learning a stochastic policy over the next decision, typically trained via RL. Following the attention-based architecture of Kool et al. [2019], a problem instance is first encoded into node embeddings using a transformer-style encoder with multi-head self-attention, which allows each node to aggregate information from all other nodes and capture the global structure of the instance. A decoder then constructs a solution autoregressively: at each step , the policy assigns probabilities to feasible actions, where the state represents the partial solution constructed until step and the action corresponds to selecting the next node, item, or operation. Feasibility constraints are enforced through masking, so invalid actions receive zero probability during decoding. This sequential construction process can be naturally formulated as a Markov Decision Process (MDP), where the initial state is an empty solution, the transition appends the selected action to the partial solution, and the episode terminates when a complete solution is obtained or when no further feasible action can be selected. The final reward is computed from the completed trajectory , such as the negative tour length or the collected prize. We employ this ‘standard’ constructive policy as our base architecture, focusing specifically on how to effectively train and scale neural solvers for SCOPs.
2.2 Reinforcement Learning for COPs
For solving COPs, a standard reinforcement learning (RL) objective is to maximize the expected reward
whose policy-gradient estimator takes the REINFORCE form
Although this objective is directly aligned with reward maximization, it often suffers from high gradient variance, poor trajectory-level credit assignment, leading to unstable policy updates and inefficient learning in large combinatorial decision spaces [Sutton et al., 2000, Greensmith et al., 2004, Schulman et al., 2015, Rafailov et al., 2023]. These issues become more pronounced in SCOPs, where feasible solutions may differ substantially in reward and informative high-quality trajectories are difficult to sample.
POMO for SCOPs. The RL-based framework POMO [Kwon et al., 2020] relies on the symmetry-equivalence of rollouts initialized from different starting nodes, a property inherent to sequence-invariant routing problems such as the TSP. This symmetry assumption is less appropriate for SCOPs, as the first selected node can affect the remaining feasible region, achievable reward, and final solution quality. Nevertheless, POMO-style multi-start decoding remains an effective strategy when reinterpreted as learning a top-k branch-selection policy [Zhang et al., 2025]. Specifically, for instance x, the model selects a set of promising first-step actions greedily according to the policy distribution and performs parallel rollouts conditioned on these starts. The resulting objective can be interpreted as maximizing the expected reward, conditioned on the trajectory's initial action belonging to the selected top-k branches:
where denotes the first action of trajectory . Top-k branch decoding encourages exploration across promising initial actions, which is critical for SCOPs where early decisions strongly shape the remaining feasible region. However, the resulting branch heterogeneity makes reward-based policy gradients highly noisy. As detailed next, preference-based training mitigates this instability by comparing candidate branches within the same instance, yielding a much more stable learning signal.
We use POMO-style multi-start decoding to obtain multiple candidate trajectories for each instance. In SCOPs, these trajectories need not be equivalent because different initial selections can induce different feasible regions and rewards. This provides a natural within-instance comparison set for preference optimization.
2.3 Preference Optimization for COPs
Preference Optimization (PO) provides an alternative training paradigm for RL by replacing direct reward maximization with preference-based MLE [Rafailov et al., 2023, Pan et al., 2025a]. Its connection to RL can be motivated from the entropy-regularized objective. For a fixed instance x, consider
where controls the strength of entropy regularization. The latent reward can be reparameterized in relation to the corresponding policy , which is written as
where is the partition function over all feasible trajectories. For any pair ,
This allows reward comparison to be transformed into preference classification over trajectory pairs. Given a pair of sampled trajectories , we define the binary preference label as
Since the true optimal policy is unknown, PO uses the parameterized policy to model the preference probability. The resulting objective maximizes the expected log-likelihood of the observed preference pairs:
Here, we use rather than in standard binary cross-entropy maximization because trajectory pairs with equal rewards satisfy and should be excluded from preference learning.
Under a Bradley–Terry (BT) model, which represents pairwise preference probabilities as a sigmoid of the difference between two latent utilities, the probability that is preferred to is defined as
where denotes the sigmoid function and the inverse-temperature parameter controls the preference sharpness.
In this way, PO converts reward-based policy learning into a pairwise MLE problem. Instead of estimating high-variance policy gradients from scalar trajectory rewards, the model is trained to assign higher likelihood to preferred trajectories than to inferior ones. Despite this stability, standard PO treats all correctly ordered pairs equally, stripping away the rich, exact reward differences that are readily available in combinatorial optimization.
For combinatorial optimization, however, the binary preference label is unnecessarily restrictive: the exact reward difference between two sampled trajectories is available at negligible additional cost. For instance, a pair whose rewards differ by 0.01 and a pair whose rewards differ by 10 receive the same preference signal under standard PO. RWPO addresses this mismatch by weighting the preference loss according to the normalized reward gap.
3 Methodology
3.1 Reward-Weighted Preference Optimization
To overcome the limitations of standard preference learning and explicitly leverage the exact reward signals available in SCOPs, we introduce the RWPO framework. The core idea is to dynamically scale the training signal based on the magnitude of the reward improvement, rather than treating all correctly ordered trajectory pairs equally. This explicitly accounts for the massive variance in subset-selection quality while retaining a shared inverse-temperature parameter across pairs.
Given an instance x and a pair of sampled trajectories , RWPO weights the preference log-likelihood by a reward-dependent coefficient. The RWPO objective is defined as:
(10) where determines the importance of the preference pair.
We instantiate the weight using the normalized reward gap:
where denotes the average reward gap within the batch, controls the reward reweighting strength, and is a small constant for numerical stability. This normalization makes the reward weight comparable across instances and reduces sensitivity to the scale of the objective values. In contrast to standard PO, which assigns equal weight to all ordered preference pairs, RWPO amplifies comparisons with large reward gaps while relatively suppressing near ties.
Theoretical connection to policy gradients. At the level of pairwise update coefficients, this weighting mechanism provides a connection between standard PO and reward-weighted policy gradients. For a fixed instance x, both REINFORCE and BT preference updates can be decomposed into pairwise score directions of the form:
The fundamental difference lies in the scalar coefficient attached to each direction: policy gradients scale naturally with the reward gap , whereas unweighted PO assigns the same explicit constant to every preferred pair. Under a bounded-gradient assumption, and when the pair-sampling distribution matches the current policy, the discrepancy between the RWPO preferred-pair update and the corresponding policy-gradient update is bounded by the mismatch between these effective scalar coefficients (see Appendix B.4 for the full proof). Consequently, incorporating reward-gap information provides a local motivation for making the preference-learning signal more closely resemble reward-weighted policy-gradient ascent, but it does not establish strict superiority, improved expected return, or convergence.
Confidence-regularized all-pair RWPO loss. To further stabilize training, we introduce a confidence-regularized all-pair formulation. For each unordered rollout pair , both preference directions are evaluated, but the direction corresponding to the better trajectory receives an additional reward-gap-dependent weight. Specifically, we define the bidirectional weight as:
The implemented objective is
This formulation differs from the strictly ordered RWPO objective (Eq. 11) by retaining the log-likelihoods for all rollout directions rather than discarding the non-preferred pairs. The constant unit baseline acts as a symmetric regularizer, providing a smoothing effect over the POMO rollout set. Simultaneously, the reward-gap-dependent term asymmetrically weights this all-pair objective toward the valid preference directions, proportionally scaling with the reward improvement. This design is particularly advantageous for POMO-style training, where multiple rollouts from the same instance provide a rich local comparison set: the symmetric all-pair component stabilizes preference learning, while the reward-weighted component prevents the loss function from treating near-ties and substantial reward improvements as equally important.
Corollary 1 (Reward-aware preference separation). Under the confidence-regularized all-pair RWPO objective, the induced optimal preference margin is monotonically increasing with the reward gap. Therefore, RWPO encourages stronger separation between trajectories with larger reward improvements while avoiding excessive separation for near-tie solutions.
The gradient of the two objectives are provided in Appendix B.3.
3.2 Training and Adaptation Pipeline for SCOPs
Building on the RWPO objective, we design a complete training and adaptation pipeline for SCOPs to enhance both in-distribution performance and zero-shot performance on much larger problem sizes. While a trained RWPO policy generalizes well, applying it to significantly larger target scales requires distribution-specific adaptation to account for expanding decision spaces. To achieve this efficiently, our pipeline (Algorithm 1) introduces two lightweight post-training stages: low-learning-rate scale-specific fine-tuning and tilted sampling adaptation. Crucially, this design explicitly bypasses computationally expensive local-search (LS) post-processing or LS-guided fine-tuning [Pan et al., 2025a]. Instead, our pipeline shifts the computational burden entirely to a one-time, offline adaptation phase, ensuring inference on new instances remains fast and search-free.
Scale-specific fine-tuning. A straightforward yet effective adaptation strategy is continued training with a reduced learning rate [Mosbach et al., 2020, Lin et al., 2026]. Empirically, it acts as conservative policy refinement: once RWPO has established a strong base policy, low-learning-rate adaptation further concentrates probability mass on high-quality actions without substantially altering the learned solution structure. While full backpropagation through the Transformer scales with instance size, this is strictly a one-time, offline sunk cost for a target distribution; a direct contrast to LS heuristics, which impose a substantial recurring computational penalty on every single instance during inference. To keep this offline adaptation efficient on massive instances, we purposefully employ small batch sizes, reduced multi-start sizes, and aggressive early stopping (e.g., 30 epochs).
Tilted sampling adaptation. To further concentrate probability mass on high-quality actions without destabilizing the underlying solution structure, we introduce a tilted sampling strategy for target-scale adaptation. Rather than relying on computationally expensive LS oracles to generate supervisory targets [Pan et al., 2025a], this method efficiently updates the policy using self-generated rollouts. Building on the KL-regularized policy optimization framework [Mittal et al., 2026], we define a reward-anchored sharpening objective that re-weights each rollout according to both its task reward and its likelihood under a frozen RWPO reference policy. Maximizing the weighted log-likelihood of these rollouts effectively performs weighted behavioral cloning, allowing us to exploit target-scale rewards while the frozen reference acts as an implicit KL-regularizer to preserve structural priors.
For each trajectory , we compute
where denotes within-instance normalization, controls the contribution of task reward, and controls the strength of the base-policy likelihood anchor. Given a candidate set , the scores are converted into normalized weights using a softmax temperature :
The policy is then adapted by weighted behavioural cloning:
This objective can be interpreted as an approximation of a reward-tilted distribution specific for COPs. High-reward trajectories receive larger weights, while the likelihood anchor prevents the adapted policy from moving too far away from the original RWPO policy. Therefore, tilted sampling performs reward-guided but conservative probability redistribution: it is more reward-aware than pure distribution sharpening, yet more stable than unconstrained reward-only fine-tuning. More details are provided in Appendix B.5.
4 Experiments
We present the main results of our experiments, in which we observe superior performance of the proposed RWPO for SCOPs compared to approaches in the literature. We answer the following questions: 1. How does RWPO compare to existing algorithms on standard benchmarks of the OP, PCTSP, SPCTSP, and KP? 2. How does the out-of-distribution (OOD) generalization of the RWPO compare to existing neural combinatorial optimization (NCO) algorithms? and 3. What structural information is encoded within in the learned representation, and does that explain generalization?
Evaluation Protocol. To ensure a fair comparison with prior studies, we follow standard benchmark protocols for both mid- and large-scale instances. For mid-scale instances (n = 100), we use test sets sampled from the same uniform distributions as in Kool et al. [2019] and Kwon et al. [2020]. For large-scale instances ( ), we adopt the test sets from Zheng et al. [2024]. To further evaluate generalization, we conduct zero-shot testing on instances generated with different random seeds and on the standard OPLib benchmark dataset Joshi et al. [2019]. We evaluate performance using the average accumulated reward or cost; for minimization problems, the optimality gap is computed as . Finally, to reflect practical usage, solver runtimes are measured out-of-the-box—evaluating non-neural methods on CPU and neural methods on GPU—using an Intel i5-14600KF CPU and an NVIDIA RTX 5060 Ti (16GB) GPU.
Algorithm 1 RWPO Training and Scale Adaptation
1: Input: Training distribution ; target-scale distribution ; policy ; RWPO parameters ; tilting parameters
2: Phase I: Base RWPO training
3: for each batch do
4: Sample multi-start trajectories
5: Evaluate rewards and compute normalized trajectory log-likelihoods
6: for each ordered pair do
7:
where is the mean absolute reward gap in the batch.
8: end for
9: Compute the confidence-regularized all-pair RWPO loss
10: Update .
11: end for
12: Phase II: Scale-specific fine-tuning
13: Continue Phase-I RWPO training on using .
14: Set the frozen reference policy .
15: Phase III: Tilted-sampling adaptation
16: Freeze the pre-tilt policy: .
17: for each batch do
18: Sample trajectories .
19: Standardize rewards and reference log-likelihood:
20: Compute tilted scores and weights:
21: Compute the tilted-sampling loss
where stops gradients through the sampling weights.
22: Update ,
23: end for
Implementation. For same-distribution evaluation, we apply continued low-learning-rate training followed by tilted sampling (TS). For large-scale or distribution-shifted instances, we employ scale-specific fine-tuning (40 epochs for ; 30 epochs for ), paired with TS for 100 epochs. Regarding hyperparameters, we follow Pan et al. [2025a] by setting the inverse temperature to for both RWPO and PO. The reward-weighting coefficient is set to for the OP and KP, and for the remaining problems. For the TS stage, we use , , and . During training, our multi-start rollout size is for the KP and for all other problems, whereas for inference, we report multi-start decoding performance using
across all SCOPs. Lastly, we apply a length-normalized log-probability adjustment (see Appendix B.1 for details), setting the normalization coefficient to for the OP and KP, and for the remaining SCOPs.
Baselines. This paper compares the proposed RWPO (confidence-regularized all pair version) to advanced (meta-)heuristic algorithms and existing neural constructive solvers for COPs, namely non-neural solvers (LKH [Helsgaun, 2017], Compass [Joshi et al., 2019], OR-Tools [Perron and Furnon, 2019]), neural constructive solvers (AM [Kool et al., 2019], POMO [Kwon et al., 2020], MDAM [Xin et al., 2021], Sym-NCO [Kim et al., 2022], PO [Pan et al., 2025a]) and large-scale neural solvers (BQ [Drakulic et al., 2023], GLOP [Ye et al., 2024], UDC [Zheng et al., 2024]). The implementation details and settings of all methods compared are described in Appendix C.
4.1 Comparison with Existing Algorithms on Standard Benchmarks
Tab. 1 demonstrates the effectiveness of our framework across both zero-shot scale generalization (OOD) and target-scale adaptation (ID) (for CVRP results, see Appendix E.1). Without any scale-specific fine-tuning, the base RWPO model exhibits robust OOD generalization, significantly mitigating the severe performance degradation seen in standard PO and prior constructive methods at and . Although this zero-shot performance trails BQ by a narrow margin on OP and KP, our approach successfully surpasses BQ in the ID setting. When combined with tilted sampling for target-scale adaptation (RWPO+TS), our approach establishes a new SOTA. It consistently outperforms the highly optimized UDC baseline across all problems, regularly matching or exceeding the performance of the rigorous OR-Tools and Compass baselines while requiring only seconds to minutes of computational time, including a improvement at OP2000 on Compass. Furthermore, RWPO+TS is highly computationally efficient: on the OP, it achieves performance comparable to the RWPO+LS proposed in [Pan et al., 2025a], but substantially reduces the required training time.
4.2 Analysis of Generalization
To evaluate our framework on standardized routing benchmarks, Tab. 2 presents zero-shot generalization results evaluated exclusively on the Euclidean 2D instances from OPLib Generation 3. While the absolute optimality gaps reported here are larger than those on our synthetic test sets, this is expected: many OPLib instances feature severe spatial distribution shifts—such as heavily clustered or highly irregular node coordinates—that deviate drastically from our training distribution. Despite these challenging shifts, RWPO demonstrates remarkable robustness. For instance, significantly outperforms standard across all regimes, cutting the optimality gap by more than half on the massive (2000, 5934) instances (36.24% vs. 75.99%). The results also reveal a natural cross-scale trade-off: policies trained on smaller graphs (e.g., ) excel on smaller instances, whereas models adapted on massive graphs () generalize much better to the largest regimes. To bridge this trade-off, we introduce , a decoding strategy that processes each instance using all scale-specific RWPO models and simply selects the final valid trajectory with the highest reward. By combining the complementary structural priors learned across different scales, the cross-scale decoding strategy strictly dominates any individual model, achieving the lowest gaps across all problem sizes (e.g., 4.23% on the smallest scale and 22.82% on the largest) with only a modest increase in overall inference time.
Table 2: Average gap to the Compass results.
| Method | (50, 200] | (200, 400] | (400, 2000] | (2000, 5934] |
|---|---|---|---|---|
| 6.03% | 10.98% | 41.04% | 61.54% | |
| 13.31% | 41.47% | 62.79% | 75.99% | |
| 5.71% | 15.89% | 34.48% | 46.74% | |
| 6.35% | 10.77% | 26.71% | 35.72% | |
| 14.68% | 16.72% | 25.96% | 28.47% | |
| 13.82% | 17.02% | 22.92% | 26.72% | |
| 15.61% | 17.76% | 23.81% | 27.29% | |
| 3.20% | 6.07% | 19.11% | 22.78% |
Fig. 2 demonstrates that RWPO improves both average solution quality and instance-level robustness. Across all evaluated problem sizes and travel budgets, RWPO consistently achieves smaller objective gaps against Compass than both standard PO and POMO, with its advantage becoming particularly pronounced on larger instances. PO degrades severely at scale, suggesting that binary preference supervision struggles when the decision space expands and the selected subset becomes sparse. Conversely, while POMO outperforms PO in several large-scale settings—indicating the necessity of explicit reward signals—it remains limited by high-variance training and inefficient exploration. As
Table 1: Comparison on OP, PCTSP, SPCTSP, and KP instances across different scales.
| Methods | N = 100 | N = 500 | N = 1,000 | N = 2,000 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Obj. | Gap | Time | Obj. | Gap | Time | Obj. | Gap | Time | Obj. | Gap | Time | |||
| OP | Compass | 33.133 | 0.00% | 12m | 81.123 | 0.00% | 56s | 115.690 | 0.00% | 4.1m | 166.749 | 0.00% | 1.3m | |
| AM-bs1024 | 32.686 | 1.35% | 20m | OOD | 68.592 | 15.45% | 2.5m | 79.655 | 31.15% | 7m | 95.484 | 42.74% | 3.4m | |
| MDAM-bs50 | 32.975 | 0.48% | 22m | 65.842 | 18.84% | 3.5m | 81.114 | 29.89% | 33m | 102.983 | 38.24% | 12m | ||
| Sym-NCO | 33.039 | 0.28% | 6m | 73.225 | 9.74% | 52s | 95.358 | 17.57% | 2.7m | 122.832 | 26.34% | 40s | ||
| BQ | 33.074 | 0.18% | 1.5m | 78.140 | 3.68% | 48s | 107.446 | 7.13% | 4.3m | 144.007 | 13.64% | 3.3m | ||
| POMO | 33.150 | -0.05% | 24s | 65.089 | 19.77% | 7s | 79.329 | 31.43% | 37s | 99.403 | 40.39% | 18s | ||
| PO | 33.259 | -0.38% | 24s | 35.661 | 56.04% | 6s | 41.233 | 64.36% | 33s | 49.028 | 70.60% | 16s | ||
| PO+LS | 33.281 | -0.45% | 25s | 33.701 | 58.46% | 6s | 38.010 | 67.14% | 33s | 44.452 | 73.34% | 15s | ||
| RWPO | 33.285 | -0.46% | 25s | 74.879 | 7.70% | 7s | 99.577 | 13.93% | 46s | 134.607 | 19.28% | 23s | ||
| RWPO+LS | 33.302 | -0.51% | 25s | 75.763 | 6.61% | 8s | 99.907 | 13.64% | 45s | 134.408 | 19.40% | 24s | ||
| UDC | - | - | - | ID | 79.248 | 2.31% | 57s | 113.173 | 2.18% | 19m | 145.001 | 13.04% | 25s | |
| RWPO+TS | 33.302 | -0.51% | 25s | 83.493 | -2.92% | 8s | 121.273 | -4.83% | 56s | 175.372 | -5.17% | 29s | ||
| PCTSP | OR-Tools* | 6.070 | 1.61% | 5h | 14.000 | 7.63% | 16h | 20.600 | 14.53% | 16h | - | - | - | |
| AM-bs1024 | 6.094 | 2.01% | 22m | OOD | 19.127 | 47.04% | 8m | 30.812 | 71.30% | 35m | 47.420 | 94.31% | 23m | |
| MDAM-bs50 | 6.063 | 1.49% | 28m | 14.829 | 14.00% | 9m | 22.510 | 25.15% | 1.4h | 33.015 | 35.29% | 1.2h | ||
| Sym-NCO | 6.054 | 1.34% | 6m | 19.433 | 49.39% | 1.8m | 29.443 | 63.69% | 8m | 45.329 | 85.74% | 3m | ||
| PO | 5.982 | 0.13% | 22s | 16.132 | 24.02% | 22s | 26.926 | 49.70% | 4m | 41.755 | 71.10% | 4m | ||
| RWPO | 5.977 | 0.05% | 19s | 15.758 | 21.14% | 22s | 24.487 | 36.14% | 4m | 37.934 | 55.44% | 3m | ||
| GLOP | - | - | - | ID | 14.432 | 10.95% | 1m | 19.869 | 10.46% | 1.8m | 28.418 | 16.45% | 36s | |
| UDC | - | - | - | 13.158 | 1.15% | 1.4m | 18.283 | 1.65% | 3.6m | 25.045 | 2.63% | 56s | ||
| RWPO+TS | 5.974 | 0.00% | 21s | 13.008 | 0.00% | 14s | 17.987 | 0.00% | 2m | 24.404 | 0.00% | 1.5m | ||
| SPCTSP | AM-bs1024 | 6.115 | 2.36% | 23m | OOD | 17.285 | 32.96% | 6.5m | 26.646 | 48.35% | 29m | 37.421 | 53.59% | 20m |
| MDAM-bs50 | 6.071 | 1.62% | 30m | 14.826 | 14.05% | 8.3m | 22.135 | 23.24% | 1.3h | 32.102 | 31.75% | 1.2h | ||
| PO | 5.983 | 0.15% | 25s | 16.562 | 27.40% | 26s | 28.732 | 59.97% | 3m | 46.397 | 90.42% | 2.8m | ||
| RWPO | 5.977 | 0.05% | 19s | 16.601 | 27.70% | 26s | 25.567 | 42.35% | 3m | 37.538 | 54.07% | 2.7m | ||
| UDC | - | - | - | ID | 13.233 | 1.79% | 1.5m | 18.523 | 3.13% | 3.7m | 25.551 | 4.87% | 54s | |
| RWPO+TS | 5.974 | 0.00% | 20s | 13.000 | 0.00% | 16s | 17.961 | 0.00% | 1.7m | 24.365 | 0.00% | 1.5m | ||
| KP | OR-Tools | N = 200 | N = 500 | N = 1,000 | N = 2,000 | |||||||||
| 57.640 | 0.00% | 6.5m | 128.369 | 0.00% | 25s | 258.254 | 0.00% | 1.8m | 518.397 | 0.00% | 52s | |||
| BQ | 57.578 | 0.11% | 7m | OOD | 128.279 | 0.07% | 1.1m | 256.409 | 0.71% | 7.3m | 517.124 | 0.25% | 6.1m | |
| POMO | 57.623 | 0.03% | 49s | 128.316 | 0.04% | 8s | 254.537 | 1.44% | 53s | 471.631 | 9.02% | 46s | ||
| PO | 57.629 | 0.02% | 1.3m | 108.750 | 15.28% | 10s | 147.525 | 42.88% | 41s | 230.181 | 55.60% | 34s | ||
| RWPO | 57.629 | 0.02% | 1.3m | 126.541 | 1.42% | 12s | 253.548 | 1.82% | 1.5m | 503.235 | 2.92% | 1.4m | ||
| UDC | - | - | - | ID | 128.356 | 0.01% | 47s | 258.224 | 0.01% | 1.9m | 518.226 | 0.03% | 30s | |
| RWPO | 57.629 | 0.02% | 1.3m | 128.364 | 0.00% | 12s | 258.247 | 0.00% | 1.3m | 518.284 | 0.02% | 1.2m | ||
For each problem, the upper block reports out-of-distribution (OOD) results, evaluating the zero-shot scale generalization of the base models, while the lower block reports in-distribution (ID) results after scale-specific adaptation. For AM, MDAM, Sym-NCO, BQ, UDC, and POMO on KP, we use the official pre-trained models from the original papers.
the travel budget increases and the OP shifts from a sparse selection problem to a dense routing problem (similar to the TSP), RWPO maintains its strong performance, proving it captures fundamental routing structures rather than just exploiting sparse reward signals. These results confirm that preserving reward-gap information makes preference learning vastly more robust to weak comparisons and distribution shifts.
4.3 Entropy Analysis
To better understand why RWPO generalizes on SCOPs, we analyze policy-level uncertainty and decoder-query representation diversity using two complementary measures. Policy entropy is the Shannon entropy of the decoder's probability distribution over feasible next actions, measuring how concentrated its action probabilities are at each decoding step. Decoder-query soft entropy applies the soft-entropy procedure used by Conklin et al. [2026] to decoder

(a)
(b)
(c)
Figure 2: Objective gap against Compass on OP instances under different travel budgets T and problem sizes.

(a)
(b)
(c)
(d)
Figure 3: Step-wise policy entropy during decoding on OP instances of different sizes.
queries collected across instances and rollouts at each step. Specifically, queries are normalized and softly assigned to randomly sampled reference directions on the unit sphere; we then compute the Shannon entropy of the aggregated assignment distribution. This metric serves as a entropy-based proxy for angular representation diversity. Since query-key alignment determines relative decoder candidate scores, this measure helps identify when the query component of the decoder becomes more concentrated across different partial solutions (see Appendix D.1 for more details). We target decoder queries because they act as the information bottleneck for next-action scoring, uniquely aggregating critical state context: the global graph, node embeddings, and feasibility constraints. Together, the two measures characterize how action uncertainty and query-distribution diversity evolve during solution construction as feasibility constraints change. We use OP as the primary testbed because it combines reward-based subset selection with budget-constrained routing, allowing us to examine these dynamics as candidate-set size increases.
We contrast next-action uncertainty within individual rollouts (Fig.3) against query representation diversity across the batch (Fig.4). On OP500 and OP1000, PO exhibits prolonged high policy entropy alongside comparatively lower decoder-query soft entropy, showing that uncertain action distributions need not be accompanied by diverse query representations. POMO attains high intermediate query entropy, but subsequently enters a sustained lower-entropy regime earlier than the RWPO variants. In contrast, RWPO exhibits lower early-stage policy entropy than both baselines while maintaining or recovering query diversity over substantial shared late-decoding intervals. Fine-tuned RWPO variants successfully decouple these metrics, maintaining high query diversity despite concentrated action distributions—a behavior most evident in RWPO-FT500 (OP500) and RWPO-FT1k (OP1000). On OP100, RWPO-TS similarly exhibits higher query entropy but lower policy entropy than RWPO over most of decoding, although RWPO itself shows a pronounced late decline in both measures. Overall, the results show that RWPO variants can combine diverse query representations across partial solutions with concentrated next-action distributions within individual branches, rather than achieving representation diversity simply by maintaining greater action randomness.
4.4 Ablation Study
Fig. 5a shows that PO and both RWPO variants achieve similar best-reward values on OP100; however, this parity does not hold for the average performance across the k rollouts. As shown in Fig.5b, the mean-reward curve of standard PO is highly oscillatory and fails to stabilize, whereas RWPO—particularly the all-pair variant—maintains a smooth, stable trajectory. A similar pattern emerges in the OP500 OOD evaluation (Fig.5c), as well as the PCTSP (Fig. 5d) and SPCTSP/KP results (Appendix E.5). Because top-k POMO aggregates the learning signal across all k rollouts, the learned policy should improve the entire rollout set collectively rather than merely optimizing its single best member. The observation that PO retains a competitive best reward while exhibiting unstable mean performance supports our hypothesis: without explicit reward magnitudes, purely ordinal updates fail to properly differentiate the relative quality.

(a)
(b)
(c)
(d)
Figure 4: Step-wise decoder-query soft entropy during decoding on OP instances of different sizes.

(a) Best reward on OP100
(b) Mean reward on OP100
(c) Best reward on OP500
(d) Mean reward on PCTSP100
Figure 5: Training and evaluation curves on the OP and PCTSP problem.
of the full rollout batch. In contrast, RWPO all-pair remains stable across all tested problem settings, preserving the stabilizing properties of symmetric pairwise learning while explicitly scaling its gradient updates by the reward gaps.
5 Discussion and Conclusion
This work presented an effective learning-based framework for selective combinatorial optimization problems (SCOPs). Central to our approach is Reward-Weighted Preference Optimization (RWPO), which improves upon standard preference learning by rigorously preserving reward-gap information. Unlike standard PO, which reduces trajectory comparisons to purely ordinal binary preferences, RWPO scales the loss of each pair by their exact reward difference, directly aligning the agent's learning signal with reward maximization. This mechanism is essential for SCOPs, where subset-selection decisions cause feasible solutions to vary drastically in actual quality even when correctly ordered. By naturally down-weighting weak comparisons, RWPO learns a highly constraint-aware policy, delivering stronger out-of-distribution (OOD) generalization than PO while maintaining much greater training stability than standard POMO. When integrated with our complete adaptation pipeline—comprising top-k selective decoding, scale-specific fine-tuning, and tilted sampling—RWPO establishes state-of-the-art performance across four SCOP benchmarks.
Although RWPO shows strong performance on SCOPs, it relies on exact reward evaluations, which could be difficult to obtain in partially observable or multi-objective environments. Second, its reward-weighting strength and length-normalization coefficient are currently fixed, suggesting future works on adaptive weighting based on reward dispersion, instance difficulty, or route-length statistics. Finally, while our entropy analyses reveal a strong correlation between representation diversity and generalization, they are purely observational. Future works could employ representation interventions to definitively prove whether these diverse decoder queries are the direct causal factors of the model's OOD robustness.
Acknowledgments
This publication is part of the project FMaaS - it’s a cargo match (with project number NWA.1518.22.023) of the research programme Dutch Research Agenda - research along NWA routes by consortia which is (partly) financed by the Dutch Research Council (NWO).
References
Riad Akrour, Marc Schoenauer, and Michèle Sebag. Preference-based reinforcement learning. In European Conference on Machine Learning and Knowledge Discovery in Databases (ECML PKDD), pages 12–27. Springer, 2011.
Mohammad Gheshlaghi Azar, Mark Rowland, Bilal Piot, Daniel Guo, Rémi Munos, Branislav Kveton, et al. A general theoretical paradigm to understand learning from human preferences. In International Conference on Learning Representations, 2024.
Egon Balas. The prize collecting traveling salesman problem. Networks, 19(6):621–636, 1989.
Irwan Bello, Hieu Pham, Quoc V Le, Mohammad Norouzi, and Samy Bengio. Neural combinatorial optimization with reinforcement learning. arXiv preprint arXiv:1611.09940, 2016.
Yoshua Bengio, Andrea Lodi, and Antoine Prouvost. Machine learning for combinatorial optimization: A methodological tour d'horizon. European Journal of Operational Research, 290(2):405–421, 2021.
Jieyi Bi, Yining Ma, Jiahai Wang, Zhiguang Cao, Jinbiao Chen, Yuan Sun, and Yeow Meng Chee. Learning generalizable models for vehicle routing problems via knowledge distillation. Advances in Neural Information Processing Systems, 35:31226–31238, 2022.
Christopher J.C. Burges, Robert Ragno, and Quoc V. Le. Learning to rank using gradient descent. In Proceedings of ICML, 2006.
Quentin Cappart, Thierry Moisan, Louis-Martin Rousseau, Isabeau Prémont-Schwarz, and Andre A Cire. Combining reinforcement learning and constraint programming for combinatorial optimization. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pages 3677–3687, 2021.
Shengkai Chen, Zhiguang Cao, Jianan Zhou, Yaoxin Wu, Senthilnath Jayavelu, Zhuoyi Lin, Xiaoli Li, and Shili Xiang. Dragon: Llm-driven decomposition and reconstruction agents for large-scale combinatorial optimization. In Proceedings of the 25th International Conference on Autonomous Agents and Multiagent Systems, pages 2809–2817. International Foundation for Autonomous Agents and Multiagent Systems, 2026. doi: 10.65109/SBAY6258.
Xinyun Chen and Yuandong Tian. Learning to perform local rewriting for combinatorial optimization. Advances in neural information processing systems, 32, 2019.
Hui Cheng, Hao Zheng, Yuru Cong, Wei Jiang, and Shiliang Pu. Select and optimize: Learning to solve large-scale tsp instances. In Proceedings of the 26th International Conference on Artificial Intelligence and Statistics, volume 206 of Proceedings of Machine Learning Research, pages 1219–1231, 2023.
Paul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. Deep reinforcement learning from human preferences. Advances in Neural Information Processing Systems, 30, 2017.
Henry C Conklin, Tom Hosking, Tan Yi-Chern, Julian Gold, Jonathan D Cohen, Thomas L Griffiths, Max Bartolo, and Seraphina Goldfarb-Tarrant. Learning is forgetting: LLM training as lossy compression. arXiv preprint arXiv:2604.07569, 2026.
Darko Drakulic, Sofia Michel, Florian Mai, Arnaud Sors, and Jean-Marc Andreoli. BQ-NCO: bisimulation quotienting for efficient neural combinatorial optimization. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine, editors, Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023. URL http://papers.nips.cc/paper_files/paper/2023/hash/f445ba15f0f05c26e1d24f908ea78d60-Abstract-Conference.html.
Johannes Fürnkranz, Eyke Hüllermeier, Weiwei Cheng, and Sang-Hyeun Park. Preference-based reinforcement learning: a formal framework and a policy iteration algorithm. Machine learning, 89:123–156, 2012.
Evan Greensmith, Peter L. Bartlett, and Jonathan Baxter. Variance reduction techniques for gradient estimates in reinforcement learning. Journal of Machine Learning Research, 5:1471–1530, 2004.
Aldy Gunawan, Hoong Chuin Lau, and Pieter Vansteenwegen. Orienteering problem: A survey of recent variants, solution approaches and applications. European Journal of Operational Research, 255(2):315–332, 2016. doi:10.1016/j.ejor.2016.04.059.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.
Keld Helsinki. An extension of the Lin-Kernighan-Helsgaun TSP solver for constrained traveling salesman and vehicle routing problems. Roskilde: Roskilde University, 12:966–980, 2017.
André Hottung and Kevin Tierney. Neural large neighborhood search for the capacitated vehicle routing problem. In Proceedings of ECAI 2020, pages 443–450, 2020.
André Hottung, Paula Wong-Chung, and Kevin Tierney. Neural deconstruction search for vehicle routing problems. arXiv preprint arXiv:2501.03715, 2025.
Qi Hou, Jianan Yang, Yining Su, Xin Wang, and Yu Deng. Generalize learned heuristics to solve large-scale vehicle routing problems in real-time. In International Conference on Learning Representations, 2023.
Edward Hu, Moksh Jain, Eric Elmoznino, Younesse Kaddar, Guillaume Lajoie, Yoshua Bengio, and Nikolay Malkin. Amortizing intractable inference in large language models. In International Conference on Learning Representations, volume 2024, pages 43053–43083, 2024.
Julian Ibarz, Jan Leike, Tobias Pohlen, Geoffrey Irving, Shane Legg, Dario Amodei, and Paul Christiano. Reward learning from human preferences and demonstrations in atari. In Advances in Neural Information Processing Systems, volume 31, 2018.
Yuan Jiang, Zhiguang Cao, Yaoxin Wu, Wen Song, and Jie Zhang. Ensemble-based deep reinforcement learning for vehicle routing problems under distribution shift. Advances in Neural Information Processing Systems, 36:53112–53125, 2023.
Chaitanya K. Joshi, Thomas Laurent, and Xavier Bresson. An efficient graph convolutional network technique for the travelling salesman problem. arXiv preprint arXiv:1906.01227, 2019.
Elias Khalil, Hanjun Dai, Yuyu Zhang, Bistra Dilkina, and Le Song. Learning combinatorial optimization algorithms over graphs. Advances in neural information processing systems, 30, 2017.
Minsu Kim, Junyoung Park, and Jinkyoo Park. Sym-nco: Leveraging symmetricity for neural combinatorial optimization. Advances in Neural Information Processing Systems, 35:1936–1949, 2022.
Gorka Kobeaga, María Merino, and Jose A Lozano. An efficient evolutionary algorithm for the orienteering problem. Computers & Operations Research, 90:42–59, 2018.
Wouter Kool, Herke van Hoof, and Max Welling. Attention, learn to solve routing problems! In International Conference on Learning Representations, 2019.
Yeong-Dae Kwon, Jinho Choo, Byoungjip Kim, Iljoo Yoon, Youngjune Gwon, and Seungjai Min. POMO: Policy optimization with multiple optima for reinforcement learning. Advances in Neural Information Processing Systems, 33:21188–21198, 2020.
Kimin Lee, Laura Smith, Pieter Abbeel, and Chelsea Finn. Pebble: Feedback-efficient interactive reinforcement learning via relabeling experience and unsupervised pre-training. In International Conference on Machine Learning, pages 6152–6163. PMLR, 2021.
Sirui Li, Zhongxia Yan, and Cathy Wu. Learning to delegate for large-scale vehicle routing. In Advances in Neural Information Processing Systems, volume 34, 2021.
Zijun Liao, Jinbiao Chen, Debing Wang, Zizhen Zhang, and Jiahai Wang. Bopo: Neural combinatorial optimization via best-anchored and objective-guided preference optimization. arXiv preprint arXiv:2503.07580, 2025.
Jiacheng Lin, Zhongruo Wang, Kun Qian, Tian Wang, Arvind Srinivasan, Hansi Zeng, Ruochen Jiao, Xie Zhou, Jiri Gesi, Dakuo Wang, et al. Sft doesn’t always hurt general capabilities: Revisiting domain-specific fine-tuning in llms. In International Conference on Learning Representations, volume 2026, pages 46954–46992, 2026.
Manuj Malik, Jianan Zhou, Shashank Reddy Chirra, and Zhiguang Cao. Pyvrp+: Llm-driven metacognitive heuristic evolution for hybrid genetic search in vehicle routing problems. In Proceedings of the 25th International Conference on Autonomous Agents and Multiagent Systems, pages 2800–2808. International Foundation for Autonomous Agents and Multiagent Systems, 2026. doi: 10.65109/ISFV2587.
Silvano Martello and Paolo Toth. Knapsack Problems: Algorithms and Computer Implementations. Wiley, 1990.
Sarthak Mittal, Leo Gagnon, and Guillaume Lajoie. Beyond distribution sharpening: The importance of task rewards. arXiv preprint arXiv:2604.16259, 2026.
Marius Mosbach, Maksym Andriushchenko, and Dietrich Klakow. On the stability of fine-tuning bert: Misconceptions, explanations, and strong baselines. arXiv preprint arXiv:2006.04884, 2020.
Mohammadreza Nazari, Afshin Oroojlooy, Lawrence Snyder, and Martin Takác. Reinforcement learning for solving the vehicle routing problem. Advances in neural information processing systems, 31, 2018.
Alex Nowak, David Folqué, and Joan Bruna. Divide and conquer networks. In International Conference on Learning Representations, 2018.
Mingjun Pan, Guanquan Lin, You-Wei Luo, Bin Zhu, Zhien Dai, Lijun Sun, and Chun Yuan. Preference optimization for combinatorial optimization problems. arXiv preprint arXiv:2505.08735, 2025a.
Xuanhao Pan, Yan Jin, Yuandong Ding, Mingxiao Feng, Li Zhao, Lei Song, and Jiang Bian. H-tsp: Hierarchically solving the large-scale traveling salesman problem. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 9345–9353, 2023. doi: 10.1609/aaai.v37i8.26120.
Yuxin Pan, Ruohong Liu, Yize Chen, Zhiguang Cao, and Fangzhen Lin. Hierarchical learning-based graph partition for large-scale vehicle routing problems. In Proceedings of the 24th International Conference on Autonomous Agents and Multi-Agent Systems, 2025b.
Xue Bin Peng, Aviral Kumar, Grace Zhang, and Sergey Levine. Advantage-weighted regression: Simple and scalable off-policy reinforcement learning. In arXiv preprint arXiv:1910.00177, 2019.
Laurent Perron and Vincent Furnon. Or-tools. Google.[Online]. Available: https://developers.google.com/optimization, pages 33–46, 2019.
Jan Peters and Stefan Schaal. Reinforcement learning by reward-weighted regression. In Proceedings of the 24th International Conference on Machine Learning, pages 745–750, 2007.
Fredrik Präntare, Herman Appelgren, Mattias Tiger, David Bergström, and Fredrik Heintz. Learning heuristics for combinatorial assignment by optimally solving subproblems. In Proceedings of the 21st International Conference on Autonomous Agents and Multiagent Systems, pages 1074–1082, 2022.
Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. Advances in neural information processing systems, 36:53728–53741, 2023.
John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation. arXiv preprint arXiv:1506.02438, 2015.
Richard S. Sutton, David McAllester, Satinder Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Advances in Neural Information Processing Systems, 2000.
Chenguang Wang, Zhouliang Yu, Stephen McAleer, Tianshu Yu, and Yaodong Yang. Asp: Learn a universal neural solver! IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(6):4102–4114, 2024.
Christian Wirth, Riad Akrour, Gerhard Neumann, and Jan Peters Günther. Model-free preference-based reinforcement learning. Proceedings of the AAAI Conference on Artificial Intelligence, 30, 2016.
Christian Wirth, Riad Akrour, Gerhard Neumann, and Jan Peters. A survey of preference-based reinforcement learning methods. Journal of Machine Learning Research, 18(136):1–46, 2017.
Yaoxin Wu, Wen Song, Zhiguang Cao, Jie Zhang, and Andrew Lim. Learning improvement heuristics for solving routing problems. IEEE transactions on neural networks and learning systems, 33(9):5057–5069, 2021.
Yue Wu, Zhaojian Sun, Shao Huang, Xiaoyu Wang, et al. Pairwise proximal policy optimization: Harnessing feedback from comparative data for reinforcement learning. In Advances in Neural Information Processing Systems, volume 36, 2023.
Liang Xin, Wen Song, Zhiguang Cao, and Jie Zhang. Multi-decoder attention model with embedding glimpse for solving vehicle routing problems. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pages 12042–12049, 2021.
Haoran Ye, Jiarui Wang, Helan Liang, Zhiguang Cao, Yong Li, and Fanzhang Li. Glop: Learning global partition and local construction for solving large-scale routing problems in real-time. In Proceedings of the AAAI conference on artificial intelligence, volume 38, pages 20284–20292, 2024.
Haohui Zhang, Wouter van Heeswijk, Xinyu Hu, Neil Yorke-Smith, and Martijn Mes. Deep learning–accelerated multi-start large neighborhood search for real-time freight bundling. arXiv preprint arXiv:2512.11187, 2025.
Zeyu Zheng, Yining Zhou, Yuxuan Xie, Xinyun Chen, Yinyu Ye, and Hanjun Dai. Udc: A unified neural divide-and-conquer framework for large-scale combinatorial optimization problems. In Advances in Neural Information Processing Systems, 2024.
Changliang Zhou, Xi Lin, Zhenkun Wang, Xialiang Tong, Mingxuan Yuan, and Qingfu Zhang. Instance-conditioned adaptation for large-scale generalization of neural routing solver. arXiv preprint arXiv:2405.01906, 2024a.
Changliang Zhou, Xi Lin, Zhenkun Wang, Xialiang Tong, Mingxuan Yuan, and Qingfu Zhang. Instance-conditioned adaptation for large-scale generalization of neural routing solver. IEEE Transactions on Intelligent Transportation Systems, 2026.
Chunting Zhou, Pengfei Liu, Jing Xu, et al. Wpo: Learning from human preferences with weighted preference optimization. arXiv preprint arXiv:2404.XXX, 2024b.
Jianan Zhou, Yaoxin Wu, Wen Song, Zhiguang Cao, and Jie Zhang. Towards omni-generalizable neural methods for vehicle routing problems. In International conference on machine learning, pages 42769–42789. PMLR, 2023.
Zefang Zong, Hansen Wang, Jingwei Wang, Meng Zheng, and Yong Li. Rbg: Hierarchically solving large-scale routing problems in logistic systems via reinforcement learning. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 4648–4658, 2022. doi: 10.1145/3534678.3539037.
A Related Work
A.1 RL-based Neural Network Solvers
Reinforcement-learning-based neural combinatorial optimization (NCO) formulates solution construction as a finite-horizon decision process. A neural policy incrementally selects feasible nodes, edges, or assignments, and the resulting solution quality provides the training signal. Early end-to-end methods used pointer-style recurrent networks trained with REINFORCE for the traveling salesperson problem and knapsack problems [Bello et al., 2016]. Later work incorporated dynamic demands and capacities for vehicle routing [Nazari et al., 2018], graph-embedding-based Q-learning [Khalil et al., 2017], and attention-based encoder-decoder architectures [Kool et al., 2019]. POMO improves exploration by constructing multiple solutions from different starting points and optimizing their returns jointly [Kwon et al., 2020], while Sym-NCO leverages problem symmetries to boost performance [Kim et al., 2022]. MDAM trains multiple decoders and applies a pairwise KL-divergence regularizer at the initial step to diversify their action distributions [Xin et al., 2021]. Recent neural vehicle-routing studies address generalization through adaptive multi-distribution knowledge distillation [Bi et al., 2022], policy-space exploration with curriculum-based scale adaptation [Wang et al., 2024], meta-learning for rapid adaptation to new tasks [Zhou et al., 2023], ensemble RL with mixed-distribution training and diversity regularization [Jiang et al., 2023], and geometry- and density-conditioned policy adaptation for large-scale generalization [Zhou et al., 2026]. Collectively, these methods modify the policy architecture, action-space representation, search procedure, conditioning mechanism, or training distribution. Our work is complementary in that it modifies the optimization objective through reward-weighted preference optimization (RWPO), using pairwise preferences together with reward gaps to guide policy updates.
Hybrid neural solvers combine learned policies with classical search or optimization. NeuRewriter learns local rewriting operations for improving partial solutions [Chen and Tian, 2019], while Neural Large Neighborhood Search learns repair operators within a destroy–repair framework [Hottung and Tierney, 2020]. Neural Deconstruction Search follows a related iterative improvement paradigm by learning an RL policy to remove customers from incumbent routes and combining it with greedy insertion and augmented simulated annealing to reconstruct and improve the solutions [Hottung et al., 2025]. Expanding this learned-heuristic direction, PyVRP employs LLM-driven heuristic evolution within a hybrid genetic search framework [Malik et al., 2026]. Other approaches instead pair deep reinforcement learning with exact subproblem solvers or constraint programming [Cappart et al., 2021, Präntare et al., 2022]. In summary, these hybrid methods improve the reliability of neural construction by retaining classical search, but they introduce complex algorithmic design choices concerning solver calls, neighborhood selection, and the allocation of credit between learned and hand-crafted components. Furthermore, extending these iterative local-search operators to selective combinatorial optimization problems (SCOPs) is notoriously difficult, as the agent must simultaneously optimize routing efficiency and search the massive combinatorial space of unvisited nodes without violating strict global budget constraints.
A.2 Neural Divide-and-Conquer Methods
Neural divide-and-conquer methods improve the scalability of data-driven approaches by partitioning a large instance, solving smaller subproblems, and combining the resulting partial solutions. Early networks in this direction learned recursive split-and-merge operations for generic combinatorial tasks [Nowak et al., 2018]. To tackle large-scale routing specifically, frameworks like Learning to Delegate, RBG, and H-TSP employ hierarchical policies to assign instance components to localized solvers [Li et al., 2021, Zong et al., 2022, Pan et al., 2023]. Building on this, several recent approaches explicitly separate global partitioning from local construction. For example, TAM learns a constraint-aware VRP partition that allows local TSP heuristics to generalize to larger instances [Hou et al., 2023], while GLOP and Select-and-Optimize alternate between selecting local subproblems and applying learned optimization procedures [Ye et al., 2024, Cheng et al., 2023]. To address the compounded errors that arise from these splits, Hierarchical Learning-based Graph Partitioning (HLGP) uses dual global and local policies [Pan et al., 2025b], and UDC trains a graph-neural divider jointly with a subpath solver via a unified Divide-Conquer-Reunion objective [Zheng et al., 2024]. Pushing this paradigm further, DRAGON deploys LLM-driven agents to identify promising regions and reconstruct global solutions using feedback-guided experience memory [Chen et al., 2026]. These approaches highlight a fundamental challenge in scalable neural solvers: partition decisions must be rigorously evaluated against the completed solution, as an unfavorable early split irreversibly restricts cross-partition connections and bounds the improvements available to local solvers. This vulnerability is especially pronounced in SCOPs, where localized partitions prematurely fragment the global budget and prevent the solver from discovering highly rewarding, globally dispersed subsets.
A.3 Preference-based Reinforcement Learning Methods
Preference-based reinforcement learning (PbRL) learns from comparisons between trajectories or candidate solutions rather than requiring a fully specified scalar reward. Early approaches inferred latent utilities from pairwise preferences and used preference-based policy iteration or Bayesian model-free policy updates [Akrour et al., 2011, Fürnkranz et al., 2012, Wirth et al., 2016, 2017]. Deep RL from Human Preferences learned a neural reward model from pairwise trajectory-segment labels and optimized the learned reward with RL [Christiano et al., 2017, Ibarz et al., 2018]. PEBBLE improved feedback efficiency through active query selection, unsupervised exploration, and replay relabeling [Lee et al., 2021]. These methods provide a general framework for learning objectives that are difficult to write explicitly, but their performance depends on the coverage and accuracy of the preference or reward model.
Direct preference-optimization methods avoid a separate reward-model training stage. DPO derives a pairwise objective from the KL-regularized RLHF solution [Rafailov et al., 2023], while IPO modifies the preference objective to reduce overfitting under deterministic labels [Azar et al., 2024]. P3O performs policy updates directly from comparative trajectory feedback [Wu et al., 2023]. WPO reweights preference examples according to their likelihood under the current policy to reduce off-policy distribution shift [Zhou et al., 2024b]; these weights reflect policy likelihood rather than the reward gap between two solutions.
Recent neural-based methods have successfully adapted preference signals to avoid scalar reward modeling. For example, Pan et al. [2025a] use statistical preference models to derive a preference-learning objective from entropy-regularized RL, with local search generating additional preference pairs for fine-tuning. BOPO similarly establishes preference optimization as a viable data-driven paradigm by constructing best-anchored pairs and scaling its pairwise loss using reward differences [Liao et al., 2025]. Our method fundamentally differs in the scope and application of this reward signal. Rather than relying on anchor-based comparisons, the reward-dependent weight in RWPO dictates the contribution of every preference pair. Thus, the RWPO update strictly preserves both the ordinal direction of the preference and the cardinal magnitude of the reward improvement. This dual signal is mathematically critical for SCOPs, where feasible subsets are massively numerous, frequently near-tied in routing cost, but differ drastically in their accumulated global reward.
B Additional Methodology Details
We provide further details to Section 3 of the main paper.
B.1 Decoding-Length Bias of Summed Log-Probabilities in SCOPs
In Preference Optimization (PO) and Reward-Weighted Preference Optimization (RWPO), the standard preference objective increases the trajectory log-probability of preferred solutions. For an autoregressive constructive policy, the trajectory log-probability is
where denotes the number of decoding steps in trajectory .
This summed log-probability can introduce a length bias in SCOPs. Since each per-step log-probability is non-positive, longer trajectories typically have more negative total log-probability even when their average per-step confidence is comparable to that of shorter trajectories. This can cause PO to favor shorter routes beyond the intended preference for higher-reward solutions.
To mitigate this effect, we use the following length-adjusted trajectory score:
This quantity is a scoring function and, for , is not the log-probability of a normalized trajectory distribution. In particular, when , whereas gives the average per-step log-probability.
In our experiments, we use as a partial length correction in OP and KP, and use in PCTSP and SPCTSP. This hyperparameter distinction reflects the underlying structural biases of the problem classes: the OP and KP inherently encourage visiting more nodes to maximize accumulated rewards within a budget, whereas the PCTSP and SPCTSP penalize routing costs and therefore favor shorter decision sequences. The resulting preference term is
B.2 Motivation for Reward-Weighted Preference Optimization
Illustrative Example. Consider an extreme example with two preference pairs under the Bradley–Terry (BT) model. First, suppose with
Second, suppose with
Under the pairwise logistic model
with , we obtain
Thus, the model assigns approximately 50% probability to the correct preference in the first pair and only 8% in the second pair. The corresponding log-likelihood terms are
Since the gradient magnitude of the binary cross-entropy loss scales with (for positive labels), the second pair produces a substantially larger gradient than the first. Consequently, the optimization strongly pushes the model to correct the misranking of , even though their reward gap is negligible, while only weakly encouraging preference between despite their large reward difference.
Fundamental Issue. This example reveals a structural limitation of the PO: the update magnitude depends solely on the model's probability error, rather than on the reward gap between trajectories. As a result, pairs with small reward differences but large probability errors can dominate the gradient, whereas pairs with substantial reward gaps may induce only minor updates.
To tackle this issue, we employ a weighted pairwise logistic likelihood, scaling each comparison by a function of the reward gap to emphasize more informative preferences. This is conceptually aligned with reward-weighted likelihood/regression in policy learning [Peters and Schaal, 2007, Peng et al., 2019] and with importance-weighted pairwise losses in learning-to-rank (e.g., LambdaRank-style reweighting) [Burges et al., 2006].
B.3 Gradient Analysis of RWPO Objectives
We analyze the gradient behavior of the ordered RWPO objective and the implemented confidence-regularized all-pair RWPO objective. For a sampled trajectory pair, define the normalized trajectory log-likelihood margin as
For simplicity, let
Gradient of ordered RWPO For an ordered preference pair with , the RWPO loss is
where
Taking the gradient with respect to gives
(23)
Because increases monotonically with the reward gap, larger improvements between the preferred and rejected trajectories produce larger gradient magnitudes when the current preference margin is identical. Therefore, RWPO assigns stronger optimization pressure to comparisons with larger reward improvements while preserving the same preference probability mapping for all pairs as PO.
Gradient of confidence-regularized all-pair RWPO Unlike the ordered RWPO objective, which increases preference-separation pressure through reward-dependent gradients, the confidence-regularized all-pair RWPO objective induces a finite reward-gap-dependent optimal preference margin.
For an unordered rollout pair , define
The implemented all-pair objective for this pair is
where
and
The derivative with respect to the pairwise margin is
(27)
For a pair where has higher reward than ,
we have
Therefore,
The gradient consists of two components. The unit terms produce the symmetric preference regularization:
which prevents unconstrained growth of the pairwise margin. The unit baseline alone does not learn preference ordering. It acts as a margin regularizer that prevents the model from pushing all pairwise differences to . The reward-gap-dependent component is
which increases the preference pressure toward the higher-reward trajectory as the reward gap grows.
Proposition 1 (Reward-gap-dependent preference margin). For a fixed trajectory pair with , the confidence-regularized all-pair RWPO loss induces an optimal log-likelihood margin
where
Therefore, RWPO assigns larger optimal preference margins to trajectory pairs with larger normalized reward gaps, while allowing near-tie pairs to remain weakly separated.
Proof. For a pair with , as the derivative of with respect to gives
At the stationary point,
Applying the inverse sigmoid function gives
which proves the result.
Corollary 2 (Reward-aware preference separation). Under the confidence-regularized all-pair RWPO objective, the induced optimal preference margin is monotonically increasing with the reward gap:
Therefore, RWPO encourages stronger separation between trajectories with larger reward improvements while avoiding excessive separation for near-equivalent solutions.
Consequently, the all-pair formulation preserves the stabilizing effect of symmetric pairwise learning while selectively increasing the margin between trajectories with larger objective improvements.
B.4 Gradient-Matching Interpretation of Reward-Weighted Preference Optimization
The analysis below focuses on the reward-gap-weighted preferred-direction component of RWPO, which provides the direct connection to reward-weighted policy-gradient updates. The implemented confidence-regularized all-pair RWPO loss additionally includes the symmetric all-pair baseline, which serves as a confidence regularizer by controlling pairwise separation. Since this term does not correspond to a reward-weighted update direction, it is excluded from the coefficient-matching comparison with the policy-gradient formulation.
Fix an instance and a policy . At a given training iteration, let trajectory pairs be sampled from the current policy (or another fixed sampling distribution). When differentiating the preference objective, we hold the sampled trajectories and their reward-dependent weights fixed, as in standard PO. For analytical tractability, we condition on a fixed realization of the discrete sampling support during differentiation. Equivalently, the sampling policy is treated as locally constant with respect to its support mask, so gradients are computed within a region of parameter space where the selected support does not change. Notably, this condition holds for top- selective decoding provided the selected support mask remains fixed during the backward pass.
Write
and define the reward and log-probability gaps as
Here, and denote the standard trajectory log-probability. The length-normalized trajectory score introduced in Appendix B.1 is not considered in the following theoretical analysis; instead, we analyze the standard PO/RWPO scoring function based on trajectory log-probabilities.
The BT preference model induced by the implicit reward
defines the pairwise preference probability
where .
Let be a pairwise weight that is independent of . For a fixed pair-sampling distribution , the weighted preference objective is
During gradient computation, q is treated as fixed and corresponds to the distribution induced by the sampled rollout pairs.
For comparison, consider the standard expected-reward objective:
B.4.1 Pairwise Representation of the Policy Gradient
We assume that the reward function is independent of , as in standard policy-gradient optimization.
Lemma 1 (Pairwise representation of the policy gradient). For any fixed instance x,
Equivalently, when ties have zero contribution,
Proof. The likelihood-ratio identity gives
For two independent trajectories,
Because the two trajectories and are independent and
based on the assumption that the support of does not change when differentiating, the cross terms vanish:
and similarly for . Therefore,
which proves Eq. (35).
For Eq. (36), define
Since both and the gradient difference change sign when exchanging and , we have
Therefore, positive and negative reward-gap pairs contribute equally, and restricting the expectation to gives the equivalent preferred-direction representation.
B.4.2 Policy-Score Update Induced by Weighted Preference Optimization
Lemma 2 (Gradient of the weighted preference loss). For the fixed pair-sampling distribution q, the policy-score gradient of (34) is
(37)
Proof. Let . Since
we have
B.4.3 Coefficient-Matching Bound
The pairwise RL ascent direction in (36) and the preference-learning update in (37) share the same feature direction
They differ in the scalar coefficient multiplying this direction.
When the pair-sampling distribution is the current policy, , define
Then
Theorem 1 (Coefficient-matching bound). Assume there exists such that
almost surely. Then
Moreover,
Proof. By the pairwise representations above,
which proves (38). Applying Cauchy–Schwarz,
gives (39).
The bound shows that reward weighting can be interpreted as selecting the scalar coefficient multiplying each pairwise policy-score direction. The RL update gives coefficient for preferred pairs, whereas the BT preference update gives .
Thus, reward-gap weighting directly bridges preference learning and policy gradients. By incorporating -dependent information into , the preference coefficient adapts to the standard RL reward scaling. Consequently, reducing the error term
steers the resulting update toward the policy-gradient direction, serving as a gradient-matching motivation rather than a strict convergence guarantee."
B.5 Tilted Sampling
Let denote a pretrained base policy, where is an instance and is a generated trajectory. Following the distinction in Mittal et al. [2026], we first separate task-reward optimization from distribution sharpening at the level of their ideal objectives. Pure task-reward optimization directly seeks trajectories with high task reward:
where denotes the task-specific reward. This objective is driven only by solution quality and does not explicitly account for whether the selected trajectory is likely under the pretrained policy.
In contrast, pure distribution-sharpening optimization seeks trajectories that are most likely under the base policy:
or equivalently,
This objective does not use task reward directly. Instead, it assumes that the base policy already assigns higher likelihood to better trajectories, and therefore attempts to improve performance by concentrating probability mass on the base model's existing high-likelihood modes.
A softer distributional version of this idea is tempered sampling [Hu et al., 2024]. Rather than collapsing onto the single most likely trajectory, tempered sampling defines a sharpened target distribution
Equivalently, this is a low-temperature version of the base policy with temperature :
Thus, distribution-sharpening optimization and tempered sampling share the same underlying principle: both favor trajectories that are already likely under the base policy. The former corresponds to a hard maximization view, while the latter gives a softened distributional version. However, both approaches improve task performance only when base-policy likelihood is well aligned with solution quality. When this alignment is weak, sharpening may reinforce trajectories that are plausible under the base model but not necessarily high-reward.
Tilted sampling combines the two signals. It keeps the base-policy likelihood as a conservative anchor while also incorporating task reward. The ideal tilted target is
Note that, corresponds to normal KL-regularized RL fine-tuning [Guo et al., 2025].
Taking logarithms, this target assigns each trajectory a combined score:
where is the instance-level normalizing constant. Therefore, tilted sampling can be interpreted as a reward-guided form of distribution sharpening: the reward term favors high-quality trajectories, while the base-likelihood term keeps the adapted policy close to trajectories that remain plausible under the pretrained model. In neural combinatorial optimization, the full trajectory space is combinatorially large, making the exact normalizer intractable. We therefore approximate the tilted target over a finite candidate set
sampled from the current policy. To make the reward and likelihood terms comparable across candidate groups, we normalize them within each group:
and
The finite-candidate tilted score is then defined as
where controls the contribution of the task reward and controls the strength of the base-policy likelihood anchor. We convert these scores into normalized candidate weights using a softmax temperature :
The adapted policy is then trained by weighted behavioural cloning:
This objective can be viewed as a sampled approximation to the ideal tilted distribution. When , it reduces to base-policy sharpening or tempered imitation, concentrating probability mass on trajectories that the base policy already considers likely. When , it becomes reward-only adaptation over the sampled candidate set. When both terms are active, the objective encourages task-reward improvement while retaining a conservative connection to the pretrained policy. In this sense, tilted sampling provides a controlled interpolation between distribution sharpening and reward-driven adaptation.
C Baseline Method Details and Hyperparameters
To aid reproducibility, we provide further details of the methods compared in Section 4 of the main paper, and the datasets used.
C.1 Baselines
Classical solvers. For LKH3, we adopt the commonly used configuration in the machine learning literature [Kool et al., 2019] and implement the TSP and CVRP baselines based on the code from https://github.com/wouterkool/attention-learn-to-route. For KP, we use OR-Tools and follow the implementation provided in the official Google OR-Tools documentation: https://developers.google.com/optimization/pack/knapsack. For OP, we use Compass [Kobeaga et al., 2018], implemented from https://github.com/gkobeaga/op-solver, as the main classical baseline.
RL-based constructive solvers. We compare against representative RL-based constructive solvers, including AM [Kool et al., 2019], POMO [Kwon et al., 2020], ICAM [Zhou et al., 2024a], MDAM [Xin et al., 2021], SymNCO [Kim et al., 2022] and PO Pan et al. [2025a]. For POMO, PO, and ICAM, we use multi-start decoding with and augmentation on non-SCOP instances with size , and multi-start decoding without augmentation for instances with . For SCOPs, we use multi-start decoding with and no augmentation. For Sym-NCO, we adopt 200 augmentations for COP instances with and 100 augmentations for 2,000-node instances. Unless otherwise specified, we use the pretrained checkpoints released by the original papers for all neural baselines except POMO and PO, which we train under our unified experimental setup.
Neural divide-and-conquer methods. We also include neural divide-and-conquer baselines, including GLOP [Ye et al., 2024] and UDC [Zheng et al., 2024], to compare against methods specifically designed for large-scale combinatorial optimization.
C.2 Dataset
OPLib benchmark. To evaluate out-of-distribution generalization on real benchmark instances, we use OPLib, a public benchmark library collected from classical OP instance families and released by BCAM Data Science https://github.com/bcamath-ds/OPLib. The repository provides instance files organized by generation setting, where different generations correspond to different ways of assigning node rewards. In our experiments, we focus on Generation 3 instances because their reward-generation rule is closest to the reward distribution used to train our neural policy. This choice allows us to evaluate scale and structural generalization on standard benchmark instances while avoiding an additional reward-distribution shift that would confound the comparison. Therefore, performance on Generation 3 primarily reflects whether the learned policy can transfer from synthetic training instances to OPLib geometry and budget structures under a compatible reward distribution.
C.3 Hyperparameters Setting
Tab. 3 presents the parameter settings for the three training frameworks: POMO, PO, and RWPO. The attention layer of RWPO is the same as for POMO and PO.
D Further Experimental Details
We provide further details of the experiments of Section 4 of the main paper.
D.1 Soft Entropy Estimation
In addition to policy entropy, which is computed directly from the decoder action distribution, we use a representation-level entropy estimator to quantify how information is distributed in the hidden embedding space. Directly estimating the entropy of high-dimensional continuous neural representations is challenging: differential entropy is sensitive to scaling and coordinate transformations, while hard discretization or clustering-based estimators can be computationally expensive and difficult to apply at scale. We therefore adopt the soft entropy estimator of Conklin et al. [2026], which can be interpreted as a differentiable relaxation of binning-based Shannon entropy. The method softly quantizes hidden representations into a fixed set of reference directions on the unit hypersphere and then computes the Shannon entropy of the resulting categorical distribution.
Table 3: Hyperparameter setting for POMO, PO, and RWPO.
| CVRP100 | OP100 | PCTSP100/SPCTSP100 | KP200 | |
|---|---|---|---|---|
| Alpha | ||||
| Preference Function | Exponential | BT | BT | BT |
| Length normalization | ||||
| RWPO Lambda | ||||
| Epochs | ||||
| Epochs (FT) | ||||
| Epochs (TS) | ||||
| Epoch (FT) Size | ||||
| Epoch (TS) Size | ||||
| Encoder Layer Number | ||||
| Batch Size | ||||
| Embedding Dimension | ||||
| Attention Head Number | ||||
| Feed Forward Dimension | ||||
| Tanh Clip | ||||
| Learning Rate | ||||
| Small Learning Rate | ||||
| Norm Type | InstanceNorm | LayerNorm | LayerNorm | LayerNorm |
Let denote a collection of hidden representations, where is the number of representation vectors and is the hidden dimension. In our experiments, can correspond to encoder node embeddings, decoder query embeddings, or other intermediate representations collected over instances and decoding steps. The first step is to normalize each representation vector onto the unit sphere:
where is a small constant for numerical stability. We then sample reference anchors uniformly at random from the unit sphere . Equivalently, this can be implemented by sampling and normalizing:
Let denote the matrix of anchor directions.
For each normalized representation , we compute its cosine similarity to all anchors and apply a temperature-scaled softmax:
where temperature parameter controls the sharpness of the soft assignment. A smaller makes the assignment closer to hard nearest-anchor quantization, while a larger produces smoother assignments. Thus, each representation vector is mapped to a probability vector over the anchor set.
The empirical soft-quantized distribution over anchors is obtained by averaging the assignments over all representations:
Since is a categorical distribution over anchors, its Shannon entropy is
For easier comparison across different choices of , we report the normalized soft entropy
(45) which lies in [0, 1]. A value close to 1 indicates that the representations are spread relatively evenly across anchor directions, while a smaller value indicates that the representation mass is concentrated around fewer directions.
When representations are collected layer-wise, the same computation can be applied independently to each layer. Let denote the representations from layer . We compute the layer-wise soft entropy and report the average:
In our analysis, we apply this estimator separately to encoder and decoder representations. Encoder soft entropy measures how broadly instance-level information is distributed across representation directions, while decoder soft entropy characterizes the diversity of the decision representation used to construct the solution.
Algorithm. The full procedure is summarized below.
Algorithm 2 Soft entropy estimation for hidden representations
Require: Hidden representations , number of anchors , temperature
1: Normalize each representation:
2: Sample anchors for
3: Normalize anchors:
4: for do
5: Compute cosine similarities
6: Compute soft assignment:
7: end for
8: Aggregate assignments:
9: Compute entropy:
10: Normalize:
11: return
Soft entropy estimator. We employ soft entropy as a representation-level estimator for continuous neural embeddings. Unlike dimension-wise discretization, soft entropy yields a smooth Shannon-entropy estimate without relying on hard binning, thereby circumventing the instability and memory overhead inherent to high-dimensional spaces. Furthermore, compared to clustering-based quantization, it eliminates the need for iterative centroid fitting. Anchor directions are sampled once and reused, reducing the entire estimation process to highly efficient cosine similarities followed by a softmax operation. Crucially, because vectors are -normalized prior to estimation, this metric specifically captures the angular diversity of the latent space. This is particularly suitable for Transformer-based models, where high-dimensional embedding geometry and attention mechanisms rely heavily on relationships among continuous vector representations.
D.2 Interpretation of Representation and Policy Entropy
In this work, soft entropy complements policy entropy by characterizing different aspects of the learned solver. Policy entropy measures behavioural uncertainty in the decoder action distribution,
whereas soft entropy measures the diversity of continuous hidden representations. For encoder representations, soft entropy reflects whether the model preserves diverse instance-level information before decoding. For decoder queries, it characterizes the diversity of decision-state representations used to construct the next action. In particular, the decoder query
summarizes the current partial solution, global context, depot/end information, and remaining budget. Therefore, decoder-query soft entropy measures how diverse or compressed the internal decision state is before interacting with candidate actions.
This distinction separates two effects: whether the model retains rich information about the input instance and whether the decoder maintains an expressive representation of the evolving solution state. High decoder-query soft entropy should not be interpreted as behavioural uncertainty; rather, it indicates diversity in the latent decision-state representation. Our analyses in Section 4.3 and Appendix E.3 shows that RWPO preserves richer encoder representations while maintaining structured decoder-query representations, suggesting that reward-weighted preference learning improves generalization through more informative representations.
Decoder hidden-state entropy, as studied in Conklin et al. [2026], provides a complementary measure of representation compression. However, these hidden states are computed after the decoder query has interacted with encoded candidate information through attention layers. They therefore combine decision-state information with candidate-dependent features and are more dependent on decoder architecture. We use decoder hidden-state entropy as a secondary representation metric rather than the primary measure of route-level decision-state diversity.
Policy entropy remains the most direct measure of behavioural uncertainty, but it is affected by the size of the feasible action set because its maximum value scales with . Therefore, when comparing action-level uncertainty across states, we additionally consider normalized or residual entropy to reduce the effect of varying support sizes.
D.3 Mutual-Information Analysis
While soft entropy measures representation diversity, it does not reveal whether this diversity corresponds to task-relevant information. We therefore complement our entropy analysis with a mutual-information analysis between learned representations and OP-specific labels (Tab. 4). For encoder representations, we consider static instance properties, including reward, depot distance, reward–distance structure, spatial region, and top-rollout membership, to evaluate whether the model captures reward and geometric information before decoding. For decoder-query representations, we consider dynamic decision-state variables, including accumulated reward, current distance, remaining budget, feasible action count, budget–feasibility interactions, reward quantiles, and top-versus-bottom trajectory membership.
This analysis distinguishes meaningful task-aware representations from merely diffuse features. In particular, higher mutual information between decoder queries and feasibility or preference-related labels indicates that representation diversity corresponds to structured decision information: the policy can maintain flexibility over candidate actions while still encoding constraints, remaining resources, and solution quality signals. Therefore, the entropy and mutual-information analyses together characterize whether RWPO induces informative exploration rather than unstructured randomness.
E Additional Experimental Results
We provide further experiments, not reported in Section 4 of the main paper.
E.1 Comparison with Existing Algorithms on CVRP
Tab. 5 evaluates zero-shot scale generalization (OOD) and target-scale adaptation (ID) on CVRP instances. In the OOD setting, traditional neural solvers suffer severe performance degradation as instance size increases; specifically, the optimality gaps of PO and POMO compound rapidly at . By anchoring preference updates to the true reward gap, RWPO successfully mitigates this degradation. This advantage becomes more pronounced at larger scales: compared to standard PO, RWPO reduces the optimality gap from 17.53% to 14.10% at , from 45.78% to 38.35% at , and from 108.09% to 93.26% at .
Following scale-specific adaptation with tilted sampling, RWPO+TS achieves performance comparable to dedicated large-scale solvers. By restricting optimality gaps to 2.45%, 4.40%, and 7.21% on instances, respectively, RWPO+TS drastically improves upon the directly transferred base policies. These results indicate that reward-weighted preference learning provides a highly robust initialization for scale adaptation, which TS subsequently refines. Finally, in the ID setting, RWPO+TS remains strictly competitive with specialized methods such as ICAM and UDC, yielding near-optimal performance without relying on the extensive data augmentation pipelines required by those baselines.
E.2 Comparison Among Fine-tuning Methods
E.2.1 Comparison Between Local Search Fine-tuning with Scale-specific Finetuning and Tilted Sampling
The likelihood–quality frontiers in Fig. 6 reveal a scale-dependent adaptation pattern. Each point represents a sampled trajectory, where the horizontal axis is the length-normalized log-likelihood assigned by the base RWPO policy and the
Table 4: Task-relevant labels used for mutual-information analysis on OP. The labels cover static instance properties, dynamic decoding states, and preference-level solution-quality signals.
| Category | Label | Definition and motivation |
|---|---|---|
| Encoder-side static instance labels | Depot distance | . Measures the geometric accessibility of node from the depot. Nodes far from the depot is costly to visit even if they have high reward. |
| Depot feasible | . Indicates whether node can be visited while still allowing return to the depot. This tests whether representations encode feasibility in addition to reward attractiveness. | |
| Node type | A categorical label distinguishing depot, selected nodes, unvisited candidates, and infeasible nodes. This tests whether the model separates structurally different roles. | |
| Reward | . The static prize of node . Since OP is a selective maximization problem, this is the core objective-relevant node attribute. | |
| Reward-distance ratio | . Measures reward efficiency relative to travel cost, which is critical when high reward and high travel distance conflict. | |
| Spatial quadrant | . A coarse spatial-region label used to test whether encoder embeddings capture geometric clustering. | |
| Decoder-side dynamic state and constraint labels | Accumulated reward | . Measures the objective value collected by the partial route. The decoder should adapt future choices based on how much reward has already been obtained. |
| Budget-feasibility interaction | . Combines remaining budget with the number of feasible actions, capturing how constrained the current decision state is. | |
| Current distance | . Measures consumed travel budget and determines how much flexibility remains. | |
| Decoding phase | . Indicates whether the policy is in the early, middle, or late construction stage. Good OP policies should behave differently across these phases. | |
| Feasible actions | . Measures the size of the valid action set at step . High mutual information with this label indicates awareness of the current feasible decision space. | |
| Remaining budget | . Captures the remaining travel resource and determines whether the policy should continue exploring, select nearby nodes, or terminate. | |
| Selected count | . Tracks route length and construction progress, which affects both accumulated reward and feasibility. | |
| Preference-level solution-quality labels | Top-rollout membership | For encoder analysis, , where denotes a top-performing rollout or the union of nodes visited by top rollouts. For decoder analysis, . This tests whether representations encode information associated with globally high-quality solutions. |
| Reward quantile | . This assigns each sampled rollout to a discrete final-reward quantile. Unlike binary top-versus-bottom membership, it provides a graded preference signal and tests whether decoder states encode relative solution quality. |
vertical axis is the objective value. A higher log-likelihood, i.e., a value closer to zero, indicates that the trajectory is more probable and more consistent with the base RWPO policy's existing preferences. A lower log-likelihood, i.e., a more negative value, indicates that the trajectory is less likely under the base RWPO policy and therefore lies farther from the policy's original high-probability region. Note that in this section, the base RWPO represents the model trained without the small learning-rate continued (scale-specific) post-training; RWPO-FT represents the model with continued post-training.
On the setting (Fig. 6a), all adapted policies remain concentrated in regions with relatively high likelihood under the base RWPO policy, suggesting that post-training improves trajectories largely within regions already covered
Table 5: Comparison on instances across different scales. Best results are highlighted in bold.
| Methods | N = 100 | - | N = 500 | N = 1,000 | N = 2,000 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Obj. ↓ | Gap | Time | Obj. ↓ | Gap | Time | Obj. ↓ | Gap | Time | Obj. ↓ | Gap | Time | |||
| CVRP | LKH3* | 15.65 | 0.00% | - | 37.23 | 0.00% | 1.2m | 46.40 | 7.91% | 4m | 64.90 | 8.15% | 14m | |
| BQ | 16.09 | 2.79% | 2.2m | OOD | 38.44 | 3.25% | 1.5m | 44.17 | 2.72% | 13m | 62.59 | 4.30% | 30m | |
| POMO | 15.75 | 0.66% | 2.3m | 44.64 | 19.90% | 2.5m | 52.97 | 23.18% | 19m | 92.34 | 53.87% | 2.2h | ||
| PO | 15.80 | 0.94% | 4.4m | 43.76 | 17.53% | 2.9m | 62.69 | 45.78% | 20m | 124.87 | 108.09% | 2.2h | ||
| PO+LS | 15.82 | 1.11% | 4.5m | 44.20 | 18.73% | 3.0m | 63.95 | 48.71% | 21m | 116.63 | 94.35% | 2.2h | ||
| RWPO | 15.79 | 0.90% | 4.4m | 42.48 | 14.10% | 2.9m | 59.49 | 38.35% | 20m | 115.98 | 93.26% | 2.2h | ||
| RWPO+LS | 15.81 | 1.04% | 4.5m | 42.95 | 15.37% | 3.0m | 62.51 | 45.36% | 22m | 134.67 | 124.42% | 2.2h | ||
| RWPO+TS | 15.75 | 0.61% | 4.4m | ID | 38.14 | 2.45% | 3m | 44.89 | 4.40% | 20m | 64.34 | 7.21% | 2.2h | |
| ICAM | 15.87 | 1.41% | 1.9m | 37.49 | 0.70% | 1.3m | 43.07 | 0.16% | 27m | 61.34 | 2.22% | 4h | ||
| UDC | - | - | - | 37.99 | 2.04% | 2.3h | 43.00 | 0.00% | 10h | 60.01 | 0.00% | 18h | ||
For each problem, the upper block reports out-of-distribution (OOD) results, evaluating the zero-shot scale generalization of the base models, while the lower block reports in-distribution (ID) results after scale-specific adaptation. For BQ (larger model), POMO (training 30500 epochs), ICAM, and UDC (augmentation x200), we use the official pre-trained models from the original papers. For POMO, PO, ICAM, and RWPO, we apply the augmentation (x8) proposed in [Kwon et al., 2020].
Table 6: Effect of fine-tuning on larger-scale generalization on OP. Relative differences are computed using mean tour revenue, where higher is better.
| Fine-tuned model | Reference model | OOD scales | Mean Δ (%) | Mean |Δ| (%) | Max loss (%) | Better/equal (%) |
|---|---|---|---|---|---|---|
| RWPO-FT | RWPO | 200, 500, 1000 | -0.57 | 0.66 | 2.06 | 22.86 |
| RWPO-FT-LS | RWPO-FT | 200, 500, 1000 | -0.28 | 1.40 | 2.68 | 34.29 |
| RWPO-FT-TS | RWPO-FT | 200, 500, 1000 | +0.63 | 0.63 | 0.00 | 100.00 |
| RWPO-FT-TS | RWPO-FT-LS | 200, 500, 1000 | +0.94 | 1.57 | 2.14 | 74.29 |
| RWPO-FT | RWPO-FT | 500, 1000 | +6.71 | 6.72 | 0.15 | 96.15 |
| RWPO-FT | RWPO-FT | 1000 | +9.42 | 12.83 | 6.35 | 66.67 |
| RWPO-FT-TS | RWPO-FT | 1000 | +1.54 | 1.54 | 0.00 | 100.00 |
denotes the relative change in mean tour revenue between the fine-tuned model and its reference model. Mean captures the average signed change, while Mean measures the average magnitude of change regardless of direction. Max loss reports the largest performance degradation, and Better/equal reports the percentage of cases where the fine-tuned model matches or outperforms the reference model.
by RWPO. It is interesting that RWPO-FT has a lower log-likelihood under the base RWPO policy, while achieving substantially higher objective values. This suggests that the performance gain is not simply due to sharpening the original RWPO distribution or concentrating probability mass on trajectories that the base policy already assigns high likelihood. Instead, RWPO-FT appears to increase probability on trajectories that are less preferred by the original RWPO policy but achieve higher objective values. In contrast, on the setting (Fig. 6b), RWPO-FT substantially shifts the sampled solutions to a much higher objective region, while the tilted variant further improves the binned quality curve slightly. This indicates that, under larger-scale distribution shift, high-quality trajectories are not necessarily those with the highest likelihood under the original RWPO policy.
Comparing the two fine-tuning strategies, RWPO-FT-LS samples extend farther toward lower base RWPO likelihood values, while RWPO-FT-TS samples are more concentrated near the high-likelihood region. In the likelihood–quality frontier, RWPO-FT-LS generates many trajectories with lower likelihood under the base RWPO policy, suggesting that LS guidance encourages exploration of solutions less represented in the original RWPO sampling distribution. This suggests that LS-guided fientuning can improve trajectories that were assigned relatively low probability by the base RWPO policy. However, this larger deviation from the base likelihood distribution may indicate a larger policy shift, which could require additional evaluation for robustness. In contrast, RWPO-FT-TS remains closer to the high-likelihood region of the base RWPO policy. Its reward term encourages improvement, while the base-likelihood term anchors the adapted policy to trajectories that remain plausible under the original model. As a result, RWPO-FT-TS behaves as a more conservative reward-guided redistribution mechanism. Therefore, RWPO-FT-TS appears to induce a smaller shift relative to the base policy, whereas LS-guided fine-tuning explores a broader region of the trajectory space. These observations further support the illustration in Fig. 1 in the main text, which depicts the evolution of the policy probability distribution during adaptation.
E.2.2 Fine-tuning does not degrade generalization ability
Tab. 6 evaluates whether post-training adaptation improves or harms larger-scale generalization. Continued post-training on the original scale (RWPO-FT) only slightly changes OOD performance relative to the base RWPO model, with a small average drop of 0.57%, suggesting that low-learning-rate refinement is largely conservative but does not by itself substantially improve transfer. LS-guided fine-tuning also shows limited OOD benefit and can introduce larger variation, indicating possible sensitivity to the fine-tuning distribution. In contrast, RWPO-TS consistently improves over RWPO-FT, achieving a positive mean gain of 0.63% with no observed loss and a 100% better/equal rate, showing that tilted sampling provides a safer adaptation mechanism. Scale-specific fine-tuning is more effective for large-scale transfer: fine-tuning on N = 200 improves performance on N = 500 and N = 1000 by 6.71% on average, while fine-tuning on N = 500 improves transfer to N = 1000 by 9.42%. Applying tilted sampling after N = 500 fine-tuning further improves performance by 1.54% with no degradation. Overall, the table shows that RWPO supports stable post-training adaptation, and that the most reliable pipeline combines scale-specific fine-tuning with tilted sampling.
E.3 Representation Diversity under Scale Generalization
Route-level visualization of decoder-query representation diversity. To complement the aggregate entropy statistics, we visualize representative decoded OP routes with visited nodes colored by decoder-query soft entropy. Decoder-query soft entropy measures the diversity of the decoder's latent decision-state representation rather than the uncertainty of the next-action distribution. A high value indicates that the decoder maintains a richer representation of the current partial solution, potentially preserving diverse information about accumulated reward, remaining budget, feasibility constraints, and future trade-offs; a low value indicates a more compressed decision-state representation. Therefore, decoder-query soft entropy provides a representation-level view that complements policy entropy, which directly measures behavioral uncertainty in the next-action distribution. These route-level visualizations connect the numerical representation statistics to the actual spatial decision process: in OP, a policy must decide not only which high-reward regions to visit but also when to move between regions under a limited travel budget. Visualizing decoder-query soft entropy along the constructed route allows us to inspect whether the decision-state representation changes in a spatially structured manner, for example, whether it becomes more concentrated within locally coherent route segments and more diverse near transitions between candidate regions.
Figures 7 and 8 show that the methods differ substantially in how decoder-query representation diversity is distributed along the route. The route-level entropy patterns are consistent with the inductive biases of the corresponding training objectives. PO, trained only to preserve pairwise preference order, lacks reward-gap information and therefore learns a weaker reward–geometry representation under scale shift; this is reflected by collapsed decoder-query soft entropy, confinement to low-reward regions, inefficient first moves, and crossed routes. POMO, trained by policy-gradient reward maximization, can move toward high-reward regions, but its representation diversity increases mainly after reaching those regions, suggesting that it is better at local exploitation than early global region selection. In contrast, RWPO weights preference updates by reward differences, so large objective gaps receive stronger learning signals. This encourages the decoder to preserve richer decision-state representations during early route-shaping decisions, when the policy must choose which high-reward region to approach. Scale-specific fine-tuning further adapts this representation to larger candidate sets: RWPO-FT maintains high decoder-query diversity through the transition into high-reward regions and then becomes more concentrated near route completion, leading to fewer crossings and better geometric route quality. Overall, the visualization supports the view that reward-weighted preference learning improves OP generalization by aligning representation diversity with reward magnitude, feasibility, and route structure.
E.4 Mutual Information Between Hidden Representations and Task-Relevant Labels on OP
Scale-dependent division of labor in encoder and decoder representations. To examine whether RWPO's improved generalization is accompanied by a different allocation of information between the encoder and decoder, we estimate the soft mutual information between intermediate representations and labels describing the OP instance and route-construction state. The encoder labels include static instance-level attributes, such as depot distance, depot feasibility, node type, reward, reward–distance, spatial quadrant, and top-rollout membership. The decoder labels describe the evolving partial route, including accumulated reward, budget–feasibility interaction, current distance, decoding phase, feasible actions, remaining budget, and selected-node count.
Figures 9 and 10 reveal a relative division of labor between encoder and decoder representations across problem scales. In both settings, the encoder exhibits its strongest mutual information with static instance-level attributes, particularly depot distance and node reward, whereas the decoder-query representation contains substantially more information about dynamic route-construction variables, including budget–feasibility, feasible actions, remaining budget, and current distance. This pattern is consistent with an encoder that represents the candidate set and its reward–geometry attributes, and a decoder that tracks the evolving feasibility state of the partial route. The method comparison shows a clear scale-dependent difference: at N = 500, PO exhibits a marked attenuation of decoder information for accumulated reward and constraint-related variables, while RWPO retains strong information about budget–feasibility, feasible actions, remaining budget, and current distance. POMO also preserves strong decoder information for several of these labels and is comparable to RWPO in some cases, so the heatmaps do not establish a uniform superiority of RWPO over POMO. The RWPO variants, including RWPO-TS, consistently maintain strong constraint-related decoder information, which is consistent with the hypothesis that reward-weighted post-training encourages more constraint-aware representations. Together with the independently observed performance degradation of PO at N = 500, these results provide representational evidence consistent with improved large-scale generalization.
Scale-dependent organization of task-relevant decoder information To further examine whether the improved generalization of RWPO is reflected in the internal decision process, we measure how much task-relevant information is encoded in the decoder-query representation at each decoding step. Specifically, we consider (i) constraint-related signals, including feasible actions, current distance, remaining budget, and budget-feasibility interaction; (ii) objective-related signals, including accumulated reward; and (iii) preference-related labels, including reward quantile and top-versus-bottom trajectory membership. Together, these labels characterize whether the decoder representation encodes the key quantities needed to balance reward collection, feasibility preservation, and route completion.
Fig. 11 shows that decoder-query representations encode different decision-relevant factors at different stages of route construction. The difference becomes much clearer at N = 500. For PO, the information profile becomes concentrated primarily on current distance, top-versus-bottom trajectory membership, and reward quantile, whereas the information associated with accumulated reward, feasible actions, budget–feasibility interaction, and remaining budget is substantially weaker than at N = 100. In contrast, RWPO retains strong encoding of feasible actions and budget-related signals during the middle stages, including a pronounced peak in the remaining-budget signal, before shifting toward current distance, top-versus-bottom trajectory membership, and reward quantile during later decoding. Thus, as the instance size grows, RWPO maintains a staged decision process that first emphasizes feasibility and budget management and subsequently emphasizes distance and trajectory quality, while PO becomes more narrowly focused on distance and outcome-related signals. The RWPO-FT -TS variants further amplify this qualitative pattern through larger and more sustained information peaks. Combined with the observed degradation of PO performance at N = 500, these results are consistent with the hypothesis that RWPO improves large-scale generalization by preserving constraint-and objective-relevant information in the decoder representation.
E.5 Training Curves
The stability advantage of RWPO extends beyond the OP. On SPCTSP100, the RWPO all-pair variant rapidly improves the mean objective and subsequently follows a smooth, low-variance trajectory, whereas PO remains highly oscillatory throughout training (Fig.12a). On KP200, although PO and RWPO converge to similar final mean values, RWPO exhibits substantially lower variance, indicating more consistent optimization across the k parallel starts (Fig.12b). On CVRP100, RWPO maintains a lower objective cost than PO for nearly the entire training process, finishing with a small but consistent advantage in the best-objective metric (Fig.12c). These cross-domain findings corroborate the OP and PCTSP results (Fig.5 in Section 4.4): while purely ordinal PO remains competitive when evaluating only the single best rollout (Fig.5a in Section 4.4), its batch-wide mean performance is considerably noisier and less stable (Fig.5b in Section 4.4). In contrast, RWPO consistently improves the entire rollout distribution. This behavior directly reflects the RWPO all-pair mechanism, which extracts dense learning signals across all sampled trajectories while explicitly scaling updates by the true reward differences.
F Ablation Study of Hyperparameters
We conduct a reduced-budget sensitivity analysis on OP50 and OP100 to evaluate the effects of the reward-weighting strength ( ) and the length-normalization factor ( ). Because these instances are computationally lightweight, they permit efficient hyperparameter screening. Rather than exhaustively tuning hyperparameters, our objective is to identify robust configurations that transfer reliably across problem scales.
As shown in Tab. 7 and 8, introducing reward-gap weighting consistently improves the final validation objective compared to the purely ordinal baseline ( ). Moderate weighting strengths yield the most stable improvements across both OP50 and OP100; conversely, excessively high values provide no additional gains and risk destabilizing the preference updates. We therefore adopt as a conservative default for the main OP experiments.
Furthermore, we observe that the optimal length-normalization strength scales directly with instance size. While weaker normalization suffices for OP50, OP100 strictly benefits from a stronger adjustment. This occurs because larger
Table 7: Ablation results for different loss functions and hyperparameter settings on OP50. Lower (more negative) objective values indicate better performance.
| Loss type | β | λ | Best Reward @ 20 ↓ | Mean Reward @ 20 ↓ | Best Reward @ 50 ↓ | Mean Reward @ 50 ↓ | Best Reward ↓ (epoch) |
|---|---|---|---|---|---|---|---|
| RWPO base | 0.0 | 0.5 | -16.022 | -15.155 | -16.117 | -15.296 | -16.117 (50) |
| RWPO base | 0.2 | 0.5 | -15.990 | -15.071 | -16.080 | -15.214 | -16.080 (50) |
| RWPO all pair | 0.3 | 0.0 | -15.913 | -14.950 | -12.256 | -10.205 | -15.953 (15) |
| RWPO all pair | 0.0 | 0.5 | -16.122 | -15.336 | -16.172 | -15.434 | -16.176 (45) |
| RWPO all pair | 0.2 | 0.5 | -16.096 | -15.292 | -16.143 | -15.387 | -16.160 (45) |
| RWPO all pair | 0.3 | 0.5 | -16.031 | -15.194 | -16.107 | -15.332 | -16.111 (49) |
| RWPO all pair | 0.3 | 1.0 | -15.967 | -15.037 | -16.065 | -15.254 | -16.080 (50) |
| RWPO all pair | 0.3 | 2.0 | -15.942 | -14.996 | -16.070 | -15.223 | -16.070 (50) |
Table 8: Ablation results for different loss functions and hyperparameter settings. Lower (more negative) objective values indicate better performance.
| Loss type | β | λ | Best Reward @ 10 ↓ | Mean Reward @ 10 ↓ | Best Reward @ 20 ↓ | Mean Reward @ 20 ↓ | Best Reward ↓ (epoch) |
|---|---|---|---|---|---|---|---|
| RWPO base | 0.0 | 0.5 | -31.817 | -30.394 | -32.230 | -30.872 | -32.230 (19) |
| RWPO base | 0.3 | 0.5 | -31.710 | -30.190 | -32.221 | -30.827 | -32.221 (19) |
| RWPO all pair | 0.3 | 0.0 | -32.049 | -30.556 | -32.294 | -30.824 | -32.294 (19) |
| RWPO all pair | 0.0 | 0.5 | -32.404 | -30.989 | -32.644 | -31.300 | -32.644 (19) |
| RWPO all pair | 0.2 | 0.5 | -32.678 | -31.353 | -32.897 | -31.684 | -32.897 (19) |
| RWPO all pair | 0.3 | 0.5 | -32.569 | -31.210 | -32.815 | -31.585 | -32.815 (19) |
| RWPO all pair | 0.3 | 1.0 | -32.086 | -30.655 | -32.116 | -30.754 | -32.116 (18) |
| RWPO all pair | 0.3 | 2.0 | -32.363 | -30.925 | -32.538 | -31.093 | -32.538 (19) |
instances generate longer trajectories, inducing greater variance in cumulative log-likelihood magnitudes. To proactively handle this variance at larger scales, we fix β = 0.3 across all OP experiments. We apply this same validation-based procedure to determine stable configurations for the remaining SCOP benchmarks prior to final evaluation.

(a) : same-scale adaptation

(b) : large-scale adaptation
Figure 6: Length-normalized likelihood–quality frontier under the base RWPO policy (1k epochs). Each point represents a sampled trajectory, plotted by its length-normalized log-likelihood under the base policy (x-axis) versus its objective value (y-axis). Solid curves indicate binned mean objectives. On N = 100, scale-specific fine-tuning (FT) and tilted sampling (TS) shift the distribution toward substantially higher-quality solutions while retaining high likelihood under the base policy, whereas local search (LS) fine-tuning induces a significantly larger distribution shift. On N = 500, the frontier flattens and trajectories tightly cluster in the high-likelihood region; nevertheless, RWPO-based adaptation successfully elevates the upper quality envelope. These dynamics confirm that FT performs a conservative probability redistribution among already-plausible trajectories—avoiding drastic shifts into low-likelihood regions—while TS effectively concentrates the probability mass of the base policy.

(a) PO

(b) POMO

(c) RWPO

(d) RWPO-FT
Figure 7: Route-level decoder-query soft entropy visualization on a representative OP instance with . Candidate nodes are shown in light blue, selected routes are shown as connected paths, and visited nodes are coloured by decoder-query soft entropy . These plots provide qualitative evidence of how different methods modulate uncertainty along the constructed route.

(a) PO

(b) POMO

(c) RWPO

(d) RWPO-FT
Figure 8: Route-level decoder-query soft entropy visualization on a second representative OP instance with N = 500. The comparison illustrates how entropy evolves spatially along the selected route and whether uncertainty is concentrated near local route segments or transitions between regions.

(a) PO

(b) POMO

(c) RWPO

(d) RWPO-TS
Figure 9: Mutual information between encoder/decoder representations and task-relevant labels on OP instances with N = 100. The encoder labels include static instance-level information such as depot distance, node reward, spatial quadrant, and top-rollout membership. The decoder labels include dynamic route-construction signals such as accumulated reward, budget feasibility, current distance, decoding phase, feasible actions, remaining budget, and selected count. Brighter colours indicate that the corresponding representation contains more information about the label.
Information heatmap: encoder and decoder X labels

(a) PO

(b) POMO

(c) RWPO

(d) RWPO-FT
Figure 10: Mutual information between encoder/decoder representations and task-relevant labels on OP instances with N = 500. Encoder-side labels describe static instance-level information, including depot distance, node reward, spatial quadrant, and top-rollout membership. Decoder-side labels describe dynamic route-construction states, including accumulated reward, budget feasibility, current distance, decoding phase, feasible actions, remaining budget, and selected count. Brighter colours indicate that the corresponding representation contains more information about the label.

(a) PO, N = 100
(b) RWPO, N = 100
(c) RWPO-TS, N = 100

(d) PO, N = 500
(e) RWPO, N = 500
(f) RWPO-FT -TS, N = 500
Figure 11: Step-wise mutual information between decoder-query representations and trajectory-level features during OP decoding.

(a) Mean reward on SPCTSP100
(b) Mean reward on KP200
(c) Best reward on CVRP100
Figure 12: Training dynamics of PO and RWPO on SPCTSP100, KP200, and CVRP100. All three panels report the mean validation objective over all top-k starts. For SPCTSP and CVRP, lower objective values indicate better performance and for KP, vice versa. RWPO shows smoother and more stable optimization than PO, with the clearest final improvement on SPCTSP100 and CVRP100. On KP200, both methods reach similar final values, but RWPO exhibits substantially lower variance during training. These results complement the training curves in Fig. 5.