Learning Heuristics for Template-based CEGIS of Loop Invariants with Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
Loop-invariant synthesis is the basis of program verification. Due to the undecidability of the problem in general, a tool for invariant synthesis necessarily uses heuristics. Despite the common belief that the design of heuristics is vital for the performance of a synthesizer, heuristics are often engineered by their developers based on experience and intuition, sometimes in an ad-hoc manner. In this work, we propose an approach to systematically learning heuristics for template-based CounterExample-Guided Inductive Synthesis (CEGIS) with reinforcement learning. As a concrete example, we implement the approach on top of PCSat, which is an invariant synthesizer based on template-based CEGIS. Experiments show that PCSat guided by the heuristics learned by our framework not only outperforms existing state-of-the-art CEGIS-based solvers such as HoICE and the neural solver Code2Inv, but also has slight advantages over non-CEGIS-based solvers such as Eldarica and Spacer in linear Constrained Horn Clause (CHC) solving.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 24 of its 52 references that are in the map. First posted on arXiv 16 Jul 2021.
Builds on
24 of 52 references.
References · 24
- 2018code2vec: Learning Distributed Representations of Codecited by 249
- 2017Learning to Represent Programs with Graphscited by 219
- 2018Learning a SAT Solver from Single-Bit Supervisioncited by 198
- 2018Leveraging Grammar and Reinforcement Learning for Neural Program Synthesiscited by 83
- 2016DeepMath - Deep Sequence Models for Premise Selectioncited by 80
- 2018Reinforcement Learning of Theorem Provingcited by 69
- 2019Guiding High-Performance SAT Solvers with Unsat-Core Predictionscited by 61
- 2019Graph Representations for Higher-Order Logic and Theorem Provingcited by 55
- 2017Deep Network Guided Proof Searchcited by 47
- 2017Premise Selection for Theorem Proving by Deep Graph Embeddingcited by 44
- 2018Neural-Guided Deductive Search for Real-Time Program Synthesis from Examplescited by 39
- 2021TacticZero: Learning to Prove Theorems from Scratch with Deep Reinforcement Learningcited by 37
12 more
- 2017HolStep: A Machine Learning Dataset for Higher-order Logic Theorem Provingcited by 26
- 2018Can Neural Networks Understand Logical Entailment?cited by 24
- 2019CLN2INV: Learning Loop Invariants with Continuous Logic Networkscited by 20
- 2014SMT-based Model Checking for Recursive Programscited by 16
- 2018Learning Heuristics for Quantified Boolean Formulas through Deep Reinforcement Learningcited by 15
- 2017Horn-ICE Learning for Synthesizing Invariants and Contractscited by 11
- 2018Automated Theorem Proving in Intuitionistic Propositional Logic by Deep Reinforcement Learningcited by 7
- 2019Overfitting in Synthesis: Theory and Practice (Extended Version)cited by 6
- 2015Learning Invariants using Decision Treescited by 3
- 2020Program Verification via Predicate Constraint Satisfiability Modulo Theoriescited by 2
- 2021Decision Tree Learning in CEGIS-Based Termination Analysiscited by 2
- 2021Constraint-based Relational Verificationcited by 2
Built on by
Not cited yet.