ISoLA & AISoLA 2026

International Symposium on Leveraging Applications of Formal Methods, Verification, and Validation • Kos, Greece

Talk

From Temporal Guardrails to Runtime Control of LLM Conversations

Time: Thursday, 29.10

Room: Room 2

Authors: Itay Cohen, Moran Omer, Doron Peled

Abstract: Large Language Models (LLMs) are increasingly used to provide information and assist various tasks that require general and also expert knowledge. As such, they are sometimes susceptible to be exploited for assisting in malicious intentions. Safeguard mechanisms often provide built-in protection that is based on training. The protection is internal to the LLM tools and is often rigid and not transparent to stakeholders that use them. We consider here the case where some organization may wish to impose some constraints about using LLMs in based on constraints. The suggested guardrail mechanism uses temporal logic specification to express desired policies. It uses a grounding mechanism that translates messages in a conversation with an LLM into formal objects that compose events; then runtime verification is applied to monitor the events in order to impose the guardrail protection. In predecessor works, we designed and constructed runtime verification tools that conform with a temporal logic based guardrailing. The first tool, TemporalGuard used propositional temporal logic specification for expressing the checked policies, and subsequently, DejaVuGaurd extended the specification to a first order based temporal logic. In both of these cases, the action of the temporal guardrail was to provide a Boolean verdict that denotes when to block access with the LLM. We continue this work here, where we design and construct a temporal guard that changes its behavior dynamically; it uses multiple temporal specifications that are monitored against the guarded conversation with an LLM. Based on the collection of the verdicts, one can define dynamic control against unwanted interactions with the LLM. Under this, finer and more widely capable situation, different security levels, and consequently constraints to the interaction, can be enforced. We also extend in this work our grounding mechanism to take into account multiple messages exchanged between the use and the LLM rather than one message at a time.