Lune

NeurIPS2025Top-tier venue

Learning Simple Interpolants for Linear Integer Arithmetic

Minchao Wu, Naoki Kobayashi

Abstract

Craig interpolation plays a central role in formal verification tasks such as model checking, invariant generation, and abstraction refinement. In the domain of linear integer arithmetic (LIA), interpolants are crucial for deriving inductive invariants that characterize unreachable or safe program states, enabling scalable and precise reasoning about software and hardware correctness. Despite progress in interpolation algorithms, generating concise and interpretable interpolants remains a key challenge. We propose a lightweight learning-based approach to generating simple interpolants for LIA. Our model learns to lazily sample input problems directly and is complementary to existing logical methods. We show that when Z3 is guided by our learned model, the complexity of the interpolants it produces can be reduced by up to 47.3%. For older solvers, the reduction rate can reach up to 69.1%.

Recent advancements in machine learning have shown promise in complementing formal methods by providing heuristics that guide complex decision-making processes. Despite this progress, the integration of learning-based techniques into the domain of LIA interpolation remains relatively unexplored. Existing interpolation procedures primarily rely on symbolic reasoning and decision procedures, which, while sound and complete, may not always yield the most concise interpolants [1].

In this work, we introduce a novel learning-based framework aimed at simplifying interpolants in LIA. Our approach leverages a lightweight neural architecture that combines a message-passing graph neural network (GNN) [40] with a self-attention-based [34] selector mechanism. The GNN encodes the structural and semantic information of disjunction-free LIA formulas, while the selector network tries to identify minimal subsets of the input formulas that are sufficient for generating valid interpolants. This design enables a single invocation of the satisfiability modulo theories (SMT) solver during the computation, enhancing efficiency and scalability.

To facilitate this learning process, we require a dataset of challenging interpolation problems for both training and evaluation. As no such dataset exists in the literature to our knowledge, we construct one comprising approximately 66,000 interpolation problems in LIA. The dataset is generated through a systematic process that ensures realistic and practical coverage of problem instances. We hope it will serve as a valuable resource for advancing learning-based interpolation methods.

Empirical evaluations demonstrate the effectiveness of our approach. When integrated with state-ofthe-art interpolation solvers such as Z3 [9], our model achieves a reduction in interpolant complexity of up to 47.3%. When applied to older solvers, the reduction rate increases to 69.1%, demonstrating the potential of our method to significantly enhance existing tools.

Our contributions can be summarized as follows:

• We propose a novel learning-based approach that guides the generation of simpler interpolants in linear integer arithmetic, complementing traditional logic-based methods. Motivated by the demands of downstream verification workloads, our model architecture emphasizes both fast evaluation and high-quality interpolant generation.

• We introduce a dataset containing approximately 66,000 challenging interpolation problems in linear integer arithmetic. We detail the generation process to ensure reproducibility and coverage.

• We demonstrate that our approach effectively reduces interpolant complexity, achieving significant improvements when integrated with both modern and legacy interpolation solvers.

Craig interpolation is a foundational concept in logic and program verification, widely used in constructing inductive invariants and enabling efficient model checking. Given two logical formulas A and B such that their conjunction A ∧ B is unsatisfiable, a Craig interpolant is a formula I satisfying the following properties:

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.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Magnushammer: A Transformer-Based Approach to Premise Selection cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • Magnushammer: A Transformer-Based Approach to Premise Selection cites Autoformalization with Large Language Models
  • LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Magnushammer: A Transformer-Based Approach to Premise Selection
  • LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Autoformalization with Large Language Models
  • LEGO-Prover: Neural Theorem Proving with Growing Libraries cites Baldur: Whole-Proof Generation and Repair with Large Language Models
  • Autoformalization with Large Language Models cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • Baldur: Whole-Proof Generation and Repair with Large Language Models cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • Baldur: Whole-Proof Generation and Repair with Large Language Models cites Autoformalization with Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on10

  1. Autoformalization with Large Language ModelsYuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe et al.NeurIPS 2022 · 364 citations
  2. Proof Artifact Co-Training for Theorem Proving with Language ModelsJesse Michael Han, Jason Rute, Yuhuai Wu, Edward W. Ayers et al.ICLR 2022 · 149 citations
  3. LEGO-Prover: Neural Theorem Proving with Growing LibrariesHaiming Wang, Huajian Xin, Chuanyang Zheng, Zhengying Liu et al.ICLR 2024 · 125 citations
  4. Baldur: Whole-Proof Generation and Repair with Large Language ModelsEmily First, Markus N. Rabe, Talia Ringer, Yuriy BrunFSE 2023 · 89 citations
  5. Magnushammer: A Transformer-Based Approach to Premise SelectionMaciej Mikula, Szymon Tworkowski, Szymon Antoniak, Bartosz Piotrowski et al.ICLR 2024 · 62 citations

Related papers

  1. Global Guidance for Local Generalization in Model CheckingHari Govind Vediramana Krishnan, Yuting Chen, Sharon Shoham, Arie GurfinkelCAV 2020 · 26 citations
  2. Conditional interpolation: making concurrent program verification more effectiveJie Su, Cong Tian, Zhenhua DuanFSE 2021 · 4 citations
  3. Nonlinear Craig Interpolant GenerationTing Gan, Bican Xia, Bai Xue, Naijun Zhan et al.CAV 2020 · 14 citations
  4. A Transferability Study of Interpolation-Based Hardware Model Checking for Software VerificationDirk Beyer, Po-Chun Chien, Marek Jankola, Nian-Ze LeeFSE 2024 · 5 citations
  5. DOGE-Train: Discrete Optimization on GPU with End-to-End TrainingAhmed Abbas, Paul SwobodaAAAI 2024 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines