TL;DR
IBM Research introduces Granite.Trust Policy Tools, an open-source framework that moves away from "one-size-fits-all" AI safety by allowing organizations to define custom, machine-enforceable safety policies using a YAML-based schema. By bridging the gap between high-level risk management and technical implementation, the tools enable consistent policy enforcement across the entire GenAI lifecycle—from synthetic data generation for model alignment to real-time monitoring.
What Problem Does This Paper Address?
Generative AI (GenAI) safety is highly contextual. A policy for a medical chatbot differs wildly from one for a creative writing assistant or a corporate HR bot. Current safety approaches often rely on "black-box" guardrails or generic alignment that leads to over-refusal (where the model refuses benign requests) or a lack of transparency.
Furthermore, traditional access control (e.g., "Can User X access Resource Y?") is insufficient for GenAI, which requires content-based constraints (e.g., "What specific information can the model include in its response?"). There is currently a significant "policy gap" between the high-level risks identified by compliance teams and the technical controls implemented by engineers.
Methods
The authors propose a two-stage framework to operationalize AI safety:
- Actionable Policy Schema: A human-readable YAML format that defines what a model cannot contain (hard constraints) and what it may contain (permitted phrasing or info). Crucially, it introduces typed exceptions (e.g.,
ALCOHOL_MINORS_EXCEPTION), allowing developers to handle policy violations similarly to software errors. The policy framework lifecycle: from risk analysis to runtime enforcement.
- DGT
safety_sdgPipeline: A five-stage synthetic data generation pipeline that translates YAML policies into high-quality training pairs: - Instruction Generation: Uses LLMs to create adversarial prompts based on policy fields.
- Deduplication: Uses ROUGE scoring to ensure data diversity.
- Adversarial Filtering: Employs the Granite Guardian model to retain only genuinely "unsafe" prompts that challenge the policy.
- Response Generation: Generates safe, policy-compliant refusals.
- Safety Filtering: A final check to ensure the generated refusals don't inadvertently contain harmful content.
- Governance Tools: The framework includes tools for report generation (visualizing risk hierarchies) and Semantic Policy Conflict Detection, which uses topic similarity to find overlapping or contradictory rules across large policy sets.
Datasets
The paper focuses on the generation of datasets rather than a static benchmark. To evaluate the schema, the authors:
- Scouted 102 different risks from existing frameworks like the NIST AI RMF, MIT AI Risk Repository, and IBM Risk Atlas.
- Generated synthetic training pairs (adversarial prompt + safe response) to successfully train LoRA adapters for policy compliance.
- Referenced existing safety benchmarks (AILuminate, HELM, BBQ) as the baseline for the types of risks the schema must handle.
Key Insights and Ideas
-
Policy as Code for Content: By using YAML, the framework creates a "shared language" for legal experts and engineers. Table 1 illustrates the top-level structure used to organize these risks. Top-level structure of the Actionable Policy schema.
-
Exceptions as First-Class Citizens: Treating a policy breach as a specific exception type (rather than just a generic "I can't help with that") allows for sophisticated multi-agent interactions. For example, a supervisor agent can receive a specific exception code and decide whether to escalate to a human or redirect the conversation. Exception-based policy governance across application boundaries.
-
Granular Control: The schema allows for specific fields like
reason_denialandshort_reply_type(e.g.,POLITE_REDIRECTvsEXPLICIT_REFUSAL), giving organizations fine-grained control over the model's "persona" during safety interventions. Detailed fields within a specific risk definition.
Key Results
- Usability: In experiments with legal and technical stakeholders, participants found the YAML format intuitive for defining content boundaries. A team of six successfully refined a noisy set of 102 risks down to 80 high-quality, de-duplicated policies.
- Alignment Performance: The synthetic data pipeline successfully produced training data that filtered out "syntactically close but benign" samples, reducing over-refusal compared to standard alignment methods.
- Automation: The conflict detection tool successfully identified overlapping risks, which is a common problem when multiple stakeholders contribute to a safety policy.
Limitations and Future Work
- Stakeholder Tooling: Legal experts still preferred using Word or Slack for collaboration rather than Git, suggesting a need for more user-friendly GUIs for policy management.
- Scale: The usability studies were limited to small groups (3–6 people); larger-scale studies are needed to see how these tools perform in massive enterprise environments.
- Multi-Agent Dynamics: While the paper introduces exception tracking, the authors note that a follow-up paper will dive deeper into how these policies propagate through complex, multi-agent systems.
Summary updated