Chain-of-Context Learning: Dynamic Constraint Understanding for Multi-Task VRPs
Gui, Shuangchun, Liu, Suyu, Wang, Xuehe, Cao, Zhiguang
–arXiv.org Artificial Intelligence
ABSTRACT Multi-task Vehicle Routing Problems (VRPs) aim to minimize routing costs while satisfying diverse constraints. Existing solvers typically adopt a unified reinforcement learning (RL) framework to learn generalizable patterns across tasks. However, they often overlook the constraint and node dynamics during the decision process, making the model fail to accurately react to the current context. To address this limitation, we propose Chain-of-Context Learning (CCL), a novel framework that progressively captures the evolving context to guide fine-grained node adaptation. This context then guides node updates through a Trajectory-Shared Node Re-embedding (TSNR) module, which aggregates shared node features from all trajectories' contexts and uses them to update inputs for the next step. We evaluate CCL on 48 diverse VRP variants, including 16 in-distribution and 32 out-of-distribution (with unseen constraints) tasks. Experimental results show that CCL performs favorably against the state-of-the-art baselines, achieving the best performance on all in-distribution tasks and the majority of out-of-distribution tasks. 1 INTRODUCTION The vehicle routing problem (VRP) seeks to determine optimal routes for a fleet of vehicles to serve a set of customers while satisfying operational constraints such as vehicle capacity. Efficiently solving VRPs can significantly reduce transportation costs and improve service quality, making it a critical task in logistics and supply chain management (Toth and Vigo, 2014; Konstantakopoulos et al., 2022; Garaix et al., 2010; Dondo et al., 2011). Traditional approaches (Perron and Furnon; Lin and Kernighan, 1973; Vidal et al., 2020) often rely on heuristic-based solvers, such as LKH (Lin and Kernighan, 1973) and HGS (Vidal et al., 2020). While effective in certain settings, these methods are computationally intensive and typically require extensive hand-crafted rules to adapt to different problem variants. These neural solvers are trained offline using historical or synthetically generated instances, enabling fast inference at test time for a given VRP variant. However, real-world VRPs often involve more complex and diverse constraints beyond vehicle capacity, leading to multi-task VRPs, where each task involves a different combination of constraints. This makes the neural VRP solvers for a specific single task less effective due to the massive yet necessary re-training or fine-tuning.
arXiv.org Artificial Intelligence
Mar-3-2026
- Country:
- Asia > China > Guangdong Province (0.28)
- Genre:
- Research Report > New Finding (0.48)
- Industry:
- Technology: