Saved in:
Bibliographic Details
Main Authors: Gross, Dennis, Spieker, Helge, Gotlieb, Arnaud
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2509.18836
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916964228661248
author Gross, Dennis
Spieker, Helge
Gotlieb, Arnaud
author_facet Gross, Dennis
Spieker, Helge
Gotlieb, Arnaud
contents 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 $α$-$k$-bounded text generation, narrowing the focus to the $α$ maximal cumulative probability on the top-$k$ tokens at every step of the text generation process. Our verification method considers an initial string and the subsequent top-$k$ tokens while accommodating diverse text quantification methods, such as evaluating text quality and biases. The threshold $α$ 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 $α$-$k$-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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_18836
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Bounded PCTL Model Checking of Large Language Model Outputs
Gross, Dennis
Spieker, Helge
Gotlieb, Arnaud
Artificial Intelligence
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 $α$-$k$-bounded text generation, narrowing the focus to the $α$ maximal cumulative probability on the top-$k$ tokens at every step of the text generation process. Our verification method considers an initial string and the subsequent top-$k$ tokens while accommodating diverse text quantification methods, such as evaluating text quality and biases. The threshold $α$ 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 $α$-$k$-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.
title Bounded PCTL Model Checking of Large Language Model Outputs
topic Artificial Intelligence
url https://arxiv.org/abs/2509.18836