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

This paper provides a comprehensive roadmap for making Large Language Models (LLMs) trustworthy by defining a fine-grained taxonomy of alignment across seven key dimensions: reliability, safety, fairness, resistance to misuse, explainability, social norms, and robustness. The authors demonstrate that while alignment techniques like RLHF improve general behavior, they do not provide uniform protection across all categories, highlighting the need for more targeted and rigorous evaluation frameworks.

What Problem Does This Paper Address?

As LLMs move from research labs to real-world applications, "alignment"—the process of ensuring models act in accordance with human intentions and values—has become the primary bottleneck for deployment. While models are increasingly capable of following instructions, they often fail in subtle, dangerous ways: they hallucinate facts, exhibit social biases, or can be easily "jailbroken" to provide harmful information.

The core challenge is that practitioners lack a unified, principled guideline for what "trustworthiness" actually looks like and how to measure it. Without a clear taxonomy, evaluation remains ad-hoc and inconsistent. This paper seeks to fill that gap by providing a systematic survey and a practical measurement guideline.

Figure 1: An example to show the difference between the outputs before and after alignment. Not only the answer is more aligned with human values, but also the model is more usable by following human instructions more often. Access: June 2023.

Methods

The authors propose a hierarchical taxonomy of LLM trustworthiness consisting of 7 major categories and 29 sub-categories.

The proposed taxonomy of LLM trustworthiness, covering seven major pillars.

To move beyond theory, they designed measurement studies for 8 specific sub-categories. Their evaluation methodology leverages a "LLM-as-a-judge" approach:

  1. Automated Prompt Generation: Using models like text-davinci-003 to generate diverse, challenging test prompts (e.g., "Write an unethical question about revenge").
  2. Target Model Testing: Running these prompts against a suite of models including GPT-4, ChatGPT, GPT-3, OPT-1.3B, and FLAN-T5.
  3. Automated Labeling: Using a highly capable model (GPT-4) to evaluate whether the target model's response was safe, fair, or accurate, supplemented by human audits to ensure credibility.

The paper also discusses the standard alignment pipeline, involving Supervised Fine-Tuning (SFT) and Reinforcement Learning from Human Feedback (RLHF).

Figure 2: The standard three-step procedure for LLM alignment: SFT, Reward Model training, and RLHF.

Datasets

The study utilizes several existing benchmarks and introduces custom-generated datasets for specific alignment tasks:

  • Anthropic Red-team Dataset: Used to extract safety-related keywords and categories.
  • HaluEval: A large-scale benchmark used to evaluate hallucinations.
  • Justice Dataset: Used to test robustness against prompt typos and social fairness.
  • CORR2CAUSE: Used to evaluate causal reasoning capabilities.
  • Custom Misuse/Fairness Prompts: The authors generated hundreds of new test samples for propagandistic misuse, cyberattack assistance, and gender stereotypes.

Key Insights and Ideas

  • The Instruction-Following Paradox: There is a tension between usability and safety. Improving a model's ability to follow instructions (SFT) without specific safety guardrails can actually make it a more effective tool for malicious use, such as generating propaganda or cyberattack code.
  • Alignment is Data-Dependent: Models often perform well in categories where alignment data is abundant (like violence) but fail in "long-tail" categories where data is sparse (like child abuse or self-harm).
  • Internal vs. External Mismatch: Models are often "miscalibrated." A model might state it is 100% certain of an answer in text, while its internal probability distribution (logits) shows significant uncertainty.
  • The "Unaligned Advantage": Ironically, completely unaligned models (like the original GPT-3 davinci) sometimes appear "safer" in misuse tests simply because they are too incompetent to follow complex malicious instructions, often outputting nonsensical text instead.

Key Results

  • General Performance: GPT-4 consistently outperformed other models across most trustworthiness dimensions, particularly in safety and hallucination resistance.
  • Causal Reasoning Gap: Even GPT-4 struggled with complex causal reasoning, achieving less than 70% accuracy on tasks requiring it to identify necessary causes in counterfactual scenarios.
  • Copyright Leakage: Alignment does little to prevent copyright infringement. The study found that davinci had a 20% chance of emitting highly similar text to Harry Potter, and even the well-aligned GPT-4 maintained an 18% chance.
  • Robustness Vulnerability: All models showed a significant drop in consistency when faced with simple typos. ChatGPT and GPT-4 were surprisingly vulnerable, often refusing to answer typo-ridden questions they could otherwise solve.

Limitations and Future Work

The authors acknowledge that their taxonomy is not exhaustive and that the "LLM-as-a-judge" method, while scalable, can introduce its own biases. They highlight several "Open Problems" for the community:

  • Is RLHF truly the optimal approach, or are there more efficient alternatives?
  • How do we build alignment data that isn't just a reflection of the labelers' personal viewpoints?
  • Which trustworthiness challenges are fundamentally solvable through alignment versus those that require architectural changes?

Future work will focus on expanding the taxonomy and developing more principled, human-in-the-loop evaluation methods to ensure LLMs remain reliable as they become more integrated into society.

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