Learning to Solve Constraint Satisfaction Problems with Recurrent Transformer
Zhun Yang, Adam Ishay, Joohyung Lee
Abstract
Constraint satisfaction problems (CSPs) are about finding values of variables that satisfy the given constraints. We show that Transformer extended with recurrence is a viable approach to learning to solve CSPs in an end-to-end manner, having clear advantages over state-of-the-art methods such as Graph Neural Networks, SATNet, and some neuro-symbolic models. With the ability of Transformer to handle visual input, the proposed Recurrent Transformer can straightforwardly be applied to visual constraint reasoning problems while successfully addressing the symbol grounding problem. We also show how to leverage deductive knowledge of discrete constraints in the Transformer's inductive learning to achieve sample-efficient learning and semi-supervised learning for CSPs.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 7aa19fba-79ac-41ba-9c3c-465908cc80adCited by top-tier papers16
- Causal language modeling can elicit search and reasoning capabilities on logic puzzlesKulin Shah, Nishanth Dikkala, Xin Wang, Rina PanigrahyNeurIPS 2024 · 44 citations
- Learning Iterative Reasoning through Energy DiffusionYilun Du, Jiayuan Mao, Joshua B. TenenbaumICML 2024 · 28 citations
- Neuro-symbolic Learning Yielding Logical ConstraintsZenan Li, Yunpeng Huang, Zhaoyu Li, Yuan Yao et al.NeurIPS 2023 · 19 citations
- Learning Reliable Logical Rules with SATNetZhaoyu Li, Jinpei Guo, Yuhe Jiang, Xujie SiNeurIPS 2023 · 5 citations
- Teaching Transformers to Solve Combinatorial Problems through Efficient Trial & ErrorPanagiotis Giannoulis, Yorgos Pantis, Christos TzamosNeurIPS 2025 · 3 citations
Builds on12
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive SummarizationJingqing Zhang, Yao Zhao, Mohammad Saleh, Peter J. LiuICML 2020 · 2,453 citations
- Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng et al.NeurIPS 2021 · 1,632 citations
- Self-Supervised Graph Transformer on Large-Scale Molecular DataYu Rong, Yatao Bian, Tingyang Xu, Weiyang Xie et al.NeurIPS 2020 · 1,113 citations
- Graph Transformer for Graph-to-Sequence LearningDeng Cai, Wai LamAAAI 2020 · 247 citations
Related papers
- Self-Supervised Transformers as Iterative Solution Improvers for Constraint SatisfactionYudong Xu, Wenhao Li, Scott Sanner, Elias Boutros KhalilICML 2025
- Techniques for Symbol Grounding with SATNetSever Topan, David Rolnick, Xujie SiNeurIPS 2021 · 32 citations
- Learning to Parse and Reconstruct: Bidirectional Modeling of Question-to-Program MappingZeying Duan, Youtian Du, Yuanlin Chang, Bowen Lin et al.AAAI 2026
- TransVG: End-to-End Visual Grounding with TransformersJiajun Deng, Zhengyuan Yang, Tianlang Chen, Wengang Zhou et al.ICCV 2021 · 468 citations
- Assessing SATNet's Ability to Solve the Symbol Grounding ProblemOscar Chang, Lampros Flokas, Hod Lipson, Michael SprangerNeurIPS 2020 · 25 citations
