arXiv(opens in a new tab)cs.CRAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.28327

Layered LLM Defenses as an Ensemble: Access Tiers, Inference Cost, and the Measured Failure Correlation Between Defense Layers

Abrar Alotaibi, Muhammad Shahid Jabbar, Sadam Al-Azani, Moataz Ahmed

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abrar Alotaibi a,b,∗^{a,b,*}, Muhammad Shahid Jabbar c^{c}, Sadam Al-Azani c^{c} and Moataz Ahmed a,c^{a,c}

a^{a}Information and Computer Science Department, King Fahd University of Petroleum and Minerals, Dhahran, Saudi Arabia

b^{b}Department of Computer Science, College of Computer Science and Information Technology, Imam Abdulrahman Bin Faisal University, Dammam, Saudi Arabia

c^{c}SDAIA-KFUPM Joint Research Center for Artificial Intelligence, King Fahd University of Petroleum and Minerals, Dhahran, Saudi Arabia

2026

ARTICLE INFO

Keywords:

Large language models

LLM security

Classifier fusion

Ensemble diversity

Defense composition

Failure correlation

Adversarial robustness

Blue teaming

Threat modeling

ABSTRACT

Practitioners defend large language models (LLMs) by stacking defenses, assuming the layers compound. A stack is an ensemble, and ensembles compound only under a condition the LLM security literature recommends but never measures: the members must fail on different inputs.

Two instruments make that measurable. The Adversary Access-Tier Model (AATM) grades an adversary by the access it holds, from system-only (A0) to influence over training data (A4). A cost model sorts defenses into five classes of inference-time overhead; because two classes require training weights or reading activations, they tier the defender as AATM tiers the adversary. From these we derive how a stack behaves, and the quantities a defender cares about diverge: coverage saturates within a tier, cost rises by class, false refusals accumulate as a union, and residual attack success falls multiplicatively only under independence.

We measure that independence. Running one adaptive adversary against a seven-layer stack, failure correlation is positive in all fifteen measurable pairs ( ϕ\phi from 0.30 to 0.75), and the joint residual exceeds the multiplicative prediction by up to 0.172. Stratifying on behavior difficulty dissolves most of the association, so the dependence is predominantly common-cause, but it survives permutation inference, majority-vote grader labels, and externally calibrated thresholds. The same stack refuses four in five benign prompts while remaining statistically indistinguishable from its strongest single layer.

The dependence is architectural rather than sampling-based: members correlate through the model they all wrap, so no wider member pool weakens it. Diversity therefore selects stack members but does not predict what an assembled stack delivers, which has to be measured end to end.

1. Introduction

Large language models (LLMs) are being deployed into security-sensitive applications faster than the field can establish how well they are actually defended. A growing body of work proposes defenses, input and output filtering [1, 2], robust fine-tuning [3, 4], adversarial training [5, 6], runtime monitoring [7], and infrastructure hardening [8], and reports impressive reductions in attack success [9, 10]. Yet these numbers are hard to compare or trust: each is measured under a different, and frequently unstated, assumption about what the attacker knows and can do, and most are obtained against fixed attacks rather than against an adversary who adapts to the defense in place. That distinction is not academic: defenses that appeared robust against a fixed attack set have been broken repeatedly once the attacker optimizes against them [11–13]. As a result, the steady accumulation of reported gains can be difficult to interpret, and practitioners are left with limited basis for deciding which defense to deploy against which threat.

One candidate mechanism would explain much of this at once. Safety alignment as currently practiced is shallow: it adapts the model's output distribution over no more than the first few generated tokens [14]. That single property is why suffix [15], prefilling, decoding-parameter, and fine-tuning [16, 17] attacks all succeed by the same move, and it compounds the evaluation problem above, since rubric-based rescoring shows that many published attack-success and

∗^{*}Corresponding author.

amotaibi@iau.edu.sa (A. Alotaibi)

ORCID(s): 0000-0003-1168-8050 (A. Alotaibi); 0000-0003-2331-876X (M.S. Jabbar); 0000-0001-7893-1196 (S. Al-Azani); 0000-0003-0042-8819 (M. Ahmed)

A. Alotaibi et al.: Preprint submitted to Elsevier

Page 1 of 58 defense figures do not survive a stricter reading [18]. It also suggests an answer to a question the field has not asked: if defenses inherit a common point of failure from the model they all wrap, then stacking them should deliver less than the sum of their reported gains, because layers that depend on the same property fail on the same inputs. We take that as the hypothesis to test rather than as the explanation to assume. The consequence is measurable, and we measure it; the cause is harder to establish, and we report what our data can and cannot settle about it.

This paper builds the instruments that make the question answerable and then answers it. Because no deployment runs a single defense, the object of study is the stack rather than the layer, which places LLM defense composition inside a problem the information-fusion literature has studied for three decades, namely how to combine decision-makers whose errors are correlated. From that literature we inherit both the vocabulary and its central lesson: diversity between components must be measured, not assumed [19, 20]. Its adversarial branch sharpens that lesson, because dependence between members is there not merely a statistical property of the ensemble but something an attacker can act on deliberately [21, 22]. Neither lesson has reached the LLM defense literature. Section 2 states the whole argument and its result in advance; Section 4 situates it against the three literatures it draws on; and the five-layer defense review that follows is the application of these instruments rather than a free-standing catalog, its purpose being to clarify what existing results actually establish, what they cost to obtain in deployment, and which of them compound when combined.

Two distinctions organize what follows. The first separates red teaming from blue teaming. Red teaming probes a deployed model to uncover vulnerabilities, through adversarial inputs, jailbreak attempts, or misuse scenarios that test its safety boundary [23, 24], and the resulting frameworks are themselves evaluation instruments rather than one-off attack sets [25]. Blue teaming, the subject of this paper, builds the defenses: detection systems, mitigation strategies, and runtime monitoring that protect a model in deployment [26]. The second separates threats from vulnerabilities. A threat is an action an adversary takes, such as prompt injection, model extraction, or data poisoning; a vulnerability is the weakness that makes the action succeed, such as the inability to separate instructions from data [27, 28], or safety behavior concentrated in a sparse parameter subset [17, 29]. The Adversary Access-Tier Model (AATM) attaches to the first and the threat taxonomy of Section 6 to the second, which is what lets us state, for each defense, both what it stops and the access an adversary needs to get past it.

Scope and objectives. This study is the blue-team counterpart to the red-teaming literature cataloged by Jabbar et al. [30] and to the framework of Alotaibi et al. [25]: where those characterize how a model is probed, this one asks what the probing is defended against, and how those defenses behave together. It gives a tier-conditioned analysis of existing mitigation strategies, derives rules for combining them, and measures the one quantity those rules require. Prior work treats defenses either as isolated mechanisms or as the passive target of an attack survey [31, 32]; we treat a deployed set of them as a single system whose behavior does not follow from its parts.

References (100)

Couldn't load all references. Reload the page to try again.