Learning invariants using decision trees and implication counterexamples
The DOI matches its Crossref record; 55 of the 55 references it cites were found in a registry or an index.
Abstract
Inductive invariants can be robustly synthesized using a learning model where the teacher is a program verifier who instructs the learner through concrete program configurations, classified as positive, negative, and implications. We propose the first learning algorithms in this model with implication counter-examples that are based on machine learning techniques. In particular, we extend classical decision-tree learning algorithms in machine learning to handle implication samples, building new scalable ways to construct small decision trees using statistical measures. We also develop a decision-tree learning algorithm in this model that is guaranteed to converge to the right concept (invariant) if one exists. We implement the learners and an appropriate teacher, and show that the resulting invariant synthesis is efficient and convergent for a large suite of programs.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
A Mathematical Theory of Communication
Shannon, C. E. (1948) · Bell System Technical Journal · doi:10.1002/j.1538-7305.1948.tb01338.x · Cited by 88,486
Cortes, C., & Vapnik, V. (1995) · Machine Learning · doi:10.1007/bf00994018 · Cited by 59,421
(1992) · Cited by 23,431
Quinlan, J. R. (1986) · Machine Learning · doi:10.1007/bf00116251 · Cited by 21,439 · cited 5×
“Since invariants in our current work are arbitrary Boolean functions, our learner is build on decision tree algorithms such as ID3 [45], C4.5 [44] and C5.”
BackgroundInfluentialThe perceptron: A probabilistic model for information storage and organization in the brain.
Rosenblatt, F. (1958) · Psychological Review · doi:10.1037/h0042519 · Cited by 12,280
Cousot, P., & Cousot, R. (1977) · Proceedings of the 4th ACM SIGACT-SIGPLAN symposium on Principles of programming languages - POPL '77 · doi:10.1145/512950.512973 · Cited by 6,279 · cited 1×
“Prominent examples for white-box techniques include abstract interpretation [20], interpolation [31, 37], and IC3 [14].”
BackgroundCombining labeled and unlabeled data with co-training
Blum, A., & Mitchell, T. (1998) · Proceedings of the eleventh annual conference on Computational learning theory · doi:10.1145/279943.279962 · Cited by 5,495
Learning regular sets from queries and counterexamples
Angluin, D. (1987) · Information and Computation · doi:10.1016/0890-5401(87)90052-6 · Cited by 2,114
Angluin, D. (1988) · Machine Learning · doi:10.1007/bf00116828 · Cited by 1,905
An Introduction to Computational Learning Theory
Kearns, M. J., & Vazirani, U. (1994) · doi:10.7551/mitpress/3897.001.0001 · Cited by 1,697 · cited 3×
“Several learning models like PAC [33] and exact learning by Angluin [7] are well known in machine learning literature.”
Automatic discovery of linear restraints among variables of a program
Cousot, P., & Halbwachs, N. (1978) · Proceedings of the 5th ACM SIGACT-SIGPLAN symposium on Principles of programming languages - POPL '78 · doi:10.1145/512760.512770 · Cited by 1,614 · cited 1×
“Abstract interpretation is predominately used for synthesizing invariants over convex domains [35, 17, 6, 27], but there also exist applications to non-convex domains [19, 42] and even non-lattice domains [21].”
BackgroundHenzinger, T. A., Jhala, R., Majumdar, R., & Sutre, G. (2002) · Proceedings of the 29th ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/503272.503279 · Cited by 1,155 · cited 1×
“Abstract interpretation is predominately used for synthesizing invariants over convex domains [35, 17, 6, 27], but there also exist applications to non-convex domains [19, 42] and even non-lattice domains [21].”
BackgroundInterpolation and SAT-Based Model Checking
McMillan, K. L. (2003) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-45069-6_1 · Cited by 908 · cited 2×
“Prominent examples for white-box techniques include abstract interpretation [20], interpolation [31, 37], and IC3 [14].”
BackgroundBoogie: A Modular Reusable Verifier for Object-Oriented Programs
Barnett, M., Chang, B.-Y. E., DeLine, R., Jacobs, B., & Leino, K. R. M. (2006) · Lecture Notes in Computer Science · doi:10.1007/11804192_17 · Cited by 799 · cited 5×
“Teacher: We implemented a teacher in Boogie [10], which generates verification conditions for a given input program, and comes with interfaces for invariant synthesis tools like Houdini [23].”
MethodInfluentialCPAchecker: A Tool for Configurable Software Verification
Beyer, D., & Keremoğlu, M. E. (2011) · Lecture notes in computer science · doi:10.1007/978-3-642-22110-1_16 · Cited by 716 · cited 10×
“Note that CPAchecker has a disadvantage as it does not restrict itself to finding Boolean combinations of octagonal constraints, while all the black-box learners do.”
MethodInfluentialAutomatic predicate abstraction of C programs
Ball, T., Majumdar, R., Millstein, T., & Rajamani, S. K. (2012) · ACM SIGPLAN Notices · doi:10.1145/2442776.2442783 · Cited by 694
Alur, R., Bodik, R., Juniwal, G., Martin, M. M. K., Raghothaman, M., Seshia, S. A., Singh, R., Solar-Lezama, A., Torlak, E., & Udupa, A. (2013) · 2013 Formal Methods in Computer-Aided Design · doi:10.1109/fmcad.2013.6679385 · Cited by 656
VCC: A Practical System for Verifying Concurrent C
Cohen, E., Dahlweid, M., Hillebrand, M. A., Leinenbach, D., Moskal, M., Santen, T., Schulte, W., & Tobies, S. (2009) · Lecture notes in computer science · doi:10.1007/978-3-642-03359-9_2 · Cited by 565 · cited 2×
“The latter two had been deductively verified in VCC [17] with complex invariants, and we removed some of the scalar invariants from some methods, converted them to Boogie code and asked the invariant synthesizers to infer them.”
Method(2007) · The MIT Press eBooks · doi:10.7551/mitpress/7443.001.0001 · Cited by 525 · cited 1×
“Apart from these classification algorithms, algorithms for learning more complicated structured objects using structured prediction [9] have also become popular recently.”
Learning quickly when irrelevant attributes abound: A new linear-threshold algorithm
Littlestone, N. (1988) · Machine Learning · doi:10.1007/bf00116827 · Cited by 497 · cited 1×
“Algorithms for learning linear classifiers include winnow [31], perceptron [41], and support vector machines [15].”
SAT-based model checking without unrolling
Bradley, A. R. (n.d.) · Cited by 494
Houdini, an Annotation Assistant for ESC/Java
Flanagan, C., & Leino, K. R. M. (2001) · Lecture Notes in Computer Science · doi:10.1007/3-540-45251-6_29 · Cited by 405
Learning Assumptions for Compositional Verification
Cobleigh, J. M., Giannakopoulou, D., & PĂsĂreanu, C. S. (2003) · Lecture Notes in Computer Science · doi:10.1007/3-540-36577-x_24 · Cited by 399 · cited 1×
“[16], followed by applications of Angluin’s L∗ [7] to verification problems such as finding rely-guarantee contracts [5], stateful interface specifications for programs [4], verifying CTL properties [55], and Regular Model Checking [40].”
MethodProgram synthesis by sketching
Bodík, R., & Solar-Lezama, A. (2008) · UC Berkeley · Cited by 389
Linear Invariant Generation Using Non-linear Constraint Solving
Colón, M. A., Sankaranarayanan, S., & Sipma, H. B. (2003) · Lecture Notes in Computer Science · doi:10.1007/978-3-540-45069-6_39 · Cited by 351
Synthesis of interface specifications for Java classes
Alur, R., Černý, P., Madhusudan, P., & Nam, W. (2005) · Proceedings of the 32nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/1040305.1040314 · Cited by 316 · cited 1×
“[16], followed by applications of Angluin’s L∗ [7] to verification problems such as finding rely-guarantee contracts [5], stateful interface specifications for programs [4], verifying CTL properties [55], and Regular Model Checking [40].”
MethodSelf-citationEfficient E-Matching for SMT Solvers
de Moura, L., & Bjørner, N. (2007) · Lecture notes in computer science · doi:10.1007/978-3-540-73595-3_13 · Cited by 279
SYNERGY: a new algorithm for property checking
Gulavani, B. S., Henzinger, T. A., Kannan, Y., Nori, A. V., & Rajamani, S. K. (2006) · Proceedings of the 14th ACM SIGSOFT international symposium on Foundations of software engineering · doi:10.1145/1181775.1181790 · Cited by 249 · cited 1×
“Benchmarks: We report results for a suite of programs(2), which includes all programs from the SV-COMP (2014 and 2015) benchmark “loop” suite [1] (which involves small programs but with intricate loop invariants) and programs from the literature [3, 25, 27, 28, 30].”
MethodMine, A. (2002) · Proceedings Eighth Working Conference on Reverse Engineering · doi:10.1109/wcre.2001.957836 · Cited by 235 · cited 1×
“Abstract interpretation is predominately used for synthesizing invariants over convex domains [35, 17, 6, 27], but there also exist applications to non-convex domains [19, 42] and even non-lattice domains [21].”
BackgroundGPUVerify: a verifier for GPU kernels
Betts, A., Chong, N., Donaldson, A. F., Qadeer, S., & Thomson, P. (2012) · Conference on Object-Oriented Programming Systems, Languages, and Applications · doi:10.1145/2384616.2384625 · Cited by 207
Rajeev, A., Rastislav, B., Eric, D., Dana, F., Pranav, G., Garvit, J., Hadas, K.-G., Madhusudan, P., Martin Milo, M. K., Mukund, R., et al. (2015) · NATO Science for Peace and Security Series - D: Information and Communication Security · doi:10.3233/978-1-61499-495-4-1 · Cited by 200 · cited 1×
“In program or expression synthesis, a popular approach to synthesis is using counter-example guided inductive synthesis (CEGIS), which is also a black-box learning paradigm [6, 53] like ICE, and is gaining traction aided by explicit enumeration, symbolic constraintsolving and stochastic search algorithms.”
MethodProgram analysis as constraint solving
Gulwani, S., Srivastava, S., & Venkatesan, R. (2008) · Proceedings of the 29th ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/1375581.1375616 · Cited by 199 · cited 3×
“Benchmarks: We report results for a suite of programs(2), which includes all programs from the SV-COMP (2014 and 2015) benchmark “loop” suite [1] (which involves small programs but with intricate loop invariants) and programs from the literature [3, 25, 27, 28, 30].”
MethodICE: A Robust Framework for Learning Invariants
Garg, P., Löding, C., Madhusudan, P., & Neider, D. (2014) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-08867-9_5 · Cited by 186 · cited 16×
“[25] note that if the learner gives a hypothesis that covers all states known to be positive by the teacher and excludes all states known to be negative by the teacher, but yet is not inductive, then the teacher is stuck and cannot give any positive or negative counter-example to refute the hypothesis.”
BackgroundMethodInfluentialSelf-citationA Practical and Complete Approach to Predicate Refinement
Jhala, R., & McMillan, K. L. (2006) · Lecture Notes in Computer Science · doi:10.1007/11691372_33 · Cited by 185
A Data Driven Approach for Algebraic Loop Invariants
Sharma, R., Gupta, S., Hariharan, B., Aiken, A., Liang, P., & Nori, A. V. (2013) · Lecture notes in computer science · doi:10.1007/978-3-642-37036-6_31 · Cited by 170
Sharma, R., Nori, A. V., & Aiken, A. (2012) · Lecture notes in computer science · doi:10.1007/978-3-642-31424-7_11 · Cited by 108 · cited 1×
“, and some algorithms have already been used in invariant generation [50].”
MethodVerification as Learning Geometric Concepts
Sharma, R., Gupta, S., Hariharan, B., Aiken, A., & Nori, A. V. (2013) · Lecture notes in computer science · doi:10.1007/978-3-642-38856-9_21 · Cited by 104
Predicting Structured Data (Neural Information Processing)
Bakir, G. H., Hofmann, T., Schölkopf, B., Smola, A. J., Taskar, B., & Vishwanathan, S. V. N. (2007) · The MIT Press eBooks · Cited by 93
Natural proofs for structure, data, and separation
Qiu, X., Garg, P., Stefanescu, A. R., & Madhusudan, P. (2013) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/2491956.2462169 · Cited by 84 · cited 1×
“A “guess-and-check” approach that black-box invariant synthesis entails (including methods like Houdini [23]), on the other hand, can learn such simple invariants as long as the teacher can generate counterexamples for the learner (by even using sound but incomplete ways to prove validity of VCs, such as E-matching [2…”
MethodSelf-citationType-based data structure verification
Kawaguchi, M., Rondon, P. M., & Jhala, R. (2009) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/1542476.1542510 · Cited by 82 · cited 1×
“Work on liquid types [32] uses a similar algorithm for inferring refinement types for program expressions.”
MethodFrom Invariant Checking to Invariant Inference Using Randomized Search
Sharma, R., & Aiken, A. (2014) · Lecture notes in computer science · doi:10.1007/978-3-319-08867-9_6 · Cited by 81
Albarghouthi, A., & McMillan, K. L. (2013) · Lecture notes in computer science · doi:10.1007/978-3-642-39799-8_22 · Cited by 77 · cited 1×
“Benchmarks: We report results for a suite of programs(2), which includes all programs from the SV-COMP (2014 and 2015) benchmark “loop” suite [1] (which involves small programs but with intricate loop invariants) and programs from the literature [3, 25, 27, 28, 30].”
MethodUsing dynamic analysis to discover polynomial and array invariants
Nguyen, T. H., Kapur, D., Weimer, W. R., et al. (2012) · doi:10.5555/2337223.2337304 · Cited by 68
Natural proofs for data structure manipulation in C using separation logic
Pek, E., Qiu, X., & Madhusudan, P. (2014) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/2594291.2594325 · Cited by 61 · cited 1×
“A “guess-and-check” approach that black-box invariant synthesis entails (including methods like Houdini [23]), on the other hand, can learn such simple invariants as long as the teacher can generate counterexamples for the learner (by even using sound but incomplete ways to prove validity of VCs, such as E-matching [2…”
MethodSelf-citationGPUVerify: a verifier for GPU kernels
Betts, A., Chong, N., Donaldson, A. F., Qadeer, S., & Thomson, P. (2012) · ACM SIGPLAN Notices · doi:10.1145/2398857.2384625 · Cited by 54
Learning Invariants using Decision TreesPreprint
Krishna, S., Puhrsch, C., & Wies, T. (2015) · arXiv (Cornell University) · doi:10.48550/arxiv.1501.04725 · Cited by 49 · cited 1×
“Recently, learning has gained renewed interest in the context of program verification, particularly for synthesizing loop invariants [15, 24, 25, 34, 35, 49–52].”
BackgroundThe powerset operator on abstract interpretations
Filé, G., & Ranzato, F. (1999) · Theoretical Computer Science · doi:10.1016/s0304-3975(98)00007-3 · Cited by 40
Learning Universally Quantified Invariants of Linear Data Structures
Garg, P., Löding, C., Madhusudan, P., & Neider, D. (2013) · Lecture notes in computer science · doi:10.1007/978-3-642-39799-8_57 · Cited by 33
Self-citationAbstract Interpretation over Non-lattice Abstract Domains
Gange, G., Navas, J. A., Schachte, P., Søndergaard, H., & Stuckey, P. J. (2013) · Lecture notes in computer science · doi:10.1007/978-3-642-38856-9_3 · Cited by 33
Incremental Invariant Generation Using Logic-Based Automatic Abstract Transformers
Garoche, P.-L., Kahsai, T., & Tinelli, C. (2013) · Lecture notes in computer science · doi:10.1007/978-3-642-38088-4_10 · Cited by 29
Bias-variance tradeoffs in program analysis
Sharma, R., Nori, A. V., & Aiken, A. (2014) · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · doi:10.1145/2535838.2535853 · Cited by 29
Learning Boolean Functions Incrementally
Chen, Y., & Wang, B.-Y. (2012) · Lecture notes in computer science · doi:10.1007/978-3-642-31424-7_10 · Cited by 17 · cited 1×
“Recently, learning has gained renewed interest in the context of program verification, particularly for synthesizing loop invariants [15, 24, 25, 34, 35, 49–52].”
BackgroundLearning Bayesian network parameters under equivalence constraints
Yao, T., Choi, A., & Darwiche, A. Y. (2015) · Artificial Intelligence · doi:10.1016/j.artint.2015.05.007 · Cited by 17 · cited 1×
“In program or expression synthesis, a popular approach to synthesis is using counter-example guided inductive synthesis (CEGIS), which is also a black-box learning paradigm [6, 53] like ICE, and is gaining traction aided by explicit enumeration, symbolic constraint-solving and stochastic search…”
MethodApplications of automata learning in verification and synthesis
Neider, D., Thomas, W., Löding, C., & Leucker, M. (2014) · RWTH Publications (RWTH Aachen) · Cited by 14
Self-citationLearning to verify branching time properties
Vardhan, A., & Viswanathan, M. (2006) · Formal Methods in System Design · doi:10.1007/s10703-006-0026-x · Cited by 6
Cited by
Ranking LLM-Generated Loop Invariants for Program Verification
Chakraborty, S., Lahiri, S., Fakhoury, S., Lal, A., Musuvathi, M., Rastogi, A., Senthilnathan, A., Sharma, R., & Swamy, N. (2023) · Findings of the Association for Computational Linguistics: EMNLP 2023 · doi:10.18653/v1/2023.findings-emnlp.614 · Cited by 37
Towards General Loop Invariant Generation: A Benchmark of Programs with Memory Manipulation
Liu, C., Wu, X., Feng, Y., Cao, Q., & Yan, J. (2023) · arXiv · doi:10.48550/arxiv.2311.10483 · Cited by 7
Metadata
- Authors
- Garg, P., Neider, D., Madhusudan, P., & Roth, D.
- Venue
- Proceedings of the 43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages
- Publisher
- ACM
- Published
- 2016-01-11
- Pages
- 499-512
- OpenAlex
- W2185676247
- Cited by
- 165
- References
- 55
- FWCI
- 13.98
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.