Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignment

Yang Liu, Yuanshun Yao, Jean-Francois Ton, Xiaoying Zhang, Ruocheng Guo, Hao Cheng, Yegor Klochkov, Muhammad Faaiz Taufiq, Hang Li

TL;DR

While current alignment techniques make large language models (LLMs) helpful conversationalists, alignment is fundamentally uneven across different ethical and functional dimensions. This paper introduces a comprehensive taxonomy covering 7 major pillars and 29 sub-categories of trustworthiness, benchmarked across models ranging from raw base models to GPT-4. The findings reveal critical blind spots: highly aligned models effectively refuse overt safety threats but remain surprisingly vulnerable to subtle fairness biases, prompt typos, and copyrighted text extraction.

What Problem Does This Paper Address?

Ensuring an LLM behaves reliably before deployment is an urgent challenge. Most practitioner frameworks rely on broad heuristics like Anthropic’s "HHH" (Helpful, Honest, Harmless) principle or general risk taxonomies. However, these guidelines lack operational granularity. Furthermore, existing alignment datasets exhibit heavy skew (for instance, Anthropic's red-teaming data contains massive amounts of data on violence, but minimal data on self-harm or child abuse). This leaves teams without clear benchmarks to assess whether an aligned model actually meets diverse safety, legal, and societal norms.

Methods

The authors structure LLM alignment into 7 major categories subdivided into 29 fine-grained sub-categories:

  1. Reliability (e.g., hallucination, miscalibration, sycophancy)
  2. Safety (e.g., violence, harms to minors, privacy leaks)
  3. Fairness (e.g., injustice, stereotype bias, disparate performance)
  4. Resistance to Misuse (e.g., cyberattacks, propaganda, copyright leakage)
  5. Explainability & Reasoning (e.g., interpretability, logical & causal reasoning)
  6. Social Norm (e.g., toxicity, emotion unawareness, cultural insensitivity)
  7. Robustness (e.g., prompt attacks, distribution shifts, poisoning)

To make evaluation scalable, the authors design automated and semi-automated measurement pipelines for 8 representative sub-categories. They leverage frontier LLMs (such as GPT-4) as evaluators/judges alongside keyword extraction and template formatting to test models without requiring hundreds of manual raters. Finally, they close the loop by demonstrating that the generated evaluation failure cases can be converted into Supervised Fine-Tuning (SFT) and Reinforcement Learning from Human Feedback (RLHF) datasets to directly improve weaker base models.

                  ┌───────────────────────────────┐
                  │      LLM Trustworthiness      │
                  └──────────────┬────────────────┘
     ┌──────────┬──────────┬─────┴────┬──────────┬──────────┬──────────┐
     ▼          ▼          ▼          ▼          ▼          ▼          ▼
Reliability   Safety    Fairness    Misuse    Reasoning   Norms    Robustness
 (5 subcats) (6 subcats)(4 subcats)(4 subcats)(3 subcats)(3 subcats)(4 subcats)

Datasets

The study evaluates models using both established benchmarks and newly generated task suites:

  • Hallucination: 300 QA samples from the public HaluEval benchmark formatted as multiple-choice questions.
  • Safety: 984 automatically generated adversarial prompts created by extracting keywords from Anthropic's red-team dataset via text-davinci-003 and manual curation.
  • Fairness (Gender Stereotypes): 361 newly synthesized multiple-choice questions forcing models to either pick a stereotypical assertion or select a neutral "refuse to answer" option.
  • Resistance to Misuse: 500 test instances evaluating refusal against cyberattack code, terrorism recruitment, celebrity smear campaigns, and extreme political propaganda.
  • Copyright Extraction: 1,000 prompt prefixes sampled from Harry Potter and the Philosopher’s Stone to assess verbatim text reconstruction.
  • Causal Reasoning: 300 event pairs generated via GPT-4 to test cause-and-effect understanding and counterfactual consistency.
  • Robustness: 1,000 sentences from the Justice dataset tested in clean format versus GPT-4-generated typo perturbations.

Key Insights and Ideas

  • Instruction-Following Can Be a Double-Edged Sword: Completely unaligned base models (davinci, OPT-1.3B) often appear to "pass" misuse or propaganda tests simply because they fail to follow the instructions and output nonsensical text. Once a model is instruction-tuned to be helpful without strong guardrails, its susceptibility to generating harmful content skyrockets.
  • Alignment Is Asymmetric Across Domains: Reinforcement learning has made models exceptionally good at catching overt safety violations, yet fairness lags significantly behind. GPT-4 and ChatGPT achieve near-100% refusal rates on overtly dangerous queries, but GPT-4 refuses gender-stereotypical prompts less than 60% of the time, often validating biased stereotypes.
  • Typo Fragility in Modern LLMs: Aligned models exhibit unexpected sensitivity to minor typographical errors. ChatGPT and GPT-4 frequently flip their judgment from "makes sense" to "does not make sense" when typos are present, likely defaulting to conservative rejection when prompts look erratic.
  • Memorization Breeds Inherent Copyright Risks: Alignment does not eliminate memorization. When queried greedily with text prefixes, both unaligned davinci (~20%) and aligned gpt-4 (~18%) output text with >90% sequence similarity to copyrighted passages.

Key Results

  • Safety: gpt-3.5-turbo and gpt-4 refuse unsafe prompts at rates approaching 100%, compared to <40% for unaligned base models.
  • Fairness: When tested against gender-stereotypical traps, all models struggle; even gpt-4 achieves a refusal rate of <60%.
  • Causal Reasoning: On necessary-cause counterfactual queries ($Q_2$), even gpt-4 achieves <70% accuracy.
  • Dataset Re-use for Alignment: Using the evaluation generation pipeline to generate training data:
  • SFT on GPT-2 resulted in 71% of responses preferred by GPT-4 over the vanilla base model.
  • SFT on LLaMA-7B resulted in 78% of aligned outputs preferred over the pre-trained base model.

Limitations and Future Work

  • LLM-as-a-Judge Caveats: Automating evaluations using GPT-4 introduces potential evaluator biases (e.g., self-preference and position bias), necessitating ongoing human audit validation.
  • Logit Inaccessibility: Because commercial frontier APIs hide token logits, measuring internal model calibration requires empirical workarounds (e.g., running multiple sampling passes, $k=20$), which provides only an approximation.
  • Need for Localized Alignment: The authors note that ethical and legal norms vary widely across geographic and cultural contexts, requiring localized alignment frameworks rather than a single global baseline.

Summary updated

BibTeX
@inproceedings{liu2023trustworthy,
  author = {Yang Liu and Yuanshun Yao and Jean-Francois Ton and Xiaoying Zhang and Ruocheng Guo and Hao Cheng and Yegor Klochkov and Muhammad Faaiz Taufiq and Hang Li},
  title = {{Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignment}},
  booktitle = {SoLaR @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=oss9uaPFfB},
}
Figure