TrustLLM: Trustworthiness in Large Language Models

Yue Huang, Lichao Sun, Haoran Wang, Siyuan Wu, Qihui Zhang, Yuan Li, Chujie Gao, Yixin Huang, Wenhan Lyu, Yixuan Zhang, Xiner Li, Zhengliang Liu, Yixin Liu, Yijue Wang, Zhikun Zhang, Bertie Vidgen, Bhavya Kailkhura, Caiming Xiong, Chaowei Xiao, Chunyuan Li, Eric Xing, Furong Huang, Hao Liu, Heng Ji, Hongyi Wang, Huan Zhang, Huaxiu Yao, Manolis Kellis, Marinka Zitnik, Meng Jiang, Mohit Bansal, James Zou, Jian Pei, Jian Liu, Jianfeng Gao, Jiawei Han, Jieyu Zhao, Jiliang Tang, Jindong Wang, Joaquin Vanschoren, John Mitchell, Kai Shu, Kaidi Xu, Kai-Wei Chang, Lifang He, Lifu Huang, Michael Backes, Neil Zhenqiang Gong, Philip S Yu, Pin-Yu Chen, Quanquan Gu, Ran Xu, Rex Ying, Shuiwang Ji, Suman Jana, Tianlong Chen, Tianming Liu, Tianyi Zhou, William Wang, Xiang Li, Xiangliang Zhang, Xiao Wang, Xing Xie, Xun Chen, Xuyu Wang, Yan Liu, Yanfang Ye, Yinzhi Cao, Yong Chen, Yue ZhaoFlorida International University - Symplectic Elements 2024 · DOI

Introduction

As Large Language Models (LLMs) transition from experimental novelties to foundational infrastructure in sectors like finance, law, and healthcare, a significant "trust gap" has emerged. While these models demonstrate remarkable capabilities, their reliability and safety remain inconsistent. Existing evaluations often focus on isolated issues, such as hallucinations or jailbreaking, lacking a unified framework. TrustLLM addresses this by providing a comprehensive benchmark and a standardized "ranking card" to evaluate the trustworthiness of 16 mainstream models across eight critical dimensions.

Methodology

The TrustLLM framework is built upon a systematic review of over 600 papers, distilling trustworthiness into eight core facets: Truthfulness, Safety, Fairness, Robustness, Privacy, Machine Ethics, Transparency, and Accountability.

The benchmark employs a dual-task approach:

  1. Classification Tasks: Evaluating the model's ability to identify problematic content (e.g., "Is this statement a stereotype?").
  2. Generation Tasks: Testing the model's response to challenging prompts (e.g., "Write a response to this malicious prompt").

To ensure scalability, the researchers utilized an "LLM-as-a-judge" approach, employing high-performing models like GPT-4 and specialized classifiers to evaluate outputs. Testing also involved varying "temperature" settings—using 0 for logic-based tasks to ensure consistency and 1 for safety tasks to elicit potential worst-case behaviors.

Datasets and Benchmarking

TrustLLM leverages over 30 datasets, combining established benchmarks with novel contributions:

  • Standard Benchmarks: TruthfulQA for truthfulness, AdvGLUE for robustness, and the ETHICS dataset for machine ethics.
  • Jailbreak Trigger: A new collection of 13 attack types (e.g., persona adoption, leetspeak) designed to bypass safety filters.
  • Adversarial Factuality: Prompts containing intentional misinformation to test if models can correct users.
  • Privacy Awareness: Scenarios assessing whether models recognize and refuse requests for sensitive data, such as bank account numbers.

Key Results and Comparative Analysis

The evaluation revealed a clear distinction between proprietary and open-weight models, as well as a strong correlation between general intelligence and trustworthiness.

Comprehensive evaluation of proprietary and open-weight LLMs across trustworthiness dimensions.

Major Findings:

  • The "Smart-Trust" Correlation: Models with higher utility and language understanding (e.g., GPT-4) generally perform better at identifying and rejecting unethical or biased prompts.
  • The Over-Alignment Trap: A significant discovery was the phenomenon of "exaggerated safety." Some models have become so cautious that they refuse harmless requests. For instance, Llama2-7b refused 57% of benign prompts (e.g., "How can I kill a Windows process?").
  • Fairness Challenges: Fairness remains a difficult frontier. Even GPT-4 achieved only 65% accuracy in stereotype recognition, indicating that most models struggle with subtle biases.
  • Privacy and Safety: Open-source models lag in safety; Baichuan-13b failed to reject harmful instructions in 70% of cases. Furthermore, testing on the Enron Email Dataset showed that nearly all models are susceptible to information leakage, such as predicting real email addresses.
  • Truthfulness and External Knowledge: While models struggle with internal knowledge, the integration of External Knowledge (Retrieval-Augmented Generation) significantly improved truthfulness across all tested models.

Discussion and Future Directions

While TrustLLM provides a robust foundation, several challenges remain. The current benchmark is primarily English-centric, potentially overlooking cultural nuances in trustworthiness. Additionally, LLMs exhibit high sensitivity to prompt phrasing, making "perfect" benchmarking elusive.

Future work will need to expand into multimodal domains (vision and audio) to address emerging threats like deepfakes and biometric privacy. Furthermore, qualitative facets like Transparency and Accountability require more sophisticated policy-based research to be effectively quantified. By releasing the dataset and a live leaderboard, the authors aim to establish trustworthiness as a primary metric in LLM development.

Summary updated

BibTeX
@misc{huang2024trustllm,
  author = {Yue Huang and Lichao Sun and Haoran Wang and Siyuan Wu and Qihui Zhang and Yuan Li and Chujie Gao and Yixin Huang and Wenhan Lyu and Yixuan Zhang and Xiner Li and Zhengliang Liu and Yixin Liu and Yijue Wang and Zhikun Zhang and Bertie Vidgen and Bhavya Kailkhura and Caiming Xiong and Chaowei Xiao and Chunyuan Li and Eric Xing and Furong Huang and Hao Liu and Heng Ji and Hongyi Wang and Huan Zhang and Huaxiu Yao and Manolis Kellis and Marinka Zitnik and Meng Jiang and Mohit Bansal and James Zou and Jian Pei and Jian Liu and Jianfeng Gao and Jiawei Han and Jieyu Zhao and Jiliang Tang and Jindong Wang and Joaquin Vanschoren and John Mitchell and Kai Shu and Kaidi Xu and Kai-Wei Chang and Lifang He and Lifu Huang and Michael Backes and Neil Zhenqiang Gong and Philip S Yu and Pin-Yu Chen and Quanquan Gu and Ran Xu and Rex Ying and Shuiwang Ji and Suman Jana and Tianlong Chen and Tianming Liu and Tianyi Zhou and William Wang and Xiang Li and Xiangliang Zhang and Xiao Wang and Xing Xie and Xun Chen and Xuyu Wang and Yan Liu and Yanfang Ye and Yinzhi Cao and Yong Chen and Yue Zhao},
  title = {{TrustLLM: Trustworthiness in Large Language Models}},
  year = {2024},
  eprint = {2401.05561},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.05561},
}
Figure