Suggesting Variable Order for Cylindrical Algebraic Decomposition via Reinforcement Learning
Fuqi Jia, Yuhang Dong, Minghao Liu, Pei Huang, Feifei Ma, Jian Zhang
Abstract
Cylindrical Algebraic Decomposition (CAD) is one of the pillar algorithms of symbolic computation, and its worst-case complexity is double exponential to the number of variables. Researchers found that variable order dramatically affects efficiency and proposed various heuristics. The existing learning-based methods are all supervised learning methods that cannot cope with diverse polynomial sets. This paper proposes two Reinforcement Learning (RL) approaches combined with Graph Neural Networks (GNN) for Suggesting Variable Order (SVO). One is GRL-SVO(UP), a branching heuristic integrated with CAD. The other is GRL-SVO(NUP), a fast heuristic providing a total order directly. We generate a random dataset and collect a real-world dataset from SMT-LIB. The experiments show that our approaches outperform state-of-the-art learning-based heuristics and are competitive with the best expert-based heuristics. Interestingly, our models show a strong generalization ability, working well on various datasets even if they are only trained on a 3-var random dataset. The source code and data are available at https://github.com/dongyuhang22/GRL-SVO.
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 e16f2379-5aed-4c8e-8ac9-7ebcf8721a11Cited by top-tier papers2
- A Complete Algorithm for Optimization Modulo Nonlinear Real ArithmeticFuqi Jia, Yuhang Dong, Rui Han, Pei Huang et al.AAAI 2025 · 4 citations
- Improving NLSAT for Nonlinear Real ArithmeticZhonghan WangASE 2025
Builds on5
- How Attentive are Graph Attention Networks?Shaked Brody, Uri Alon, Eran YahavICLR 2022 · 1,717 citations
- Design Space for Graph Neural NetworksJiaxuan You, Zhitao Ying, Jure LeskovecNeurIPS 2020 · 409 citations
- How to Find Your Friendly Neighborhood: Graph Attention Design with Self-SupervisionDongkwan Kim, Alice OhICLR 2021 · 309 citations
- Can Q-Learning with Graph Networks Learn a Generalizable Branching Heuristic for a SAT Solver?Vitaly Kurin, Saad Godil, Shimon Whiteson, Bryan CatanzaroNeurIPS 2020 · 77 citations
- Improving Bit-Blasting for Nonlinear Integer ConstraintsFuqi Jia, Rui Han, Pei Huang, Minghao Liu et al.ISSTA 2023 · 5 citations
Related papers
- Learning from Algorithm Feedback: One-Shot SAT Solver Guidance with GNNsJan Tönshoff, Martin GroheICLR 2026 · 4 citations
- Optimizing Tensor Network Contraction Using Reinforcement LearningEli A. Meirom, Haggai Maron, Shie Mannor, Gal ChechikICML 2022 · 21 citations
- A Deep Reinforcement Learning Framework for Column GenerationCheng Chi, Amine Mohamed Aboussalah, Elias B. Khalil, Juyoung Wang et al.NeurIPS 2022 · 49 citations
- Reinforcement Learning Based Query Vertex Ordering Model for Subgraph MatchingHanchen Wang, Ying Zhang, Lu Qin, Wei Wang et al.ICDE 2022 · 19 citations
- GAL-VNE: Solving the VNE Problem with Global Reinforcement Learning and Local One-Shot Neural PredictionHaoyu Geng, Runzhong Wang, Fei Wu, Junchi YanKDD 2023 · 5 citations
