Swiss Cheese Model for AI Safety: A Taxonomy and Reference Architecture for Multi-Layered Guardrails of Foundation Model Based Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
Foundation Model (FM)-based agents are revolutionizing application development across various domains. However, their rapidly growing capabilities and autonomy have raised significant concerns about AI safety. Researchers are exploring better ways to design guardrails to ensure that the runtime behavior of FM-based agents remains within specific boundaries. Nevertheless, designing effective runtime guardrails is challenging due to the agents' autonomous and non-deterministic behavior. The involvement of multiple pipeline stages and agent artifacts, such as goals, plans, tools, at runtime further complicates these issues. Addressing these challenges at runtime requires multi-layered guardrails that operate effectively at various levels of the agent architecture. Therefore, in this paper, based on the results of a systematic literature review, we present a comprehensive taxonomy of runtime guardrails for FM-based agents to identify the key quality attributes for guardrails and design dimensions. Inspired by the Swiss Cheese Model, we also propose a reference architecture for designing multi-layered runtime guardrails for FM-based agents, which includes three dimensions: quality attributes, pipelines, and artifacts. The proposed taxonomy and reference architecture provide concrete and robust guidance for researchers and practitioners to build AI-safety-by-design from a software architecture perspective.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 40 of its 69 references that are in the map. First posted on arXiv 5 Aug 2024.
Builds on
40 of 69 references.
Closest ancestors · 2
Same direction, newest first
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
- 2024GuardAgent: Safeguard LLM Agents by a Guard Agent via Knowledge-Enabled Reasoning13 Jun
Other references · 38
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2023A Survey on Evaluation of Large Language Modelscited by 1,227
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMscited by 533
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 505
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
- 2023A Survey of Hallucination in Large Foundation Modelscited by 365
- 2023A Comprehensive Survey on Pretrained Foundation Models: A History from BERT to ChatGPTcited by 364
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 347
26 more
- 2023Certifying LLM Safety against Adversarial Promptingcited by 248
- 2024Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modificationscited by 220
- 2022Talking About Large Language Modelscited by 174
- 2023Sociotechnical Safety Evaluation of Generative AI Systemscited by 154
- 2023Auditing large language models: a three-layered approachcited by 135
- 2023Frontier AI Regulation: Managing Emerging Risks to Public Safetycited by 95
- 2024Towards Guaranteed Safe AI: A Framework for Ensuring Robust and Reliable AI Systemscited by 94
- 2023CodeHelp: Using Large Language Models with Guardrails for Scalable Support in Programming Classescited by 71
- 2017On Formalizing Fairness in Prediction with Machine Learningcited by 65
- 2024RigorLLM: Resilient Guardrails for Large Language Models against Undesired Contentcited by 65
- 2024Building Guardrails for Large Language Modelscited by 61
- 2024Risks of AI Scientists: Prioritizing Safeguarding Over Autonomycited by 49
- 2024PRP: Propagating Universal Perturbations to Attack Large Language Model Guard-Railscited by 49
- 2024ShieldLM: Empowering LLMs as Aligned, Customizable and Explainable Safety Detectorscited by 48
- 2024Current state of LLM Risks and AI Guardrailscited by 44
- 2024The Ethics of Interaction: Mitigating Security Threats in LLMscited by 30
- 2024How (un)ethical are instruction-centric responses of LLMs? Unveiling the vulnerabilities of safety guardrails to harmful queriescited by 26
- 2020Model Assertions for Monitoring and Improving ML Modelscited by 22
- 2024A Causal Explainable Guardrails for Large Language Modelscited by 18
- 2023Towards Responsible Generative AI: A Reference Architecture for Designing Foundation Model based Agentscited by 13
- 2024LLMGuard: Guarding Against Unsafe LLM Behaviorcited by 10
- 2024Segment Anything Model Can Not Segment Anything: Assessing AI Foundation Model's Generalizability in Permafrost Mappingcited by 9
- 2023Silent Guardian: Protecting Text from Malicious Exploitation by Large Language Modelscited by 8
- 2023A Taxonomy of Foundation Model based Systems through the Lens of Software Architecturecited by 6
- 2023Adding guardrails to advanced chatbotscited by 5
- 2023GuardRails: Automated Suggestions for Clarifying Ambiguous Purpose Statementscited by 1
Built on by
Citing papers per year: 2024: 4; 2025: 3; 2026: 6.
13 papers.
Sort:
By area:
- 2024AgentOps: Enabling Observability of LLM Agentscited by 46
- 2024Noise Injection Reveals Hidden Capabilities of Sandbagging Language Modelscited by 22
- 2024Evaluation-Driven Development and Operations of LLM Agents: A Process Model and Reference Architecturecited by 10
- 2025Optimizing Retrieval Strategies for Financial Question Answering Documents in Retrieval-Augmented Generation Systemscited by 9
- 2025Bridging AI and Software Security: A Comparative Vulnerability Assessment of LLM Agent Deployment Paradigmscited by 7
- 2024A Layered Architecture for Developing and Enhancing Capabilities in Large Language Model-based Software Systemscited by 1
- 2026Position: A Three-Layer Probabilistic Assume-Guarantee Architecture Is Structurally Required for Safe LLM Agent Deploymentcited by 1
- 2025DOCUEVAL: An LLM-based AI Engineering Tool for Building Customisable Document Evaluation Workflowscited by 0
- 2026Toward a Sustainable Software Architecture Community: Evaluating ICSA's Environmental Impactcited by 0
- 2026Governed Capability Evolution: Lifecycle-Time Compatibility Checking and Rollback for AI-Component-Based Systems, with a Proof-of-Concept Evaluation on Embodied Agentscited by 0
- 2026AutoSpec: Safety Rule Evolution for LLM Agents via Inductive Logic Programmingcited by 0
- 2026Persona-as-Configuration: Generative Stakeholder Reporting for Agricultural Floodscited by 0
1 more
- 2026Value-Preserving Architectures for Agentic AI Systemscited by 0
- 2026Value-Preserving Architectures for Agentic AI Systems3 Sep 2026
- 2026Persona-as-Configuration: Generative Stakeholder Reporting for Agricultural Floods20 Jul 2026
- 2026AutoSpec: Safety Rule Evolution for LLM Agents via Inductive Logic Programming23 Jun 2026
- 2026Position: A Three-Layer Probabilistic Assume-Guarantee Architecture Is Structurally Required for Safe LLM Agent Deployment18 May 2026
- 2026Governed Capability Evolution: Lifecycle-Time Compatibility Checking and Rollback for AI-Component-Based Systems, with a Proof-of-Concept Evaluation on Embodied Agents9 Apr 2026
- 2026Toward a Sustainable Software Architecture Community: Evaluating ICSA's Environmental Impact5 Apr 2026
- 2025DOCUEVAL: An LLM-based AI Engineering Tool for Building Customisable Document Evaluation Workflows12 Sep 2025
- 2025Bridging AI and Software Security: A Comparative Vulnerability Assessment of LLM Agent Deployment Paradigms8 Jul 2025
- 2025Optimizing Retrieval Strategies for Financial Question Answering Documents in Retrieval-Augmented Generation Systems19 Mar 2025
- 2024Noise Injection Reveals Hidden Capabilities of Sandbagging Language Models2 Dec 2024
- 2024Evaluation-Driven Development and Operations of LLM Agents: A Process Model and Reference Architecture21 Nov 2024
- 2024A Layered Architecture for Developing and Enhancing Capabilities in Large Language Model-based Software Systems19 Nov 2024
1 more
- 2024AgentOps: Enabling Observability of LLM Agents8 Nov 2024
- 2024AgentOps: Enabling Observability of LLM Agentscited by 46
- 2024Evaluation-Driven Development and Operations of LLM Agents: A Process Model and Reference Architecturecited by 10
- 2025Bridging AI and Software Security: A Comparative Vulnerability Assessment of LLM Agent Deployment Paradigmscited by 7
- 2026Position: A Three-Layer Probabilistic Assume-Guarantee Architecture Is Structurally Required for Safe LLM Agent Deploymentcited by 1
- 2026AutoSpec: Safety Rule Evolution for LLM Agents via Inductive Logic Programmingcited by 0
- 2026Value-Preserving Architectures for Agentic AI Systemscited by 0
- 2026Value-Preserving Architectures for Agentic AI Systems3 Sep 2026
- 2026AutoSpec: Safety Rule Evolution for LLM Agents via Inductive Logic Programming23 Jun 2026
- 2026Position: A Three-Layer Probabilistic Assume-Guarantee Architecture Is Structurally Required for Safe LLM Agent Deployment18 May 2026
- 2025Bridging AI and Software Security: A Comparative Vulnerability Assessment of LLM Agent Deployment Paradigms8 Jul 2025
- 2024Evaluation-Driven Development and Operations of LLM Agents: A Process Model and Reference Architecture21 Nov 2024
- 2024AgentOps: Enabling Observability of LLM Agents8 Nov 2024
- 2024Noise Injection Reveals Hidden Capabilities of Sandbagging Language Modelscited by 22
- 2024A Layered Architecture for Developing and Enhancing Capabilities in Large Language Model-based Software Systemscited by 1
- 2025DOCUEVAL: An LLM-based AI Engineering Tool for Building Customisable Document Evaluation Workflowscited by 0
- 2026Toward a Sustainable Software Architecture Community: Evaluating ICSA's Environmental Impactcited by 0
- 2026Governed Capability Evolution: Lifecycle-Time Compatibility Checking and Rollback for AI-Component-Based Systems, with a Proof-of-Concept Evaluation on Embodied Agentscited by 0
- 2026Persona-as-Configuration: Generative Stakeholder Reporting for Agricultural Floodscited by 0
- 2026Persona-as-Configuration: Generative Stakeholder Reporting for Agricultural Floods20 Jul 2026
- 2026Governed Capability Evolution: Lifecycle-Time Compatibility Checking and Rollback for AI-Component-Based Systems, with a Proof-of-Concept Evaluation on Embodied Agents9 Apr 2026
- 2026Toward a Sustainable Software Architecture Community: Evaluating ICSA's Environmental Impact5 Apr 2026
- 2025DOCUEVAL: An LLM-based AI Engineering Tool for Building Customisable Document Evaluation Workflows12 Sep 2025
- 2024Noise Injection Reveals Hidden Capabilities of Sandbagging Language Models2 Dec 2024
- 2024A Layered Architecture for Developing and Enhancing Capabilities in Large Language Model-based Software Systems19 Nov 2024
Similar, not cited
Close in wording, no citation either way
- 2025LlamaFirewall: An open source guardrail system for building secure AI agents
- 2026AgentDoG: A Diagnostic Guardrail Framework for AI Agent Safety and Security
- 2026DreamGuard: Efficient Runtime Guardrail for LLM Agents via Risk-Aware World Model
- 2026SafeAgent: A Runtime Protection Architecture for Agentic Systems
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection
- 2025ShieldAgent: Shielding Agents via Verifiable Safety Policy Reasoning
- 2024A Taxonomy of Architecture Options for Foundation Model-based Agents: Analysis and Decision Model
- 2025Building a Foundational Guardrail for General Agentic Systems via Synthetic Data