[Paper Review] TriCEGAR: A Trace-Driven Abstraction Mechanism for Agentic AI
TriCEGAR automates state abstraction for runtime verification of agentic AI by learning predicate-tree abstractions from execution traces, building an AMDP, and performing probabilistic model checking with anomaly detection.
Agentic AI systems act through tools and evolve their behavior over long, stochastic interaction traces. This setting complicates assurance, because behavior depends on nondeterministic environments and probabilistic model outputs. Prior work introduced runtime verification for agentic AI via Dynamic Probabilistic Assurance (DPA), learning an MDP online and model checking quantitative properties. A key limitation is that developers must manually define the state abstraction, which couples verification to application-specific heuristics and increases adoption friction. This paper proposes TriCEGAR, a trace-driven abstraction mechanism that automates state construction from execution logs and supports online construction of an agent behavioral MDP. TriCEGAR represents abstractions as predicate trees learned from traces and refined using counterexamples. We describe a framework-native implementation that (i) captures typed agent lifecycle events, (ii) builds abstractions from traces, (iii) constructs an MDP, and (iv) performs probabilistic model checking to compute bounds such as Pmax(success) and Pmin(failure). We also show how run likelihoods enable anomaly detection as a guardrailing signal.
Motivation & Objective
- Motivate the need for automated, robust assurance of agentic AI under stochastic environments.
- Introduce TriCEGAR to automate state abstraction from execution traces for runtime verification.
- Enable online construction of an Agentic MDP (AMDP) and probabilistic model checking for quantitative guarantees.
- Provide a framework-native implementation that integrates trace capture, abstraction learning, MDP induction, and anomaly detection.
Proposed method
- Capture agent lifecycle events to produce typed execution traces.
- Learn a predicate tree from traces to form an abstraction mapping concrete states to abstract states.
- Construct an MDP over abstract states with transitions estimated from trace frequencies.
- Apply probabilistic model checking (PCTL) to compute bounds like Pmax(Diamond success) and Pmin(Diamond failure).
- Refine abstractions using counterexamples derived from observed traces to reduce spurious behavior.
- Perform run-likelihood based anomaly detection using the induced probabilistic model.
Experimental results
Research questions
- RQ1How can runtime verification for agentic AI be automated by learning state abstractions directly from traces?
- RQ2Can an online, trace-driven AMDP be learned and used with probabilistic model checking to bound agentic behavior?
- RQ3How can counterexamples guide refinement of predicates to reduce spurious verification results?
- RQ4Can run likelihood under the learned model serve as an effective anomaly signal during operation?
Key findings
- TriCEGAR replaces manual state mappings with learned predicate trees derived from traces.
- An AMDP is constructed where states are leaves of the predicate tree and transitions reflect tool-type actions with probabilities from traces.
- Probabilistic model checking yields quantitative bounds such as Pmax(Diamond success) and Pmin(Diamond failure) for agentic workflows.
- The framework supports online updates: traces arrive incrementally, abstractions and the AMDP are refined between steps, and probability bounds are updated.
- Run likelihood under the induced model provides anomaly detection signals during execution.
- An early prototype demonstrates end-to-end workflow from trace capture to MDP induction and PCTL querying.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.