Probabilistic Model Checking of Autoregressive Neural Sequence Models
Not on the map. Why?
Abstract (arXiv)
Test-set accuracy is silent on two issues that matter when deploying autoregressive neural sequence models: how much probability mass the system under test (SUT) places on constraint-violating alternatives that are reachable under sampling and what fraction of the input population satisfies a domain requirement. We answer both with probabilistic model checking. The pipeline extracts a discrete-time Markov chain (DTMC) from the SUT's token-by-token generation, verifies formal PCTL specifications with the PRISM model checker, and aggregates the per-input verdicts into a coverage curve over the input space. A soundness theorem establishes the DTMC as an under-approximation, so every verdict yields a certified interval on the SUT's true reachability probability. The coverage built from those verdicts is, therefore, conservative by construction. A counterexample-guided abstraction refinement (CEGAR) loop adaptively tightens the interval, and a maximum-likelihood algorithm extracts the most probable falsifying trace. Two case studies exercise the pipeline. On a GPT-2 computer-aided process-planning (CAPP) model with 100% test accuracy, the pipeline quantifies the probability mass greedy decoding hides, but that is reachable with sampling; and identifies the smallest training fraction at which an ordering requirement holds population-wide, neither of which test accuracy can report. We then verify the SMILES molecular generator with a 50x larger vocabulary. The only change is an external chemical-validity oracle, and the pipeline identifies the gap between structural completeness and chemical validity.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 15 of its 34 references that are in the map. First posted on arXiv 1 Sep 2026.
Builds on
15 of 34 references.
References · 15
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2017Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networkscited by 744
- 2023On the Planning Abilities of Large Language Models : A Critical Investigationcited by 312
- 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 311
- 2022Conformal Risk Controlcited by 299
- 2021Beta-CROWN: Efficient Bound Propagation with Per-neuron Split Constraints for Complete and Incomplete Neural Network Robustness Verificationcited by 228
- 2023Conformal Language Modelingcited by 170
- 2018DeepGauge: Multi-Granularity Testing Criteria for Deep Learning Systemscited by 147
- 2024Language Models with Conformal Factuality Guaranteescited by 131
- 2017Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamplescited by 66
Built on by
Not cited yet.