Neural Sequence Generation with Constraints via Beam Search with Cuts: A Case Study on VRP

Pouya Shati, Eldan Cohen, Sheila A. McIlraith
{"title":"Neural Sequence Generation with Constraints via Beam Search with Cuts: A Case Study on VRP","authors":"Pouya Shati, Eldan Cohen, Sheila A. McIlraith","doi":"10.1609/socs.v17i1.31549","DOIUrl":null,"url":null,"abstract":"In recent years, neural sequence models have been applied successfully to solve combinatorial optimization problems. Solutions, encoded as sequences, are typically generated from trained models via beam search, a search algorithm that generates sequences token-by-token while keeping a fixed number of promising partial solutions at each step. In this paper, we explore the problem of augmenting beam search generation with the enforcement of requirements---hard constraints that any generated solution must adhere to. We propose a hybrid approach, by encoding the requirements in the form of a constraint satisfaction problem (CSP) and iteratively solving the CSP to cut any partial solution within the beam search that is incapable of satisfying the requirements. We study this problem in the context of vehicle routing problems (VRP) further augmented with capacity-related or temporal requirements. We experimentally show that cuts often allow us to satisfy the requirements with negligible impact on solution quality. Without the use of cuts, beam search is shown to be exponentially less likely to satisfy the requirements as the length of the solution increases and/or the requirements are strengthened.","PeriodicalId":425645,"journal":{"name":"Symposium on Combinatorial Search","volume":"5 11","pages":"118-126"},"PeriodicalIF":0.0000,"publicationDate":"2024-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Symposium on Combinatorial Search","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1609/socs.v17i1.31549","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

In recent years, neural sequence models have been applied successfully to solve combinatorial optimization problems. Solutions, encoded as sequences, are typically generated from trained models via beam search, a search algorithm that generates sequences token-by-token while keeping a fixed number of promising partial solutions at each step. In this paper, we explore the problem of augmenting beam search generation with the enforcement of requirements---hard constraints that any generated solution must adhere to. We propose a hybrid approach, by encoding the requirements in the form of a constraint satisfaction problem (CSP) and iteratively solving the CSP to cut any partial solution within the beam search that is incapable of satisfying the requirements. We study this problem in the context of vehicle routing problems (VRP) further augmented with capacity-related or temporal requirements. We experimentally show that cuts often allow us to satisfy the requirements with negligible impact on solution quality. Without the use of cuts, beam search is shown to be exponentially less likely to satisfy the requirements as the length of the solution increases and/or the requirements are strengthened.
通过带切口的光束搜索生成带约束条件的神经序列:VRP 案例研究
近年来,神经序列模型已成功应用于解决组合优化问题。编码为序列的解决方案通常是通过束搜索从训练有素的模型中生成的,这种搜索算法逐个令牌生成序列,同时在每一步中保留固定数量的有希望的部分解决方案。在本文中,我们探讨了如何通过执行要求(任何生成的解决方案都必须遵守的硬约束)来增强波束搜索生成的问题。我们提出了一种混合方法,即以约束满足问题(CSP)的形式对要求进行编码,并对 CSP 进行迭代求解,以在波束搜索中删除任何无法满足要求的部分解决方案。我们在车辆路由问题(VRP)的背景下研究了这一问题,并进一步增加了与容量相关的要求或时间要求。实验表明,切分通常能满足要求,对解决方案质量的影响微乎其微。如果不使用切分,随着解决方案长度的增加和/或要求的加强,束搜索满足要求的可能性会呈指数级下降。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信