A survey of safety and trustworthiness of large language models through the lens of verification and validation

Xiaowei Huang, Wenjie Ruan, Wei Huang, Gaojie Jin, Yi Dong, Changshun Wu, Saddek Bensalem, Ronghui Mu, Yi Qi, Xingyu Zhao, Kaiwen Cai, Yanghao Zhang, Sihao Wu, Peipei Xu, Dengyu Wu, André Freitas, Mustafa A. Mustafa

Introduction

The rapid evolution of Large Language Models (LLMs) has transformed them from experimental conversational agents into critical components of industrial and digital infrastructure. However, this deployment has outpaced our fundamental understanding of their safety and reliability. Unlike traditional software systems, LLMs are "black boxes" with billions of parameters, making them resistant to standard debugging and quality assurance techniques. This paper, published in Artificial Intelligence Review (2024), explores the landscape of LLM vulnerabilities and proposes a rigorous framework for AI assurance rooted in Verification and Validation (V&V).

The Landscape of LLM Vulnerabilities

The transition of LLMs into high-stakes environments necessitates a clear understanding of where they fail. The authors categorize these failures into three primary domains:

  1. Inherent Issues: These are fundamental limitations of the model architecture or training process, including hallucinations, reasoning errors, and the significant environmental costs associated with their training and operation.
  2. Intended Attacks: Malicious interventions such as prompt injection (jailbreaking), data poisoning during training, or the insertion of "backdoors" that allow attackers to bypass safety filters.
  3. Unintended Bugs: Accidental failures, such as privacy leaks (e.g., exposing user history) and the manifestation of deep-seated social biases present in the training data.

To address these, the paper maps these vulnerabilities across the entire LLM lifecycle, from pre-training to deployment.

The LLM lifecycle and associated vulnerabilities, highlighting stages where backdoors, poisoning, and other risks emerge.

A Framework for AI Assurance

The core proposal of the paper is a shift from ad-hoc "tinkering" to a systematic AI Assurance lifecycle. This approach integrates V&V principles at every stage of development to provide provable guarantees of model behavior.

The AI Assurance cycle, illustrating the continuous process of verification, validation, monitoring, and enhancement.

The proposed framework rests on four pillars:

  • Falsification and Evaluation: This involves "Red Teaming"—actively attempting to break the model to find failure cases—and using statistical testing to quantify the probability of such failures.
  • Formal Verification: The authors advocate for mathematical techniques like Interval Bound Propagation and Abstract Interpretation. While these offer provable robustness guarantees, scaling them to trillion-parameter models remains a significant research challenge.
  • Runtime Monitoring: Since pre-deployment testing cannot catch everything, "Guardrails" are essential. These monitors analyze inputs and outputs in real-time to detect Out-of-Distribution (OoD) data or malicious prompts before they reach the user.
  • Regulations and Ethics: Technical V&V must align with emerging legal frameworks, such as the EU AI Act and GDPR, to ensure organizational accountability and ethical deployment.

Key Insights and Challenges

The survey highlights several critical hurdles in the path toward trustworthy AI:

The Logic and Reasoning Gap

Despite their impressive linguistic capabilities, even state-of-the-art models like GPT-4 struggle with basic logic. A notable example cited is a simple kinship puzzle: "Adam’s wife is Eve. Adam’s daughter is Alice. Who is Alice to Eve?" Many models incorrectly identify Alice as the "granddaughter," revealing a lack of true semantic understanding.

The Helpfulness-Harmlessness Trade-off

Through techniques like Reinforcement Learning from Human Feedback (RLHF), developers attempt to align models with human values. However, there is a documented tension: increasing a model's safety (harmlessness) often leads to a decrease in its utility (helpfulness), as the model becomes overly cautious and prone to "refusal" errors.

Non-Determinism

A major "V&V nightmare" is the non-deterministic nature of LLMs. Unlike traditional neural networks that provide a static mapping, an LLM might provide different answers to the same prompt. This variability makes standard verification techniques, which rely on consistency, difficult to apply.

Sustainability as a Safety Concern

The paper quantifies the massive energy requirements of these models. Training GPT-4 is estimated to have consumed between 51,772 and 62,318 MWh—roughly 0.05% of the annual energy consumption of the entire Bitcoin network. The authors argue that sustainability should be treated as a core safety and ethical issue.

Conclusion and Future Directions

The survey concludes that the research community must move from an "extensive mode" of development—simply adding more data and compute—to an "intensive mode" focused on efficiency and provable safety. Key future directions include improving the scalability of formal verification, increasing the transparency of closed-source models for independent auditing, and standardizing definitions for complex concepts like "Out-of-Distribution" data in the context of models trained on the entire internet. By adopting a rigorous engineering approach, we can ensure that LLMs become as reliable as the traditional software systems they are beginning to augment.

Summary updated

BibTeX
@article{huang2024survey,
  author = {Xiaowei Huang and Wenjie Ruan and Wei Huang and Gaojie Jin and Yi Dong and Changshun Wu and Saddek Bensalem and Ronghui Mu and Yi Qi and Xingyu Zhao and Kaiwen Cai and Yanghao Zhang and Sihao Wu and Peipei Xu and Dengyu Wu and André Freitas and Mustafa A. Mustafa},
  title = {{A survey of safety and trustworthiness of large language models through the lens of verification and validation}},
  journal = {Artif. Intell. Rev.},
  year = {2024},
  doi = {10.1007/s10462-024-10824-0},
}
Figure