Skip to main navigation Skip to search Skip to main content

Temporal Guardrails for LLM Conversations: A Runtime Verification Framework

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Large Language Models (LLMs) are increasingly integrated into organizational workflows, raising growing concerns about their potential abuse for fraud, security breaches, or intellectual property leakage. While LLMs embed protective mechanisms and organizations develop their own guardrails, many practical guardrail approaches remain stateless and lack formal temporal semantics, and existing formal methods are often domain-specific or rely on structured event representations. We propose a runtime verification (RV) framework that treats an LLM conversation as an execution trace that can be formally verified and develop a corresponding tool called TemporalGuard. It observes the stream of user messages and LLM-generated assistant responses, grounds each message into a set of atomic propositions, and thereby constructs a Boolean-labeled trace. Safety policies are specified as formulas in past-time linear temporal logic (ptLTL), and the monitor checks the evolving Boolean trace online to decide whether the conversation satisfies the policy. A central challenge is grounding: bridging the gap between the precise Boolean semantics of temporal logic and the ambiguity of natural language utterances. To address this, we developed a semantic grounding layer and experimentally evaluated a range of grounding strategies, including an embedding-based approach, Natural Language Inference (NLI), and LLM-based zero/few-shot classification. We demonstrate the effectiveness of TemporalGuard through grounding and end-to-end monitoring experiments.

Original languageEnglish
Title of host publicationAI Verification - 3rd International Symposium, SAIV 2026, Proceedings
EditorsGuy Avni, Christian Schilling
PublisherSpringer Science and Business Media Deutschland GmbH
Pages145-166
Number of pages22
ISBN (Print)9783032323569
DOIs
StatePublished - 2027
Event3rd International Symposium on AI Verification, SAIV 2026 - Lisbon, Portugal
Duration: 24 Jul 202625 Jul 2026

Publication series

NameLecture Notes in Computer Science
Volume16831 LNCS

Conference

Conference3rd International Symposium on AI Verification, SAIV 2026
Country/TerritoryPortugal
CityLisbon
Period24/07/2625/07/26

ASJC Scopus subject areas

  • Theoretical Computer Science
  • General Computer Science

Fingerprint

Dive into the research topics of 'Temporal Guardrails for LLM Conversations: A Runtime Verification Framework'. Together they form a unique fingerprint.

Cite this