Lattice: Generative Guardrails for Conversational Agents
Emily Broadhurst, Tawab Safi, Joseph Edell, Vashisht Ganesh, Karime Maamari
TL;DR
Lattice addresses the brittleness of static guardrails in deployed conversational AI by introducing a two-stage framework: construction, which builds an initial guardrail set from labeled data through iterative simulation, evaluation, and optimization, and continuous improvement, which autonomously adapts deployed guardrails via risk assessment, adversarial case expansion, and consolidation using prompted LLMs. The approach achieves strong holdout performance on ProsocialDialog, with $F_1$ reaching $0.91$ and a compact final guardrail set (6 rules) from 100 labeled examples, outperforming static baselines by up to $43$pp. In cross-domain settings, the continuous-improvement loop yields further gains (up to $+7$pp in $F_1$) by identifying gaps, generating adversarial variations, and updating policies without human intervention. The framework demonstrates a practical path toward resilient, scalable, auditable safety layers that adapt to shifting threats and contexts in real-world dialogue systems.
Abstract
Conversational AI systems require guardrails to prevent harmful outputs, yet existing approaches use static rules that cannot adapt to new threats or deployment contexts. We introduce Lattice, a framework for self-constructing and continuously improving guardrails. Lattice operates in two stages: construction builds initial guardrails from labeled examples through iterative simulation and optimization; continuous improvement autonomously adapts deployed guardrails through risk assessment, adversarial testing, and consolidation. Evaluated on the ProsocialDialog dataset, Lattice achieves 91% F1 on held-out data, outperforming keyword baselines by 43pp, LlamaGuard by 25pp, and NeMo by 4pp. The continuous improvement stage achieves 7pp F1 improvement on cross-domain data through closed-loop optimization. Our framework shows that effective guardrails can be self-constructed through iterative optimization.
