- Rating
- 5
- Clarity
- 4
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper introduces LINGUAARRAY, a hybrid framework combining LLMs with SMT solvers to resolve SMT formulas involving quantified arrays. The core methodology leverages the LLM to guide the solver's search space, while the SMT solver remains the rigorous engine for proving SAT or UNSAT. Specifically, the LLM provides bidirectional heuristics: generating sets of ground instantiations to establish UNSAT, and formulating under-approximations to prove SAT. Evaluations on SMT-COMP benchmarks demonstrate that this approach significantly outperforms existing baselines.
Strengths and weaknesses
Strengths
- The paper introduces a promising approach to combining LLMs with formal reasoning without sacrificing soundness guarantees. It effectively replaces the computationally expensive components of Counterexample-Guided Quantifier Instantiation (CEGQI) and lemma generation for unsatisfiability proofs.
- The reported performance improvements over state-of-the-art solvers like Z3 and cvc5 are substantial.
- The proposed methodology is clearly presented and easy to follow.
Weaknesses
- The algorithm does not guarantee progress in theory. The algorithm does guarantee termination for finite domain, as the LLM can suggest duplicate instances or formulas. Furthermore, when suggesting CFS, the LLM might fail to provide a valid strengthening of the target formula.
Questions
-
The core idea appears applicable to other quantified SMT theories. Is there a specific reason the paper focuses exclusively on quantified arrays? Furthermore, do the authors expect this approach to generalize well to other quantified SMT domains?
-
As noted in the weaknesses section, the algorithm lacks a theoretical guarantee of progress. Because the LLM might continuously suggest invalid strengthenings for the CFS or repeatedly generate duplicate instances and formulas, the system could stall. Is there a specific fallback mechanism or mitigation strategy in place to handle this issue?
-
How often does the LLM produce invalid, ill-typed, irrelevant, or duplicate proposals?
-
How large is the variance in execution time across multiple runs? Given the nature of LLM-guided algorithms, I would expect the variation in running time to be quite significant.
Limitations
Mostly yes. Remained limitation is explained above.
Paper formatting concerns
No formatting concern
Final justification
The authors' rebuttal successfully clarified my concerns regarding variance and formal guarantees. Having considered these clarifications, I remain positive about the paper's contribution and will maintain my score.
We sincerely thank you for your thoughtful questions and suggestions, which will help us further improve the paper. In the revised manuscript, we will clarify the progress and fallback mechanisms, add the proposal-quality and runtime-variance statistics, and further discuss the scope and generalization of the framework.
Q1: Motivation and Generalization
We chose quantified arrays for two main reasons. First, quantified arrays are widely used to express loop invariants, memory safety properties, and relationships between data structures. They also appear frequently in real-world verification tasks and public benchmarks, so this is not only a theoretically challenging problem, but also one with broad practical relevance. Second, this choice is motivated by the current state of SMT solving. For a single, well-structured theory, modern solvers often already have effective expert heuristics, so the added value of semantic guidance may be limited. Our goal is instead to address problems that remain difficult for current solvers, such as complex combinations of quantifiers and arrays, where efficient solving methods are still lacking. This is also where semantic guidance is most valuable.
Regarding generalization, the framework itself is general: IFS and CFS only require well-typed ground terms or constraints, and the proofs of Theorems 1 and 2 do not depend on array axioms. We expect the framework to extend to more complex theory combinations and possibly to formal reasoning tasks beyond SMT.
However, this extension is still challenging because effective focus-set generation is strongly theory-dependent. For example, our array-specific design includes compound terms for array-valued witnesses and the selection of key indices hidden by
storechains. These choices come from our analysis of failure cases in quantified-array solving. For other theories, one would need to study their typical failure modes and design suitable candidate spaces, prompts, and validation rules. A similarly detailed study of other theories is beyond the scope of this paper and is left for future work.Q2: Progress Guarantee and Fallback
We agree that LINGUAARRAY does not theoretically guarantee effective progress in every round, as the LLM may repeatedly generate invalid or duplicate proposals. The current mitigation mechanisms are a bounded number of rounds, a fixed time budget, and fallback. Specifically, the algorithm sets a hard upper bound R on the number of refinement rounds and, once the round budget is exhausted, falls back to the original backend solver S(F) using the remaining time. Invalid proposals are discarded, while unsuccessful proposals and the corresponding solver feedback are included in the context for later rounds to encourage different proposals.
From the experimental results, Figure 2(b) shows that increasing the number of refinement rounds continues to improve the cumulative number of solved instances. Although the gains gradually diminish after the first three rounds, later rounds still solve some difficult instances that require multiple rounds of feedback. Therefore, although some individual rounds may be ineffective, multi-round refinement still produces a net increase in the total number of solved instances.
We also thank the reviewer for raising this issue. The current strategy based on a fixed round limit R is still relatively coarse. In future updates to the code, we plan to add progress detection, for example, by triggering fallback early or switching to another search strategy when several consecutive rounds produce only invalid or duplicate proposals. This could reduce the overhead of ineffective LLM calls.
Q3: Proposal Validity and Duplication
We performed an item-level analysis over all outputs from the main experimental configuration. For DeepSeek-V3.2, only 1.65% of CFS constraints were invalid because of parsing, type, or symbol errors. For IFS instantiations, 13.2% were invalid: 12.5% had parsing or type errors and 0.7% missed required variables. The results for Gemini are similar, at 3.7% for CFS and 10.2% for IFS.
In later rounds, about 59.5% of CFS items and 65.1% of IFS items had appeared in previous rounds. This is partly consistent with our design, because solving may require combinations of several constraints or instantiations, and some useful items may need to be kept across rounds. We also explicitly ask the model in the prompt to propose new focus sets that differ from all previous proposals.
Q4: Runtime Variance Across Runs
We acknowledge that LLM API calls are affected by many factors, including network conditions, output token length, and server load. In the three new independent runs described above, using the Z3 backend on all 1015 instances with 10 complete rounds per run, we analyzed the 602 instances that were solved in all three runs. Their average end-to-end runtime was 44.6 seconds. The median per-instance standard deviation of end-to-end runtime was 18.2 seconds, and the median coefficient of variation was about 61%.