用动态掩码和回溯机制,高效求解带约束的路径规划问题。
LMask: Learn to Solve Constrained Routing Problems with Lazy Masking
- 通过懒惰掩码与回溯策略生成可行解
- 在TSPTW和TSPDL上达到顶尖可行率与解质量
- 适合需要高可行性路径方案的物流与调度场景
路径规划是组合优化中的经典问题,广泛应用于物流、交通与供应链管理。当涉及复杂约束时,求解难度显著增加。本文提出LMask框架,利用动态掩码生成高质量可行解。其核心为懒惰掩码解码方法,结合回溯机制逐步修正可行性掩码;同时引入精炼强度嵌入,将搜索轨迹编码进模型,缓解回溯带来的表示歧义。为降低采样开销,解码阶段设置回溯预算,训练时在损失函数中对违反约束进行惩罚,以抵消预算带来的不可行性。理论证明了方法的有效性与概率最优性。在带时间窗的旅行商问题(TSPTW)和带配额限制的旅行商问题(TSPDL)上的大量实验表明,LMask在可行率与解质量上均优于现有神经方法。
原文摘要 · Abstract (English)
Routing problems are canonical combinatorial optimization tasks with wide-ranging applications in logistics, transportation, and supply chain management. However, solving these problems becomes significantly more challenging when complex constraints are involved. In this paper, we propose LMask, a novel learning framework that utilizes dynamic masking to generate high-quality feasible solutions for constrained routing problems. LMask introduces the LazyMask decoding method, which lazily refines feasibility masks with the backtracking mechanism. In addition, it employs the refinement intensity embedding to encode the search trace into the model, mitigating representation ambiguities induced by backtracking. To further reduce sampling cost, LMask sets a backtracking budget during decoding, while constraint violations are penalized in the loss function during training to counteract infeasibility caused by this budget. We provide theoretical guarantees for the validity and probabilistic optimality of our approach. Extensive experiments on the traveling salesman problem with time windows (TSPTW) and TSP with draft limits (TSPDL) demonstrate that LMask achieves state-of-the-art feasibility rates and solution quality, outperforming existing neural methods.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。