misc 0 0 0

QuixiAI/refusal-taxonomy

published by @QuixiAI

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
748
Last 30 days
27
Likes
4
Size
384 KB
Created on HF
2025-07-12
Age
1 years ago

Description

Quixi AI Refusal Taxonomy

This is a comprehensive, production-grade refusal taxonomy based on the MLCommons Hazard Taxonomy and examples from Llama Guard, but significantly expanded and restructured for real-world deployment scenarios.

My goal is to train a classifier on the LiquidAI/LFM2-350M base model - to vastly outperform Llama Guard 4 12b.

Overview

This taxonomy provides a detailed classification system for identifying and categorizing harmful user prompts.… See the full description on the dataset page: https://huggingface.co/datasets/QuixiAI/refusal-taxonomy.

Tags

license:apache-2.0size_categories:n<1Kformat:jsonmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsregion:us

README current version from Hugging Face


license: apache-2.0

Quixi AI Refusal Taxonomy

This is a comprehensive, production-grade refusal taxonomy based on the MLCommons Hazard Taxonomy and examples from Llama Guard, but significantly expanded and restructured for real-world deployment scenarios.

My goal is to train a classifier on the LiquidAI/LFM2-350M base model - to vastly outperform Llama Guard 4 12b.

Overview

This taxonomy provides a detailed classification system for identifying and categorizing harmful user prompts. It is empirically driven, with categories and examples reflecting actual threat patterns observed in production AI systems, rather than idealized academic structures. The framework is organized into 16 major categories and hundreds of granular subcategories to support the development of highly accurate and efficient safety models.

Dataset Statistics

  • Total Categories: 16 major categories
  • Subcategories: 300+ granular subcategories
  • Example Prompts: 4,000+ real-world examples
  • Coverage: Violent crimes, financial fraud, misinformation, jurisdiction-specific content, and more
  • Languages: Primarily English with framework for multilingual expansion

Key Improvements Over Existing Taxonomies

  • Empirically Driven: Categories are structured and weighted based on real-world threat volumes, not artificial balance
  • Granular Categorization: Breaks down broad harms like "Violent Crimes" into specific, actionable subcategories (e.g., Mass Murder, Premeditated Murder, Crime of Passion)
  • Comprehensive Examples: Each subcategory includes numerous real-world prompt examples, capturing diverse phrasing and user intent
  • Production-Ready: Designed for direct use in operational training, evaluation, and policy enforcement pipelines
  • Jurisdiction-Aware: First taxonomy to include region-specific content moderation requirements

*Target model size for classifiers trained on this taxonomy

New Categories Added

S15: Jurisdiction-Specific Content (China)

Addresses content moderation requirements for specific regions, including:

  • Criticism of State Leadership and the Political System
  • Discussions of Banned Historical Events
  • Advocacy for Separatism or Independence
  • Promotion of Banned Religious or Spiritual Groups
  • Content on Human Rights Abuses and Political Dissent
  • Evasion of State Censorship

S16: Misinformation and Harmful Conspiracies

Provides comprehensive coverage of modern misinformation patterns:

  • Medical and Health Misinformation (e.g., Anti-vaccine, dangerous "cures")
  • Harmful Conspiracy Theories
  • Politically Motivated Hatred
  • Historical Revisionism

Technical Goals

The primary goal of this taxonomy is to enable the training of highly efficient safety classifiers. The granular specificity is designed to allow smaller models to achieve superior performance through better training data quality rather than model scale.

Target Outcomes:

  • Efficiency: ~500M parameter models achieving performance comparable to 7B+ models
  • Accuracy: Superior coverage of real-world edge cases and emerging threats
  • Adaptability: Framework supports rapid addition of new threat categories
  • Deployment: Optimized for production environments with latency constraints

Structure

The taxonomy follows a clear hierarchical structure:

S[Number]: [Major Category]
├── [Subcategory Group]
│   ├── [Specific Subcategory]
│   │   ├── [Detailed prompt example]
│   │   └── [More examples...]
│   └── [Another Subcategory]
└── [Another Subcategory Group]

Quick Start

import json

# Load the taxonomy
with open('atpt_taxonomy.json', 'r') as f:
    taxonomy = json.load(f)

# Access specific categories
violent_crimes = taxonomy['S1: Violent Crimes']
misinformation = taxonomy['S16: Misinformation and Harmful Conspiracies']

# Example: Get all prompt examples for a subcategory
mass_murder_prompts = violent_crimes['Homicide and Murder']['Mass Murder']

Key Design Principles

  1. Threat-Based: Categories reflect the frequency and severity of actual threats
  2. Operational Focus: Built for production deployment, not just academic classification
  3. Specificity: Granular enough to enable precise detection and minimize false positives/negatives
  4. Extensibility: Structured to allow for easy addition of new categories as threats evolve
  5. Cultural Awareness: Framework for jurisdiction-specific requirements
  6. Asymmetric Reality: Reflects real-world threat distributions rather than artificial balance

Usage

This taxonomy is a foundational tool for:

  • Training and fine-tuning content moderation classifiers
  • Developing robust platform safety policies
  • Creating high-quality evaluation and red-teaming datasets
  • Designing annotation guidelines and training materials for human labelers
  • Informing risk assessment frameworks for AI systems
  • Building jurisdiction-specific content filters

Contributing

When adding new categories or examples:

  • Base additions on observed, real-world patterns and data
  • Maintain granular specificity and clear boundaries
  • Include comprehensive prompt examples covering varied intent and phrasing
  • Consider cross-category implications and ensure logical consistency
  • Document empirical justification for new categories

Acknowledgments

This work builds upon the foundational research from:

  • MLCommons for the original Hazard Taxonomy framework
  • Meta AI for Llama Guard examples and methodology
  • The broader AI safety research community for threat identification and categorization insights

License

This work is licensed under the Apache License, Version 2.0. You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Citation

If you use this taxonomy in your research or product, please cite it as follows:

BibTeX Format:

@misc{atpt2024,
  author       = {{Your Name or Organization}},
  title        = {{Advanced Toxic Prompt Taxonomy (ATPT): A Production-Grade Framework for AI Safety}},
  year         = {2024},
  publisher    = {GitHub},
  journal      = {GitHub repository},
  howpublished = {\url{https://github.com/your-username/advanced-toxic-prompt-taxonomy}},
  note         = {Comprehensive taxonomy with 16 categories, 300+ subcategories, and 4,000+ examples}
}

Plain Text Format:

Your Name/Organization. (2024). Advanced Toxic Prompt Taxonomy (ATPT): A Production-Grade Framework for AI Safety. GitHub. Retrieved from https://github.com/your-username/advanced-toxic-prompt-taxonomy

For questions, issues, or collaboration opportunities, please open an issue or contact [your-contact-info].

README history 6 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2025-07-13Update README.md66d9c907 KB
    Loading...
  2. 2025-07-13Update README.md9d3ef137 KB
    Loading...
  3. 2025-07-13Update README.md66c65eb510 B
    Loading...
  4. 2025-07-13Update README.md0b4a532349 B
    Loading...
  5. 2025-07-13Create refusal-taxonomy.json7d040ab31 B
    Loading...
  6. 2025-07-13initial commit00ad4ec31 B
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Related datasets same stage · misc

Read further

Metadata

License
apache-2.0

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("QuixiAI/refusal-taxonomy")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="QuixiAI/refusal-taxonomy", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/QuixiAI/refusal-taxonomy
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration