LLM-guided Predicate Discovery and Data Augmentation for Learning Likely Program Invariants
Mar 31, 2025ยท,,,,,ยท
1 min read
Yuan Xia
Aabha Pingle
Deepayan Sur
Jyotirmoy v. Deshmukh
Mukund Raghothaman
Srivatsan Ravi

Abstract
We present a framework that leverages large language models (LLMs) to
automatically discover informative predicates and synthesize high-quality
augmented data for learning likely program invariants.
By integrating LLM-generated predicate suggestions with targeted trace
sampling, our approach improves classifier accuracy and generalization while
reducing manual feature-engineering effort. Extensive experiments on a suite
of benchmark programs demonstrate that our method yields tighter invariants
than state-of-the-art template-based and decision-tree learners, often with
an order-of-magnitude reduction in training samples.
Type
Publication
In ACM/SIGAPP Symposium on Applied Computing (SAC 2025)
Click the Cite button above to import the BibTeX entry.