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 · OpenReview

Abstract

Ensuring alignment, which refers to making models behave in accordance with human intentions, has become a critical task before deploying large language models (LLMs) in real-world applications. For instance, OpenAI devoted six months to iteratively aligning GPT-4 before its release. However, a major challenge faced by practitioners is the lack of clear guidance on evaluating whether LLM outputs align with social norms, values, and regulations. This obstacle hinders systematic iteration and deployment of LLMs. To address this issue, this paper presents a comprehensive survey of key dimensions that are crucial to consider when assessing LLM trustworthiness. The survey covers seven major categories of LLM trustworthiness: reliability, safety, fairness, resistance to misuse, explainability and reasoning, adherence to social norms, and robustness. Each major category is further divided into several sub-categories, resulting in a total of 29 sub-categories. Additionally, a subset of 8 sub-categories is selected for further investigation, where corresponding measurement studies are designed and conducted on several widely-used LLMs. The measurement results indicate that, in general, more aligned models tend to perform better in terms of overall trustworthiness. However, the effectiveness of alignment varies across the different trustworthiness categories considered. This highlights the importance of conducting more fine-grained analyses, testing, and making continuous improvements on LLM alignment.

Introduction

We are currently in an "arms race" of LLM development, but our ability to evaluate whether these models are actually safe, fair, and reliable hasn't kept pace. While we know that "alignment"—the process of making models follow human values—is important, there is no industry-standard framework for measuring it. Practitioners often play a game of "whack-a-mole," fixing one toxic output only to find a new bias elsewhere. This paper tackles the lack of clear, fine-grained guidance for evaluating LLM alignment across social norms, ethics, and regulations. It moves beyond simple "helpful, honest, and harmless" (HHH) metrics to a more rigorous, multi-dimensional assessment.

A Hierarchical Taxonomy of Trustworthiness

The core contribution of this work is a hierarchical taxonomy of LLM trustworthiness consisting of 7 major categories and 29 sub-categories. This framework provides a structured "safety manual" for practitioners to evaluate models beyond surface-level performance.

The 7 pillars and 29 sub-categories of LLM trustworthiness.

These categories include:

  1. Reliability: Addressing misinformation, hallucinations, and inconsistency.
  2. Safety: Preventing outputs related to violence, unlawful conduct, and mental health issues.
  3. Fairness: Mitigating injustice and stereotype biases.
  4. Resistance to Misuse: Protecting against propagandistic, cyberattack, and social-engineering misuse.
  5. Explainability & Reasoning: Evaluating the logic and interpretability of model outputs.
  6. Social Norm: Ensuring adherence to cultural sensitivities and emotional awareness.
  7. Robustness: Testing resilience against prompt attacks and distribution shifts.

Evaluation Methodology

To demonstrate the utility of this framework, the authors designed a series of case studies using an automated evaluation pipeline. Instead of relying solely on expensive human labeling, they leveraged high-performing models (like GPT-4) to act as "judges" for the outputs of other models. Their testing methodology involved keyword extraction from existing datasets, prompt generation using middle-tier models, and target querying of 6-8 different LLMs ranging from unaligned base models to heavily aligned ones.

The study utilized several key data sources, including the Anthropic Red-team Dataset, the Justice Dataset for robustness, and HaluEval for hallucinations. Furthermore, the authors demonstrated that their evaluation prompts could be converted into training data to successfully fine-tune models like GPT-2 and Llama-7B.

Key Insights: The Nuances of Alignment

Through extensive testing of models like GPT-4 and Llama-2, the authors reveal that while alignment techniques (like RLHF) significantly improve safety, they can be a double-edged sword.

Comparison of unaligned GPT-3 and aligned ChatGPT responses to harmful and benign prompts.
  • The "Curse" of Alignment: One striking finding is that alignment can make models more dangerous in certain contexts. Because aligned models are better at following instructions, they are more "usable." If an attacker bypasses a safety filter, an aligned model might provide a much more coherent plan for a cyberattack than an unaligned model would.
  • The Fairness Gap: Even advanced models like GPT-4 struggle with fairness. While they refuse "unethical" questions, they often fall into subtle gender or racial stereotypes when presented in multiple-choice formats.
  • Fragile Robustness: Models that seem perfectly aligned can be easily broken by simple typos. A model might refuse a criminal request in perfect English but comply if the prompt uses "leetspeak" or grammatical errors.
  • Data Dependency: The effectiveness of alignment varies wildly across categories. A model might be "safe" regarding violence but "unreliable" regarding medical misinformation, likely reflecting imbalances in the human-labeled data used during the alignment process.

Results and Conclusion

The evaluation of models including davinci (base), OPT-1.3B, text-davinci-003, flan-t5-xxl, ChatGPT, and GPT-4 showed that heavily aligned models reached nearly 100% refusal rates for unsafe prompts. However, fairness remains the "weakest link," with GPT-4 showing less than a 60% refusal rate for gender-stereotypical questions.

While the use of GPT-4 as a judge introduces potential circular bias, this survey provides a vital foundation for future work. The authors suggest moving toward more "principled" alignment methods that rely on underlying logical and ethical constraints rather than just human feedback. By shedding light on these key dimensions, this paper aims to guide the reliable and ethically sound deployment of LLMs.

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