Aegis2.0: A Diverse AI Safety Dataset and Risks Taxonomy for Alignment of LLM Guardrails

Shaona Ghosh, Prasoon Varshney, Makesh Narsimhan Sreedhar, Aishwarya Padmakumar, Traian Rebedea, Jibin Rajan Varghese, Christopher Parisien

TL;DR

NVIDIA researchers have introduced AEGIS2.0, a fully commercially usable, human-annotated dataset of over 34,000 human-LLM interactions mapped to a rich 21-category safety taxonomy. Guard models fine-tuned on AEGIS2.0 match or exceed the performance of state-of-the-art safety models trained on much larger, commercially restricted datasets. Furthermore, the authors demonstrate that blending safety data with topic-following data significantly enhances a guardrail's ability to adapt to entirely new safety policies on the fly.

What Problem Does This Paper Address?

Deploying Large Language Models (LLMs) safely in commercial applications requires robust content moderation guardrails. However, the AI community faces a shortage of high-quality, human-annotated safety datasets that are free of commercial restrictions.

Existing datasets suffer from several flaws: they are often too small, provide only binary (safe/unsafe) labels without explaining why a prompt was blocked, or rely on data generated by proprietary models like GPT-4, which legally restricts commercial use. To bridge this gap, the authors present a scalable safety taxonomy and a high-quality, commercially permissive dataset designed to train explainable, turn-level guardrail models.

Methods

The authors developed a hybrid data generation and annotation pipeline to build AEGIS2.0:

  • Data Generation: They sourced diverse, real-world prompts (including adversarial jailbreaks) and generated responses using an unaligned model (Mistral-7B-v0.1) to capture harmful compliance, alongside Gemma-2-27B to generate safe refusals.
  • Turn-Level Annotation: While humans annotated data at the dialogue level, an ensemble "jury" of LLMs (Mixtral-8x22B, Mistral-NeMo, and Gemma-2-27B-it) was used to weakly supervise turn-level response safety. This step is crucial for recognizing when a model safely refuses an unsafe prompt, preventing valid refusals from being mislabeled as unsafe.
  • Model Training: The guardrail models (LLAMA3.1-AEGISGUARD) were trained using Parameter-Efficient Fine-Tuning (PEFT/LoRA) on a Llama-3.1-8B-Instruct backbone.
  • Topic-Following Blend: To improve flexibility, the authors introduced a novel multi-task training blend that combines safety data with topic-following (TF) data, which trains models to keep conversations strictly within defined thematic boundaries.

Datasets

The paper introduces AEGIS2.0, which contains 34,248 samples (16,880 standalone prompts and 17,368 prompt-response pairs, including 5,200 synthetic refusals). Prompts were curated from existing open sources like Anthropic/hh-rlhf, DAN, AART, and Do-Not-Answer to ensure coverage of critical risks, jailbreaks, and cultural contexts.

To evaluate the model's out-of-distribution generalization, the authors tested it against the OpenAI Moderation Dataset, WILDGUARDMIX (WGTEST), and XSTest.

Comparison of AEGIS2.0 against existing safety datasets.

Key Insights and Ideas

  • Granularity Breeds Accuracy: Counterintuitively, training a model on an expanded taxonomy (12 core + 9 fine-grained categories) improves its binary (safe/unsafe) classification accuracy on out-of-distribution data compared to training it on core categories alone. A more detailed taxonomy helps the model better map the underlying nuances of safe vs. unsafe behavior.
  • The LLM Jury Fixes Dialogue-Level Blindspots: Human annotators often mark an entire conversation as unsafe if the user prompt is toxic. The multi-LLM jury provides the necessary turn-level granularity to ensure that safe model refusals are correctly recognized as safe.
  • Topic Following as a Safety Regularizer: Topic-following tasks share structural similarities with content moderation (deciding whether to engage or deflect based on rules). Blending the two data types acts as a powerful regularizer, giving guardrails the zero-shot flexibility to enforce brand-new safety policies at inference time without retraining.

Key Results

  • State-of-the-Art Performance: LLAMA3.1-AEGISGUARD outperformed Meta’s LLAMAGUARD3-8B and the OpenAI Moderation API on out-of-distribution benchmarks. It performed on par with WILDGUARD, despite WILDGUARD being trained on a much larger dataset supervised by GPT-4.
  • High Categorical Accuracy: The model achieved up to 94% accuracy in predicting the specific hazard categories responsible for a violation.
Figure 1: Heatmap of ground truth vs. category predictions on the OpenAI Moderation Dataset. Left: Summarized version collapsing categories into allowed, other, and safe. Right: Detailed version showing predicted (x-axis) against OpenAI taxonomy (y-axis). All abbreviations used are listed in Appendix A.9, Tables 10 and 11.
  • Zero-Shot Policy Adaptation: When blended with topic-following data (+ TF), the model's ability to catch entirely unseen categories at inference time (such as financial, medical, or legal advice violations) improved significantly. For instance, the harmfulness F1 score on unseen NSFW image prompt detection jumped from 0.699 to 0.772.

Limitations and Future Work

The authors note several limitations currently present in AEGIS2.0:

  1. Model Diversity: All non-refusal responses in the dataset were generated by a single model (Mistral-7B-v0.1), limiting response style diversity.
  2. Class Imbalance: Certain critical risk categories, such as "Threats" and "Sexual (minor)", remain underrepresented.
  3. Language and Bias: The dataset is predominantly English-centric, lacking robust multilingual support, and the LLM jury may introduce its own inherent model biases.

Future iterations will focus on expanding the dataset to include responses from a wider variety of LLMs, balancing underrepresented risk categories, and adding multilingual capabilities.

Summary updated

Abstract

As Large Language Models (LLMs) and generative AI become increasingly widespread, concerns about content safety have grown in parallel. Currently, there is a clear lack of high-quality, human-annotated datasets that address the full spectrum of LLM-related safety risks and are usable for commercial applications. To bridge this gap, we propose a comprehensive and adaptable taxonomy for categorizing safety risks, structured into 12 top-level hazard categories with an extension to 9 fine-grained subcategories. This taxonomy is designed to meet the diverse requirements of downstream users, offering more granular and flexible tools for managing various risk types. Using a hybrid data generation pipeline that combines human annotations with a multi-LLM "jury" system to assess the safety of responses, we obtain Aegis 2.0, a carefully curated collection of 34,248 samples of human-LLM interactions, annotated according to our proposed taxonomy. To validate its effectiveness, we demonstrate that several lightweight models, trained using parameter-efficient techniques on Aegis 2.0, achieve performance competitive with leading safety models fully fine-tuned on much larger, non-commercial datasets. In addition, we introduce a novel training blend that combines safety with topic following data.This approach enhances the adaptability of guard models, enabling them to generalize to new risk categories defined during inference. We plan to open-source Aegis 2.0 data and models to the research community to aid in the safety guardrailing of LLMs.
BibTeX
@inproceedings{ghosh2025aegis,
  author = {Shaona Ghosh and Prasoon Varshney and Makesh Narsimhan Sreedhar and Aishwarya Padmakumar and Traian Rebedea and Jibin Rajan Varghese and Christopher Parisien},
  title = {{Aegis2.0: A Diverse AI Safety Dataset and Risks Taxonomy for Alignment of LLM Guardrails}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.306},
}
Figure