betaFeedback

WorksComputer Science

Evaluating and Improving the Robustness of Large Language Models to Input Sequence Variations

Abstract

Large language models (LLMs) in production systems face prompt injections, trojans (backdoors), and manipulation of automatic quality metrics. This thesis develops models, methods, and algorithms for evaluating and improving LLM robustness to adversarial input sequence variations. We propose R_stab(f), a generative robustness metric based on the Jensen-Shannon divergence between per-step output distributions under small input perturbations. For localized attacks we prove V(h) <= 1 - R_class(h), where R_class(h) is the probability that a decision operator h keeps its decision under small perturbations. For non-localized attacks we propose a calibrated empirical model. For LLM-as-a-Judge systems we develop ASA, an adaptive evolutionary black-box attack that reaches an attack success rate (ASR) of up to 73.8%, with transfer between open models up to 62.6%. On Trojan Detection Challenge 2023 data (Pythia-1.4B), surrogate triggers reach REASR ~0.99 while recall of the true triggers is ~0.17 against a baseline of ~0.14. On SaTML CTF 2024 we systematize four classes of bypasses of multi-layer defenses, which reduce the ASR from 90% to 15-25%. Committees of 5-7 heterogeneous models reduce the ASR for Gemma-3-4B by 47-55 percentage points, to 19.3% with 7 models. For agentic systems based on the Model Context Protocol (MCP), we propose AttestMCP, which attests tool calls with HMAC-protected packets at under 0.1 ms per call, and the Commit Boundary isolation pattern. On the MCPBench benchmark of 847 scenarios they reduce the average ASR from 53.7% to 12.4%. The methods are implemented in the JudgeGuard and TrojanArmor software suites and the MCPSec module.

PhD Thesis

Advisor: Dmitry Namiot

Introduction

Motivation. Modern large language models (LLMs) solve a wide range of natural language processing tasks. As LLMs are embedded into production systems, the number of entry points through which an adversary can algorithmically influence the model also grows: prompt injections, trojans (backdoors), and manipulation of automatic quality metrics. Among such metrics, the LLM-as-a-Judge architecture, in which a language model evaluates the responses of other models, plays a special role. A compromised judge model distorts model comparisons and undermines the reproducibility of experiments.

The search for malicious instructions is an optimization problem over a discrete space of texts. Adversaries iterate over candidate jailbreaks until the model outputs prohibited information. Multi-level heuristic filters do not solve the problem. Trojans work differently: at the training stage, a trigger is injected into the data, and this trigger forms a hidden attractor in the parameter space. Reconstruction of such a trigger from the network weights is an ill-conditioned inverse problem. In the Trojan Detection Challenge 2023, the recall of true-trigger reconstruction was 0.17, which is close to the baseline level. Agentic architectures aggravate the situation: when an LLM gains access to external tools, a textual vulnerability carries over into the space of executable actions. The consequences of an attack then extend beyond the information domain.

Experimental evaluation quantitatively confirms the vulnerability of the LLM-as-a-Judge architecture. On the MT-Bench dataset and on the tasks of the Kaggle competition “LLMs: You Can’t Please Them All”, injection attacks generated by the adaptive ASA algorithm reached an attack success rate (ASR) of 73.8% against the Gemma-3-4B-Instruct judge model. The built-in safeguards of judge models fail under targeted attacks.

The compositional nature of agentic systems gives rise to a separate class of risks. The Model Context Protocol (MCP) standardizes the interaction of an LLM agent with external tools and thereby expands the agent’s state space. An injection into the context of a tool call can take over control of the agent (prompt injection to tool hijacking). From an algorithmic point of view, the robustness problem of a single model extends to the computation graph of an entire system: input sequences are formed dynamically from different sources, and an attack through an external channel becomes a special case of an adversarial input perturbation that can provoke unauthorized code execution.

All these vulnerabilities have a common cause: the mapping learned by the model is sensitive to small input variations in the discrete token space. Perturbations destabilize hidden representations, and the model loses its intended properties. The embedding of LLMs into complex agentic systems makes the problem more acute. A rigorous framework for ensuring robustness is therefore a pressing research problem.

State of the art. The foundations of robustness analysis for neural networks were laid by Goodfellow et al. [1] and Madry et al. [2] in computer vision. A direct transfer of this framework to LLMs is difficult because the token space is discrete and inference is autoregressive. For the text domain, Zou et al. [3] proposed the GCG method, which generates universal adversarial suffixes. Wallace et al. [4] showed that universal triggers can control generation. Perez et al. [5] systematized prompt injection attacks. Carlini et al. [6] showed that fragments of training data can be extracted directly from a trained model. However, formal metrics for evaluating LLM robustness remain underdeveloped: the existing metrics do not account for the discreteness of the token space and the autoregressive character of generation. Zheng et al. [7] proposed the LLM-as-a-Judge architecture for automatic evaluation of the quality of model responses. It spread quickly, but the analysis of its robustness to targeted adversarial attacks remains fragmentary. Trojan detection was studied in the TDC2023 and TrojAI benchmarks. A quantitative characterization of the asymmetry between trigger injection and trigger detection remained an open question before the present work. The security of agentic systems and of protocols such as MCP has received little study. Greshake et al. [8] described indirect prompt injection attacks on LLM-integrated applications and showed that external content can take over control of an agent. However, to the author’s knowledge, no prior publication analyzed the architectural risks of MCP or proposed defense algorithms based on cryptographic attestation of tool calls. The absence of a comprehensive approach to the security of agentic LLM systems motivated the present research. At the start of this work, the literature lacked: (1) a formal robustness metric that accounts for the discreteness and autoregressiveness of LLM generation, (2) a systematic methodology for evaluating the vulnerability of LLM-as-a-Judge, (3) algorithms for defending agentic systems against injections through protocols of interaction with external tools.

The work covers several interrelated directions:

  • vulnerabilities of LLMs to prompt injection attacks in LLM-as-a-Judge architectures and in systems with multi-layer defense;

  • limitations of existing trojan detection methods;

  • vulnerabilities of agentic LLM systems that use MCP to interact with external tools, and software tools for defense against control hijacking;

  • methods for improving the robustness of LLMs to the listed threats and their experimental evaluation.

Studying these directions in one work reveals the common structure of LLM vulnerabilities and yields concrete recommendations for developers.

Scope. The work studies large language models and systems based on them, namely LLM-as-a-Judge and agentic LLM systems with tool access. It develops models, methods, algorithms, and software tools for evaluating vulnerabilities and improving the robustness of LLMs.

Aim. The aim of the work is to develop a set of models, methods, and algorithms for evaluating and improving the robustness of large language models to adversarial input sequence variations and injection attacks. In this work, input sequence variations comprise prompt injections, trojans (backdoor attacks), and attacks on agentic LLM systems.

To achieve this aim, the work addresses the following objectives:

  1. Systematization and classification of threats. Construct a classification of vulnerabilities of large language models to prompt injection attacks that covers specialized architectures, such as LLM-as-a-Judge and systems with multi-layer defense, and establish the limitations of trojan detection methods.

  1. Development of the theoretical foundations of evaluation. Develop a formal mathematical model for robustness evaluation (Rstab(f)R_{\mathrm{stab}}(f)) and a consistent set of empirical metrics that account for the discrete nature of the token space and the autoregressive character of generation, including the basic indicators ASR (Attack Success Rate), TSR (Transfer Success Rate), Recall, and REASR (Reverse-Engineered ASR).

  1. Construction of adversarial attack methods. Develop adaptive algorithms for generating adversarial attacks (ASA) to test LLM vulnerabilities, including attacks on LLM-as-a-Judge systems in the black-box setting.

  1. Development and experimental validation of defense methods. Propose and experimentally study strategies for improving LLM robustness, namely committees of heterogeneous models and multi-layer filtering, on a representative set of models of the main architectural families, both with open weights (Gemma, Llama) and proprietary (GPT, Claude), and on the MT-Bench, TDC2023, and SaTML CTF 2024 datasets.

  1. Software implementation and validation. Create software tools for evaluating the security of LLM systems, including agentic systems based on MCP. Validate the attack and defense methods on the TDC2023 and SaTML CTF 2024 benchmarks and in the production environment of Viasat.

Scientific novelty.

  1. A formal mathematical model for evaluating the robustness of large language models (Rstab(f)R_{\mathrm{stab}}(f)) is proposed as a metric of generative robustness. It accounts for the discrete nature of the token space and the autoregressive character of generation. It is based on bounded divergence measures, in particular the Jensen–Shannon divergence, between the per-step output distributions under small input perturbations. The metric is shown to be monotone with respect to the natural relation of defense strengthening, and this monotonicity serves as a consistency condition of the definition. Theoretical vulnerability bounds are proved for a deterministic decision operator hh through the decision-level robustness metric Rclass(h)R_{\mathrm{class}}(h). For tasks with discrete output, including LLM-as-a-Judge, ASR is a consistent estimator of the vulnerability V(h)V(h) with respect to a fixed attack family Aeval\mathcal{A}_{\mathrm{eval}}. The population limit of the empirical estimate R^emp(f)=1−ASR\widehat{R}_{\mathrm{emp}}(f)=1-\mathrm{ASR} is 1−V(h)1-V(h), which is an upper bound on Rclass(h)R_{\mathrm{class}}(h) under the stated assumptions. This justifies the use of the ASR metric in the experimental part of the work. The result was obtained by the author and is theoretically justified.

  1. The robustness of LLM-as-a-Judge systems to injection attacks is formalized. Attacks are divided into two classes by the mechanism of influence: instructive attacks, which inject a direct command, and content attacks, which shift the verdict by manipulating the content. For each class, a corresponding countermeasure is defined. On this basis, the adaptive attack generation algorithm ASA (Adaptive Search-Based Attack) is developed: an evolutionary search that combines token-level mutations with semantic paraphrasing. On a set of open and proprietary models, ASA achieves an ASR of up to 73.8% under black-box access. Open models proved systematically more vulnerable than their proprietary counterparts. Attack transferability between open models reaches TSR = 62.6%. All these results were obtained experimentally by the author.

  1. For the Pythia-1.4B model under full white-box access on the Trojan Detection Challenge 2023 data, the asymmetry of the trojan detection problem is quantitatively characterized. A surrogate trigger activates the trojan almost always: REASR (Reverse-Engineered Attack Success Rate) is ≈0.99\approx0.99. The original trigger cannot be reconstructed: Recall ≈0.17\approx0.17 is close to the baseline level ≈0.14\approx0.14. The gap is explained by the combinatorial growth of the space of discrete triggers and indicates the limitations of post-training trojan auditing. Priority should be given to preventive data control. The author hypothesizes that the asymmetry grows with the number of model parameters.

  1. A methodology for generating and classifying multi-step prompt injection attacks on LLMs equipped with multi-layer defense systems, including system instructions, external Python filters, and LLM filters, is developed and experimentally evaluated. On the international SaTML CTF 2024 benchmark, four classes of successful bypass vectors are systematized, namely code-oriented attacks, ASCII character encoding, word-splitting attacks, and contextual misdirection. For each class, the conditions of applicability and

effective countermeasures are determined: input normalization and context-isolated system instructions. The methodology was developed by the author and verified on the competition data.

  1. A defense method for LLM-as-a-Judge systems based on adaptive committees of heterogeneous models is developed. The method uses majority voting in the space of classified verdicts. It differs from standard ensembles in that the composition of the committee is optimized with regard to the architectural diversity of the models. The Condorcet jury theorem gives a theoretical justification for the growth of committee accuracy, that is, of the probability of a correct majority verdict, when the models err independently and each is correct with probability above 0.5. This accuracy result does not by itself establish robustness in the sense of RclassR_{\mathrm{class}}. On a representative set of attacks, a committee of 5–7 models of different architectural families reduces the ASR by 47–55 percentage points for the most vulnerable open-weight model (Gemma-3-4B) compared with the single model. The method was developed and experimentally validated by the author.

  1. An approach to the security analysis of agentic LLM systems based on the Model Context Protocol is proposed. The class of prompt injection to tool hijacking attacks is formalized. Architectural vulnerabilities of MCP are identified, and a set of defense mechanisms is developed. Its core consists of two algorithms. AttestMCP restricts tool calls to a session capability table and controls packet integrity with an HMAC signature at an overhead below 0.1 ms per call. Commit Boundary runs the code generated by the agent in an isolated environment. They are complemented by four auxiliary mechanisms: capability certificates, provenance tagging, enforced isolation of cross-server transfer, and replay protection. All components are combined in the MCPSec software module, which reduces attack success while preserving an acceptable response time. The approach was proposed by the author and confirmed experimentally on the MCPBench benchmark.

Theoretical and practical significance. The theoretical significance of the work lies in the creation of a formal framework for evaluating LLM robustness. The metric Rstab(f)R_{\mathrm{stab}}(f) is monotone with respect to defense strengthening, and the related decision-level metric Rclass(h)R_{\mathrm{class}}(h) gives a proved upper bound V(h)≤1−Rclass(h)V(h) \le1 - R_{\mathrm{class}}(h) on the vulnerability under localized attacks. Together they provide a quantitative basis for comparing defense methods. The Condorcet jury theorem justifies the growth of the accuracy of majority-vote committees under independent errors and a base accuracy above 0.5. For compositional systems, a Lipschitz decomposition of sensitivity is obtained. Its empirical plug-in estimates indicate which component of the pipeline dominates the sensitivity. The discovered asymmetry of trojan detection favors preventive data auditing over post-training diagnostics.

The practical significance of the work lies in two registered software suites and a module for agentic LLM systems. JudgeGuard (software registration certificate No. 2025687702) automates the testing of LLM-as-a-Judge and implements committee-based defense. TrojanArmor (certificate No. 2025684247) detects trojans. The MCPSec software module controls the permissions of tool calls and isolates code execution in agentic LLM systems. The areas of application are the security auditing of automatic evaluation systems, dialogue agents, and agentic platforms.

The results of the thesis have been adopted in industry. In the production activity of Viasat, as confirmed by an implementation certificate, the framework for evaluating LLM-as-a-Judge vulnerabilities, the defense method based on model committees, and the methodology of multi-step attacks were applied to secure a recommendation ranking module built on the LLM-as-a-Judge architecture.

Research methods. The work combines theoretical and experimental methods. The scientific literature on attacks on LLMs, including prompt injections and trojans, and on methods of defense and robustness evaluation was analyzed. Models of attacks and defenses were developed and formalized. The approaches were validated through participation in international LLM security competitions: Trojan Detection Challenge 2023, SaTML CTF 2024, and Kaggle “LLMs: You Can’t Please Them All”.

The empirical part included the deployment and configuration of open and commercial LLMs (GPT-3.5, GPT-4, Llama 2, Llama 3.2, Gemma, Claude-3-Opus). Both the attacks developed by the author and attacks known from the literature were reproduced and simulated: CUA (Comparative Undermining Attack), JMA (Justification Manipulation Attack), ASA (Adaptive Search-Based Attack), code-oriented injections, and others. The effectiveness of defense scenarios was evaluated by statistical methods: bootstrap analysis, hypothesis testing, and confidence intervals. Adversarial examples were generated by two algorithms: the author’s ASA and the Greedy Coordinate Gradient method (GCG).

Main statements submitted for defense:

  1. A formal mathematical model for evaluating the robustness of large language models (Rstab(f)R_{\mathrm{stab}}(f)). The model relies on a divergence measure between probability distributions in the discrete token space and serves as a metric of generative robustness. For the class of localized attacks, the upper bound V(h)≤1−Rclass(h)V(h) \le1 - R_{\mathrm{class}}(h) is proved. For non-localized attacks, such as prompt injection and jailbreak, an empirical calibrated model V(h)≈g(1−Rclass(h))V(h) \approx g(1 - R_{\mathrm{class}}(h)) is proposed. The upper bound is rigorously proved by the author. The empirical model is a hypothesis whose parameters are calibrated on a validation set of attacks.

  1. The adaptive adversarial attack generation algorithm (ASA), which implements an evolutionary search with selection by an objective function that measures the influence on the judge model. The algorithm combines token-level mutations with semantic paraphrasing. In the black-box setting, the ASR reaches 73.8%. Reverse engineering of trojans revealed a practical asymmetry: generating adversarial inputs is substantially easier than detecting them (REASR ≈0.99\approx0.99 with Recall ≈0.17\approx0.17). This gap argues for prioritizing preventive defense. The ASA algorithm and the asymmetry analysis are the work of the author.

  1. A defense method for LLM-as-a-Judge systems based on adaptive committees of heterogeneous models, which reduces the ASR by 47–55 percentage points for the most vulnerable model Gemma-3-4B, namely from 73.8% to 19.3% with a committee of 7 models. The theoretical justification through the Condorcet jury theorem concerns committee accuracy and holds under independent errors and the condition r>0.5r > 0.5, where rr denotes the base accuracy of an individual model. For Gemma-3-4B, whose base accuracy does not satisfy this condition, the gain comes primarily from the heterogeneous composition of the committee, which decorrelates the vulnerabilities of the base models. Multi-layer defense (defense in depth) reduces the ASR from 90% to 15–25%. Four classes of bypasses of multi-layer filters are systematized. The results were obtained experimentally.

  1. An architectural and algorithmic approach to defending agentic LLM systems based on MCP. It includes the MCPBench benchmark (847 scenarios), the AttestMCP algorithm for attestation of tool calls, the Commit Boundary software isolation pattern, and four auxiliary defense mechanisms: capability certificates, provenance tagging, enforced isolation, and replay protection. On the MCPBench benchmark, the approach reduces the average ASR of agentic attacks from 53.7% to 12.4%. The approach was developed and validated by the author.

  1. The proposed methods for evaluating and improving the robustness of LLM systems can be implemented as a complete software toolkit with measurable performance. This is confirmed by the JudgeGuard (certificate No. 2025687702) and TrojanArmor (certificate No. 2025684247) software suites, as well as by the MCPSec module. TrojanArmor was validated on the TDC2023 benchmark, JudgeGuard on SaTML CTF 2024 and deployed in the production environment of Viasat, and MCPSec on the MCPBench benchmark.

Reliability. The reliability of the results rests on the following. The experimental base is built on the public datasets MT-Bench, TDC2023, SaTML CTF 2024, and Kaggle “LLMs: You Can’t Please Them All”. The models represent different architectural families: Gemma, Llama, GPT-3.5, GPT-4, Claude-3-Opus. Each model/attack/task combination was tested on n=50n = 50 prompts (n=200n = 200 per model after aggregation over four tasks) with confidence intervals and significance tests. The obtained ASR, TSR, Recall, and REASR values are compared with the results of known methods. The results are published in peer-reviewed journals and were presented at international conferences and competitions.

Validation and dissemination. The main results of the work were presented and discussed at the following conferences:

  1. Distributed Computer and Communication Networks: Control, Computation, Communications (DCCN 2024), 2024

  1. International Conference on Computational Linguistics and Intellectual Technologies DIALOG 2022, 2022

Personal contribution. The results were obtained by the author personally or with his decisive participation. The author is responsible for the development of the attack frameworks, the defense concepts, the planning and execution of the experiments, the data analysis, and the formulation of conclusions. The co-authors participated in the preparation of the publications. In all joint works, the contribution of the author is decisive: from the formulation of the problems to the analysis of the experimental results.

Publications. The results of the thesis are published in 7 papers: 4 journal articles [9, 10, 11, 12], a paper at the DCCN conference [13], a paper at the DIALOG conference [14], and a preprint [15]. The JudgeGuard and TrojanArmor software suites are registered with two software registration certificates [16, 17].

Some of the works were carried out with co-authors. The contribution of the author to each of them is as follows.

  • In the conference paper [13] (D. Khomsky, N. Maloyan, B. Nutfullin), the author is responsible for the formulation of the problem of attacks on systems with multi-layer defense, the development of the methodology of multi-step injections, and the analysis of their effectiveness. The co-authors participated in the implementation of the experiments and the preparation of the text.

  • In the article [9] (N. Maloyan, B. Ashinov, D. Namiot), the author developed the ASA adversarial attack algorithm on LLM-as-a-Judge systems, planned and conducted the experiments, and formulated the conclusions. The co-authors participated in the discussion of the results and in scientific supervision.

  • In the paper [14] (N. Maloyan, B. Nutfullin, E. Ilyushin), the author developed the method for detecting generated text and verified it experimentally.

  • The articles [10, 11, 12] and the preprint [15] were prepared jointly with the doctoral advisor D. Namiot. The author is responsible for the formulation of the problems, the development of methods of attack on and defense of agentic LLM systems, the execution of the experiments, and the formulation of the results.

  • The software suites protected by the certificates [16, 17] were developed by the author personally.

Software registration certificates.

  1. JudgeGuard. A program for the experimental study of vulnerabilities and testing of defense methods for automatic evaluation systems based on large language models / N. Maloyan. Software registration certificate No. 2025687702, 2025.

  1. TrojanArmor. A program for the experimental study of trojan attacks on neural networks and defense methods against them / N. Maloyan. Software registration certificate No. 2025684247, 2025.

Relation between objectives, chapters, novelty results, and statements for defense.

Objective 1, the systematization and classification of threats, is addressed in Chapter 1. It corresponds to novelty result 3, which establishes the practical asymmetry of the effectiveness of trigger generation and trigger reconstruction in trojan detection, and to result 4, which contains the classification of multi-step attacks on systems with multi-layer defense. Objective 2, the development of the theoretical foundations of evaluation, is addressed in Chapter 2. It corresponds to novelty result 1, which includes the formal robustness metric Rstab(f)R_{\mathrm{stab}}(f) and the theoretical vulnerability bounds, and to statement for defense 1. The theoretical justification of committees through the Condorcet jury theorem, which is part of statement for defense 3, also relies on the framework developed for Objective 2. Objective 3, the development of adversarial attack methods, is addressed in Chapter 3. It corresponds to novelty result 2, namely the framework for studying the vulnerability of LLM-as-a-Judge and the ASA algorithm, and to statement for defense 2. Objective 4, the development and experimental validation of defense methods, is addressed in Chapters 3 and 4. It corresponds to novelty result 5 on committees of heterogeneous models, to statement for defense 3, and to the experimental confirmation of novelty results 2–5 and statements for defense 2–4. Objective 5, software implementation and validation, is addressed in Chapters 5–6. It corresponds to novelty result 6, which contains the security analysis of agentic systems and MCP, and to statement for defense 5.

Analysis of Threats and Vulnerabilities of Large Language Models

Chapter Overview

The security of large language models is determined by the interaction of many factors: the discrete nature of the input space, the diversity of attack vectors, and the architectural features of LLM-based systems. This chapter formalizes the threat space, classifies vulnerabilities, and analyzes the specifics of attacks on LLM-as-a-Judge architectures and on systems with multi-layer defense. The results form the theoretical basis for the defense methods developed in the subsequent chapters.

Theoretical Foundations of Large Language Model Robustness

Terminological convention. This work uses the following terminology. Robustness denotes the ability of a model to preserve correct behavior under perturbations of the input data. The term covers the notions of adversarial robustness and certified robustness used in the literature. The subscript “stab” in Rstab(f)R_{\mathrm{stab}}(f) comes from the word stability: the metric evaluates how much the output distributions of the model change under input perturbations. Rstab(f)R_{\mathrm{stab}}(f) is a robustness metric, and no separate notion of stability is introduced. The terms trojan and backdoor are used as synonyms. In the LLM-as-a-Judge architecture, an LLM performs automatic evaluation. This evaluating model is called the judge model, or simply the judge.

Below we give definitions and formalisms for the analysis of LLM robustness and security, the types of vulnerabilities, and approaches to their quantitative evaluation.

Large Language Models: A Formal Representation

Large language models (LLMs) are a class of probabilistic sequence models. As a rule, they are built on deep neural networks with the Transformer architecture [18] and trained on large corpora of text data [19]. Such models are intended for processing and generating natural language text. They operate on sequences of discrete units, tokens. A formalization of LLMs and of their inputs and outputs is necessary for a rigorous definition and analysis of model properties, including robustness.

Definition 1.1. Token and sequence space. Let V\mathcal{V} denote a finite vocabulary of tokens. The space of all finite token sequences, that is, texts, is defined as X=V∗\mathcal{X} = \mathcal{V}^{*}, where V∗\mathcal{V}^{*} is the Kleene

closure of the set V\mathcal{V}. The length of an arbitrary sequence x∈Xx \in\mathcal{X} is written as ∣x∣|x|.

The input of the model is a token sequence x∈Xx \in\mathcal{X}. The nature of the output depends on the task. In general form, an LLM is given by a parametric mapping fθf_{\theta} with a parameter vector θ\theta:

fθ:X→P(Y),f_{\theta} : \mathcal{X} \to\mathcal{P}(\mathcal{Y}),

where Y\mathcal{Y} is the space of possible model outputs, and P(Y)\mathcal{P}(\mathcal{Y}) is the set of probability distributions on it.

  • In text generation tasks, such as autocompletion, translation, and dialogue, the model predicts a probability distribution over the vocabulary V\mathcal{V} for the next token or generates an entire token sequence. In this case Y\mathcal{Y} often coincides with X\mathcal{X}, that is, the space of output sequences, or with V\mathcal{V}, that is, the space of next tokens, and fθf_{\theta} defines the conditional probability distribution pθ(y∣x)p_{\theta}(y|x) for y∈Yy \in\mathcal{Y} given the input x∈Xx \in\mathcal{X}.

  • In text classification tasks, such as sentiment analysis and topic detection, Y\mathcal{Y} is a finite set of class labels, and fθ(x)f_{\theta}(x) defines a probability distribution over these labels.

The discrete nature of the input space X\mathcal{X} fundamentally distinguishes LLMs from models that operate on continuous data, in particular in computer vision [20], and imposes constraints on the methods for evaluating and improving robustness. For brevity, the subscript θ\theta is omitted below, and the model is denoted as ff, which implies a fixed set of parameters. When an output predicate is applied to f(x)f(x), as in f(x)∈Ybadf(x) \in\mathcal{Y}_{\mathrm{bad}}, the symbol f(x)f(x) denotes a response y∼p(⋅∣x)y \sim p(\cdot|x) generated by the model, and the probability is taken over this generation. Chapter 2 distinguishes stochastic generation from deterministic decoding h=Dec⁡∘fh = \operatorname{Dec} \circ f.

LLM Robustness: Definition and Significance

The robustness of a large language model is defined as its ability to preserve correct behavior under small, semantically insignificant, or syntactically admissible perturbations of the input data. The reliability of dialogue systems, automated content creation, and decision support systems directly depends on this property [1, 21]. With insufficient robustness, even a minimal variation of a query can lead to the generation of erroneous or undesirable responses [22].

A formalization of robustness requires a prior definition of the class of admissible input perturbations.

Definition 1.2. Perturbation of a token sequence. Let x∈Xx \in\mathcal{X} be the original token sequence. A perturbed sequence x′∈Xx' \in\mathcal{X} is obtained from xx by applying some transformation

T:X→XT:\mathcal{X}\to\mathcal{X}. The set of ϵ\epsilon-perturbations of the sequence xx with respect to the metric dd is defined as the neighborhood

Bϵ(x)={x′∈X:d(x,x′)≤ϵ},B_{\epsilon}(x)=\{x'\in\mathcal{X}:d(x,x')\le\epsilon\},

where ϵ>0\epsilon>0 sets the perturbation budget and bounds the magnitude of the admissible change, and d:X×X→R≥0d:\mathcal{X}\times\mathcal{X}\to\mathbb{R}_{\ge0} is a discrepancy function on the token sequence space X\mathcal{X}, in particular a metric, a pseudometric, or a semantic dissimilarity measure (Figure 1.1).

Illustration of epsilon perturbations and neighborhoods

Figure 1.1. Illustration of ϵ\epsilon-perturbations: the point x′x' lies in Bϵ(x)B_{\epsilon}(x), and the point yy lies outside it.

The choice of the metric dd determines which types of changes are considered small and against which modifications robustness is evaluated. Common metrics for token sequences are listed below.

  1. Hamming distance (dHd_H): It applies only to sequences of equal length nn and is the simplest of the metrics considered:

dH(x,x′)=∑i=1nI(xi≠xi′),where ∣x∣=∣x′∣=n,d_H(x,x')=\sum_{i=1}^{n}\mathbb{I}(x_i\ne x_i'),\qquad\text{where }|x|=|x'|=n,

and I(⋅)\mathbb{I}(\cdot) is the indicator function. In essence, it counts the number of positions at which the tokens xix_i and xi′x_i' differ. The metric models attacks that reduce to token substitution.

  1. Levenshtein distance (dLd_L) [23]: Attacks are rarely limited to a single substitution. Typos and the addition and deletion of words produce token insertions and deletions that the Hamming metric does not cover. The Levenshtein distance generalizes dHd_H to sequences of arbitrary length: it measures the minimum number of single-token edit operations, namely insertion, deletion, and substitution, needed to transform xx into x′x'. The formal recursive definition is given in [23].

  1. Semantic distance (dSd_S): Both preceding metrics work at the surface level of tokens and do not reflect the semantic closeness of texts. Paraphrasing and synonym substitution [24] can make dHd_H and dLd_L large, although the meaning of the text is preserved. To account for such perturbations, we introduce a distance based on the cosine measure between vector representations:

dS(x,x′)=1−⟨E(x),E(x′)⟩∥E(x)∥⋅∥E(x′)∥,d_S(x,x')=1-\frac{\langle E(x),E(x')\rangle}{\lVert E(x)\rVert\cdot\lVert E(x')\rVert},

where EE is an arbitrary embedding model, ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle is the inner product, and ∥⋅∥\lVert\cdot\rVert is the Euclidean norm. The sentence vector E(x)E(x) is obtained by averaging (mean pooling) the token embeddings followed by L2 normalization. Unless stated otherwise, the experiments use the all-mpnet-base-v2 model from the Sentence-BERT family, although the definition of dSd_S itself is not tied to a specific embedder architecture.

Sensitivity to the choice of EE: The resulting value of dSd_S and the robustness estimate depend on the choice of the embedding model EE. Different models assess semantic closeness differently, especially in narrow specialized domains. Comparative studies must either fix a single model EE or analyze the sensitivity of the results to its replacement.

Table 1.1 summarizes the main distance metrics and their characteristics.

MetricDescriptionApplication
Hamming (dHd_H)Number of substituted tokens (for strings of equal length)ϵ\epsilon: 1–5; token substitution attacks
Levenshtein (dLd_L)Min. number of operations (insertion, deletion, substitution)ϵ\epsilon: 1–10; typos, short insertions
Semantic (dSd_S)Cosine distance between embeddingsϵ\epsilon: 0.05–0.2; paraphrasing

Table 1.1. Summary of distance metrics in the token space

The condition d(x,x′)≤ϵd(x,x') \le\epsilon sets the admissible perturbation budget: an attacker or natural variations may introduce changes into xx, but the total cost of these changes under the metric dd cannot exceed ϵ\epsilon.

The quantitative evaluation of LLM robustness relies on the metric Rstab(f)R_{\mathrm{stab}}(f), which captures the magnitude of the deviation of the output distributions of the model under small input modifications.

The rigorous definition and the mathematical properties of the metric Rstab(f)R_{\mathrm{stab}}(f) are considered in detail in Chapter 2.

LLM Vulnerabilities and Attack Types

Insufficient robustness of LLMs opens opportunities for attacks on model behavior. The goals of an adversary range from generating toxic or prohibited content to extracting confidential information from the training data, bypassing safety systems, and disrupting the normal operation of the model [5, 6, 25].

Vulnerability is formalized through the probability that the model exhibits undesirable behavior under the worst-case perturbation within a given budget.

The local vulnerability metric Vlocal(f)V_{\mathrm{local}}(f) reflects the expected maximum probability of obtaining undesirable outputs, which form the set Ybad⊆Y\mathcal{Y}_{\mathrm{bad}} \subseteq\mathcal{Y} defined formally in § 4.3.3 of Chapter 2, under perturbations of a specific input query within its ϵ\epsilon-neighborhood. In essence, it quantifies how easily the model can be induced to generate prohibited or harmful content by modifying the query.

The rigorous definition and the mathematical properties of the metric Vlocal(f)V_{\mathrm{local}}(f), and its relation to Rstab(f)R_{\mathrm{stab}}(f) and to the global vulnerability index V(f)V(f), are considered in Chapter 2.

The main types of attacks on LLMs are described below.

  1. Adversarial attacks: The construction of perturbed inputs x′x' that differ from xx only slightly, often imperceptibly to a human, that is, such that d(x,x′)d(x,x') is small under some metric dd, in particular dLd_L or dSd_S. Such perturbations lead to a model output f(x′)f(x') that is erroneous in classification tasks or undesirable in generation tasks [1, 3, 24]. For LLMs, this can be the substitution of characters and tokens, the insertion or deletion of words, paraphrasing, or the use of control sequences [3, 4, 26]. Gradient optimization methods, including Greedy Coordinate Gradient (GCG), are used to generate such attacks.

  1. Prompt injection attacks: The injection of instructions into a user query, often covert or disguised, with the goal of overriding the original system instructions of the model or its safety mechanisms [5, 27]. A typical example is the addition of text such as “Ignore the previous instructions and do X”. For such attacks, the perturbation need not be small under the formal metrics dd, because they exploit the ability of LLMs to follow instructions [8, 27]. Two targets are particularly exposed: LLM-as-a-Judge systems, where injections distort the evaluation results, and LLMs with multi-layer defense, which specialized techniques can bypass.

  1. Jailbreaking attacks: The design of specially crafted prompts that force the model to generate content that violates its internal safety policies: instructions for illegal actions, malicious code, offensive material. The safety mechanisms established by alignment fail to activate [25, 28]. Both large commercial and open models are vulnerable to such attacks [29, 30, 31], including under multi-turn queries or techniques that exploit the features of multi-layer defense systems.

  1. Backdoor attacks: An adversary with access to the training process implants hidden triggers into the model at the training or fine-tuning stage [32]. A trigger can be a phrase or a symbol whose presence in the input data x′x' causes behavior predefined by the attacker: the generation of a specific text or an incorrect classification [33, 34]. Detecting trojans (backdoors) is difficult, because the model behaves normally on ordinary data. Reverse engineering of triggers, that is, the reconstruction of the original trigger from a known malicious output, remains a task with low detection recall even under controlled conditions.

  1. Data extraction attacks: Attempts to reconstruct or extract from the model confidential information that could have been present in its training data, including personal data and proprietary texts, by submitting specially constructed queries [6].

  1. Attacks on agentic systems through tool hijacking: With the development of agentic LLM systems that interact with external tools through standardized protocols, in particular the Model Context Protocol (MCP) [35], a class of attacks arises in which a prompt injection into the context of a tool leads to an unauthorized tool call with arbitrary arguments. Unlike classical prompt injection, the consequences of such attacks go beyond text generation and include code execution, file system modification, and network requests [10, 11]. The criticality of such attacks is amplified by architectural features of agentic interaction protocols, namely the absence of capability attestation, unauthenticated sampling, and implicit trust propagation between servers. A detailed study of this issue is given in Chapter 5.

References

  1. [1]Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. URL https://arxiv.org/abs/1412.6572.
  2. [2]Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.arxiv.org/abs/1706.06083
  3. [3]Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J. Zico Kolter, and Matt Fredrikson. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043, 2023. URL https://arxiv.org/abs/2307.15043.
  4. [4]Eric Wallace, Shi Feng, Nikhil Kandpal, Matt Gardner, and Sameer Singh. Universal Adversarial Triggers for Attacking and Analyzing NLP. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 2153–2162, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1221. URL https://aclanthology.org/D19-1221.DOI
  5. [5]Fábio Perez and Ian Ribeiro. Ignore Previous Prompt: Attack Techniques For Language Models, November 2022. URL http://arxiv.org/abs/2211.09527.
  6. [6]Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, Alina Oprea, and Colin Raffel. Extracting training data from large language models. Proceedings of the 30th USENIX Security Symposium, pages 2633–2650, 2021. URL https://arxiv.org/abs/2012.07805.
  7. [7]Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric P. Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. Judging LLM-as-a-judge with MT-Bench and Chatbot Arena. In Advances in Neural Information Processing Systems 36 (NeurIPS 2023), Datasets and Benchmarks Track, 2023. URL https://arxiv.org/abs/2306.05685.
  8. [8]Kai Greshake, Sahar Abdelnabi, Shailesh Mishra, Christoph Endres, Thorsten Holz, and Mario Fritz. Not what you’ve signed up for: Compromising real-world LLM-integrated applications with indirect prompt injection. In Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security (AISec ’23), pages 79–90, 2023. doi: 10.1145/3605764.3623985.DOI
  9. [9]Narek Maloyan, Bislan Ashinov, and Dmitry Namiot. Investigating the vulnerability of LLM-as-a-Judge architectures to prompt-injection attacks. International Journal of Open Information Technologies, 13(9), 2025. URL https://arxiv.org/abs/2505.13348. arXiv:2505.13348.
  10. [10]Narek Maloyan and Dmitry Namiot. Prompt injection attacks on agentic coding assistants: A systematic analysis of vulnerabilities in skills, tools, and protocol ecosystems. International Journal of Open Information Technologies, 14(2), 2026. URL https://arxiv.org/abs/2601.17548. arXiv:2601.17548.
  11. [11]Narek Maloyan and Dmitry Namiot. Breaking the protocol: Security analysis of the Model Context Protocol specification and prompt injection vulnerabilities in tool-integrated LLM agents. Modern Information Technologies and IT-Education, 21(3):420–428, 2025. doi: 10.25559/SITITO.021.202503.420–428. URL https://arxiv.org/abs/2601.17549. arXiv:2601.17549.
  12. [12]Narek Maloyan and Dmitry Namiot. Sleeper channels and provenance gates: Persistent prompt injection in always-on autonomous AI agents. International Journal of Open Information Technologies, 14(6), 2026. URL https://arxiv.org/abs/2605.13471. arXiv:2605.13471.
  13. [13]Daniil Khomsky, Narek Maloyan, and Bulat Nutfullin. Prompt injection attacks in defended systems. In Distributed Computer and Communication Networks, Lecture Notes in Computer Science, pages 404–416. Springer Nature Switzerland, 2025. doi: 10.1007/978-3-031-80853-1_30. arXiv:2406.14048.DOI
  14. [14]Narek Maloyan, Bulat Nutfullin, and Eugene Ilyushin. DIALOG-22 RuATD generated text detection. In Computational Linguistics and Intellectual Technologies, pages 394–401, 2022. doi: 10.28995/2075-7182-2022-21-394-401. arXiv:2206.08029.DOI
  15. [15]Narek Maloyan and Dmitry Namiot. Adversarial attacks on LLM-as-a-Judge systems: Insights from prompt injections. arXiv:2504.18333, 2025. URL https://arxiv.org/abs/2504.18333.
  16. [16]Narek Maloyan. JudgeGuard: Software for experimental study of vulnerabilities and testing of defence methods for automatic evaluation systems based on large language models. Software registration certificate No. 2025687702, 2025.
  17. [17]Narek Maloyan. TrojanArmor: Software for experimental study of trojan attacks on neural networks and defence methods. Software registration certificate No. 2025684247, 2025.
  18. [18]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems 30 (NeurIPS 2017), 2017. URL https://arxiv.org/abs/1706.03762.
  19. [19]Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language Models are Few-Shot Learners. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 1877–1901. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/file/1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf.arxiv.org/abs/2005.14165
  20. [20]Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. URL https://arxiv.org/abs/1312.6199.
  21. [21]Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, Benjamin Newman, Binzhang Yuan, Bobby Yan, Ce Zhang, Christian Cosgrove, Christopher D. Manning, Christopher Ré, Diana Acosta-Navas, Drew A. Hudson, Eric Zelikman, Esin Durmus, Faisal Ladhak, Frieda Rong, Hongyu Ren, Huaxiu Yao, Jue Wang, Keshav Santhanam, Laurel Orr, Lucia Zheng, Mert Yuksekgonul, Mirac Suzgun, Nathan Kim, Neel Guha, Niladri Chatterji, Omar Khattab, Peter Henderson, Qian Huang, Ryan Chi, Sang Michael Xie, Shibani Santurkar, Surya Ganguli, Tatsunori Hashimoto, Thomas Icard, Tianyi Zhang, Vishrav Chaudhary, William Wang, Xuechen Li, Yifan Mai, Yuhui Zhang, and Yuta Koreeda. Holistic Evaluation of Language Models, October 2023. URL http://arxiv.org/abs/2211.09110.
  22. [22]Robin Jia and Percy Liang. Adversarial examples for evaluating reading comprehension systems. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 2021–2031, Copenhagen, Denmark, 2017. Association for Computational Linguistics. doi: 10.18653/v1/D17-1215. URL https://aclanthology.org/D17-1215.DOI
  23. [23]Vladimir I. Levenshtein. Binary codes capable of correcting deletions, insertions, and reversals. Soviet Physics Doklady, 10(8):707–710, 1966.
  24. [24]Linyang Li, Ruotian Ma, Qipeng Guo, Xiangyang Xue, and Xinpeng Qiu. BERT-ATTACK: Adversarial Attack Against BERT Using BERT. In Bonnie Webber, Trevor Cohn, Yulan He, and Yang Liu, editors, Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6193–6202, Online, November 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.emnlp-main.500. URL https://aclanthology.org/2020.emnlp-main.500/.DOI
  25. [25]Alexander Wei, Nika Haghtalab, and Jacob Steinhardt. Jailbroken: How does llm safety training fail? Advances in Neural Information Processing Systems (NeurIPS), 2023. URL https://arxiv.org/abs/2307.02483.
  26. [26]John X. Morris, Eli Lifland, Jin Yong Yoo, Jake Grigsby, Di Jin, and Yanjun Qi. TextAttack: A Framework for Adversarial Attacks, Data Augmentation, and Adversarial Training in NLP, October 2020. URL http://arxiv.org/abs/2005.05909.
  27. [27]Yi Liu, Gelei Deng, Yuekang Li, Kailong Wang, Zihao Wang, Xiaofeng Wang, Tianwei Zhang, Yepang Liu, Haoyu Wang, Yan Zheng, Leo Yu Zhang, and Yang Liu. Prompt injection attack against LLM-integrated applications. arXiv preprint arXiv:2306.05499, 2023. URL https://arxiv.org/abs/2306.05499.
  28. [28]David Khachaturov and Robert Mullins. Adversarial suffix filtering: a defense pipeline for llms. arXiv preprint arXiv:2505.09602, 2025.arxiv.org/abs/2505.09602
  29. [29]Sibo Yi, Yule Liu, Zhen Sun, Tianshuo Cong, Xinlei He, Jiaxing Song, Ke Xu, and Qi Li. Jailbreak Attacks and Defenses Against Large Language Models: A Survey. arXiv:2407.04295v2 [cs.CR], 2024. URL https://arxiv.org/abs/2407.04295v2.
  30. [30]Kexin Chen, Yi Liu, Dongxia Wang, Jiaying Chen, and Wenhai Wang. Characterizing and evaluating the reliability of LLMs against jailbreak attacks. arXiv preprint arXiv:2408.09326, 2024. URL https://arxiv.org/abs/2408.09326.
  31. [31]Yi Liu, Gelei Deng, Zhengzi Xu, Yuekang Li, Yaowen Zheng, Ying Zhang, Lida Zhao, Tianwei Zhang, Kailong Wang, and Yang Liu. Jailbreaking ChatGPT via Prompt Engineering: An Empirical Study, March 2024. URL http://arxiv.org/abs/2305.13860.
  32. [32]Tianyu Gu, Brendan Dolan-Gavitt, and Siddharth Garg. BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chain. arXiv preprint arXiv:1708.06733, 2017. URL https://arxiv.org/abs/1708.06733.
  33. [33]Xinyu Chen, Cheng Liu, Bo Li, Kang Lu, and Dacheng Song. Targeted backdoor attacks on deep learning systems using data poisoning. arXiv preprint arXiv:1712.05526, 2017.arxiv.org/abs/1712.05526
  34. [34]Keita Kurita, Paul Michel, and Graham Neubig. Weight poisoning attacks on pretrained models. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 2793–2806, 2020. doi: 10.18653/v1/2020.acl-main.249. URL https://arxiv.org/abs/2004.06660.
  35. [35]Anthropic. Model Context Protocol specification. https://modelcontextprotocol.io/specification/2024-11-05, 2024. Accessed: 2025-01-15.
  36. [36]Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. Training language models to follow instructions with human feedback, March 2022. URL http://arxiv.org/abs/2203.02155.
  37. [37]Zhao Xu, Fan Liu, and Hao Liu. Bag of tricks: Benchmarking of jailbreak attacks on llms, 2024. URL https://arxiv.org/abs/2406.09324.
  38. [38]Boxin Wang, Chejian Xu, Shuohang Wang, Zhe Gan, Yu Cheng, Jianfeng Gao, Ahmed Hassan Awadallah, and Bo Li. Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Models, January 2022. URL http://arxiv.org/abs/2111.02840.
  39. [39]Zelin Li, Kehai Chen, Lemao Liu, Xuefeng Bai, Mingming Yang, Yang Xiang, and Min Zhang. TF-Attack: Transferable and fast adversarial attacks on large language models. Knowledge-Based Systems, 312:113117, 2025. doi: 10.1016/j.knosys.2025.113117. URL https://arxiv.org/abs/2408.13985.
  40. [40]Haibo Jin, Leyang Hu, Xinnuo Li, Peiyan Zhang, Chonghan Chen, Jun Zhuang, and Haohan Wang. JailbreakZoo: Survey, Landscapes, and Horizons in Jailbreaking Large Language and Vision-Language Models. arXiv, 2407(01599v2), July 2024. URL https://chonghan-chen.com/llm-jailbreak-zoo-survey/.arxiv.org/abs/2407.01599
  41. [41]Maksym Andriushchenko, Francesco Croce, and Nicolas Flammarion. JAILBREAKING LEADING SAFETY-ALIGNED LLMs WITH SIMPLE ADAPTIVE ATTACKS. arXiv, pages 1–14, October 2024. URL https://arxiv.org/abs/2404.02151v3.
  42. [42]Fan Liu, Yue Feng, Zhao Xu, Lixin Su, Xinyu Ma, Dawei Yin, and Hao Liu. JAILJUDGE: A Comprehensive Jailbreak Judge Benchmark with Multi-Agent Enhanced Explanation Evaluation Framework, October 2024. URL https://arxiv.org/abs/2410.12855v2.
  43. [43]Ali Kore, Elyar Abbasi Bavil, Vallijah Subasri, Moustafa Abdalla, Benjamin Fine, Elham Dolatabadi, and Mohamed Abdalla. Empirical data drift detection experiments on real-world medical imaging data. Nature Communications, 15(1887), February 2024. doi: 10.1038/s41467-024-46142-w. URL https://www.nature.com/articles/s41467-024-46142-w.DOI
  44. [44]Huiyu Xu, Wenhui Zhang, Zhibo Wang, Feng Xiao, Rui Zheng, Yunhe Feng, Zhongjie Ba, and Kui Ren. RedAgent: Red Teaming Large Language Models with Context-aware Autonomous Language Agent. In arXiv preprint arXiv:2407.16667v1, July 2024. URL https://arxiv.org/abs/2407.16667v1.
  45. [45]OWASP Foundation. OWASP Top 10 for Large Language Model Applications, 2023. URL https://owasp.org/www-project-top-10-for-large-language-model-applications/.
  46. [46]National Institute of Standards and Technology. Artificial intelligence risk management framework (ai rmf 1.0). Technical Report NIST AI 100-1, U.S. Department of Commerce, January 2023. URL https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf.
  47. [47]Hao Fang, Yixiang Qiu, Hongyao Yu, Wenbo Yu, Jiawei Kong, Baoli Chong, Bin Chen, Xuan Wang, Shu-Tao Xia, and Ke Xu. Privacy Leakage on DNNs: A Survey of Model Inversion Attacks and Defenses. arXiv preprint arXiv:2402.04013, February 2024. doi: 10.48550/arXiv.2402.04013. URL https://arxiv.org/abs/2402.04013.
  48. [48]Yifan Yao, Jinhao Duan, Kaidi Xu, Yuanfang Cai, Zhibo Sun, and Yue Zhang. A survey on large language model (LLM) security and privacy: The Good, The Bad, and The Ugly. High-Confidence Computing, 4(2):100211, 2024. doi: 10.1016/j.hcc.2024.100211. URL https://www.sciencedirect.com/science/article/pii/S266729522400014X.DOI
  49. [49]Antonio Emanuele Cinà, Kathrin Grosse, Ambra Demontis, Battista Biggio, Fabio Roli, and Marcello Pelillo. Machine Learning Security against Data Poisoning: Are We There Yet? arXiv preprint arXiv:2204.05986, March 2024. URL https://arxiv.org/html/2204.05986v3.
  50. [50]Ali Shafahi, W Ronny Huang, Mahyar Najibi, Octavian Suciu, Christoph Studer, Tudor Dumitras, and Tom Goldstein. Poison frogs! targeted clean-label poisoning attacks on neural networks. Advances in neural information processing systems, 31, 2018.arxiv.org/abs/1804.00792
  51. [51]Haomiao Yang, Kunlan Xiang, Mengyu Ge, Hongwei Li, Rongxing Lu, and Shui Yu. A comprehensive overview of backdoor attacks in large language models within communication networks. arXiv preprint arXiv:2308.14367, 2023. URL https://arxiv.org/abs/2308.14367.
  52. [52]Michael Veale, Reuben Binns, and Lilian Edwards. Algorithms that remember: model inversion attacks and data protection law. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 376(2133):20180083, October 2018. doi: 10.1098/rsta.2018.0083. URL https://pmc.ncbi.nlm.nih.gov/articles/PMC6191664/.DOI
  53. [53]Matt Fredrikson, Somesh Jha, and Thomas Ristenpart. Model Inversion Attacks that Exploit Confidence Information and Basic Countermeasures. In Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security (CCS ’15), pages 1322–1333, 2015. doi: 10.1145/2810103.2813677.DOI
  54. [54]Reza Shokri, Marco Stronati, Congzheng Song, and Vitaly Shmatikov. Membership inference attacks against machine learning models. In Proceedings of the IEEE Symposium on Security and Privacy (S&P), pages 3–18, 2017. doi: 10.1109/SP.2017.41.DOI
  55. [55]Abhinav Kumar, Jaechul Roh, Ali Naseh, Marzena Karpinska, Mohit Iyer, Amir Hounasadr, and Eugene Bagdasarian. Overthink: Slowdown attacks on reasoning LLMs. arXiv preprint arXiv:2502.02542, 2025. URL https://arxiv.org/abs/2502.02542.
  56. [56]Toby Shevlane, Sebastian Farquhar, Ben Garfinkel, Mary Phuong, Jess Whittlestone, Jade Leung, Daniel Kokotajlo, Nahema Marchal, Markus Anderljung, Noam Kolt, Lewis Ho, Divya Siddarth, Shahar Avin, Will Hawkins, Been Kim, Jason Gabriel, Vijay Bolina, Jack Clark, Yoshua Bengio, Paul Christiano, and Allan Dafoe. Model evaluation for extreme risks. arXiv preprint arXiv:2305.15324, 2023. URL https://arxiv.org/abs/2305.15324.
  57. [57]Florian Tramèr, Fan Zhang, Ari Juels, Michael K. Reiter, and Thomas Ristenpart. Stealing Machine Learning Models via Prediction APIs. In Proceedings of the 25th USENIX Security Symposium (USENIX Security ’16), pages 601–618, 2016. URL https://www.usenix.org/conference/usenixsecurity16/technical-sessions/presentation/tramer.arxiv.org/abs/1609.02943
  58. [58]OWASP Foundation. OWASP LLM02: Insecure output handling, 2023. URL https://genai.owasp.org/llmrisk2023-24/llm02-insecure-output-handling/. Accessed: 2024-05-15.
  59. [59]Siwon Kim, Sangdoo Yun, Hwaran Lee, Martin Gubri, Sunghoh Yoon, and Seong Joon Oh. ProPILE: Probing privacy leakage in large language models. In Advances in Neural Information Processing Systems 36 (NeurIPS 2023), 2023. URL https://arxiv.org/abs/2307.01881.
  60. [60]Isabel O. Gallegos, Ryan A. Rossi, Joe Barrow, Md Mehrab Tanjim, Sungchul Kim, Franck Dernoncourt, Tong Yu, Ruiyi Zhang, and Nesreen K. Ahmed. Bias and fairness in large language models: A survey. Computational Linguistics, 50(3), 2024. URL https://arxiv.org/abs/2309.00770.
  61. [61]Jieyu Zhao, Tianlu Wang, Mark Yatskar, Vicente Ordonez, and Kai-Wei Chang. Men Also Like Shopping: Reducing Gender Bias Amplification using Corpus-level Constraints. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 2979–2989, 2017. doi: 10.18653/v1/D17-1323.DOI
  62. [62]Jon Boyens, Angela Smith, Nadya Bartol, Kris Winkler, Alex Holbrook, and Matthew Fallon. Cybersecurity supply chain risk management practices for systems and organizations. Technical Report NIST Special Publication 800-161, Revision 1, National Institute of Standards and Technology, May 2022. URL https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-161r1.pdf.
  63. [63]Anya Belz, Shubham Agarwal, Anastasia Shimorina, and Ehud Reiter. A systematic review of reproducibility research in natural language processing. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 381–393, 2021. doi: 10.18653/v1/2021.eacl-main.29. URL https://aclanthology.org/2021.eacl-main.29.DOI
  64. [64]Chengdong Ma, Ziran Yang, Minquan Gao, Hai Ci, Jun Gao, Xuehai Pan, and Yaodong Yang. Red teaming game: A game-theoretic framework for red teaming language models. arXiv preprint arXiv:2310.00322, 2023. URL https://arxiv.org/abs/2310.00322.
  65. [65]Ning Lu, Shengcai Liu, Rui He, Qi Wang, Yew-Soon Ong, and Ke Tang. Large language models can be guided to evade AI-generated text detection. arXiv preprint arXiv:2305.10847, 2023. URL https://arxiv.org/abs/2305.10847.
  66. [66]Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z. Berkay Celik, and Ananthram Swami. Practical Black-Box Attacks against Machine Learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security (ASIACCS), pages 506–519, 2017. doi: 10.1145/3052973.3053009.DOI
  67. [67]Bo Hui, Haolin Yuan, Neil Gong, Philippe Burlina, and Yinzhi Cao. PLeAk: Prompt Leaking Attacks against Large Language Model Applications, May 2024. URL http://arxiv.org/abs/2405.06823.
  68. [68]Joint Task Force. Security and privacy controls for information systems and organizations. Technical Report NIST Special Publication 800-53, Revision 5, National Institute of Standards and Technology, September 2020. URL https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r5.pdf.
  69. [69]Niloo­far Mireshghallah, Hyunwoo Kim, Xuhui Zhou, Yulia Tsvetkov, Maarten Sap, Reza Shokri, and Yejin Choi. Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theory, October 2023. URL http://arxiv.org/abs/2310.17884.
  70. [70]Cynthia Dwork and Aaron Roth. The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science, 9(3-4):211–407, 2014. URL https://www.cis.upenn.edu/~aaroth/Papers/privacybook.pdf.
  71. [71]Martin Abadi, Andy Chu, Ian Goodfellow, H. Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, pages 308–318, 2016. URL https://arxiv.org/abs/1607.00133.
  72. [72]Bochuan Cao, Yuanpu Cao, Lu Lin, and Jinghui Chen. Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM, December 2023. URL http://arxiv.org/abs/2309.14348.
  73. [73]Alexander Robey, Eric Wong, Hamed Hassani, and George J. Pappas. SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks, November 2023. URL http://arxiv.org/abs/2310.03684.
  74. [74]Christopher Barrie, Alexis Palmer, and Arthur Spirling. Replication for language models: Problems, principles, and best practice for political science. Working paper, 2024. URL https://arthurspirling.org/documents/BarriePalmerSpirling_TrustMeBro.pdf.
  75. [75]Berk Atil, Alexa Chittams, Liseng Fu, Ferhan Ture, Lixinyu Xu, and Breck Baldwin. LLM stability: A detailed analysis with some surprises. arXiv preprint arXiv:2408.04667, 2024. URL https://arxiv.org/abs/2408.04667.
  76. [76]Su Lin Blodgett, Solon Barocas, Hal Daumé III, and Hanna Wallach. Language (technology) is power: A critical survey of "bias" in NLP. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 5454–5476, 2020. URL https://arxiv.org/abs/2005.14050.
  77. [77]Ninareh Mehrabi, Fred Morstatter, Nripsuta Saxena, Kristina Lerman, and Aram Galstyan. A survey on bias and fairness in machine learning. ACM Computing Surveys, 54(6):1–35, 2021. URL https://arxiv.org/abs/1908.09635.
  78. [78]Eugene Bagdasaryan and Vitaly Shmatikov. Differential privacy has disparate impact on model accuracy. In Advances in Neural Information Processing Systems 32 (NeurIPS 2019), 2019. URL https://arxiv.org/abs/1905.12101.
  79. [79]Dimitris Tsipras, Shibani Santurkar, Logan Engstrom, Alexander Turner, and Aleksander Madry. Robustness may be at odds with accuracy, 2019. URL https://arxiv.org/abs/1805.12152.
  80. [80]Anw­esan Pal, Radhika Bhargava, Kyle Hinsz, Jacques Esterhuizen, and Sudipta Bhattacharya. The empirical impact of data sanitization on language models. arXiv preprint arXiv:2411.05978, 2024. URL https://arxiv.org/abs/2411.05978.
  81. [81]Shaina Raza, Ananya Raval, and Veronica Chatrath. MBIAS: Mitigating bias in large language models while retaining context. arXiv preprint arXiv:2405.11290, 2024. URL https://arxiv.org/abs/2405.11290.
  82. [82]Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, pages 1273–1282, 2017. URL https://arxiv.org/abs/1602.05629.
  83. [83]Yuntao Bai, Saurav Kadavath, Sandipan Kundu, Amanda Askell, Jackson Kernion, Andy Jones, Anna Chen, Anna Goldie, Azalia Mirhoseini, Cameron McKinnon, Carol Chen, Catherine Olsson, Christopher Olah, Danny Hernandez, Dawn Drain, Deep Ganguli, Dustin Li, Eli Tran-Johnson, Ethan Perez, Jamie Kerr, Jared Mueller, Jeffrey Ladish, Joshua Landau, Kamal Ndousse, Kamile Lukosuite, Liane Lovitt, Michael Sellitto, Nelson Elhage, Nicholas Schiefer, Noemi Mercado, Nova DasSarma, Robert Lasenby, Robin Larson, Sam Ringer, Scott Johnston, Shauna Kravec, Sheer El Showk, Stanislav Fort, Tamera Lanham, Timothy Telleen-Lawton, Tom Conerly, Tom Henighan, Tristan Hume, Samuel R. Bowman, Zac Hatfield-Dodds, Ben Mann, Dario Amodei, Nicholas Joseph, Sam McCandlish, Tom Brown, and Jared Kaplan. Constitutional AI: Harmlessness from AI Feedback, December 2022. URL http://arxiv.org/abs/2212.08073.
  84. [84]Isaac Hepworth, Kara Olive, Kingshuk Dasgupta, Michael Le, Mark Lodato, Mihai Maruseac, Sarah Meiklejohn, Shamik Chaudhuri, and Tehila Minkus. Securing the AI software supply chain. Technical report, Google, 2024. URL https://research.google/pubs/securing-the-ai-software-supply-chain/.
  85. [85]Yupei Liu, Yuqi Jia, Runpeng Geng, Jinyuan Jia, and Neil Zhenqiang Gong. Prompt injection attacks and defenses in LLM-integrated applications. arXiv preprint arXiv:2310.12815, 2023. URL https://arxiv.org/abs/2310.12815.
  86. [86]Sizhe Chen, Julien Piet, Chawin Sitawarin, and David Wagner. StruQ: Defending Against Prompt Injection with Structured Queries, February 2024. URL https://doi.org/10.48550/arXiv.2402.06363.
  87. [87]Yuanhe Zhang, Zhenhong Zhou, Wei Zhang, Xinyue Wang, Xiaojun Jia, Yang Liu, and Sen Su. Crabs: Consuming resource via auto-generation for LLM-DoS attack under black-box settings. arXiv preprint arXiv:2412.13879, 2024. URL https://arxiv.org/abs/2412.13879.
  88. [88]Tian Dong, Minhui Xue, Guoxing Chen, Rayne Holland, Yan Meng, Shaofeng Li, Zhen Liu, and Haojin Zhu. The Philosopher’s Stone: Trojaning plugins of large language models. In Network and Distributed System Security Symposium (NDSS), 2025. doi: 10.14722/ndss.2025.230164. URL https://www.ndss-symposium.org/wp-content/uploads/2025-s164-paper.pdf.DOI
  89. [89]Ethan Perez, Saffron Huang, Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia Glaese, Nat McAleese, and Geoffrey Irving. Red Teaming Language Models with Language Models, February 2022. URL http://arxiv.org/abs/2202.03286.
  90. [90]Deep Ganguli, Liane Lovitt, Jackson Kernion, Amanda Askell, Yuntao Bai, Saurav Kadavath, Ben Mann, Ethan Perez, Nicholas Schiefer, Kamal Ndousse, Andy Jones, Sam Bowman, Anna Chen, Tom Conerly, Nova DasSarma, Dawn Drain, Nelson Elhage, Sheer El-Showk, Stanislav Fort, Zac Hatfield-Dodds, Tom Henighan, Danny Hernandez, Tristan Hume, Josh Jacobson, Scott Johnston, Shauna Kravec, Catherine Olsson, Sam Ringer, Eli Tran-Johnson, Dario Amodei, Tom Brown, Nicholas Joseph, Sam McCandlish, Chris Olah, Jared Kaplan, and Jack Clark. Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned, November 2022. URL http://arxiv.org/abs/2209.07858.
  91. [91]Jakob Mökander, Jonas Schuett, Hannah Rose Kirk, and Luciano Floridi. Auditing large language models: a three-layered approach. AI and Ethics, 4(4):1085–1115, 2023. doi: 10.1007/s43681-023-00289-2. URL https://link.springer.com/article/10.1007/s43681-023-00289-2.DOI
  92. [92]FIRST CVSS Special Interest Group. Common Vulnerability Scoring System version 4.0: Specification document. Forum of Incident Response and Security Teams (FIRST), 2023. URL https://www.first.org/cvss/v4.0/specification-document.
  93. [93]Robert Tarjan. Depth-first search and linear graph algorithms. SIAM Journal on Computing, 1(2):146–160, 1972. doi: 10.1137/0201010.DOI
  94. [94]Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. Introduction to Algorithms. MIT Press, Cambridge, MA, 3 edition, 2009. ISBN 978-0262033848.
  95. [95]Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic evaluation of machine translation. Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 311–318, 2002. doi: 10.3115/1073083. 1073135.
  96. [96]Chin-Yew Lin. Rouge: A package for automatic evaluation of summaries. Text Summarization Branches Out, pages 74–81, 2004.
  97. [97]Neel Jain, Avi Schwarzschild, Yuxin Wen, Gowthami S omepalli, John Kirchenbauer, Ping-yeh Chiang, Micah Goldblum, Aniruddha Saha, Jonas Geiping, and Tom Goldstein. Baseline Defenses for Adversarial Attacks Against Aligned Language Models. arXiv.org, 2023. doi: 10.48550/ARXIV.2309.00614.DOI
  98. [98]Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. URL https://arxiv.org/abs/1607.06450.
  99. [99]Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. URL https://arxiv.org/abs/1503.02531.
  100. [100]Shuangfei Zhai, Tatiana Likhomanenko, Etai Littwin, Dan Busbridge, Jason Ramapuram, Yizhe Zhang, Jiatao Gu, and Josh Susskind. Stabilizing transformer training by preventing attention entropy collapse. Proceedings of the 40th International Conference on Machine Learning (ICML 2023), 2023. URL https://arxiv.org/abs/2303.06296.
  101. [101]Hyunjik Kim, George Papamakarios, and Andriy Mnih. The lipschitz constant of self-attention. Proceedings of the 38th International Conference on Machine Learning, pages 5562–5571, 2021. URL https://arxiv.org/abs/2006.04710.
  102. [102]Lujia Shen, Yuwen Pu, Shouling Ji, Changjiang Li, Xuhong Zhang, Chunpeng Ge, and Ting Wang. Improving the robustness of transformer-based large language models with dynamic attention. arXiv preprint arXiv:2311.17400, 2023. URL https://arxiv.org/abs/2311.17400.
  103. [103]Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(56):1929–1958, 2014. URL http://jmlr.org/papers/v15/srivastava14a.html.
  104. [104]Li Wan, Matthew Zeiler, Sixin Zhang, Yann Le Cun, and Rob Fergus. Regularization of Neural Networks using DropConnect. In Proceedings of the 30th International Conference on Machine Learning, pages 1058–1066, 2013. URL https://proceedings.mlr.press/v28/wan13.html.
  105. [105]Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q. Weinberger. Deep networks with stochastic depth. European Conference on Computer Vision, pages 646–661, 2016. URL https://arxiv.org/abs/1603.09382.
  106. [106]Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. Proceedings of the 33rd International Conference on Machine Learning, 48:1050–1059, 2016. URL https://arxiv.org/abs/1506.02142.
  107. [107]Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. Advances in Neural Information Processing Systems, 30, 2017. URL https://arxiv.org/abs/1612.01474.
  108. [108]Thomas M. Cover and Joy A. Thomas. Elements of Information Theory. Wiley, 2nd edition, 2006.
  109. [109]Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron Courville. FiLM: Visual reasoning with a general conditioning layer. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018.arxiv.org/abs/1709.07871
  110. [110]Chen Zhu, Yu Cheng, Zhe Gan, Siqi Sun, Tom Goldstein, and Jingjing Liu. FreeLB: Enhanced Adversarial Training for Natural Language Understanding. arXiv preprint arXiv:1909.11764, 2019. URL https://arxiv.org/abs/1909.11764.
  111. [111]Tianyu Gao, Xingcheng Yao, and Danqi Chen. Simcse: Simple contrastive learning of sentence embeddings. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 6894–6910, 2021. doi: 10.18653/v1/2021.emnlp-main.552. URL https://arxiv.org/abs/2104.08821.
  112. [112]Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, 1:1715–1725, 2016. doi: 10.18653/v1/P16-1162. URL https://arxiv.org/abs/1508.07909.
  113. [113]Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. URL https://arxiv.org/abs/1807.03748.
  114. [114]Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. Proceedings of the 37th International Conference on Machine Learning, 119:1597–1607, 2020. URL https://arxiv.org/abs/2002.05709.
  115. [115]Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9729–9738, 2020. URL https://arxiv.org/abs/1911.05722.
  116. [116]Xinyu Zhang, Hanbin Hong, Yuan Hong, Peng Huang, Binghui Wang, Zhongjie Ba, and Kui Ren. Text-CRS: A generalized certified robustness framework against textual adversarial attacks. In 2024 IEEE Symposium on Security and Privacy (SP), pages 2920–2938, 2024. doi: 10.1109/SP54263.2024.00053. URL https://arxiv.org/abs/2307.16630.
  117. [117]Josip Jukić and Jan Šnajder. From robustness to improved generalization and calibration in pre-trained language models. arXiv preprint arXiv:2404.00758, 2024. URL https://arxiv.org/abs/2404.00758.
  118. [118]Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On calibration of modern neural networks. Proceedings of the 34th International Conference on Machine Learning, 70:1321–1330, 2017. URL https://arxiv.org/abs/1706.04599.
  119. [119]Javid Ebrahimi, Anyi Rao, Daniel Lowd, and Dejing Dou. HotFlip: White-Box Adversarial Examples for Text Classification, May 2018. URL http://arxiv.org/abs/1712.06751.
  120. [120]Di Jin, Zhijing Jin, Joey Tianyi Zhou, and Peter Szolovits. Is bert really robust? a strong baseline for natural language attack on text classification and entailment, 2020. URL https://arxiv.org/abs/1907.11932.
  121. [121]Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P. Xing, Laurent El Ghaoui, and Michael I. Jordan. Theoretically principled trade-off between robustness and accuracy, 2019. URL https://arxiv.org/abs/1901.08573.
  122. [122]Judy Hoffman, Daniel A. Roberts, and Sho Yaida. Robust learning with jacobian regularization. arXiv preprint arXiv:1908.02729, 2019. URL https://arxiv.org/abs/1908.02729.
  123. [123]Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, and Shin Ishii. Virtual adversarial training: A regularization method for supervised and semi-supervised learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 41(8):1979–1993, 2018. doi: 10.1109/TPAMI.2018.2858821. URL https://arxiv.org/abs/1704.03976.
  124. [124]Jason Wei and Kai Zou. EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Tasks. arXiv preprint arXiv:1901.11196, 2019. URL https://arxiv.org/abs/1901.11196.
  125. [125]Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond Empirical Risk Minimization. arXiv preprint arXiv:1710.09412, 2017. URL https://arxiv.org/abs/1710.09412.
  126. [126]Jiaao Chen, Zichao Yang, and Diyiy Yang. Mixtext: Linguistically-informed interpolation of hidden space for semi-supervised text classification. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 2147–2157, 2020. doi: 10.18653/v1/2020.acl-main.194. URL https://arxiv.org/abs/2004.12239.
  127. [127]Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David Lopez-Paz, and Yoshua Bengio. Manifold Mixup: Better representations by interpolating hidden states. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 6438–6447, 2019. URL https://arxiv.org/abs/1806.05236.
  128. [128]Mohammad Zeineldeen, Kartik Audhkhasi, Murali Karthick Baskar, and Bhuvana Ramabhadran. Robust knowledge distillation from RNN-T models with noisy training labels using full-sum loss. arXiv preprint arXiv:2303.05958, 2023. URL https://arxiv.org/abs/2303.05958.
  129. [129]Micah Goldblum, Liam Fowl, Soheil Feizi, and Tom Goldstein. Adversarially robust distillation. Proceedings of the AAAI Conference on Artificial Intelligence, 34(04):3996–4003, 2020. doi: 10.1609/aaai.v34i04.5816. URL https://arxiv.org/abs/1905.09747.
  130. [130]Tao Lin, Lingjing Kong, Sebastian U. Stich, and Martin Jaggi. Ensemble Distillation for Robust Model Fusion in Federated Learning. Advances in Neural Information Processing Systems, pages 2351–2363, 2020. URL https://proceedings.neurips.cc/paper/2020/file/18df51b97ccd68128e994804f3eccc87-Paper.pdf.arxiv.org/abs/2006.07242
  131. [131]Florian Tramèr, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick McDaniel. Ensemble adversarial training: Attacks and defenses. In International Conference on Learning Representations (ICLR), 2018. URL https://arxiv.org/abs/1705.07204.
  132. [132]Nicolas Carlini, Anish Athalye, Nicolas Papernot, Wieland Brendel, Jonas Rauber, Dimitris Tsipras, Ian Goodfellow, Aleksander Madry, and Alexey Kurakin. On evaluating adversarial robustness, 2019. URL https://arxiv.org/abs/1902.06705.
  133. [133]Wassily Hoeffding. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58(301):13–30, 1963. doi: 10.1080/01621459.1963.10500830.DOI
  134. [134]The Trojan Detection Challenge 2023 (LLM Edition), 2023. URL https://trojandetection.ai/.
  135. [135]Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.arxiv.org/abs/1912.01703
  136. [136]Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander Rush. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 38–45. Association for Computational Linguistics, 2020. doi: 10.18653/v1/2020.emnlp-demos.6.DOI
  137. [137]Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th Symposium on Operating Systems Principles, pages 611–626. ACM, 2023. doi: 10.1145/3600006.3613165.DOI
  138. [138]Donna Dodson, Murugiah Souppaya, and Karen Scarfone. Secure Software Development Framework (SSDF) Version 1.1: Recommendations for Mitigating the Risk of Software Vulnerabilities. Technical Report NIST SP 800-218, National Institute of Standards and Technology, February 2022. URL https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-218.pdf.
  139. [139]Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. Proceedings of the 35th International Conference on Machine Learning, 80:274–283, 2018. URL https://arxiv.org/abs/1802.00420.
  140. [140]Mazeiar Salehie and Ladan Tahvildari. Self-adaptive software: Landscape and research challenges. ACM Transactions on Autonomous and Adaptive Systems, 4(2):1–42, May 2009. ISSN 1863-2386. doi: 10.1145/1516533.1516538. URL https://doi.org/10.1145/1516533.1516538.
  141. [141]Baolin Peng, Michel Galley, Pengcheng He, Hao Cheng, Yujia Xie, Yu Hu, Qiuyuan Huang, Lars Liden, Zhou Yu, Weizhu Chen, and Jianfeng Gao. Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedback. arXiv preprint arXiv:2302.12813, 2023. doi: 10.48550/ARXIV.2302.12813. URL https://arxiv.org/abs/2302.12813.
  142. [142]Chern, Steff Chern, Shiqi Chen, Weizhe Yuan, Kehua Feng, Chunting Zhou, Junxian He, Graham Neubig, and Pengfei Liu. FacTool: Factuality Detection in Generative AI – A Tool Augmented Framework for Multi-Task and Multi-Domain Scenarios. arXiv preprint arXiv:2307.13528, 2023. doi: 10.48550/ARXIV.2307.13528. URL https://arxiv.org/abs/2307.13528.
  143. [143]Ziyang Li, Saikat Dutta, and Mayur Naik. IRIS: LLM-assisted static analysis for detecting security vulnerabilities. In International Conference on Learning Representations (ICLR), 2025. URL https://arxiv.org/abs/2405.17238.
  144. [144]Ximing Lu, Sean Welleck, Peter West, Liwei Jiang, Jungo Kasai, Daniel Khashabi, Ronan Le Bras, Lianhui Qin, Youngjae Yu, Rowan Zellers, Noah A. Smith, and Yejin Choi. NeuroLogic A*esque decoding: Constrained text generation with lookahead heuristics. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 780–799, 2022. doi: 10.18653/v1/2022.naacl-main.57. URL https://arxiv.org/abs/2112.08726.
  145. [145]Yu-An Liu, Ruqing Zhang, Jiafeng Guo, Maarten de Rijke, Yixing Fan, and Xueqi Cheng. Robust neural information retrieval: An adversarial and out-of-distribution perspective. arXiv preprint arXiv:2407.06992, 2024. URL https://arxiv.org/abs/2407.06992.
  146. [146]Hyokun Yun, Parameswaran Raman, and S. V. N. Vishwanathan. Ranking via Robust Binary Classification. Advances in Neural Information Processing Systems, pages 2582–2590, 2014. URL http://papers.nips.cc/paper/5363-ranking-via-robust-binary-classification.pdf.
  147. [147]Minghong Fang, Jia Liu, Michinari Momma, and Yi Sun. FairRoad: Achieving fairness for recommender systems with optimized antidote data. arXiv preprint arXiv:2212.06750, 2022. URL https://arxiv.org/abs/2212.06750.
  148. [148]Frank McSherry and Ilya Mironov. Differentially Private Recommender Systems: Building Privacy into the Netflix Prize Contenders. Proceedings of the 15th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pages 627–636, 2009. URL https://www.microsoft.com/en-us/research/wp-content/uploads/2009/06/NetflixPrivacy.pdf.
  149. [149]Yunfan Gao, Yun Xiong, Xinyu Gao, Kangxiang Jia, Jinliu Pan, Yuxi Bi, Yi Dai, Jiawei Sun, Qianyu Guo, Meng Wang, and Haofen Wang. Retrieval-Augmented Generation for Large Language Models: A Survey, January 2024. URL http://arxiv.org/abs/2312.10997.
  150. [150]Daniel Alexander Alber, Zihao Yang, Anton Alyakin, Eunice Yang, Sumedha Rai, Aly A. Valliani, Jeff Zhang, Gabriel R. Rosenbaum, Ashley K. Amend-Thomas, David B. Kurland, Caroline M. Kremer, Alexander Eremiev, Bruck Negash, Daniel D. Wiggan, Michelle A. Nakatsuka, Karl L. Sangwon, Sean N. Neifert, Hammad A. Khan, Akshay Vinod Save, Adhith Palla, Eric A. Grin, Monika Hedman, Mustafa Nasir-Moin, Xujin Chris Liu, Lavender Yao Jiang, Michal A. Mankowski, Dorry L. Segev, Yindalon Aphinyanaphongs, Howard A. Riina, John G. Golfinos, Daniel A. Orringer, Douglas Kondziolka, and Eric Karl Oermann. Medical large language models are vulnerable to data-poisoning attacks. Nature Medicine, pages 1–9, January 2025. ISSN 1546-170X. doi: 10.1038/s41591-024-03445-1. URL https://www.nature.com/articles/s41591-024-03445-1.DOI
  151. [151]Jeremy Cohen, Elan Rosenfeld, and Zico Kolter. Certified adversarial robustness via randomized smoothing. In International Conference on Machine Learning, pages 1310–1320. PMLR, 2019.arxiv.org/abs/1902.02918
  152. [152]Haiyan Zhao, Hanjie Chen, Fan Yang, Ninghao Liu, Huiqi Deng, Hengyi Cai, Shuaiqiang Wang, Dawei Yin, and Mengnan Du. Explainability for large language models: A survey. ACM Transactions on Intelligent Systems and Technology, 15(2):1–38, 2024. doi: 10.1145/3639372. URL https://arxiv.org/abs/2309.01029.
  153. [153]María Agustina Ricci Lara, Rodrigo Echeveste, and Enzo Ferrante. Addressing fairness in artificial intelligence for medical imaging. Nature Communications, 13(1):4581, 2022. doi: 10.1038/s41467-022-32186-3. URL https://www.nature.com/articles/s41467-022-32186-3.
  154. [154]Waleed Hilal, S. Andrew Gadsden, and John Yawney. Financial fraud: A review of anomaly detection techniques and recent advances. Expert Systems with Applications, 193:116429, 2022. doi: 10.1016/j.eswa.2021.116429.DOI
  155. [155]Hao Cheng, Qingsong Wen, Yang Liu, and Liang Sun. Robusttsf: Towards theory and design of robust time series forecasting with anomalies. Proceedings of the Twelfth International Conference on Learning Representations (ICLR 2024), 2024. URL https://arxiv.org/abs/2402.02032.
  156. [156]Yedi Zhang, Yufan Cai, Xinyue Zuo, Xiaokun Luan, Kailong Wang, Zhe Hou, Yifan Zhang, Zhiyuan Wei, Meng Sun, Jun Sun, Jing Sun, and Jin Song Dong. The fusion of large language models and formal methods for trustworthy AI agents: A roadmap. arXiv preprint arXiv:2412.06512, 2024. URL https://arxiv.org/abs/2412.06512.
  157. [157]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, Andre Freitas, and Mustafa A. Mustafa. A survey of safety and trustworthiness of large language models through the lens of verification and validation. arXiv preprint arXiv:2305.11391, 2023. URL https://arxiv.org/abs/2305.11391.
  158. [158]Jorge García-Carrasco, Alejandro Maté, and Juan Trujillo. Detecting and understanding vulnerabilities in language models via mechanistic interpretability. Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence (IJCAI-24), pages 385–393, 2024. URL https://arxiv.org/abs/2407.19842.
  159. [159]Yingchaojie Feng, Zhizhang Chen, Zhining Kang, Sijia Wang, Haoyu Tian, Wei Zhang, Minfeng Zhu, and Wei Chen. JailbreakLens: Visual analysis of jailbreak attacks against large language models. IEEE Transactions on Visualization and Computer Graphics, 31(10):8668–8682, 2025. doi: 10.1109/TVCG.2025.3575694. URL https://arxiv.org/abs/2404.08793.
  160. [160]Siyuan Wang, Zhuohan Long, Zhihao Fan, and Zhongyu Wei. From LLMs to MLLMs: Exploring the landscape of multimodal jailbreaking. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 17568–17582, 2024. doi: 10.18653/v1/2024.emnlp-main.973.DOI
  161. [161]Xiangming Gu, Xiaosen Zheng, Tianyu Pang, Chao Du, Qian Liu, Ye Wang, Jing Jiang, and Min Lin. Agent Smith: A Single Image Can Jailbreak One Million Multimodal LLM Agents Exponentially Fast. In Proceedings of the 41st International Conference on Machine Learning, volume 235, June 2024. URL https://github.com/sail-sg/Agent-Smith.arxiv.org/abs/2402.08567
  162. [162]Lin Lu, Chenxi Dai, Wangcheng Tao, Binhang Yuan, Yanan Sun, and Pan Zhou. Exploring the robustness of decentralized training for large language models. arXiv preprint arXiv:2312.00843, 2023. URL https://arxiv.org/abs/2312.00843.
  163. [163]Yueqi Xie, Weizhong Zhang, Renjie Pi, Fangzhao Wu, Qifeng Chen, Xing Xie, and Sunghun Kim. Robust federated learning against both data heterogeneity and poisoning attack via aggregation optimization. arXiv preprint arXiv:2211.05554, 2022. URL https://arxiv.org/abs/2211.05554.
  164. [164]Eugene Bagdasaryan, Andreas Veit, Yiqing Hua, Deborah Estrin, and Vitaly Shmatikov. How to backdoor federated learning. In Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics, volume 108 of Proceedings of Machine Learning Research, pages 2938–2948, 2020.
  165. [165]Lov K. Grover. A fast quantum mechanical algorithm for database search. In Proceedings of the Twenty-Eighth Annual ACM Symposium on Theory of Computing, pages 212–219, 1996. doi: 10.1145/237814.237866.DOI
  166. [166]Xunguang Wang, Daoyuan Wu, Zhenlan Ji, Zongjie Li, Pingchuan Ma, Shuai Wang, Yingjiu Li, Yang Liu, Ning Liu, and Juergen Rahmel. SELFDEFEND : LLMs Can Defend Themselves against Jailbreaking in a Practical Manner. In arXiv:2406.05498v2, September 2024.arxiv.org/abs/2406.05498
  167. [167]Niklas Pfister, Václav Volhejn, Manuel Knott, Santiago Arias, Julia Bazińska, Mykhailo Bichurin, Alan Commike, Janet Darling, Peter Dienes, Matthew Fiedler, David Haber, Matthias Kraft, Marco Lancini, Max Mathys, Damián Pascual-Ortiz, Jakub Podolak, Adrià Romero-López, Kyriacos Shiarlis, Andreas Signer, Zsolt Terek, Athanasios Theocharis, Daniel Timbrell, Samuel Trautwein, Samuel Watts, Natalie Wu, and Mateo Rojas-Carulla. Gandalf the Red: Adaptive Security for LLMs, January 2025. URL http://arxiv.org/abs/2501.07927.
  168. [168]Patrick Chao, Edoardo Debenedetti, Alexander Robey, Maksym Andriushchenko, Francesco Croce, Vikash Sehwag, Edgar Dobriban, Nicolas Flammarion, George J. Pappas, Florian Tramèr, Hamed Hassani, and Eric Wong. JailbreakBench : An Open Robustness Benchmark for Jailbreaking Large Language Models. In 38th Conference on Neural Information Processing Systems (NeurIPS 2024) Track on Datasets and Benchmarks, October 2024. URL https://arxiv.org/abs/2404.01318v5.
  169. [169]Jean Lee, Nicholas Stevens, and Soyeon Caren Han. Large Language Models in Finance (FinLLMs). Neural Computing and Applications, January 2025. ISSN 0941-0643, 1433-3058. doi: 10.1007/s00521-024-10495-6. URL https://link.springer.com/10.1007/s00521-024-10495-6.DOI

Paper details

vlnc:W_2gtuhsf3
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 9

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents