cs.AIMar 2, 2026

Chain-of-Context Learning: Dynamic Constraint Understanding for Multi-Task VRPs

Authors: Shuangchun Gui, Suyu Liu, Xuehe Wang, Zhiguang Cao

Organizations: School of Computing and Information Systems, Singapore Management University, Singapore · Guangdong Laboratory of AI and Digital Economy, Shenzhen, Guangdong, China · School of Artificial Intelligence, Sun Yat-sen University, Zhuhai, Guangdong, China

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. Specifically, CCL constructs step-wise contextual information via a Relevance-Guided Context Reformulation (RGCR) module, which adaptively prioritizes salient constraints. 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. By modeling evolving preferences of the RL agent, CCL captures step-by-step dependencies in sequential decision-making. 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.

Figures & tables

Appendix figures & tables13 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. LaT: LLM-as-Trainer for Multi-Task Vehicle Routing Solvers

    Jul 20, 2026Yang Wang, Ya-Hui Jia, Wei-Neng Chen +3Large Language Model-Guided OptimizationMulti-Task Learning

  2. Vision-Assisted Foundation Model for Solving Multi-Task Vehicle Routing Problems

    Jun 9, 2026Shuangchun Gui, Zhiguang Cao, Wen Song +1Multi-Task LearningVehicle Routing

  3. Learning Constraints-Based Adaptive Hypergraph Neural Networks for Solving Vehicle Routing Problems

    Mar 13, 2025Zhenwei Wang, Tiehua Zhang, Jing Liu +3Constrained RLVehicle Routing