English

Bounded PCTL Model Checking of Large Language Model Outputs

Artificial Intelligence 2025-09-24 v1

Abstract

In this paper, we introduce LLMCHECKER, a model-checking-based verification method to verify the probabilistic computation tree logic (PCTL) properties of an LLM text generation process. We empirically show that only a limited number of tokens are typically chosen during text generation, which are not always the same. This insight drives the creation of α\alpha-kk-bounded text generation, narrowing the focus to the α\alpha maximal cumulative probability on the top-kk tokens at every step of the text generation process. Our verification method considers an initial string and the subsequent top-kk tokens while accommodating diverse text quantification methods, such as evaluating text quality and biases. The threshold α\alpha further reduces the selected tokens, only choosing those that exceed or meet it in cumulative probability. LLMCHECKER then allows us to formally verify the PCTL properties of α\alpha-kk-bounded LLMs. We demonstrate the applicability of our method in several LLMs, including Llama, Gemma, Mistral, Genstruct, and BERT. To our knowledge, this is the first time PCTL-based model checking has been used to check the consistency of the LLM text generation process.

Keywords

Cite

@article{arxiv.2509.18836,
  title  = {Bounded PCTL Model Checking of Large Language Model Outputs},
  author = {Dennis Gross and Helge Spieker and Arnaud Gotlieb},
  journal= {arXiv preprint arXiv:2509.18836},
  year   = {2025}
}

Comments

ICTAI 2025

R2 v1 2026-07-01T05:51:47.478Z