English

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

Artificial Intelligence 2026-03-03 v1

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.

Keywords

Cite

@article{arxiv.2603.01667,
  title  = {Chain-of-Context Learning: Dynamic Constraint Understanding for Multi-Task VRPs},
  author = {Shuangchun Gui and Suyu Liu and Xuehe Wang and Zhiguang Cao},
  journal= {arXiv preprint arXiv:2603.01667},
  year   = {2026}
}

Comments

This paper is accepted by ICLR 2026

R2 v1 2026-07-01T10:58:52.481Z