mlsanityData to 7 Oct 2026

CLN2INV: Learning Loop Invariants with Continuous Logic Networks

arXiv 1909.11542 ↗First posted 25 Sep 2019cs.LG cs.SE stat.MLcited by 20

Not on the map. Why?

Abstract (arXiv)

Program verification offers a framework for ensuring program correctness and therefore systematically eliminating different classes of bugs. Inferring loop invariants is one of the main challenges behind automated verification of real-world programs which often contain many loops. In this paper, we present Continuous Logic Network (CLN), a novel neural architecture for automatically learning loop invariants directly from program execution traces. Unlike existing neural networks, CLNs can learn precise and explicit representations of formulas in Satisfiability Modulo Theories (SMT) for loop invariants from program execution traces. We develop a new sound and complete semantic mapping for assigning SMT formulas to continuous truth values that allows CLNs to be trained efficiently. We use CLNs to implement a new inference system for loop invariants, CLN2INV, that significantly outperforms existing approaches on the popular Code2Inv dataset. CLN2INV is the first tool to solve all 124 theoretically solvable problems in the Code2Inv dataset. Moreover, CLN2INV takes only 1.1 seconds on average for each problem, which is 40 times faster than existing approaches. We further demonstrate that CLN2INV can even learn 12 significantly more complex loop invariants than the ones required for the Code2Inv dataset.

Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). First posted on arXiv 25 Sep 2019.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 5; 2022: 3; 2023: 5; 2024: 3; 2025: 3; 2026: 1.

20 papers.

Sort:

  1. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  2. 2023Can Large Language Models Transform Natural Language Intent into Formal Method Postconditions?cited by 53
  3. 2023Finding Inductive Loop Invariants using Large Language Modelscited by 35
  4. 2023Ranking LLM-Generated Loop Invariants for Program Verificationcited by 33
  5. 2021Goal-Aware Neural SAT Solvercited by 27
  6. 2024FVEL: Interactive Formal Verification Environment with Large Language Models via Theorem Provingcited by 22
  7. 2021Neural Termination Analysiscited by 16
  8. 2021Learning Security Classifiers with Verified Global Robustness Propertiescited by 14
  9. 2023Leveraging Large Language Models for Automated Proof Synthesis in Rustcited by 11
  10. 2024Enhancing Automated Loop Invariant Generation for Complex Programs with Large Language Modelscited by 7
  11. 2022Learning to Find Proofs and Theorems by Learning to Refine Search Strategies: The Case of Loop Invariant Synthesiscited by 5
  12. 2025Beyond Postconditions: Can Large Language Models infer Formal Contracts for Automatic Software Verification?cited by 5
8 more
  1. 2025Quokka: Accelerating Program Verification with LLMs via Invariant Synthesiscited by 4
  2. 2024NeuroSynt: A Neuro-symbolic Portfolio Solver for Reactive Synthesiscited by 3
  3. 2021Toward Neural-Network-Guided Program Synthesis and Verificationcited by 2
  4. 2022Data-driven Numerical Invariant Synthesis with Automatic Generation of Attributescited by 1
  5. 2021Learning Heuristics for Template-based CEGIS of Loop Invariants with Reinforcement Learningcited by 0
  6. 2023Compositional Inductive Invariant Based Verification of Neural Network Controlled Systemscited by 0
  7. 2025AutoICE: Automatically Synthesizing Verifiable C Code via LLM-driven Evolutioncited by 0
  8. 2026Privilege and confidentiality in generative AI workflowscited by 0