UniGuard: Multi-View Guardrail Learning for Cross-Interface Safety Generalization
Viet-Thanh Pham, Thuy-Trang Vu, Junae Kim, Rollin Omari, Dinh Phung, Gholamreza Haffari, Lizhen Qu
Abstract
Guardrail models are increasingly used as safety layers for LLMs and agentic systems, but most are trained on fixed prompt or response interfaces and become unreliable when the same safety case appears as a conversation, agent trajectory, multi-agent trace, or policy-conditioned input. We propose UniGuard, a training framework that learns interface-invariant safety representations from multiple semantically aligned views of the same safety case. We also construct the UniGuard-FT dataset by transforming 1,000 public safety cases into prompt, response, multi-turn conversation, agent-trace, and multi-agent-trace views, and train UniGuard-0.6B with classification, supervised contrastive learning, and asymmetric confidence calibration losses. Across unseen-interface benchmarks ATBench, PolicyGuardBench, and DynaBench, UniGuard-0.6B improves over its pretrained guardrail by 45.12 F1 points on average and reduces expected calibration error by 35.41 points, while remaining competitive with much larger guardrails such as Claude-Sonnet-4.5 and GPT-5.2 - despite being a 0.6B model and trained only with synthetic data.
Create a lesson
Metadata
- Comments
- 31 pages
Related papers
Multi-Agent Retrieval-Augmented Causality Assessment (MARCA) of Individual Case Safety Reports in Pharmacovigilance
Shared title terminologycs.CLDaisy Rae Lopez, Angela Boccia, Maurizio Sessa
Once a Tree, Always a Tree? Cross-lingual Transfer of Hierarchical Generalization in Language Models
Shared title terminologycs.CLShin Yamaguchi, Masaya Taniguchi, Tatsuki Kuribayashi et al.
Exploring Multi-Player Social Games as Verifiable Training Grounds for Large Language Models
Shared title terminologycs.CLKeyu He, Michael Li, Jiarui Liu et al.
SPARQL-Planned Single-Hop Traversal over a Live Knowledge Graph for Multi-Hop Question Answering
Shared title terminologycs.CLPriyesh Vakharia, Masud Moshtaghi, Pratyay Banerjee et al.
TAP: Policy Interfaces for Diffusion Language Models
Shared title terminologycs.CLPreeti, Ankita Kushwaha, Kiran Ravish et al.
Voyag: Joint Multi-Intent Detection and Execution-Relation Classification for In-Vehicle Voice Assistants
Shared title terminologycs.CLSen Luo