Lune

FSE2022Top-tier venue

Neural termination analysis

Mirco Giacobbe, Daniel Kroening, Julian Parsert

Abstract

We introduce a novel approach to the automated termination analysis of computer programs: we use neural networks to represent ranking functions. Ranking functions map program states to values that are bounded from below and decrease as a program runs; the existence of a ranking function proves that the program terminates. We train a neural network from sampled execution traces of a program so that the network's output decreases along the traces; then, we use symbolic reasoning to formally verify that it generalises to all possible executions. Upon the affirmative answer we obtain a formal certificate of termination for the program, which we call a neural ranking function. We demonstrate that, thanks to the ability of neural networks to represent nonlinear functions, our method succeeds over programs that are beyond the reach of state-of-the-art tools. This includes programs that use disjunctions in their loop conditions and programs that include nonlinear expressions.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Neural Abstractions cites Learning Probabilistic Termination Proofs
  • Neural Abstractions cites Verification of Neural-Network Control Systems by Integrating Taylor Models and Zonotopes
  • Stochastic Omega-Regular Verification and Control with Supermartingales cites Learning Probabilistic Termination Proofs
  • Verification of Neural-Network Control Systems by Integrating Taylor Models and Zonotopes cites Verification of Deep Convolutional Neural Networks Using ImageStars
  • Using graph neural networks for program termination cites Learning Probabilistic Termination Proofs
  • Neural Model Checking cites Learning Safe Multi-agent Control with Decentralized Neural Barrier Certificates
  • Neural Model Checking cites Stochastic Omega-Regular Verification and Control with Supermartingales
  • Neural Model Checking cites Learning Probabilistic Termination Proofs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Learning Probabilistic Termination ProofsAlessandro Abate, Mirco Giacobbe, Diptarko RoyCAV 2021 · 26 citations
  2. Neural AbstractionsAlessandro Abate, Alec Edwards, Mirco GiacobbeNeurIPS 2022 · 25 citations
  3. Neural Model CheckingMirco Giacobbe, Daniel Kroening, Abhinandan Pal, Michael TautschnigNeurIPS 2024 · 17 citations
  4. Stochastic Omega-Regular Verification and Control with SupermartingalesAlessandro Abate, Mirco Giacobbe, Diptarko RoyCAV 2024 · 13 citations
  5. Using graph neural networks for program terminationYoav Alon, Cristina DavidFSE 2022 · 9 citations

Builds on14

  1. Learning Safe Multi-agent Control with Decentralized Neural Barrier CertificatesZengyi Qin, Kaiqing Zhang, Yuxiao Chen, Jingkai Chen et al.ICLR 2021 · 164 citations
  2. Verification of Deep Convolutional Neural Networks Using ImageStarsHoang-Dung Tran, Stanley Bak, Weiming Xiang, Taylor T. JohnsonCAV 2020 · 122 citations
  3. Graph Representations for Higher-Order Logic and Theorem ProvingAditya Paliwal, Sarah M. Loos, Markus N. Rabe, Kshitij Bansal et al.AAAI 2020 · 110 citations
  4. CLN2INV: Learning Loop Invariants with Continuous Logic NetworksGabriel Ryan, Justin Wong, Jianan Yao, Ronghui Gu et al.ICLR 2020 · 72 citations
  5. Verification of Neural-Network Control Systems by Integrating Taylor Models and ZonotopesChristian Schilling, Marcelo Forets, Sebastián GuadalupeAAAI 2022 · 48 citations

Related papers

  1. Let a Neural Network be Your InvariantMirco Giacobbe, Daniel Kroening, Abhinandan Pal, Michael TautschnigNeurIPS 2025 · 6 citations
  2. On Lexicographic Proof Rules for Probabilistic TerminationKrishnendu Chatterjee, Ehsan Kafshdar Goharshady, Petr Novotný, Jiri Zárevúcky et al.FM 2021 · 11 citations
  3. Termination analysis without the tearsShaowei Zhu, Zachary KincaidPLDI 2021 · 16 citations
  4. EndWatch: A Practical Method for Detecting Non-Termination in Real-World SoftwareYao Zhang, Xiaofei Xie, Yi Li, Sen Chen et al.ASE 2023 · 4 citations
  5. A Robust Optimisation Perspective on Counterexample-Guided Repair of Neural NetworksDavid Boetius, Stefan Leue, Tobias SutterICML 2023 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines