SafetyAnalyst: Interpretable, Transparent, and Steerable Safety Moderation for AI Behavior

Jing-Jing Li, Valentina Pyatkin, Max Kleiman-Weiner, Liwei Jiang, Nouha Dziri +5 more
2/12/2026

No official code found. Best implementation: jl3676/SafetyAnalyst (5 stars, last commit 2025-10-31). 1 more below.

Abstract

The ideal AI safety moderation system would be both structurally interpretable (so its decisions can be reliably explained) and steerable (to align to safety standards and reflect a community's values), which current systems fall short on. To address this gap, we present SafetyAnalyst, a novel AI safety moderation framework. Given an AI behavior, SafetyAnalyst uses chain-of-thought reasoning to analyze its potential consequences by creating a structured"harm-benefit tree,"which enumerates harmful and beneficial actions and effects the AI behavior may lead to, along with likelihood, severity, and immediacy labels that describe potential impacts on stakeholders. SafetyAnalyst then aggregates all effects into a harmfulness score using 28 fully interpretable weight parameters, which can be aligned to particular safety preferences. We applied this framework to develop an open-source LLM prompt safety classification system, distilled from 18.5 million harm-benefit features generated by frontier LLMs on 19k prompts. On comprehensive benchmarks, we show that SafetyAnalyst (average F1=0.81) outperforms existing moderation systems (average F1$<$0.72) on prompt safety classification, while offering the additional advantages of interpretability, transparency, and steerability.

View on arXivView PDF

Code Implementations(2)

Demo of interpretable, transparent, and steerable safety moderation of AI behavior, inspired by SafetyAnalyst (2025)

00Python, Jupyter NotebookJun 12, 20251 years ago

[ICML 2025] SafetyAnalyst: Interpretable, transparent, and steerable safety moderation for AI behavior

51PythonOct 17, 202411 months ago

Similar Papers

Cite this paper

@article{li2026safetyanalyst,
  title  = {SafetyAnalyst: Interpretable, Transparent, and Steerable Safety Moderation for AI Behavior},
  author = {Jing-Jing Li and Valentina Pyatkin and Max Kleiman-Weiner and Liwei Jiang and Nouha Dziri and Anne G. E. Collins and Jana Schaich Borg and Maarten Sap and Yejin Choi and Sydney Levine},
  year   = {2026},
  eprint = {2410.16665},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.16665},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.16665.svg)](https://codeofpaper.com/paper/2410.16665)

Discussion