Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systems

Tianyu Cui, Yanling Wang, Chuanpu Fu, Yong Xiao, Sijia Li, Xinhao Deng, Yunpeng Liu, Qinglin Zhang, Ziyi Qiu, Peiyang Li, Zhixing Tan, Junwu Xiong, Xinyu Kong, Zujie Wen, Ke Xu, Qi LiarXiv 2024

Abstract

Large language models (LLMs) have strong capabilities in solving diverse natural language processing tasks. However, the safety and security issues of LLM systems have become the major obstacle to their widespread application. Many studies have extensively investigated risks in LLM systems and developed the corresponding mitigation strategies. Leading-edge enterprises such as OpenAI, Google, Meta, and Anthropic have also made lots of efforts on responsible LLMs. Therefore, there is a growing need to organize the existing studies and establish comprehensive taxonomies for the community. In this paper, we delve into four essential modules of an LLM system, including an input module for receiving prompts, a language model trained on extensive corpora, a toolchain module for development and deployment, and an output module for exporting LLM-generated content. Based on this, we propose a comprehensive taxonomy, which systematically analyzes potential risks associated with each module of an LLM system and discusses the corresponding mitigation strategies. Furthermore, we review prevalent benchmarks, aiming to facilitate the risk assessment of LLM systems. We hope that this paper can help LLM participants embrace a systematic perspective to build their responsible LLM systems.

Introduction: Beyond Output Symptoms

While Large Language Models (LLMs) like GPT-4 and Llama 3 are transformative, they are "dual-use" technologies—capable of immense utility but also significant harm. Most existing research focuses on the "symptoms" of model failure, such as toxic output, rather than the "root causes" embedded within the broader system architecture.

Overview of the LLM system architecture, highlighting the interaction between modules, external tools, and the risk assessment process.

A privacy leak, for instance, might stem from training data memorization, but it could just as easily arise from a vulnerability in a software library within the deployment environment. To build truly responsible AI, we must adopt a holistic view that encompasses the entire system, including the Toolchain (software/hardware) and the Input/Output safeguards.

A Module-Oriented Risk Taxonomy

The core contribution of this work is a Module-Oriented Taxonomy that decomposes an LLM system into four functional modules, identifying unique risks associated with each:

  1. Input Module: Focuses on user-provided prompts. Primary risks include Not-Suitable-for-Work (NSFW) content and Adversarial Prompts such as Goal Hijacking, Prompt Leaking, and Jailbreaking.
  2. Language Model Module: The heart of the system, comprising weights and training data. Risks include Privacy Leakage (memorization/association), Toxicity and Bias, Hallucinations, and Model Attacks (extraction, poisoning, and evasion).
  3. Toolchain Module: Often overlooked in safety literature, this includes Software Security (vulnerabilities in frameworks), Hardware Vulnerabilities (GPU side-channels), and External Tool Issues (malicious APIs).
  4. Output Module: The final interface. Risks involve Harmful Content, Untruthful Content, and Unhelpful Uses (e.g., facilitating cyberattacks).
A detailed module-oriented taxonomy mapping 12 major risks and 44 sub-topics across the LLM system lifecycle.

Key Insights and Systemic Vulnerabilities

  • The Toolchain as a "Silent" Risk: A critical finding is the vulnerability of the infrastructure. An LLM can be perfectly aligned, but if the underlying hardware or the software supply chain (CI/CD pipelines) is compromised, the entire system becomes insecure.
  • Multi-Layered Hallucinations: The paper distinguishes between Input-Conflicting (deviating from user instructions), Context-Conflicting (internal inconsistency), and Fact-Conflicting hallucinations. Each requires distinct mitigation strategies, such as Retrieval-Augmented Generation (RAG) versus adjustments to decoding strategies.
  • The Mitigation Trade-off: Many defenses, such as Differential Privacy (DP) or strict detoxification, often impose a performance "tax." Finding the Pareto frontier between safety and utility remains a primary challenge for developers.
  • Evolution of Jailbreaking: There is a notable shift from "one-step" jailbreaks (simple role-playing) to "multi-step" jailbreaks that use complex request contextualizing to bypass safeguards over extended conversations.

Benchmarking and Mitigation Strategies

The paper provides a meta-analysis of over 24 major benchmarks to evaluate LLM safety. Key datasets include:

  • Robustness: PromptBench, AdvGLUE, and BOSS.
  • Truthfulness/Hallucination: TruthfulQA, HaluEval, and Med-HALT.
  • Ethics/Toxicity: ToxiGen, COLD, and SafetyPrompts.
  • Bias: BOLD, StereoSet, and HOLISTICBIAS.

While models like ChatGPT show superior robustness in general benchmarks, they still exhibit significant "external hallucinations" in specialized domains like medicine. Mitigation strategies surveyed range from RLHF and watermarking to "Control-flow Integrity" for software security.

Conclusion and Future Directions

Despite progress, several gaps remain. There is a significant Interpretability Gap; we do not yet fully understand the mechanistic causes of hallucinations. Furthermore, as LLMs evolve into autonomous agents, the risk of Goal Hijacking becomes more acute, necessitating real-time anomaly detection. Future work must also focus on more efficient data intervention and the development of robust, "unbreakable" text watermarks that can survive paraphrasing attacks.

Summary updated

BibTeX
@misc{cui2024risk,
  author = {Tianyu Cui and Yanling Wang and Chuanpu Fu and Yong Xiao and Sijia Li and Xinhao Deng and Yunpeng Liu and Qinglin Zhang and Ziyi Qiu and Peiyang Li and Zhixing Tan and Junwu Xiong and Xinyu Kong and Zujie Wen and Ke Xu and Qi Li},
  title = {{Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systems}},
  year = {2024},
  eprint = {2401.05778},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.05778},
}
Figure