PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts
Paper · 2023 · Kaijie Zhu, Jindong Wang, Jiaheng Zhou et al.
Summary
A sentiment classifier can read the same review and give a different answer because someone changed a word in the instruction above it. That matters when a developer writes one instruction for an entire collection of reviews, or when a user reuses a request to solve a series of problems. A variation in the shared instruction can affect many answers without any change to the material being processed. PromptRobust measures how well large language models maintain their performance under such changes.
The authors adapt 7 black-box text perturbation procedures for use on instructions. Black-box testing works without access to the system’s internal gradients. The procedures introduce spelling errors, substitute words, append distractions, or produce alternative English wording through translation. The intended task typically stays the same, although some generated rewrites change or obscure it. In a human assessment of sampled pairs, acceptability for the assessed families was at least 85%. The benchmark reports 4,788 adversarial prompts covering 8 tasks and 13 datasets, from grammar judgments and reading comprehension to translation and mathematics. It pairs direct task descriptions and role-based instructions with settings that either include worked examples or present the task without them.
The initial clean-prompt evaluation covers 9 systems, including Flan-T5-large, ChatGPT and GPT-4. Weak results on original instructions narrowed the main comparison to 6. GPT-4 received variants developed against ChatGPT, since searching for variants directly against GPT-4 would have been too costly. The experiments expose sensitivity throughout the evaluated group. Word substitutions do the most damage overall. The introduction reports a 39% average decline across tasks, while the detailed results report a 33% decline averaged across datasets. Few-shot learning, in which solved examples accompany the request, consistently improves robustness in the reported dataset comparisons. The comparison also finds relatively strong results for Flan-UL2 and Flan-T5-large in several settings, with outcomes that vary by task.
The authors find that an instruction variant sometimes carries its effect from one system to another, although the transferred effects are typically weaker and can even improve the target’s score. In selected failures, word-importance visualizations show altered instruction text gaining influence as evidence in the sample loses it. A separate analysis finds that words associated with robustness on one dataset can occur in both robust and vulnerable instructions on another. Together, these results make the complete instruction a unit worth testing. The authors discuss preprocessing, exposure to noisy training data and improved fine-tuning as possible responses. The evaluation uses dataset subsets and leaves more elaborate prompting strategies and white-box search outside its scope.
Deep dive: PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts
PromptRobust tests how typos, word substitutions and rephrasing in reusable instructions affect the answers language systems give. · about 40 minutes to read
The problem and its context
The instruction is part of the measurement
Suppose a system is asked to decide whether a passage expresses a positive or negative opinion. The passage gives it the evidence for a decision. The instruction tells it which decision to make and can specify the acceptable forms of an answer. The same passage could support a grammar judgment, a translation or a request for a continuation. Correct performance depends on reading the text and recognizing the operation the user wants performed on it.
A reusable instruction introduces a particular reliability problem. The sample changes from one request to the next, while the instruction can come from the same template every time. An error in one sample affects the request containing it. A problem with the template persists wherever that version is reused. The authors use this asymmetry to motivate an experiment in which they keep the samples fixed and apply a changed instruction across them. The question is how much of the performance observed with the original wording survives.
The distinction also applies when a person writes the instruction directly. People may choose different verbs to express a request, make a typing mistake, or describe a familiar task in phrasing that reflects another language. The authors put such variations and deliberately selected changes under the same term, adversarial prompts. It describes their role in the evaluation. The mechanism that generates them can deliberately look for failures, and the resulting text can still resemble an innocent variation. These are two different properties of a test case. One concerns how it was found. The other concerns whether it resembles something a user might write.
The authors also point out that some requests consist entirely of an instruction. A request to produce a story, for example, can be complete without a passage or another example attached to it. The paper uses benchmark tasks with known answers to measure prompt sensitivity. These tasks provide a way of checking outcomes that would be harder to define for a request allowing many equally suitable responses. The benchmark thus addresses a general feature of interaction through a setting where the consequences of an instruction change can be scored.
What robustness benchmarks had varied
The paper describes AdvGLUE and Adversarial NLI as resources for testing adversarial samples. Natural language inference, abbreviated NLI, concerns the relationship between statements, such as whether one follows from another. A test can challenge the system by changing the statements that it must judge. in that design the task instruction can stay fixed. The resulting score measures behavior under a particular kind of variation in the material presented to the system.
The authors also discuss work that evaluated ChatGPT and other systems on adversarial and out-of-distribution samples. An out-of-distribution test uses examples that differ from what the system encounters in its ordinary evaluation setting. Another study considered robustness in semantic parsing. The PromptRobust authors draw on these results as motivation for asking which part of an input the evaluation has varied. A benchmark built to stress the sample and one built to stress the instruction can expose different failures on the same underlying task.
The paper refers to DecodingTrust as a broader study that covers adversarial behavior alongside issues such as privacy, toxicity and stereotype bias. In the account given by PromptRobust, its adversarial sample evaluation uses AdvGLUE and AdvGLUE++. The comparison helps locate the new benchmark within an existing evaluation practice. A collection of modified samples can be held fixed as a test resource. An instruction stress test can also create variants of the wording that a particular application uses.
The work borrows a useful idea from universal adversarial triggers. A change can be shared across the inputs on which its effect is measured. For PromptRobust the shared element is the instruction, and the evidence for its effect comes from multiple examples that receive it. Sharing is a property of the experimental design. The effect still depends on the task, wording and system being evaluated. This distinction becomes especially important when the authors ask whether a variant also affects a different system.
The behavior the paper sets out to test
The related-work discussion distinguishes this objective from security tests involving prompt injection or requests for unsafe behavior. In those studies, the outcome of interest may be disclosure, an unauthorized action or another departure from a system’s rules. PromptRobust can count an incorrect sentiment label or a wrong answer to a mathematical problem as a failure. It studies whether the system carries out an ordinary task when the language defining that task changes.
This choice makes the intended meaning of a changed prompt part of the experimental evidence. If a variant still asks for the same judgment, the reference answer is still appropriate. If it gives a contradictory instruction or obscures the required output, using the original reference becomes harder to justify. The authors address that issue with constraints on rewriting and with human judgments. Both procedures matter because the intended interpretation has to survive the perturbation for a comparison to represent robustness to ordinary expression.
Robustness in this setting also differs from skill at the task as ordinarily presented. The clean score tells a reader how well a particular wording works with a particular collection of examples. The change in score tells the reader what happens when that wording is disturbed. A system has to demonstrate competence under the original condition for a small decline to be informative about its ability to keep doing the task. This is the reason the authors establish clean performance before they draw comparisons about resistance to prompt variation.
The method, step by step
Build the input from an instruction and a sample
The authors start with prompts that describe tasks their datasets can score. A request can state the operation explicitly, as when it asks for a judgment about grammatical acceptability. It can also assign a role whose expected work suggests the operation. A translator role, for example, gives the system context about the kind of response expected. The authors call these styles task-oriented and role-oriented. The same task can be introduced either way, which lets the experiment vary the framing while keeping the reference answers available.
Each framing appears with and without demonstrations. A zero-shot request provides an instruction and the sample to work on. A few-shot request also gives solved examples. The paper calls the original form of each request clean. That designation identifies the reference condition before a deliberate variation has been introduced. Each successful clean starting prompt can then be paired with changed versions and evaluated using the same task measure.
How PromptRobust measures instruction sensitivity
The steps in order.
The paper represents the zero-shot input as follows.
[P, x]
Here P is the instruction and x is the current sample. The brackets with a comma indicate concatenation, meaning that the pieces are placed together to construct the input. The sample could be a pair of sentences, a passage and question, or a mathematical problem. The instruction specifies how to use it.
The few-shot input has an additional component.
[P, E, x]
E is the collection of demonstrations. P remains the task instruction and x remains the current sample whose answer will be scored. The position of E shows that the examples appear before the current item. Their answers are visible in the input.
The paper illustrates the demonstration collection this way.
E = {[x₁, y₁], [x₂, y₂], [x₃, y₃]}
Each subscript distinguishes a demonstration. The x in each pair is a demonstration sample and its corresponding y is the known answer. The inner brackets indicate that the sample and answer appear together. The braces group the demonstrations. The authors randomly select these three examples from the task’s training set. The demonstrations supply in-context evidence at evaluation time. This part of the workflow constructs inputs, with no training of system parameters.
The authors write 10 prompts for each framing and produce a few-shot counterpart for each starting wording. That gives 40 clean candidates per dataset and system, distributed among 4 prompt types. The clean scores determine which candidates continue to the attack stage. The authors take the top 3 within each type. Selection takes place within a type so that there are strong starting examples for both roles and direct instructions, with and without demonstrations. It also makes the stress test conditional on wording that initially works well.
Move the perturbation from the sample to the prompt
The paper introduces its formal objective by describing what an ordinary adversarial example changes. In a compact transcription, the sample-level objective is:
max over δ ∈ C of L[fθ(x + δ); y]
x is the sample and y is its reference answer. δ is the text perturbation. C is the set of edits the procedure is allowed to consider, and ∈ indicates membership in that set. The plus sign in x + δ means applying the textual change. fθ is the system being evaluated, with θ denoting its parameters. L is the loss, which assesses the response against y. The semicolon in the brackets separates the response and the reference supplied to the loss. Maximization asks for high loss among the allowed alternatives.
With a shared instruction, the authors need a collection of reference answers. They describe the dataset as:
D = {(xᵢ, yᵢ) : i ∈ [N]}
D is the dataset. N is its number of labeled samples, and [N] denotes the index set for those samples. At index i, xᵢ is the sample and yᵢ is its reference answer. The parentheses keep the sample and its reference paired. In a generation task, the reference can be text, just as it can be a category in a classification task.
The prompt-level objective then becomes:
max over δ ∈ C of Σ[(x, y) ∈ D] L[fθ([P + δ, x]), y]
P is the original instruction and P + δ is the instruction after applying the edit. [P + δ, x] joins that instruction with the unchanged sample. The sum Σ adds the losses for the pairs in D. fθ, L, y and C have the roles just described. The maximization ranges over changes to the common instruction. The formula omits the demonstrations for simplicity, following the paper’s notation.
A single change can raise the sum even if it affects some examples much more than others. There is room for an edit to help on certain examples and still raise loss overall. This is a consequence of scoring a collection with an aggregate objective. It is also why later experiments can ask about consistency separately from average effect. A description of the search objective tells the reader which behavior the procedure seeks, while the measured results show how much of that behavior it actually finds.
Most of the benchmark’s perturbation procedures are adaptations of methods available through TextAttack. The chosen methods use black-box search. They can assess observable behavior without needing the gradients of the system they are testing. This makes it possible to include systems with different levels of access in the same evaluation framework. Repeating the task evaluation for different instructions is still expensive. The authors estimate that generating an adversarial instruction entails about 100 passes over the dataset on average. They describe a repository environment file with the study’s dependencies and refer to their code for the detailed settings.
Produce different kinds of wording variation
Character edits probe whether a system can recover the function of recognizable words after their spelling changes. The authors use TextBugger and DeepWordBug for this part of the benchmark. They can introduce errors such as a missing character, an unexpected substitution or a repeated letter. Both use a constraint that prevents another edit to a word already changed. DeepWordBug has a Levenshtein edit-distance limit of 30. That measure accounts for changes to the sequence of characters.
TextBugger uses a separate measure of semantic similarity based on sentence representations from the Universal Sentence Encoder. Its minimum similarity is 0.8. The score compares numerical representations of the original and altered instructions. This gives the search a way to screen for overall resemblance beyond counting character changes. In the paper’s accepted grammar example, several words have visibly damaged spellings, yet the requested judgment and the permitted answers remain recoverable. A human can recognize what the words are doing in that instruction despite the local errors.
Word-level variation tests a system’s handling of alternative lexical choices. BertAttack and TextFooler replace words with substitutes selected for similarity or contextual fit. The work behind TextFooler is cited as Is BERT Really Robust?. In PromptRobust, TextFooler uses 0.6 as the minimum cosine similarity between the representation of a word and that of a possible substitute. It also uses a minimum of 0.84 for sentence similarity. BertAttack applies a sentence-similarity minimum of 0.8. The character and word procedures thus can share a sentence-level constraint while testing quite different kinds of variation.
Similarity is an approximation to a linguistic judgment. A related word can be unsuitable as a verb in an instruction, or a substitute can obscure which attribute to judge. In a rejected sentiment example, the altered wording undermines both the action the reader should take and the term for the property being classified. A rejected MMLU example retains recognizable pieces of the multiple-choice format while producing a role description and an answering instruction that evaluators found unacceptable. These cases show where a numeric constraint can admit wording that a human reading the whole request would reject.
The sentence-level family appends text to the original instruction. StressTest uses repeated statements about truth or falsity. The appendix describes a repetition setting of five times. The adaptation of CheckList uses strings containing letters and digits. The authors generate 50 strings of length 10. The name of the perturbation family refers to the added material at the end of the prompt, and the strings themselves can be meaningless. Both procedures preserve the visible task description and test what happens when material irrelevant to that task appears beside it.
The semantic-level family works through translation. The authors describe 6 source languages, including Arabic, French and Japanese, as well as Chinese, Korean and Spanish. They generate 10 alternatives per language for each dataset. In the appendix’s account, GPT-4 constructs the alternatives from an English starting instruction and Google Translator translates them into English. The final variations can therefore differ in phrasing, grammar and choice of expression. Their purpose is to introduce ways of saying the task that a narrowly written English prompt collection might omit.
The translation used to produce alternative instructions plays a different experimental role from the translation tasks on which the benchmark is scored. A translation task measures the quality of the system’s translation of a sample. The perturbation procedure uses translation to vary how the system is told what to do. For example, a reading comprehension task can receive a translation-derived instruction without changing the passage or the question it processes. The authors use the term semantic-level for this generation route. They still check whether readers judge its outputs faithful.
Ask people whether the task survived the change
The authors recruit 5 independent evaluators and randomly sample 100 adversarial prompts paired with their originals. Evaluators see both versions and assess whether the altered wording retains the original meaning. The comparison has a practical purpose. A judge can read an awkward instruction, recover the requested operation and decide whether the stipulated answer remains appropriate. This is a direct check on a premise only approximated by distances between representations.
Sentence-level additions are excluded from this human study. The authors give the reason that the original instructions stay in place and the changes consist of appended material. The acceptability estimate therefore concerns the sampled character, word and semantic variants. The reported outcome is at least 85% acceptable. The paper includes both accepted and rejected examples to illustrate the judgment, so the selected examples make visible that readable wording and faithful wording can come apart.
The human assessment establishes that a substantial part of the tested variation can be understood as preserving the task. It also gives the authors a basis for checking whether the main result persists after prompts deemed unacceptable are removed. This is a separate comparison from the quality assessment itself. Agreement about meaning determines which variants enter that comparison. Task scores determine whether the systems remain sensitive within it.
Express the decline relative to the original score
The benchmark uses different evaluation functions for different tasks. A judgment with a fixed label can be scored as correct or incorrect. Reading comprehension uses F1. Translation uses the BLEU score associated with Bleu: a Method for Automatic Evaluation of Machine Translation. Raw declines in these scores have different meanings. A comparison between declines also depends on how much performance was available to lose under the clean instruction.
Performance Drop Rate, abbreviated PDR, measures decline relative to the clean total for the same setup. The paper defines it as:
PDR(A, P, fθ, D) =
1 − (Σ[(x, y) ∈ D] M[fθ([A(P), x]), y])
/ (Σ[(x, y) ∈ D] M[fθ([P, x]), y])
A denotes the perturbation procedure and A(P) is the altered form of P. fθ is the evaluated system and D is the dataset whose sample and reference pairs appear in both sums. M is the task-specific function that scores a response against its reference. The square brackets inside each call to fθ indicate the assembled input. The numerator uses the variant and the denominator uses the original instruction. Subtracting their ratio from 1 gives a positive value for a decline and a negative value for an improvement.
For a classification result, the scoring function can be written as:
M[ŷ, y] = 1 if ŷ = y, and 0 otherwise
ŷ is the label the system predicts and y is the reference label. Equality contributes 1 to the total and a mismatch contributes 0. A decline on such a task reflects fewer correct outputs under the perturbed prompt. For reading comprehension the article’s scoring function supplies an F1 score for the response, and for translation it supplies BLEU. The PDR calculation relates each score type to its own clean reference.
The denominator is important in another way. If it is zero, the displayed expression is undefined. If it is very small, the same absolute change can produce a large relative movement. The screening of initially weak conditions is therefore relevant to how the metric behaves as well as how the experiments are interpreted. An evaluation of prompt sensitivity is most informative when the original prompt produces usable task behavior.
Average over the conditions relevant to each question
Average Performance Drop Rate, or APDR, has several forms in the paper. An attack-focused comparison fixes the perturbation procedure and the dataset. It averages over prompts and systems.
APDR_A(A, D) =
(1 / |𝒫|)(1 / |ℱ|) Σ[P ∈ 𝒫] Σ[fθ ∈ ℱ] PDR(A, P, fθ, D)
𝒫 denotes the prompt collection across the tested types, and ℱ is the collection of systems. P and fθ range over the members included in their respective collections. The vertical bars give the number of members, so dividing by both sizes produces the mean. A is fixed, as is D. The subscript A identifies the comparison that groups results by perturbation procedure. This is the relevant form when asking how one procedure fares across the tested prompts for a dataset.
A system-focused comparison fixes the system and the dataset.
APDR_fθ(fθ, D) =
(1 / |𝒜|)(1 / |𝒫|) Σ[A ∈ 𝒜] Σ[P ∈ 𝒫] PDR(A, P, fθ, D)
𝒜 is the collection of perturbation procedures and 𝒫 is the prompt collection. The two factors beginning with 1 normalize the sum by the size of each collection. A and P vary, while fθ and D remain fixed. The subscript fθ marks the comparison by system. Its interpretation depends on which perturbations and prompt conditions that system actually receives.
The prompt comparison restricts the prompt collection to a single type.
APDR_t(D) =
(1 / |𝒜|)(1 / |𝒫ₜ|)(1 / |ℱ|)
× Σ[A ∈ 𝒜] Σ[P ∈ 𝒫ₜ] Σ[fθ ∈ ℱ] PDR(A, P, fθ, D)
t is the prompt type and 𝒫ₜ is the set of prompts of that type. 𝒜 and ℱ supply the procedures and systems being averaged. The product of the collection sizes normalizes the sum over those conditions. D is fixed. This formula is the basis for comparing, for instance, the relative decline of task-oriented prompts with demonstrations to that observed for other prompt conditions on the same dataset.
The authors also define a transfer average. They select vulnerable starting prompts and their variants using a source system. They then evaluate those variants on a target system. This keeps the search that picked the variants with the source and measures the obtained effects with the target.
APDR_transfer(A, fθ_target) =
(1 / |𝒫_source|)(1 / |𝔻|)
× Σ[P ∈ 𝒫_source] Σ[D ∈ 𝔻] PDR(A, P, fθ_target, D)
𝒫_source denotes the prompt collection selected on the source side and 𝔻 denotes the dataset collection. P and D index the terms of the average. fθ_target is the target on which PDR is measured. A is the perturbation procedure associated with the variants chosen using the source, and |𝒫_source| and |𝔻| are the sizes used to normalize the sum. A decline here measures how well the source-selected variants carry over to the target’s own clean baseline.
Describe what changes inside a scored input
The authors use two diagnostics that they call attention by gradient and attention by deletion. Both assign an importance score to the words in an input. The loss used in these diagnostics is associated with a particular response and its reference answer. The gradient method asks how locally sensitive that loss is to the representation of each input token. In this part of the paper x means the complete input, including the instruction and sample.
x = [t₁⁽¹⁾, t₂⁽¹⁾, …, tₙ⁽ᵏ⁾]
The list represents the input’s n tokens drawn from k words. tᵢ⁽ʲ⁾ denotes token i belonging to word j. The first two entries illustrate that more than one token can belong to the same word. Tokenization can divide words into pieces, so a display at word level requires a way to group those pieces.
wⱼ = M(tᵢ⁽ʲ⁾)
wⱼ is word j and M in this expression maps a token to its word. Here M identifies a grouping, while the M in the performance formula scores task outcomes.
g(tᵢ⁽ʲ⁾) = ∂L[fθ(x), y] / ∂tᵢ⁽ʲ⁾
g denotes the gradient assigned to the token. L is the loss of the output of fθ on input x relative to the reference y. The partial derivative, written with ∂, describes changes in the loss with respect to the token’s internal representation. The calculation uses information available to the authors for the visualization, independently of the black-box procedure used to produce the changed prompt.
g(wⱼ) = Σ[i such that M(tᵢ⁽ʲ⁾) = wⱼ] g(tᵢ⁽ʲ⁾)
g(wⱼ) is the gradient associated with the whole word. The sum runs over token positions i whose mapping identifies that word. This adds the token gradients together before measuring their magnitude.
s(wⱼ) = (‖g(wⱼ)‖₂ − minᵢ ‖g(wᵢ)‖₂)
/ (maxᵢ ‖g(wᵢ)‖₂ − minᵢ ‖g(wᵢ)‖₂)
s(wⱼ) is the displayed importance score for word j. The double bars with subscript ₂ mean Euclidean magnitude. The minimum and maximum range over words wᵢ in the same input. This writes out the paper’s stated normalization of the gradient magnitudes explicitly. The scaling shows which words stand out within an input. A similar display intensity in a different input can represent a different underlying loss sensitivity.
The deletion method scores the change in loss when a word is removed.
d(wᵢ) = |L[fθ(x), y] − L[fθ(x̂⁽ⁱ⁾), y]|
d(wᵢ) names the raw deletion score for word i. x̂⁽ⁱ⁾ is the input x with that word removed. L, fθ and y retain the same roles as in the gradient calculation. The absolute-value bars retain the size of the change whether the removal raises or lowers the loss.
s(wⱼ) = (d(wⱼ) − minᵢ d(wᵢ)) / (maxᵢ d(wᵢ) − minᵢ d(wᵢ))
s(wⱼ) is the normalized deletion score for word j. d(wⱼ) is the raw score from the preceding calculation, and the extrema range over all word positions i in the input. The notation distinguishes the raw and scaled quantities, which share a symbol in the paper. Each diagnostic produces a display of relative importance. The paper finds broadly similar patterns and focuses its discussion on the gradient display.
Count words in instructions grouped by performance
The word-frequency study asks whether robust instructions have recognizable vocabulary. The authors define a vulnerable prompt as one with a decline greater than 10%. Prompts with a drop of 10% or less enter the robust group. The statistic records how a word’s occurrences are distributed between those groups.
f_robust(wᵢ) = n_robust(wᵢ) / (n_robust(wᵢ) + n_vulnerable(wᵢ))
wᵢ is the word indexed by i. n_robust(wᵢ) counts occurrences of that word in robust prompts and n_vulnerable(wᵢ) counts its occurrences in vulnerable prompts. Their sum gives the denominator of the fraction f_robust(wᵢ). The fraction describes the observed collection. It leaves open what would happen if the word were introduced into a new sentence or if the same instruction were tested on another system.
Experiments and results
The benchmark tasks and their samples
The benchmark covers 8 task families represented by 13 datasets. Its language-understanding portion draws on GLUE. CoLA asks about the acceptability of a sentence and SST-2 uses text with labeled sentiment. These tasks make the difference between an input and its governing instruction easy to see. A sentence can carry an opinion and also be more or less grammatically acceptable. What counts as evidence for the answer depends on which judgment the wording asks the system to make. The sentiment dataset is associated with Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank.
QQP and MRPC test whether two pieces of text count as duplicates or paraphrases. The work on assembling the MRPC resource is cited as Automatically Constructing a Corpus of Sentential Paraphrases. The inference datasets include QNLI and WNLI as well as RTE and MNLI. MNLI is associated with A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference. In these tasks the instruction communicates which relationship the response should express. Losing the distinction between the input pair and the relationship to be judged can change the output even when both pieces of evidence are present.
MMLU provides multiple-choice questions across 57 subject tasks. Here the prompt guides the system toward choosing an option. SQuAD V2 gives the system a passage and a question, including questions that cannot be answered from the passage. The response must identify an answer span when the passage supports one or indicate that the answer is unavailable. This aspect of reading comprehension is the subject of Know What You Don’t Know.
The machine translation experiments use IWSLT 2017 and UN Multi. IWSLT 2017 includes transcriptions and translations from material such as TED Talks. UN Multi draws from formal United Nations documents. The difference gives the evaluation translation material from different contexts. Mathematics uses problems from the DeepMind Mathematics Dataset. These tasks require produced answers and give the study a range of outputs beyond classification labels.
For the GLUE portion, the study uses 1,000 validation items when the available set is larger, and the full validation set when it is smaller. The appendix describes a smaller sample of 200 for ChatGPT and GPT-4 to manage costs. For MMLU the authors use 10 validation examples per subject when available in sufficient quantity, otherwise taking the full validation portion for that subject. SQuAD V2 is evaluated using 200 randomly selected validation examples.
For translation, the authors report using 100 validation examples, divided evenly among the directions considered. The sampling description focuses on German, English and French and connects the choice to the language support of T5-large and UL2. The Mathematics sample spans 20 problem types, with 5 or 10 instances per type and a reported total of 160. These choices specify the material on which the benchmark measures relative change. A dataset name alone does not tell the reader the scope of that measurement.
Clean baselines and coverage of the attack experiments
The authors start with 9 systems. The initial set includes Flan-T5-large at 0.8B parameters and Flan-UL2 at 20B, along with Vicuna-13B and Dolly-6B. It also includes GPT-NEOX-20B, Cerebras-GPT-13B and the chat variant described by the Llama 2 paper. ChatGPT and GPT-4 complete the initial set. The breadth allows the study to examine different task performers. Successful performance across tasks remains a property to be measured before interpreting robustness.
The clean baseline exposes particularly weak results in some system–dataset combinations. On QQP, the gap between Dolly and Flan-T5-large is visible even before any perturbation. The task is to make a judgment about question pairs. If the starting instruction already yields very few correct decisions, a small relative drop carries a very different practical implication from a similar drop after a strong clean result.
Clean-prompt accuracy on QQP
Flan-T5-large performs substantially better than Dolly with unmodified instructions.
The numbers
| System or setting | accuracy % |
|---|---|
| Dolly | 0.53 |
| Flan-T5-large (this paper) | 86.67 |
Dolly, Cerebras and GPT-NEOX drop out of the main attack comparison after the clean evaluation. The remaining group includes Vicuna, Llama2-13B-chat, Flan-T5-large and Flan-UL2, together with ChatGPT and GPT-4. The authors also omit certain datasets for Vicuna and Llama2 because their responses there were judged unusable. The reported 4,788 adversarial prompts summarize this selected evaluation, whose coverage varies by system.
GPT-4’s role has an additional qualification. The search for adversarial variants was carried out against ChatGPT, with the selected variants reused to test GPT-4. The authors attribute that choice to the cost of repeated direct interactions with GPT-4. Its clean and perturbed task scores supply evidence about resilience to the tested variants. The direct-search results on other systems answer a related question under a different test. That distinction matters especially when interpreting the relative ranking.
How effects differ by perturbation and task
The clearest result concerns word substitutions. The detailed comparison reports a 33% average decline across datasets for word-level attacks. The introduction gives 39% as the average decline across tasks. These are the paper’s descriptions of the two aggregates. The relationship between them is left unspecified. Both accounts rank the word-level family as the most damaging among those tested.
BertAttack is reported as the strongest individual procedure across the tested systems. The detailed results describe a 20% drop from character-level attacks in most datasets. Translation-derived semantic variation has effects close to those of character edits. Appended distractions are weaker overall, with variation across tasks. StressTest illustrates the size of that variation. Its decline on the paraphrase data is substantially larger than the decline on the reading-comprehension data.
StressTest performance drop on SQuAD V2 and MRPC
Reading comprehension retains more of its clean score than paraphrase detection in this comparison.
The numbers
| System or setting | average performance drop % |
|---|---|
| MRPC | 25 |
| SQuAD V2 (this paper) | 2 |
The chart compares relative declines using each task’s clean score as the reference. MRPC and SQuAD V2 measure different kinds of task success. The chart indicates that a greater share of clean performance survived in the SQuAD V2 setting under this procedure. It gives no common absolute unit for the capabilities involved. Similar differences between tasks help explain the authors’ attention to individual dataset results alongside broad averages.
The ranking of the remaining procedures also depends on which system receives the instruction. TextBugger is more effective than DeepWordBug for Llama2 and ChatGPT in the comparison the authors describe. The order is reversed for Flan-T5-large. Vicuna and Llama2 also show particular sensitivity to appended material, while Flan-T5-large and ChatGPT are much less affected by those procedures. This pattern motivates the authors’ suggestion that related systems might share some vulnerabilities. The comparison measures behavior for the selected systems and grounds that suggestion in the tested prompts.
Which systems and formats retain performance
In the overall discussion, GPT-4 and Flan-UL2 emerge as the strongest in retaining performance. Flan-T5-large, ChatGPT and Llama2 follow in the reported ordering, and Vicuna is particularly susceptible across tasks. The relative ordering is most informative alongside task-level results. Flan-T5-large and Flan-UL2 hold up comparatively well on SST-2, SQuAD V2 and much of the inference evaluation. Flan-UL2 shows strength in translation, while ChatGPT is resilient in certain inference settings.
For the prompts generated against ChatGPT, the paper reports that GPT-4 retains more performance than ChatGPT in all tested tasks. This is a comparison on shared variants. A source-selected collection can include changes to which the source is particularly susceptible. The target system then faces the same text under its own task behavior. The source selection and the target’s behavior both matter to what the comparison can establish.
The few-shot conditions are consistently more robust across datasets in the reported prompt-type comparison. A solved example shows the system what the instruction calls for and which kind of answer belongs after an input. If an edited instruction becomes less clear, the examples can still illustrate the expected operation. That is one interpretation of the observed difference. The experiment shows a benefit for the tested combinations of wording and demonstrations.
Direct task descriptions have a small overall robustness advantage over role framing, with meaningful exceptions. Role prompts fare better on SST-2 and QQP. Direct task prompts are more resilient on MRPC, QNLI and SQuAD V2, as well as IWSLT 2017. The crossing of prompt styles with dataset outcomes is informative in its own right. QQP and MRPC both concern sentence pairs, for example, yet the reported result favors a different framing in each. How a role implies a task can depend on the specific language used in that dataset’s instructions.
When the sample is also perturbed
The main experiments pair the altered instructions with clean samples. An additional comparison uses the adversarial samples supplied by AdvGLUE. That dataset includes SST-2 and QQP alongside MNLI, QNLI and RTE. The comparison uses clean and adversarial prompts with clean and perturbed samples, giving the authors a way to examine what happens when both sources of variation are present.
The study reports that the combined condition can further reduce performance. Word-level procedures are again the strongest. The appendix describes an accuracy drop of more than 49% in its discussion of those procedures in the combined experiment. The accuracy statement concerns that setting. The main results’ word-level averages refer to the performance-drop comparison over the core benchmark.
The appendix also reports an increase for one SST-2 comparison in the combined experiment. A CheckList condition achieves 69.59% accuracy compared with 63.51% for the original condition. This result shows why the evaluation preserves the direction of a score change. Added material can interfere with a response, leave it essentially the same, or occasionally help. When the same general procedure produces changes in different directions, the mean establishes its net effect over the tested conditions. The individual comparisons establish where the mean hides a reversal.
What the ablations show
Demonstrations and direct instructions change the outcome
PromptRobust is an evaluation procedure, so its controlled comparisons vary the systems, inputs and scoring conditions that contribute to the result. The comparisons help identify which explanations fit the observed behavior. A given experiment usually varies several properties associated with its intervention, which is important when drawing a causal conclusion from it.
Adding demonstrations has the most consistent result among the prompt-format comparisons. The original framing can be a role description or a direct statement of the task, and both settings permit examples. Better retention in the few-shot conditions suggests that the instruction can be supported by information elsewhere in the input. A demonstration supplies a pattern for identifying the task and shows a permitted response, which can be valuable when a particular expression in the instruction has become harder to interpret.
The format change introduces those cues together. It also adds text. The experiment therefore tests the package supplied by the actual few-shot setup. Its results leave open how much of the benefit comes from seeing the expected answer format, from seeing how the task has been applied, or from another consequence of the added material. The mixed results for role wording make it especially important to keep the few-shot comparison separate from claims about any particular framing.
Scale and instruction tuning offer different evidence
The size comparison studies Llama2-7B-chat, Llama2-13B-chat and Llama2-70B-chat. According to the appendix, the chosen chat variants use the same fine-tuning data and methods. Their sizes differ within a related family, making the comparison more controlled than comparing unrelated systems with different training histories. The analysis considers sentiment and grammatical acceptability on SST-2 and CoLA.
The clean results usually favor a larger variant, as the paper describes for Llama2-70B-chat. Under perturbation, smaller variants sometimes do better than larger ones. The main discussion describes a general tendency toward robustness with size and notes these exceptions. The appendix also cautions that the comparisons among systems as a whole show no clear size relationship. The relatively strong result of Flan-T5-large in the broader benchmark illustrates why a system’s parameter count alone carries limited predictive value for this evaluation.
The fine-tuning comparison uses Llama2-7B and Llama2-7B-chat. The authors assess the original and the variant fine-tuned on human instructions in the sentiment and grammar experiments. The chat variant fares better in the reported comparison. This supports the narrower conclusion that instruction-oriented adaptation in this pair is associated with stronger performance under prompt perturbation. As a within-family comparison, it provides a different kind of evidence from observing that Flan-UL2 and Flan-T5-large frequently retain more performance than ChatGPT.
The authors discuss aspects of training and possible memorization as explanations for differences among unrelated systems. A system familiar with the evaluation material could sometimes answer correctly even under a degraded instruction. The analyses leave that possibility open. The Llama2 comparison gives evidence about the effect of changing size within that family and about the difference between the base and chat variants. It does not measure memorization or identify which examples, objectives or features of tuning account for the observed gains.
Filtering questionable rewrites leaves substantial drops
Because some generated prompts obscure or alter the task, the authors rerun their attack comparison after excluding prompts deemed unacceptable. They report that APDR remains substantial across datasets in the filtered results. This addresses a specific alternative explanation for the main results. The entire performance decline could have appeared to come from instructions whose meanings are too damaged to support the original reference answer. The continued drops after filtering show that this explanation accounts for only part of the observed vulnerability at most.
The human examples also clarify the intended standard. Recovering a damaged spelling can be easy if the rest of the instruction makes the missing form obvious. Recovering an instruction after an unsuitable synonym can be harder if the replacement alters how the reader understands the action or the item to which it applies. A filtered benchmark makes stronger claims about continuity of meaning where that continuity has been assessed. The study’s sampling and exclusion of appended material still determine which cases the human result covers.
Word importance can shift toward or away from relevant evidence
The authors first examine examples that receive a correct answer with a clean prompt and an incorrect answer with its variant. In a sentiment case associated with BertAttack, the clean response is heavily influenced by the sample’s word lazy, which is relevant to a negative judgment. In the altered condition, importance can move toward modified wording in the instruction. DeepWordBug supplies an example in which a damaged instruction word gains prominence while awful, a negative cue in the sample, receives less.
Added text can redistribute importance in a different way. A CheckList example gives substantial influence to the random material appended to the instruction while a positive word in the sample loses prominence. For some additions, the importance display continues to highlight parts of the sample at the same time. The authors read these paired displays as evidence that the modified material can compete with features useful to the original prediction.
The deletion and gradient methods give similar qualitative results in the authors’ analysis. This matters because one measures the change when a word is removed, and the other measures sensitivity around the current input representation. Agreement supports the description of which words become influential under the chosen diagnostics. Each display is normalized within its own input and comes from examples selected for a change in correctness. Its value is in illustrating a possible failure pattern, with the frequency of that pattern across all affected items left open.
Inspection of the actual responses supplies another kind of evidence. Some answers give a label belonging to the task but choose the wrong one. In a DeepWordBug example, the system instead responds with wording that would fit a multiple-choice rejection and falls outside the available sentiment labels. Those responses count as errors in the task score. Their difference is useful for understanding what an instruction change has disrupted. A wrong allowed label is compatible with following the requested answer format. An answer outside the categories also shows a failure to maintain the response constraints.
The authors then examine cases where an altered prompt restores a correct answer. In a StressTest example, the appended statement coincides with greater importance for the label indicating lack of entailment, while relevant words about the entities in the sample remain influential. This is a case where changed word importance accompanies an improvement. The comparison helps make sense of the occasional negative PDR under appended distractions. The same broad intervention can change the use of evidence in either direction.
Transfer is measurable and irregular
Some prompts that lower a source system’s performance also lower the target’s. The average effect on the target is generally smaller than the original effect on the source. Standard deviations tend to exceed the corresponding averages in the transfer results, so a favorable or unfavorable mean can summarize a wide range of individual outcomes. The authors find better transfer into ChatGPT than into Flan-T5-large or Flan-UL2 in the comparisons they report.
An example in the opposite direction is the BertAttack transfer from Flan-UL2 to Vicuna. The paper reports -0.70(3.18) for the transfer APDR and its standard deviation. The negative mean indicates that the transferred prompts improve the target score on average in that case. The variability is large relative to the mean. This result shows that the source and target can respond differently to the same wording, even when it was selected for a pronounced effect on the source.
Transfer also provides the context for the GPT-4 experiment. That system’s scores show that it retains more performance than ChatGPT on ChatGPT-selected prompts. The broader transfer analysis shows why this observation is compatible with the target’s having vulnerabilities of its own. How much of the source effect persists depends on the particular variant and on the system that receives it.
Vocabulary associations depend on the task
The word-count analysis concentrates on Flan-T5-large prompts for CoLA and MRPC. For CoLA, words including acting and detection are more associated with the robust group, while words such as analyze and assess appear in more vulnerable settings. These words occur in instructions with different structures and surrounding language. A count records those occurrences as they were observed.
MRPC gives a different picture. Many words are common to both the robust and the vulnerable prompts. The overlap suggests that the mere presence of a word is a weak guide to the prompt’s behavior. The authors emphasize the importance of how the word is used in the full instruction. Syntax and semantic coherence are possible contributors to that behavior. The frequency statistic supplies associations on the sampled prompts. Testing the influence of a particular word independently would call for controlling the surrounding wording and task.
Limitations
Limits identified by the authors
The authors state that computational cost limits the amount of data they evaluate. Repeated scoring across a full dataset for every prompt variant is expensive. The benchmark consequently combines datasets for which only a subset is scored with validation sets small enough to use in full. That matters for generalizing the measured declines and for comparing systems assessed using different sample sizes. The experiment documents the behavior of the material included in each setting.
The authors also identify limits on the breadth of systems and datasets covered. The task families are diverse, but they represent a selection whose outputs can be evaluated through existing references. A task that involves open-ended dialogue could require different evidence about what counts as preserved intent and successful execution. The reported results establish a recurring problem in the benchmark’s tasks, and the suitability of the same measurement for other tasks remains a separate question.
The study examines role and task framing together with the presence of worked examples. More elaborate strategies, including chain-of-thought prompting and tree-of-thought prompting, are explicitly outside the evaluation. The relative resilience of the tested few-shot instructions leaves the effect of those reasoning strategies open.
The final stated limit concerns access. The authors use black-box procedures to generate the altered prompts and identify white-box work as a possible direction. White-box search can use internal information that black-box search lacks. The gradient-based diagnostic in the paper serves a different purpose from such a search. It is computed to examine how loss responds to input tokens in selected examples. The robustness measurements apply to the variants produced in the reported test.
Limits that follow from the design
The benchmark is designed to reveal failures. It uses strong clean prompts and procedures that seek damaging variants. The frequency of errors found this way is conditional on those choices. It cannot estimate how frequently a user happens to make a harmful mistake in ordinary use, since that would require observing the distribution of the prompts users actually write. Acceptability to human evaluators supports the plausibility of sampled variants, while their frequency in use remains unknown.
The semantic check also has bounded coverage. The rating of at least 85% comes from the sampled prompts in the assessed families. The study excludes appended material on the grounds that the original instruction is still visible. From a reader’s perspective, extra text could still change the interpretation of the whole request, particularly when the boundary between the instruction and other material is unclear. The human study and the filtered rerun provide evidence about the assessed rewrites. Their design leaves that particular question about appended material open.
The term semantic-level names a particular translation-based construction. Its final prompts are English, and the languages and translation process are specified. The resulting variants may contain unusual but equivalent language, traces of the generation procedure, or unintended changes of meaning. Their effect is evidence about the complete variant as tested. It cannot isolate the independent influence of any of those contributing factors.
System comparisons also have an exposure difference. GPT-4 is assessed with transferred prompts, certain datasets are omitted for Vicuna and Llama2, and initially weak systems leave the main attack comparison. Those decisions make the experiments feasible and keep the benchmark centered on usable task performance. They mean that the overall ordering summarizes the attacks and datasets available for each comparison. Particularly close rankings would need to be read in light of that coverage and the smaller proprietary-system samples.
Relative decline and absolute competence give different information. PDR helps compare a change in translation score with a change in classification performance, since each is divided by its own clean baseline. The resulting averages still combine different kinds of task success and failure. Two conditions can have the same relative decline while producing very different numbers of usable answers. The clean baseline and the task-specific score remain necessary to put the relative result in context.
The two reported word-level averages also deserve their own labels. The paper gives 39% across tasks in the introduction and 33% across datasets in the detailed attack analysis. The descriptions do not specify how to reconcile the figures. The ranking of word-level attacks is consistent across those descriptions, while a reader seeking a single estimate of their overall effect is left with the two reported scopes.
Finally, the importance displays illustrate how inputs associated with changed responses can differ in their loss sensitivity. They provide no frequency estimate over all failed items and cannot determine from the displayed scores alone whether rerouting influence caused a particular misclassification. The deletion diagnostic changes a word and measures loss afterward, and the gradient diagnostic gives a local measure around the studied input. Their similarity supports the qualitative examples. A full explanation would need evidence about how reliably the observed shifts predict changed answers across inputs.
Defenses proposed for further study
The paper discusses possible defenses with different points of intervention. Spelling verification targets recognizable surface errors. Rephrasing attempts to recover a clearer expression of the same request. Exposure to low-quality or deliberately perturbed data borrows a principle from adversarial training. Further instruction fine-tuning could adapt a system to a broader range of requests. The reported within-family tuning comparison motivates that last idea, while the proposed robustness interventions are left as directions for investigation.
The defenses also include combining predictions from diverse systems and using recent query history to flag patterns. Limited transfer provides the reason to consider diversity. If failures differ across systems, the combined prediction could retain evidence available to some of them. The paper discusses the competing possibility that a shared weakness might remain across a collection. Likewise, a preprocessing step can succeed at changing the spelling or phrasing while still altering an important part of the request. The benchmark’s own semantic checks make clear what a defense evaluation would need to measure alongside its task score.
What came after
Evaluation and trustworthiness
The citing work includes surveys concerned with what evaluation can establish about language systems. A Survey on Evaluation of Large Language Models and Evaluating Large Language Models: A Comprehensive Survey address that subject broadly. PromptRobust contributes a specific measurement question to their area. If an evaluation reports performance under one instruction, how much of that result survives a change to the wording? A rating of task ability and an estimate of instruction sensitivity can both come from the same examples, provided the evaluation actually varies the instruction.
A Systematic Survey and Critical Review on Evaluating Large Language Models places evaluation limitations and recommendations within the scope of its review. PromptRobust supplies a case where the choice of presentation is itself a variable whose effect can be measured. Its clean baseline, selected variants and paired task scores show how to make that dependency visible. The citation connects the benchmark to a critical look at evaluation practice. The specific part it plays in the review remains unspecified.
TrustLLM and Trustworthy LLMs cite PromptRobust in work concerned with trustworthiness and the evaluation of alignment. Instruction robustness adds a particular question to that broader subject. Will the system reliably carry out a legitimate request across the wording variants reasonably associated with that request? PromptRobust answers through labeled tasks and controlled input comparisons. The wider works are connected by what trustworthy behavior is meant to encompass.
DecodingTrust is both a citing work and a paper discussed by the PromptRobust authors. Its own assessment studies a broader set of properties in GPT systems. The comparison described by PromptRobust focuses on where the adversarial change is made. DecodingTrust uses adversarial sample resources, while PromptRobust uses the task instruction as the shared object of the perturbation. The relationship illustrates how evaluating trustworthiness can involve changes to multiple parts of a request, with each kind of change answering a different reliability question.
Other ways to vary the prompt
Large Language Models Sensitivity to The Order of Options in Multiple-Choice Questions studies the ordering of possible answers. The presentation variable here is where an option appears, instead of the wording of the instruction that asks the system to choose. Its connection to PromptRobust is the question of invariance. An evaluator expects the same underlying item to remain solvable after an admissible change to how it is displayed. The two inquiries make different parts of that display available for examination.
EvoPrompt uses evolutionary algorithms for prompt optimization. That objective is connected to the selection step in PromptRobust, where the authors identify high-performing original prompts before stressing them. Good wording is the object of the optimization study. Stability near good wording is the object of the robustness study. The citation links two questions that can be posed about the same instruction once it has been selected for its performance.
Cross-lingual Prompting concerns improving zero-shot chain-of-thought reasoning across languages. This puts language variation together with a prompting strategy that PromptRobust explicitly leaves outside its experiments. The earlier benchmark uses multilingual generation to obtain English variations and measures whether they disrupt the original task. The citing work’s stated objective concerns using cross-lingual prompting to improve reasoning. Their scopes illustrate the different experimental roles that language variation can play.
Transfer and defensive evaluation
Universal and Transferable Adversarial Attacks on Aligned Language Models cites PromptRobust and shares an interest in effects that can persist over different inputs or carry between systems. In PromptRobust, the shared item is the rewritten instruction for an ordinary benchmark task, and transfer is measured by changes in that task’s score. The other work addresses adversarial attacks on aligned systems. That places transfer in a different research setting, even though the question of whether an effect depends on the system used to discover it remains relevant.
Baseline Defenses for Adversarial Attacks Against Aligned Language Models takes defensive evaluation as its subject. The connection to PromptRobust is the practical need to check both sides of an intervention. A change to the way instructions are processed can reduce sensitivity to altered text and can also affect how a legitimate request is understood. PromptRobust formulates that concern through clean reference scores and meaning checks. The citation establishes a connection to the defense literature, with reuse of any particular defense or benchmark procedure left unspecified.
AutoDAN addresses interpretable gradient-based adversarial attacks. Access to gradients draws a connection to the white-box direction the PromptRobust authors identify. In PromptRobust, gradients are used to inspect examples after the test, while prompt generation follows black-box procedures. The citing work’s gradient-based focus concerns how an adversarial input is found. The relationship shows how conclusions about robustness depend partly on the information made available to the evaluation procedure.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 1Research subjects and languages the work is about.Language models & pretraining · 4,145 works
Appears in
Mentioned in articles aboutHangzhou
Cite
Cite as Kaijie Zhu, Jindong Wang, Jiaheng Zhou, Zichen Wang, Hao Chen, Yidong Wang, Linyi Yang, Wei Ye, Yue Zhang, Neil Zhenqiang Gong and Xing Xie. 2023. PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts. arXiv:2306.04528.
@misc{zhu2023promptrobust,
title = {{PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts}},
author = {Kaijie Zhu, Jindong Wang, Jiaheng Zhou, Zichen Wang, Hao Chen, Yidong Wang, Linyi Yang, Wei Ye, Yue Zhang, Neil Zhenqiang Gong and Xing Xie},
year = {2023},
doi = {10.48550/arxiv.2306.04528},
eprint = {2306.04528},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2306.04528}
}References
- Emily M. Bender, Timnit Gebru, Angelina McMillan-Major, and Shmargaret Shmitchell. On the dangers of stochastic parrots: Can language models be too big? FAccT 2021, pp. 610–623, New York, NY, USA, 2021. Association for Computing Machinery. ISBN 9781450383097. OpenAlex ↗ · Scholar ↗
- Stella Biderman, USVSN Sai Prashanth, Lintang Sutawika, Hailey Schoelkopf, Quentin Anthony, Shivanshu Purohit, and Edward Raf. Emergent and predictable memorization in large language models. arXiv preprint arXiv:2304.11158, 2023. our card
- Sid Black, Stella Biderman, Eric Hallahan, Quentin Anthony, Leo Gao, Laurence Golding, Horace He, Connor Leahy, Kyle McDonell, Jason Phang, Michael Pieler, USVSN Sai Prashanth, Shivanshu Purohit, Laria Reynolds, Jonathan Tow, Ben Wang, and Samuel Weinbach. Gpt-neox-20b: An open-source autoregressive language model, 2022. URL https://arxiv.org/abs/2204.06745. our card
- Google Brain. A new open source flan 20b with ul2, 2023. URL https://www.yitay.net/blog/flan-ul2-20b. OpenAlex ↗ · Scholar ↗
- Tom B Brown, Dandelion Mané, Aurko Roy, Martín Abadi, and Justin Gilmer. Adversarial patch. arXiv preprint arXiv:1712.09665, 2017. OpenAlex ↗ · Scholar ↗
- Nicholas Carlini, Daphne Ippolito, Matthew Jagielski, Katherine Lee, Florian Tramer, and Chiyuan Zhang. Quantifying memorization across neural language models. In The Eleventh International Conference on Learning Representations, 2023. OpenAlex ↗ · Scholar ↗
- Daniel Cer, Yinfei Yang, Sheng-yi Kong, Nan Hua, Nicole Limtiaco, Rhomni St. John, Noah Constant, Mario Guajardo-Cespedes, Steve Yuan, Chris Tar, Brian Strope, and Ray Kurzweil. Universal sentence encoder for English. In EMNLP, pp. 169–174, Brussels, Belgium, November 2018. Association for Computational Linguistics. . URL https://aclanthology.org/D18-2029. our card
- Mauro Cettolo, Marcello Federico, Luisa Bentivogli, Jan Niehues, Sebastian Stüker, Katsuhito Sudoh, Koichiro Yoshino, and Christian Federmann. Overview of the IWSLT 2017 evaluation campaign. In Proceedings of the 14th International Conference on Spoken Language Translation, pp. 2–14, Tokyo, Japan, December 14-15 2017. International Workshop on Spoken Language Translation. URL https://aclanthology.org/2017.iwslt-1.1. our card
- Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. Vicuna: An open-source chatbot impressing gpt-4 with 90%* chatgpt quality, March 2023. URL https://lmsys.org/blog/2023-03-30-vicuna/. OpenAlex ↗ · Scholar ↗
- Paul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. Deep reinforcement learning from human preferences. Advances in neural information processing systems, 30, 2017. our card
- Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Eric Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, Albert Webson, Shixiang Shane Gu, Zhuyun Dai, Mirac Suzgun, Xinyun Chen, Aakanksha Chowdhery, Sharan Narang, Gaurav Mishra, Adams Yu, Vincent Zhao, Yanping Huang, Andrew Dai, Hongkun Yu, Slav Petrov, Ed H. Chi, Jeff Dean, Jacob Devlin, Adam Roberts, Denny Zhou, Quoc V. Le, and Jason Wei. Scaling instruction-finetuned language models, 2022. URL https://arxiv.org/abs/2210.11416. OpenAlex ↗ · Scholar ↗
- Fred J Damerau. A technique for computer detection and correction of spelling errors. Communications of the ACM, 70 (3):0 171–176, 1964. OpenAlex ↗ · Scholar ↗
- Databricks. Hello dolly: Democratizing the magic of chatgpt with open models, 2023. URL https://www.databricks.com/blog/2023/03/24/hello-dolly-democratizing-magic-chatgpt-open-models.html. OpenAlex ↗ · Scholar ↗
- Nolan Dey, Gurpreet Gosal, Zhiming, Chen, Hemant Khachane, William Marshall, Ribhu Pathria, Marvin Tom, and Joel Hestness. Cerebras-gpt: Open compute-optimal language models trained on the cerebras wafer-scale cluster, 2023. OpenAlex ↗ · Scholar ↗
- William B. Dolan and Chris Brockett. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005), 2005. URL https://aclanthology.org/I05-5002. our card
- Andreas Eisele and Yu Chen. MultiUN: A multilingual corpus from united nation documents. In Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10), Valletta, Malta, May 2010. European Language Resources Association (ELRA). URL http://www.lrec-conf.org/proceedings/lrec2010/pdf/686_Paper.pdf. our card
- Marzieh Fadaee, Arianna Bisazza, and Christof Monz. Data augmentation for low-resource neural machine translation. arXiv preprint arXiv:1705.00440, 2017. our card
- J. Gao, J. Lanchantin, M. L. Soffa, and Y. Qi. Black-box generation of adversarial text sequences to evade deep learning classifiers. In 2018 IEEE Security and Privacy Workshops (SPW), pp. 50–56, May 2018. . our card
- Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. our card
- Kai Greshake, Sahar Abdelnabi, Shailesh Mishra, Christoph Endres, Thorsten Holz, and Mario Fritz. More than you've asked for: A comprehensive analysis of novel prompt injection threats to application-integrated large language models. arXiv preprint arXiv:2302.12173, 2023. OpenAlex ↗ · Scholar ↗
- Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=d7KBjmI3GmQ. our card
- Jordan Hoffmann et al. Training compute-optimal large language models, 2022. our card
- Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. Adaptive mixtures of local experts. Neural computation, 30 (1):0 79–87, 1991. OpenAlex ↗ · Scholar ↗
- Di Jin, Zhijing Jin, Joey Tianyi Zhou, and Peter Szolovits. Is bert really robust? natural language attack on text classification and entailment. arXiv preprint arXiv:1907.11932, 2019. OpenAlex ↗ · Scholar ↗
- Karen Kukich. Techniques for automatically correcting words in text. ACM computing surveys (CSUR), 240 (4):0 377–439, 1992. OpenAlex ↗ · Scholar ↗
- Alexey Kurakin, Ian Goodfellow, Samy Bengio, et al. Adversarial examples in the physical world, 2016. OpenAlex ↗ · Scholar ↗
- Hector Levesque, Ernest Davis, and Leora Morgenstern. The winograd schema challenge. In Thirteenth international conference on the principles of knowledge representation and reasoning, 2012. OpenAlex ↗ · Scholar ↗
- Jinfeng Li, Shouling Ji, Tianyu Du, Bo Li, and Ting Wang. TextBugger: Generating adversarial text against real-world applications. In Proceedings 2019 Network and Distributed System Security Symposium. Internet Society, 2019. . URL https://doi.org/10.14722\%2Fndss.2019.23138. our card
- Linyang Li, Ruotian Ma, Qipeng Guo, Xiangyang Xue, and Xipeng Qiu. BERT-ATTACK: Adversarial attack against BERT using BERT. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 6193–6202, Online, November 2020. Association for Computational Linguistics. . URL https://aclanthology.org/2020.emnlp-main.500. our card
- Hanmeng Liu, Ruoxi Ning, Zhiyang Teng, Jian Liu, Qiji Zhou, and Yue Zhang. Evaluating the logical reasoning ability of chatgpt and gpt-4. arXiv preprint arXiv:2304.03439, 2023a. our card
- Yi Liu, Gelei Deng, Yuekang Li, Kailong Wang, Tianwei Zhang, Yepang Liu, Haoyu Wang, Yan Zheng, and Yang Liu. Prompt injection attack against llm-integrated applications. arXiv preprint arXiv:2306.05499, 2023b. our card
- Inbal Magar and Roy Schwartz. Data contamination: From memorization to exploitation. arXiv preprint arXiv:2203.08242, 2022. OpenAlex ↗ · Scholar ↗
- Pankaj Malhotra, Lovekesh Vig, Gautam Shroff, Puneet Agarwal, et al. Long short term memory networks for anomaly detection in time series. In Esann, volume 2015, pp. 89, 2015. OpenAlex ↗ · Scholar ↗
- Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. In CVPR, pp. 1765–1773, 2017. OpenAlex ↗ · Scholar ↗
- John 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. In EMNLP, pp. 119–126, 2020. our card
- Aakanksha Naik, Abhilasha Ravichander, Norman Sadeh, Carolyn Rose, and Graham Neubig. Stress test evaluation for natural language inference. In ACL, pp. 2340–2353, Santa Fe, New Mexico, USA, August 2018. Association for Computational Linguistics. URL https://aclanthology.org/C18-1198. our card
- Yixin Nie, Adina Williams, Emily Dinan, Mohit Bansal, Jason Weston, and Douwe Kiela. Adversarial nli: A new benchmark for natural language understanding. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 4885–4901, 2020. our card
- OpenAI. https://chat.openai.com.chat, 2023a. OpenAlex ↗ · Scholar ↗
- OpenAI. Gpt-4 technical report, 2023b. our card
- Tianyu Pang, Kun Xu, Chao Du, Ning Chen, and Jun Zhu. Improving adversarial robustness via promoting ensemble diversity. In International Conference on Machine Learning, pp. 4970–4979. PMLR, 2019. OpenAlex ↗ · Scholar ↗
- Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic evaluation of machine translation. In ACL, pp. 311–318, July 2002. . URL https://aclanthology.org/P02-1040. our card
- Fábio Perez and Ian Ribeiro. Ignore previous prompt: Attack techniques for language models. arXiv preprint arXiv:2211.09527, 2022. our card
- Massimo Quadrana, Alexandros Karatzoglou, Balázs Hidasi, and Paolo Cremonesi. Personalizing session-based recommendations with hierarchical recurrent neural networks. In proceedings of the Eleventh ACM Conference on Recommender Systems, pp. 130–137, 2017. OpenAlex ↗ · Scholar ↗
- Pranav Rajpurkar, Robin Jia, and Percy Liang. Know what you don't know: Unanswerable questions for SQuAD. In ACL, pp. 784–789, Melbourne, Australia, July 2018. Association for Computational Linguistics. . URL https://aclanthology.org/P18-2124. our card
- Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. Semantically equivalent adversarial rules for debugging nlp models. In Proceedings of the 56th annual meeting of the association for computational linguistics (volume 1: long papers), pp. 856–865, 2018. OpenAlex ↗ · Scholar ↗
- Marco Tulio Ribeiro, Tongshuang Wu, Carlos Guestrin, and Sameer Singh. Beyond accuracy: Behavioral testing of NLP models with CheckList. In ACL, pp. 4902–4912, Online, July 2020. Association for Computational Linguistics. . URL https://aclanthology.org/2020.acl-main.442. our card
- David Saxton, Edward Grefenstette, Felix Hill, and Pushmeet Kohli. Analysing mathematical reasoning abilities of neural models. In ICLR, 2019. URL https://openreview.net/forum?id=H1gR5iR5FX. our card
- Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538, 2017. OpenAlex ↗ · Scholar ↗
- Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In EMNLP, pp. 1631–1642, Seattle, Washington, USA, October 2013. Association for Computational Linguistics. URL https://www.aclweb.org/anthology/D13-1170. our card
- Hao Sun, Zhexin Zhang, Jiawen Deng, Jiale Cheng, and Minlie Huang. Safety assessment of chinese large language models. arXiv preprint arXiv:2304.10436, 2023. our card
- Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Stanford alpaca: An instruction-following llama model. https://github.com/tatsu-lab/stanford_alpaca, 2023. OpenAlex ↗ · Scholar ↗
- Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023a. our card
- Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023b. our card
- Eric Wallace, Shi Feng, Nikhil Kandpal, Matt Gardner, and Sameer Singh. Universal adversarial triggers for attacking and analyzing nlp. arXiv preprint arXiv:1908.07125, 2019. our card
- Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. GLUE: A multi-task benchmark and analysis platform for natural language understanding. 2019. In the Proceedings of ICLR. our card
- Ben Wang and Aran Komatsuzaki. GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model. https://github.com/kingoflolz/mesh-transformer-jax, May 2021. OpenAlex ↗ · Scholar ↗
- 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. arXiv preprint arXiv:2111.02840, 2021. OpenAlex ↗ · Scholar ↗
- Boxin Wang, Weixin Chen, Hengzhi Pei, Chulin Xie, Mintong Kang, Chenhui Zhang, Chejian Xu, Zidi Xiong, Ritik Dutta, Rylan Schaeffer, et al. Decodingtrust: A comprehensive assessment of trustworthiness in gpt models. arXiv preprint arXiv:2306.11698, 2023a. our card
- Jindong Wang, Xixu Hu, Wenxin Hou, Hao Chen, Runkai Zheng, Yidong Wang, Linyi Yang, Haojun Huang, Wei Ye, Xiubo Geng, et al. On the robustness of chatgpt: An adversarial and out-of-distribution perspective. In International conference on learning representations (ICLR) workshop on Trustworthy and Reliable Large-Scale Machine Learning Models, 2023b. our card
- Zhiguo Wang, Wael Hamza, and Radu Florian. Bilateral multi-perspective matching for natural language sentences, 2017. our card
- Alex Warstadt, Amanpreet Singh, and Samuel R Bowman. Neural network acceptability judgments. arXiv preprint arXiv:1805.12471, 2018. OpenAlex ↗ · Scholar ↗
- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, brian ichter, Fei Xia, Ed H. Chi, Quoc V Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho (eds.), Advances in Neural Information Processing Systems, 2022. our card
- Adina Williams, Nikita Nangia, and Samuel Bowman. A broad-coverage challenge corpus for sentence understanding through inference. In NAACL HLT, pp. 1112–1122. Association for Computational Linguistics, 2018. URL http://aclweb.org/anthology/N18-1101. our card
- Thomas Wolf et al. Huggingface's transformers: State-of-the-art natural language processing, 2020. our card
- Mitchell Wortsman, Gabriel Ilharco, Samir Ya Gadre, Rebecca Roelofs, Raphael Gontijo-Lopes, Ari S Morcos, Hongseok Namkoong, Ali Farhadi, Yair Carmon, Simon Kornblith, et al. Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. In International Conference on Machine Learning, pp. 23965–23998. PMLR, 2022a. our card
- Mitchell Wortsman, Gabriel Ilharco, Jong Wook Kim, Mike Li, Simon Kornblith, Rebecca Roelofs, Raphael Gontijo Lopes, Hannaneh Hajishirzi, Ali Farhadi, Hongseok Namkoong, et al. Robust fine-tuning of zero-shot models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7959–7971, 2022b. OpenAlex ↗ · Scholar ↗
- Linyi Yang, Shuibai Zhang, Libo Qin, Yafu Li, Yidong Wang, Hanmeng Liu, Jindong Wang, Xing Xie, and Yue Zhang. Glue-x: Evaluating natural language understanding models from an out-of-distribution generalization perspective. In ACL 2023 Findings, 2023. OpenAlex ↗ · Scholar ↗
- Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Thomas L. Griffiths, Yuan Cao, and Karthik Narasimhan. Tree of Thoughts: Deliberate problem solving with large language models, 2023. OpenAlex ↗ · Scholar ↗
- Yuan Zang, Fanchao Qi, Chenghao Yang, Zhiyuan Liu, Meng Zhang, Qun Liu, and Maosong Sun. Word-level textual adversarial attacking as combinatorial optimization. In Proceedings of ACL, 2020. our card
- Ziqi Zhang, Yuanchun Li, Jindong Wang, Bingyan Liu, Ding Li, Yao Guo, Xiangqun Chen, and Yunxin Liu. Remos: reducing defect inheritance in transfer learning via relevant model slicing. In Proceedings of the 44th International Conference on Software Engineering, pp. 1856–1868, 2022. OpenAlex ↗ · Scholar ↗
- Terry Yue Zhuo, Zhuang Li, Yujin Huang, Yuan-Fang Li, Weiqing Wang, Gholamreza Haffari, and Fatemeh Shiri. On robustness of prompt-based semantic parsing with large pre-trained language model: An empirical study on codex. arXiv preprint arXiv:2301.12868, 2023. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/zhu-2023-promptrobust-towards-evaluating-robustness-large/