TL;DR
This paper introduces Scale-Conditioned Adaptation (SCA), a novel method to improve the ability of deep reinforcement learning (DRL) solvers to handle larger instances of combinatorial optimization problems. By incorporating a small "scale-conditioned network" (SCN) into existing DRL models, SCA allows them to adapt more effectively to problem sizes they weren't explicitly trained on, significantly boosting performance in zero-shot and few-shot scenarios.
What Problem Does This Paper Address?
Combinatorial Optimization (CO) problems, like the Traveling Salesman Problem (TSP) and Vehicle Routing Problems (CVRP), are notoriously difficult to solve optimally due to their NP-hard nature. While Deep Reinforcement Learning (DRL) has shown promise in developing general-purpose solvers that can outperform handcrafted heuristics, these DRL solvers often struggle with scalability. They are typically trained on smaller problem instances and fail to generalize well to much larger ones. This "distributional shift" in problem size presents a significant challenge, as retraining DRL models for every new scale is computationally prohibitive. The paper aims to bridge this gap by enabling pre-trained DRL solvers to adapt efficiently to larger problem scales without extensive retraining.
Methods
The core innovation is the Scale-Conditioned Adaptation (SCA) scheme. SCA integrates a Scale-Conditioned Network (SCN) into existing DRL models. The SCN is a simple neural network that takes the problem's scale (e.g., the number of cities, N) as input and outputs a small "increment vector." This vector is then added to the hidden representation of the pre-trained DRL model's decoder, specifically to the query vector. This modification effectively injects scale-specific information into the DRL model's decision-making process.
The SCA method is built upon the Effective Active Search (EAS) framework, a transfer learning technique for DRL-based CO solvers. SCA leverages EAS-lay, which freezes the pre-trained DRL model's parameters and only updates a small adaptation module. In SCA, the SCN is trained to provide this scale-specific adaptation, allowing the DRL model to adjust its policy for larger scales. The process involves:
- Pre-training the DRL model: Standard training on smaller instances (N=100).
- Training the SCN: The SCN is trained to output scale-conditioned increments, plugged into the pre-trained DRL model, and updated using the EAS algorithm with K=0 (zero-shot adaptation).
- Adaptation Phase: The trained SCN is used with the pre-trained DRL model and EAS-lay to adapt to much larger scales (N=500, 1000) with limited or no additional training of the DRL model itself.
Datasets
The paper uses standard benchmarks for combinatorial optimization problems:
- Traveling Salesman Problem (TSP): Instances are generated with varying numbers of cities (N).
- Capacitated Vehicle Routing Problems (CVRP): Instances are generated with varying numbers of customers (N) and capacity constraints.
The models are initially trained on smaller instances (N=100) and then evaluated on significantly larger instances (N=300, 500, 800, 1000). The paper does not introduce new datasets but uses established problem types and generation rules.
Key Insights and Ideas
- Scale is a critical latent variable: The paper highlights that the problem size (scale) is a crucial factor influencing the performance of DRL solvers, and explicitly conditioning the model on this scale can unlock significant performance gains.
- Small, targeted adaptation is powerful: Instead of retraining the entire DRL model, injecting scale information via a small SCN into a specific part of the decoder (the query vector) is sufficient to enable effective adaptation. This is computationally much cheaper.
- Extrapolation capability: The SCN, trained on smaller scales, demonstrates an ability to extrapolate and provide useful scale-conditioned information for much larger problem instances, even if not perfectly aligned. This suggests the SCN learns generalizable features of scale.
- Zero-shot and Few-shot benefits: SCA significantly improves performance in both zero-shot (no adaptation) and few-shot (limited adaptation iterations) scenarios, making DRL solvers more practical for real-world applications where problem sizes can vary.
Key Results
- Improved Zero-Shot Performance: SCA consistently improved the zero-shot performance of both POMO and Sym-NCO models on TSP and CVRP for large-scale tasks (N=500, 1000) compared to the baseline DRL models without SCA. For example, on CVRP (N=1000) with K=0, SCA reduced the average cost from 371.23 to 259.08 for POMO.
- Enhanced Few-Shot Performance: SCA also boosted few-shot adaptation (K=1, 5, 10) performance, particularly in the early stages of adaptation. For instance, on TSP (N=500) with K=1, SCA improved the average cost from 22.10 to 21.50 for POMO.
- Effective Scale Conditioning: Ablation studies showed that when the input scale value to the SCN was not aligned with the actual problem scale, performance degraded, indicating that the SCN effectively captures and utilizes scale information.
Limitations and Future Work
- Limitations on Large-Shot Adaptation: The paper acknowledges that SCA's effectiveness diminishes with a large number of adaptation iterations (K > 100). The SCN, trained for zero-shot adaptation, may struggle to generalize to very extensive adaptation processes.
- Future Directions: The authors propose extending the SCN to condition on both scale (N) and the number of adaptation iterations (K), i.e., developing an
fe(N, K)function. This would allow the SCN to adapt more dynamically to different adaptation scenarios, potentially overcoming the limitations observed in large-shot adaptation. They also suggest training thisfe(N, K)using EAS.
Summary updated