---
title: "An Introduction to AI Secure LLM Safety Leaderboard"
description: "The LLM Safety Leaderboard, built on the Hugging Face leaderboard template, ranks open and closed models using DecodingTrust, a NeurIPS 2023 evaluation framework covering eight trustworthiness perspectives: toxicity, stereotype bias, adversarial robustness, OOD robustness, adversarial demonstrations, privacy, machine ethics and fairness."
url: "https://swe.quest/articles/an-introduction-to-ai-secure-llm-safety-leaderboard-3389612600bb2dd0"
canonical: "https://huggingface.co/blog/leaderboard-decodingtrust"
source: "Hugging Face"
published: "2024-01-26"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 5
tags: ["evals","ai-safety","llms"]
---

# An Introduction to AI Secure LLM Safety Leaderboard

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-01-26, 5 min read, Announcement. Original: [https://huggingface.co/blog/leaderboard-decodingtrust](https://huggingface.co/blog/leaderboard-decodingtrust)

## Summary

The LLM Safety Leaderboard, built on the Hugging Face leaderboard template, ranks open and closed models using DecodingTrust, a NeurIPS 2023 evaluation framework covering eight trustworthiness perspectives: toxicity, stereotype bias, adversarial robustness, OOD robustness, adversarial demonstrations, privacy, machine ethics and fairness. Each perspective uses tailored red-teaming methods, such as 33 adversarial system prompts scored with the Perspective API, adversarial examples transferred from attacks on Alpaca and Vicuna, and prompts designed to extract emails and credit card numbers. Key findings: GPT-4 is more vulnerable than GPT-3.5, no model leads on every perspective, the perspectives trade off against each other, and small wording changes such as "confidentially" versus "in confidence" change privacy leakage. Model owners can submit public safetensors models that load through transformers AutoClasses.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [AI safety](https://swe.quest/tags/ai-safety.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Hugging Face transformers

## Keywords

DecodingTrust, LLM Safety Leaderboard, Hugging Face, Perspective API, GPT-4, safetensors

## Related posts

- [Introducing the Red-Teaming Resistance Leaderboard](https://swe.quest/articles/introducing-the-red-teaming-resistance-leaderboard-e6f29b275caeecf9.md): Hugging Face · 2024-02-23 · Easy · 6 min read · AI safety, Evaluation, LLMs
  The Red-Teaming Resistance leaderboard from Haize Labs and Hugging Face scores LLMs on how often they safely refuse realistic, human-written jailbreak prompts.
- [Red-Teaming Large Language Models](https://swe.quest/articles/red-teaming-large-language-models-a911211681792c3b.md): Hugging Face · 2023-02-24 · Easy · 6 min read · AI safety, Evaluation, LLMs
  Red-teaming evaluates LLMs by crafting natural-language prompts that elicit harmful outputs such as toxicity, bias, misinformation or leaked personal data, and it differs from adversarial attacks, which can use unintelligible inputs.
- [Welcoming Llama Guard 4 on Hugging Face Hub](https://swe.quest/articles/welcoming-llama-guard-4-on-hugging-face-hub-b5b2c79d602c7f1b.md): Hugging Face · 2025-04-29 · Medium · 6 min read · AI safety, LLMs, Inference & serving
  Llama Guard 4 is a 12B dense multimodal safety classifier pruned from Llama 4 Scout by dropping all routed MoE experts and keeping only the shared expert, then post-trained on 3:1 text-to-multimodal data.
- [Evaluating Language Model Bias with 🤗 Evaluate](https://swe.quest/articles/evaluating-language-model-bias-with-evaluate-b158fee88571748c.md): Hugging Face · 2022-10-24 · Medium · 8 min read · Evaluation, AI safety, LLMs, Python
  Hugging Face's Evaluate library now includes bias measurements for causal language models such as GPT-2 and BLOOM.
- [Can foundation models label data like humans?](https://swe.quest/articles/can-foundation-models-label-data-like-humans-963e130c732d79cb.md): Hugging Face · 2023-06-12 · Hard · 17 min read · Evaluation, LLMs, Model training
  Human preference labels from Scale AI and GPT-4 pairwise ratings on a 327-prompt blind test set produce the same Elo ordering of four open instruction-tuned models (Vicuna-13B, Koala-13B, OpenAssistant-12B, Dolly-12B), but the margins between models differ.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
