Baseline Defenses for Adversarial Attacks Against Aligned Language Models
Paper · 2023 · Neel Jain, Avi Schwarzschild, Yuxin Wen et al.
Summary
A chat assistant may refuse a harmful request and then answer when extra text is attached to it. The added text need not explain the request or persuade a human reader. It can be a sequence found by automated search, and a sequence discovered using an accessible system can sometimes affect a service whose parameters are private. The paper asks whether defenses familiar from computer vision can protect assistants against this kind of jailbreak. It treats safety alignment as the practical work of shaping instructions an assistant will follow and requests it will decline. The experiments examine that behavior in large language models.
The authors compare defenses that intervene at different stages. A perplexity filter flags input that the scoring system finds difficult to predict. A paraphraser rewrites the request before the assistant responds. Retokenization changes how a string is divided into pieces while preserving the visible text. The training baseline teaches refusal using human-authored red-team examples mixed into ordinary instruction data. These are representative baselines drawn from established defense categories. The comparison asks how each affects the benchmark outcome on harmful requests and whether it preserves useful behavior on ordinary ones.
Both perplexity filters caught nearly all prompts carrying the standard optimized suffixes. When tests accounted for the filter, the search had difficulty producing inputs that looked ordinary and retained their effect on refusals. The detector also flagged about one in ten ordinary AlpacaEval inputs across the evaluated systems. Paraphrasing sharply reduced benchmark successes, from 74 to 5 in a paired Vicuna-7B comparison, while lowering performance on ordinary instructions. A full-access test showed that an intermediate rewriting system could reproduce material that the defense was intended to remove. Retokenization weakened the suffix effect on some assistants and also made some plain harmful requests more likely to pass the study’s response criterion. Adding human red-team examples to training modestly improved refusal on plain requests, with little change on their suffix-bearing counterparts.
The authors propose describing an adversary by the computation available and by which components the adversary can inspect. Their estimate puts the reference text attack 5-6 orders of magnitude above examples from vision in computational expense. The paper distinguishes full access to the relevant internals from partial access in which key components remain private. Under the tested budget, the difficulty of searching over discrete text helped explain why filtering could retain value and why producing strong adversarial examples during training was impractical. The findings establish empirical baselines for the search methods, systems, and access conditions studied. The authors leave open how those results would change with more capable search, better transfer to private systems, or a more effective training procedure.
Deep dive: Baseline Defenses for Adversarial Attacks Against Aligned Language Models
A study of how perplexity filtering, prompt rewriting, retokenization, and training affect jailbreak resistance and ordinary instruction following. · about 40 minutes to read
The problem and its context
A refusal can depend on the surface form of a request
A useful assistant has to distinguish instructions it should carry out from requests it should decline. The distinction belongs to the design of the assistant and the service around it. The paper uses alignment in this operational sense. What matters for the experiments is an observable response to a request that the safety training is intended to make the assistant refuse. The authors situate this behavior alongside earlier work on instruction following and harmlessness, including approaches based on human feedback and Constitutional AI.
An appended sequence gives the study a way to challenge that behavior while keeping the original request in the input. The paper calls the sequence a suffix because of its position and a trigger because it can change what the assistant does. The request continues to express the same harmful purpose. The assistant processes the entire input, however, so additional material can change the response even when it adds little a person would regard as relevant to the task. This gives researchers a concrete comparison between the response to the plain instruction and the response to its altered form.
The problem has a broader motivation than the particular response examined in the study. The authors imagine a customer-service assistant participating in a refund or helping to verify someone’s identity. Manipulating such an interface could affect a transaction or expose protected information. Those examples explain why instruction handling matters as assistants take on wider responsibilities. The experiments concentrate on responses in a chat interface. Earlier research on applications that ingest potentially untrusted material illustrates another part of the wider problem. Indirect prompt injection
The origin of a prompt also matters. Some inputs are discovered when people try different formulations or use partially automated procedures to probe an assistant. The paper describes these efforts as part of red teaming, the deliberate search for examples of undesirable behavior. Such work can reveal failures that a regular instruction-following test would have little reason to elicit. It also supplies the human-authored prompts used later in the paper’s training experiments. Red Teaming Language Models to Reduce Harms
The main defense tests instead use prompts constructed by an optimizer. An optimizer makes an input a candidate in a search guided by a measurable objective. The practical concern is that examples can be generated systematically, including strings a person would have little reason to write. A collection of familiar harmful requests can test whether training has produced ordinary refusals. Optimized variants ask how far that learned behavior extends when the input still contains the original request but takes an unfamiliar form.
Earlier work also demonstrated transfer, in which a string developed with the aid of one system influences another. This separates the place where a candidate is found from the place where it is used. A service can keep its own parameters confidential and still receive text that was selected using an accessible system. Transfer gives the defense study a reason to consider both systems involved in developing the test inputs and other systems on which those inputs can be presented. Universal and Transferable Adversarial Attacks
Why searching over text is a distinct problem
An image can be represented as a collection of numerical pixel values. An optimizer can propose a direction in which to move those values and work with the resulting image. In text, a system sees a sequence of tokens. A token can represent a word, part of a word, or other textual material. The process that divides the input into these units is called tokenization.
A gradient gives a direction of change in a numerical representation. A valid text input still has to consist of actual pieces that the system can process. A small move in the representation of one piece need not correspond to a valid replacement. The paper treats this as a discrete search problem. Changes at different positions can interact, so evaluating a replacement in one sequence gives limited information about its effect in another. This distinction helps explain why techniques developed for continuous inputs can be expensive to adapt to text.
The authors describe an earlier period in which these difficulties encouraged manual and semi-automated testing. Systems that accepted both images and text offered another route because the image component supplied continuous values that could be adjusted. Research on discrete optimization subsequently showed that a text pipeline could also be challenged directly. The authors trace the reference test in this paper to work that carried ideas from automated prompt discovery into the study of safety refusals. AutoPrompt
There was already a separate history of adversarial work on text classifiers. Classification involves choosing among outputs such as labels, while a chat assistant can generate a response in free form. The paper cites methods for systematically altering classifier inputs and work showing that a prefix or suffix can have an effect across different inputs. In that earlier context, universal describes the reuse of a trigger across inputs. Transferable concerns whether an effect extends to another system. A test can investigate either property. HotFlip and Universal Adversarial Triggers
The paper also describes earlier adversarial training for language tasks that perturbed numerical representations of words. That work sought improved task performance. Here the safety question concerns prompts that can actually arrive as text and the assistant’s resulting response. Training against changes inside a numerical representation and training against strings in the user interface address different distributions of inputs. That distinction becomes consequential when the study has to decide where its training examples will come from.
What the authors take from computer vision
Research in vision provided the three defense categories around which the paper is organized. Detection attaches a separate judgment to the incoming input. Preprocessing changes the representation sent to the main system. Adversarial training changes the system through exposure to challenging examples while it learns. This organization lets the authors compare interventions that act before the assistant receives a request with an intervention that changes how the assistant has learned to respond.
The image research starts from the observation that changes difficult for a person to notice can alter a classifier’s decision. A limit on the magnitude of the change makes comparisons possible and captures the perceptual premise of many such tests. A norm is a mathematical rule for measuring the size of the perturbation. Specifying a norm and a bound defines a region of allowed changes around an image. The paper presents this convention as part of the history behind classical adversarial evaluation. Intriguing Properties of Neural Networks and Explaining and Harnessing Adversarial Examples
The authors describe repeated difficulties with image detectors. A test may first check whether a detector recognizes examples constructed without any regard for the detector itself. A more demanding evaluation accounts for both the classifier’s behavior and the additional decision at the gate. The paper recounts detector failures in settings with full access and in settings where the detector’s parameters were private. It also cites theoretical work connecting the difficulty of building a strong detector to that of building a robust classifier. This history motivates evaluating the language detector under more than one assumption about the inputs it will face.
Preprocessing in vision has a related history. An input can be mapped to another representation in the hope that the transformation preserves the important parts of an image while removing a malicious modification. The authors explain that a transformation can also interfere with the search used to evaluate the defense. The term gradient obfuscation refers to a situation in which useful gradient information is difficult to obtain through the defense. An optimizer’s failure under those circumstances leaves a question about how much of the observed protection is due to the system’s behavior and how much is due to the difficulty of the search.
The authors find a practical question inside that distinction. If a defense sharply raises the effort needed to discover a failing case, a finite budget can make the increase consequential. That practical value depends on how realistic the budget and access restrictions are. It can coexist with uncertainty about what a stronger search could find. The vision literature therefore supplies a reason to examine optimization difficulty and a reason to state its conditions carefully.
Adversarial training gained a stronger standing in the vision work the paper reviews. In its conventional form, the training process creates challenging inputs against the system as it currently stands and includes them in an update. The repeated generation of examples is feasible when a useful perturbation is inexpensive to find. The authors cite vision settings in which 1-5 gradient computations can suffice to obtain an attack. They also describe extra training cost, a possible loss in ordinary performance, and resistance concentrated on the class of changes represented during learning. Towards Deep Learning Models Resistant to Adversarial Attacks
The threat includes access and available computation
A threat model describes what an adversary is assumed to know and what resources they can use. Under white-box access, the relevant systems and defensive components are available for inspection. Under gray-box access, important details remain private. In this paper those details can include the parameters of the assistant, the detector, or an intermediate rewriting system. Private access conditions matter because these components can be operated separately. A failure demonstrated with full information about one component has to be interpreted in light of which other components were available.
The authors treat full access as a demanding way to probe a defense. They emphasize partial access as representative of services with private parameters. They also point out that access to the weights of an open or leaked system can change the adversary’s task altogether. Someone able to modify those weights could alter the alignment directly through fine-tuning. The paper’s security question concerns the behavior of an assistant when it is presented with a prompt through the chosen interface.
The authors question whether the small-perturbation assumption from image research is the most informative constraint in this setting. A person may never inspect the text that reaches an automated service. A suffix can be noticeable and still be consequential. The paper proposes instead to track the number of system evaluations available for the search. An evaluation is a computational use of a system to assess candidate behavior. Specifying the allowance describes the effort involved and makes it feasible to run a bounded test.
The paper’s reference allowance is 513,000 evaluations across the systems used to develop the reference attack. The threat model leaves length open within what the assistant can process. The experiments nevertheless use specific suffix lengths because the threat model describes what is allowed, while a concrete experiment has to select an input construction to test. These are separate choices. The budget governs the amount of search that can be performed, and the length fixes the size of the input in a particular comparison.
A longer sequence provides more positions at which a change could matter, while also making the space of possibilities larger. With a fixed allowance, the search can examine only a limited share of those possibilities. The authors use this observation to explain why an explicit constraint on string length may be less informative than it first appears. Their proposal is to study the effort a defense imposes under stated conditions. Such a measurement can have practical value even when an experiment gives no general lower bound on the resources needed to get through the defense.
The method, step by step
Establish the baseline conditions
The paper uses the greedy coordinate gradient attack, abbreviated GCG, from the earlier work on universal and transferable suffixes as the common test case. The authors use the reference implementation and select a different pair of assistants for producing the benchmark suffixes. Vicuna V1.1 and Guanaco serve in that role. The resulting inputs support comparisons on those assistants and on others that were outside that development pair.
For a harmful request, the simplest reference condition is the request as written. That establishes what the assistant does before any added text is present. The study also tests the request carrying a suffix. Comparing these conditions shows how strongly the benchmark predicts a change in refusal behavior from the added material. The defense is then introduced, and its effect is judged against the corresponding reference. A condition involving the plain request is especially important when the defense changes the representation of the whole input, as it does in retokenization.
The study uses AdvBench for harmful behavior prompts. For ordinary instruction following it uses AlpacaEval, whose inputs are drawn from the AlpacaFarm evaluation set. These sources answer different parts of the research question. Harmful requests test responses where refusal matters. Ordinary instructions give the assistant a task to carry out and allow the authors to observe whether the defense has made it harder to provide a useful answer. A defense that simply prevents more inputs from reaching the assistant would look favorable on one measurement and impose a clear cost on the other.
The experiments implement filtering, rewriting, and retokenization as input-side treatments. The training experiment changes the assistant itself before evaluation. The flow describes the comparison across these separate treatments. Several experiments report only the measurements relevant to their particular intervention.
How the authors evaluate the baseline defenses
The steps in order.
Score the input with perplexity
The detector starts with the probability assigned to each token in context. A predictable token contributes relatively little to the score. A token that the scoring system considers unlikely contributes more. Following the sequence from the start gives a score that reflects how the tokens fit together, since the probability for each position depends on the preceding tokens. The idea is to detect statistical irregularity associated with the appended material.
The paper first writes a sum of negative log probabilities in its explanation of perplexity. Its definition in that display omits length normalization.
log(PPL) = −∑ᵢ log p(xᵢ ∣ x₀:ᵢ₋₁)
PPL is the paper’s notation for perplexity and log takes a logarithm. The index i identifies a position, xᵢ denotes the token there, and x₀:ᵢ₋₁ is the sequence of tokens preceding that position. The bar ∣ means “given,” and p gives the probability assigned to the token conditional on its predecessors. The summation sign ∑ᵢ adds these log probabilities over positions. The leading minus sign turns a lower probability into a larger positive contribution. The equals sign expresses the relation as it is written in the paper’s initial display.
When defining the actual prompt-level test, the paper divides that sum by the length of the sequence. Averaging matters because a longer input gives the sum more terms. A per-token score makes the decision depend on the average contribution over the prompt. The pass criterion is written as follows.
−(1 / |X|) ∑ᵢ log p(xᵢ ∣ x₀:ᵢ₋₁) < T
X is the prompt’s token sequence, |X| counts its tokens, and 1 / |X| gives the reciprocal of that count. The sum again runs over positions i, with xᵢ the current token and x₀:ᵢ₋₁ its predecessors. The function p supplies the conditional probability indicated by ∣, log is its logarithm, and the leading minus sign makes the summed quantity a measure of surprise. T is the cutoff, and < expresses the rule that the mean score must be below it for the prompt to pass. The normalized quantity in this rule is the one relevant to interpreting the whole-prompt decision.
To choose the cutoff, the authors use plain harmful prompts from AdvBench. They describe selecting the highest score observed among these requests so the reference inputs can proceed to the assistant. The purpose of this calibration is to isolate cases where the addition of a suffix introduces unusual text. A request can be statistically ordinary and still harmful. The cutoff controls which text the detector flags for the purposes of this experiment.
There is a small implementation ambiguity in the exposition. If the threshold is exactly the maximum and the pass rule uses strict inequality, a prompt attaining that maximum is a boundary case. The experimental description says the plain prompts passed. The text thus establishes the intended calibration outcome and leaves the treatment of equality unclear. It also uses the word perplexity for the score in prose while writing the threshold rule on the log scale. Those conventions are relevant when comparing an implementation with the paper.
The second filter scores contiguous windows of the input. In the main configuration a window contains 10 tokens. The authors use the maximum score among the windows in the plain AdvBench calibration prompts to determine the cutoff for that version. A prompt is flagged when a window is sufficiently surprising. The scoring region is smaller than the full request, so the filter can respond to a concentrated stretch of unusual text even when the average over the entire input is moderate.
The authors also evaluate the detector with its scoring criterion taken into account. In these tests the inputs face competing demands. They must score well enough at the gate while retaining the change in response that makes the suffix consequential. The paper varies the relative emphasis on those demands and observes filter passage and downstream success separately. This design helps distinguish a defense that still rejects the altered inputs from a case in which inputs can pass but have lost much of their effect.
Use a rewrite as the assistant’s input
The paraphrasing defense places a generative system between the user and the assistant. It receives the incoming prompt and a general request to restate it. The downstream assistant then receives the text returned by this intermediate stage. The intended effect is to preserve the user’s instruction while changing the expression enough that a suffix’s original token sequence does not survive. This applies to the whole incoming prompt, so the transformation can act on its intended content as well as on extraneous material.
The main experiment uses ChatGPT, identified as gpt-3.5-turbo, as the paraphraser. The authors use a temperature of 0.7, a setting that affects variation in the generated text, and cap the paraphrase at 100 tokens. The same setup provides rewritten versions of ordinary instructions for the utility test. Comparing the answers to original and rewritten instructions measures what happens when the rewrite is inserted as an actual part of the answering pipeline.
A rewriting stage can have several observable behaviors. It can restate the request, drop parts of it, refuse to rewrite it, or answer it directly. The downstream assistant processes whatever text reaches it. An upstream refusal can therefore help on a harmful example independently of any effect from changing the precise words. An upstream answer can have the opposite effect on a benign example by depriving the downstream assistant of the original task.
The paper separately probes the rewrite stage under full access. The defensive question is whether an intermediate system can emit the kind of input it was introduced to disrupt. The reported example establishes that this can happen under the stated access conditions. Its bearing on a service using a private paraphraser depends on whether the behavior transfers. The ordinary paraphrasing experiment and the full-access check therefore supply evidence about different conditions.
Keep the characters and change their segmentation
Retokenization also acts in front of the assistant. Its transformation is confined to the representation of the text as tokens. An ordinary word that the tokenizer typically represents as one unit may be passed to the assistant as shorter pieces. For instance, “replaying” can be read as a whole word or segmented into “re,” “play,” and “ing” while retaining the same characters in the same order. This illustrates the difference between changing wording and changing the underlying subword tokenization.
The authors’ hypothesis is that some of a suffix’s effect depends on the exact sequence of units that ordinarily represents it. The assistant could receive the same written request and form a different internal response when presented with a different segmentation. Prior work cited in the paper gave the authors a reason to expect some tolerance of broken tokens in ordinary generation. Their experiment tests whether that tolerance can coexist with a useful reduction in the effect of suspicious suffixes.
The method is byte pair encoding dropout, or BPE-dropout. BPE tokenization can combine smaller pieces into larger units according to merging rules. The dropout procedure randomly skips some merges, producing a different segmentation that generally contains more tokens. The paper situates this procedure in earlier work on using alternative segmentations. Subword regularization
The dropout setting is denoted by p. At p = 0, ordinary tokenization is used. The paper describes p = 1 as the limit in which splitting reaches the character or byte level. The sweep measures 0, 0.2, 0.4, 0.6, and 0.8. Since the choices of which merges to skip are random, the authors report averages over four runs. The resulting curves show the outcome as the amount of retokenization changes.
The authors evaluate both the prompts with suffixes and the plain harmful prompts at the different settings. The second condition gives a way to see whether the transformation changes the refusal behavior that the assistant already had. The study also includes Falcon-7B-Instruct alongside Vicuna and Guanaco because the token vocabulary differs. The effects of the same kind of transformation could vary with the pieces that the tokenizer has available.
Retokenization uses a fixed context allowance differently. Splitting words into smaller units raises how many tokens are needed for a passage of a given written length. The paper identifies this as a cost even before considering changes to generated responses. Its ordinary instruction comparison studies another cost, namely whether an assistant still follows the user’s request as well when the words are supplied under a different segmentation.
Change the training data and the desired response
The training baseline draws on instructions used for Alpaca and harmful prompts from Anthropic’s Red Team Attempts data. The ordinary instructions help teach the assistant to answer legitimate tasks. The red-team examples supply prompts on which the authors want it to learn a refusal. One comparison starts from LLaMA-1-7B, and another continues training from an existing Alpaca-7B instruction checkpoint. Alpaca’s instruction data use the methodology of Self-Instruct, and the starting foundation system is from LLaMA.
The authors make this substitution because classic adversarial training calls for refreshed examples crafted against the system as it learns. Generating strong test strings was already computationally demanding without putting that work inside the training cycle. A supply of human-authored red-team attempts makes the trial feasible. It also changes the question being tested. The experiment measures whether learning to refuse from that data mixture extends to the separate optimizer-generated benchmark cases.
Another issue is how to label a training example. A legitimate instruction still calls for a useful response when it is supplemented with irrelevant text. The authors explain that tuning only on harmful prompts with refusal responses quickly leads to refusals on harmless instructions too. Mixing data gives the assistant examples of when to comply as well as when to decline. The paper denotes the rate of sampling a harmful prompt by β and uses 0.2 for the main mixture.
The first update strategy teaches a standard refusal on the sampled harmful example. The second keeps that objective and also discourages the inappropriate response associated with the red-team attempt. The authors describe the former operation as descent on the refusal target and the latter as ascent on the loss for the inappropriate answer. Descent adjusts the parameters to reduce the corresponding loss. Ascent acts in the other direction, making that answer less likely under the training objective. The experiment asks whether both forms of feedback can be applied while preserving usable generation.
The Alpaca reference was fine-tuned for 3 epochs with an effective batch size of 128 and a learning rate of 5e-5. An epoch is a pass through the training data. The effective batch size describes how many examples contribute to an update, and the learning rate controls the scale of that update. The appendix reports using 4 RTXA5000s for about half a day. That timing describes the instruction fine-tuning experiment. It illustrates the distinction between the cost of the baseline and the additional burden that would come from searching for adversarial examples during training.
Experiments and results
Three measures answer different questions
The study uses attack success rate, abbreviated ASR, to summarize behavior on harmful prompts. The rule comes from the earlier GCG work. It checks generated text for a fixed set of strings associated with refusal and counts a response as a success when none appears. Applying the same rule across conditions gives the paper an operational way to track changes. The rate measures the absence of the specified language. Whether an answer actually fulfills the harmful request is a separate judgment.
Perplexity pass rates describe a different stage. A pass means the prompt goes through the filter without being flagged. Low passage on prompts carrying the benchmark suffix is favorable for detection. High passage on ordinary instructions is favorable for users who want their requests answered. A detector can have favorable results on the former and still raise too many flags on the latter. The paper uses AdvBench input for the harmful conditions and AlpacaEval inputs to examine the incidence of flags in ordinary use.
The utility experiments use AlpacaEval to compare generated answers with Text-Davinci-003 reference responses. The paper describes automated annotation based on GPT-4, Claude, or ChatGPT, and reports win rates using the same conversational template across the assistants. This measure attaches a preference to an answer given an ordinary instruction. It can reveal a deterioration after preconditioning the input or changing the weights, even when the generated text remains fluent. The distinction among preference, passage, and refusal is central to reading the evaluation.
The study’s conditions depend on which defense is being measured. The adaptive filtering experiments use 100 AdvBench test examples. The retokenization comparisons use repeated runs because the tokenizer is randomized. The paraphrase comparison includes a paired count for Vicuna-7B, in which each input can be followed across both treatments. The authors also report an initial learning-rate comparison for the ordinary Alpaca reference. Each number consequently has a particular denominator or comparison condition.
Filtering catches the standard prompts and also flags ordinary text
The filter study includes Vicuna-v1.1, Guanaco, and Falcon-Instruct. The authors also test Chat-GLM and MPT-Chat. Whole-prompt and windowed perplexity catch nearly all inputs carrying the reference suffixes. The plain harmful requests pass as intended under the AdvBench calibration. The contrast is evidence that the scores can identify properties introduced by the optimized additions.
In the adaptive comparison, it becomes much easier for some inputs to pass the whole-prompt filter. The paper also observes that the measured attack effect falls as the search gives increasing weight to the filter criterion. At a setting discussed in the paper, 20% of the adaptive inputs pass the windowed filter, and their attack effectiveness is approximately that of the plain harmful requests. The two measurements tell different parts of the story. The gate can admit inputs that no longer have much influence on the downstream response.
The authors find about one in ten ordinary AlpacaEval prompts flagged on average across the evaluated systems. This is a material cost if a flag ends the interaction. The detector is responding to how much the incoming sequence surprises the scoring system. A legitimate request can produce that signal. A lower rate of flags on the suffix-bearing set would matter little to the affected legitimate user if the response to a flag were simply to deny service.
The paper discusses using the signal to direct flagged requests through further processing. That would give a flag the meaning of increased scrutiny, with a different consequence for a false positive. The experiment measures passage under the filter and measures other defenses separately. Those measurements establish why routing is of interest. They leave the usefulness of a particular combined policy to a separate evaluation.
Rewriting sharply reduces measured successes
The main paraphrase comparison covers Guanaco-7B, Alpaca-7B, and Vicuna-7B. Rewriting brings Guanaco and Vicuna close to their respective success rates on plain harmful requests. In the Alpaca comparison the rate after rewriting is below its plain-request baseline. The authors attribute part of that outcome to the paraphraser’s own tendency to decline harmful requests.
The paper tracks the individual Vicuna inputs before and after the rewrite. Under the refusal-string rule, 74 count as successful when the original suffix-bearing input is used and 5 count as successful after paraphrasing. The comparison finds no case where rewriting changes an initial failure into a success. Following the same inputs through both conditions permits that conclusion. Totals alone could hide such reversals if improvements on other prompts were large enough.
Vicuna-7B on AdvBench, successful attacks before and after paraphrasing
The paired comparison shows fewer benchmark successes after the input is rewritten.
The numbers
| System or setting | successful attacks |
|---|---|
| Original suffix-bearing prompts | 74 |
| Prompts after paraphrasing (this paper) | 5 |
The qualitative examples show the intermediate system frequently retaining the intelligible instruction while leaving out the appended material. This observation provides one explanation for the paired result. The upstream system’s ability to refuse a harmful paraphrase supplies another. Both mechanisms can reduce downstream success, so the headline comparison measures the behavior of the complete rewriting stage.
On ordinary AlpacaEval instructions, the authors describe a performance drop of 10% from applying the paraphraser and a drop of 15% for Guanaco. They say that Vicuna and Alpaca fare somewhat better than Guanaco. The paper reports those quantities as performance drops. Their interpretation belongs with the preference-based AlpacaEval measurement and the particular rewriting configuration.
One example explains how the utility loss can arise. The paraphraser sometimes answered a benign instruction in place of rewriting it. The downstream assistant then received the answer as its input. In the Vicuna behavior described by the authors, the assistant responded by acknowledging the information. That can be a sensible reply to the intermediate text and a poor fulfillment of the original instruction. Each stage can produce fluent language while the pipeline as a whole loses the task.
Retokenization affects the original request as well as the suffix
With suffixes present, BPE-dropout reduces attack success for Vicuna and Guanaco. The authors identify 0.4 as the best dropout rate for those assistants in the suffix-present sweep. Falcon’s success rate remains unchanged in that comparison. Testing the additional vocabulary shows that reducing success on the systems used in the original benchmark development does not establish a uniform effect across tokenizers.
The baseline with no suffix shows an overlooked cost of changing segmentation. On Guanaco, plain harmful requests increasingly satisfy the success criterion, approaching the rate seen on the requests carrying suffixes. A manual inspection found coherent generations. This makes the observation more informative than a simple failure to produce intelligible text. The assistant could still generate a readable response while the behavior associated with refusing the plain harmful request had weakened.
For ordinary instructions, the paper compares AlpacaEval performance for Vicuna and Guanaco using ordinary tokenization and using dropout at 0.4. The randomized segmentation lowers performance on that comparison. The words are still those of the user’s instruction, but the assistant’s processing of them has changed. Preserving the sequence of characters therefore preserves only one aspect of the input that matters for useful behavior.
The authors also evaluate retokenization under an adaptive condition. The relative performance of the conditions differs across the tested assistants. The tested adaptation gives no improvement over the original attack when dropout is applied. The comparison supports a limited finding about the tested condition alongside the broader observation that the result depends on the assistant and its baseline response.
The training mixture mainly affects unsuffixed requests
The training experiments compare ordinary Alpaca instruction training with alternatives that mix in human-authored red-team prompts. One alternative inserts those examples while starting from the foundation checkpoint. Another continues from the already instruction-tuned checkpoint. Adding harmful prompts slightly reduces the rate of successes on plain harmful requests, especially in the continued-training condition.
For harmful requests carrying the benchmark suffix, the reported ASR differs by less than 1% in the comparison. Continuing from the instruction checkpoint with the mixture yields about a 2% performance drop on the ordinary instruction measure. The two findings indicate that the measured improvement on plain harmful inputs can coexist with nearly unchanged performance on the optimizer-generated test cases. The training data supplied a refusal signal on human-authored examples, while the separate evaluation asked how that signal generalized.
The initial Alpaca learning-rate trial gives context for the choice of ordinary reference. The paper reports about 48% on AlpacaEval at 5e-5 and about 44% at 2e-5. The authors use the setting associated with the higher win rate for their experiments. These are approximate win rates on the standard instruction evaluation during the initial comparison.
Alpaca initial learning-rate comparison on AlpacaEval win rate
The setting selected for the experiments had the higher approximate win rate.
The numbers
| System or setting | win rate % |
|---|---|
| Learning rate 2e-5 | 44 |
| Learning rate 5e-5 (this paper) | 48 |
Training that also discouraged the undesirable example responses produced repetitive text on a wide range of instructions. The authors observed repeated words or tokens even after reducing the proportion of harmful examples. They judged these assistants unusable and left their robustness rates unreported. This outcome underscores why generation quality is part of the training test. An assistant can fail the underlying task of answering questions before any comparison of its safety rate becomes meaningful.
What the ablations show
The detector’s scoring region matters
The paper varies how strongly adaptive evaluation accounts for the filter and reports two outcomes for those variants. One outcome is passage through the detector. The other is the downstream change in the assistant’s response under the benchmark rule. When the search gives greater weight to the filter’s criterion, some inputs become much easier to admit. At the same time the measured effect on refusals shrinks. The ablation demonstrates a difficulty of satisfying both requirements simultaneously under the procedure studied.
The gap between the whole-prompt and windowed comparisons helps explain the difference. A window can capture a concentrated run of unexpected tokens. Averaging over the full prompt includes the contribution of the rest of the text. That can make strongly unusual material less conspicuous under the mean. The local score is therefore harder to satisfy in some cases even though both filters are built from the same basic conditional probabilities.
The authors also compare window lengths and vary how much appended text the filter has to identify. Across the tested suffix lengths, the paper favors a window of 10 tokens on average. The result is a statement about that particular set of lengths and calibrated thresholds. How much text goes into the average changes how a detector responds to a concentrated irregularity. The comparison shows that the choice of scoring region influences the measured strength of the defense.
There is a second lesson in measuring the underlying ASR alongside passage. A change to the input may look favorable when judged only by how frequently it is admitted. That same change can reduce the effect on the assistant. Conversely, success measured only on outputs from unfiltered inputs says little about what a gate will admit. The study’s paired attention to input and output puts the observed resistance in a clearer causal context. A difficult search tradeoff can account for the empirical result without providing a proof that no input could meet both conditions.
The lengths studied also qualify the strong result on the standard suffixes. An evaluation with one reference input construction gives a clear baseline because the same kind of test appears across defenses. The length comparison shows that a detector is responding to statistical structure at a particular scale. Even within the paper’s chosen family of optimized examples, changing that structure alters the observed detection behavior.
The rewrite has more than one way to change the outcome
The paired Vicuna analysis asks what happens to the same inputs after paraphrasing. The direction of the changes is important. The paper observes that several examples move out of the set counted as successful, with the remaining successes drawn from cases that already satisfied the criterion. This is stronger evidence about the effect on that sample than a pair of totals would provide. It directly addresses whether the transformation creates new cases of apparent harmful compliance among prompts that were previously refused.
The authors’ qualitative examples help identify how the rewrite affects individual inputs. A paraphraser that restates the readable instruction and omits the attached string changes the exact text that the downstream assistant sees while retaining the task. A paraphraser that refuses creates a different input for that assistant, and may withhold the task entirely. The main result counts the consequences of these behaviors together. That is appropriate for evaluating the actual pipeline, while leaving the relative contributions of the mechanisms uncertain.
The benign experiment reveals a different kind of mismatch. An instruction can be transformed into an answer at the intermediate stage. The final assistant then responds to that intermediate answer even though it was supposed to receive a task. This observation supports a specific mechanism for some of the quality loss. A worse AlpacaEval result after paraphrasing can be caused by an altered task, a less suitable restatement, or a change in how the downstream assistant handles it. The paper presents the observed substitution of answers for instructions as one contributor.
The full-access demonstration addresses whether the intermediate stage can itself reproduce adversarial content. The main discussion names LLaMA-2-7B-chat in describing the verification, while the appendix labels its displayed case Vicuna-7B. The account leaves the relationship between those descriptions unclear. The conclusion that the paper supports across them is that the intermediate stage can exhibit the failure under full access. How often it occurs and whether it transfers to a private paraphraser remain different questions.
This result also changes how to read the main reduction after rewriting. The paired comparison shows that an ordinary rewriting configuration interferes with the reference attack on the measured prompts. The full-access demonstration shows that there are circumstances in which the rewrite stage can preserve what it is supposed to disrupt. Those findings address separate aspects of robustness. Together they explain why the authors view a paraphraser as a potentially useful obstacle whose effectiveness depends on access.
Changing token boundaries can change learned refusals
The dropout sweep lets the authors compare increasingly fine-grained segmentations without rewriting the visible sentence. The suffix-present series tests the proposed defensive effect. The plain-request series tests whether the intervention also changes how the assistant handles a request that carried no adversarial addition. Both comparisons are necessary to judge the result because retokenization applies to the entire input.
Guanaco makes the interpretive issue most apparent. As dropout changes the representation, the observed behavior for plain harmful inputs becomes more like the behavior for the suffix-bearing inputs. A reduction in the latter alone could suggest that the defense selectively disrupts the suffix. The plain condition shows that the transformation also changes established refusal behavior. Coherent outputs from the manual check are compatible with that interpretation.
The authors suggest that training with alternative segmentations might help an assistant learn to refuse under retokenization. This is a hypothesis prompted by the contrast between the standard representation and the randomized one. The reported training experiment uses human red-team prompts and targets a different question. The effectiveness of teaching refusal across alternate segmentations therefore remains open in the paper.
The comparison with Falcon draws attention to another source of uncertainty. Its vocabulary differs from those of the other assistants. Its behavior on the suffixes can also depend on how well those inputs transfer. Vocabulary and transfer affect different points in the experiment. The former changes what segmentation the system receives, while the latter changes how consequential the appended string is before the defense is applied. The paper identifies both as relevant possibilities. Testing additional assistants makes the variation visible without isolating the contribution of each.
Reducing the mixture does not restore usable training runs
In the comparison that teaches refusal and also discourages the inappropriate answer, the paper finds repetitive behavior at a harmful-example sampling rate of 0.2. The authors lower the rate to 0.1 and 0.05. Repetitive generation persists. This ablation tests whether reducing exposure to the harmful examples rescues the particular update procedure. It gives the authors no usable variant to compare on robustness within those settings.
The experiment distinguishes the initial checkpoint from the update rule. Starting from a foundation checkpoint means instruction-following behavior is being developed during the experiment. Continuing from Alpaca means that behavior already exists when the mixture is introduced. Refusal on plain harmful examples improves more clearly in the continued-training comparison. That observation gives evidence about the role of the starting point in the tested procedure, alongside the separate finding that combining the two forms of supervised feedback caused degeneration.
The gap between plain prompts and suffix-bearing ones gives the training analysis its clearest meaning. The mixture provides examples of harmful requests people chose to pose and a target refusal. It can teach a response pattern on those kinds of inputs. Generalization to strings from the independent optimizer is the harder evaluation. The small change in that condition indicates how limited the transfer was from this approximation to the study’s reference threat.
Limitations
Limits identified by the authors
The authors frame the study as an initial comparison of baseline defenses. Their claim about the practical value of filtering depends partly on the cost and effectiveness of the discrete search available to them. They leave open whether better optimizers will continue to face that computational difficulty. A filter that imposes a substantial additional burden under one search procedure can behave differently when a search can satisfy competing conditions more efficiently.
The proposed evaluation budget addresses a practical question about how much effort an adversary can expend. The paper does not supply a certified minimum effort needed to cause a failure. The authors explicitly ask whether it would be possible to establish such a bound, especially in gray-box settings. A finite experiment can document which attempts succeeded and how much computation was available. A bound would require a claim about a specified class of possible attempts beyond those actually examined.
Transfer is a stated open question, particularly for adaptive attacks on a private paraphraser. A demonstration under full access can show that a failure exists when the relevant internals are available. The authors ask whether an example developed using a substitute system can cause the same failure when those internals are hidden. The utility of a partial-access defense depends on that prospect, and the paper gives no measured transfer rate for the demonstrated adaptive paraphrase failure.
The owners of practical systems also need to preserve ordinary access. The paper considers wholesale blocking based on perplexity too costly given the flags observed on AlpacaEval. The suggested use of extra handling for suspicious prompts follows from that cost. The detector result establishes how often a given gate activates in the benchmark. The effect of a combined response depends on what that extra handling does to ordinary requests, including cases where the initial flag was mistaken.
The authors identify a utility cost from paraphrasing and suspect that it could grow when the request uses demonstrations to establish how the task should be performed. With in-context examples, wording and format can carry instructions that are less explicit than the main request. A rewrite could change the relation between the example and the task. The paper’s observed quality loss on ordinary instructions motivates this concern. It leaves the degree of loss on prompts with demonstrations unmeasured.
The training setup has a stated feasibility limit. The authors explain that generating strong optimized examples is too costly to perform regularly within the instruction-training cycle they consider. They substitute human-produced attempts to make the experiment possible. This tests a concrete and feasible data mixture. It leaves the performance of a robust training procedure that can repeatedly generate strong examples as a research question.
Limits visible in the evaluation design
The ASR rule examines surface wording. An assistant can decline in an unusual way that avoids the listed strings. A response can also include one of them while continuing to supply material that fulfills the harmful instruction. These possibilities follow from the relation between a lexical rule and the meaning of a response. The reported success rates are therefore precise about the classification the paper applies and less direct as estimates of harmful compliance. The experiments do not establish how large that gap is.
Similarly, a filter pass is a decision about statistical fit. The authors deliberately calibrate the gate using plain harmful requests, so those requests can provide a comparison condition. Passage under the rule consequently says little about whether a request belongs in the assistant’s permitted scope. The detector is most persuasive as a way to identify unusually written material associated with the tested suffixes. The safety judgment still depends on what the rest of the system does with the input.
Calibration also affects what one can conclude from the plain AdvBench prompts. Those inputs supply the threshold against which their passage is judged. Their favorable passage is the intended behavior of that calibration procedure. Estimates of how the same cutoff would handle a different collection of plain harmful instructions need an independent comparison. The ordinary AlpacaEval run offers evidence about a different input distribution and a different practical consequence of flags.
AlpacaEval presents general instructions and judges answers against references through automated preferences. The result pertains to that measure of ordinary utility. A deployment can receive technical vocabulary, different writing styles, long contextual material, or requests in languages with different representation patterns. Such differences could matter for both perplexity scores and rewriting. The paper’s utility measurements quantify effects in the chosen benchmark and leave those other input distributions unresolved.
The paraphrasing comparison bundles together restatement, omission, upstream refusal, and occasional substitution of an answer for an instruction. The reported outcome is still meaningful for the full system the authors evaluate. Attributing the change to rewording alone would require more information about what the intermediate stage did in each case. The qualitative analysis identifies examples of different behaviors. It does not supply a separate effect estimate for each behavior.
Retokenization has a similar interpretive limitation because it changes how the assistant receives both the suffix and the underlying instruction. The experiment on plain harmful prompts provides evidence that the latter effect is substantial for Guanaco. It does not localize which particular changes of segmentation caused the response to differ. The manual check for coherent output helps rule out a simple explanation involving unintelligible generations in the inspected cases, while leaving the nature of the policy change unresolved.
Differences among the tested assistants involve several factors at once. They differ in their vocabulary and in their roles in the attack benchmark, and the paper records different behavior across them. A result on one assistant can therefore reflect the effect of the preprocessor, its original tendency to refuse, or transfer of the test input. The experiments give evidence for individual systems and comparisons. A claim identifying which underlying feature is responsible would require controlling more of those factors.
A count of evaluations is also an incomplete measure of actual expense. Each evaluation incurs computation whose cost depends on the system and the work being performed. Private service access and access to local parameters also make different kinds of testing possible. The paper’s budget is useful because it states the allowance behind the empirical findings. Translating that allowance into a general claim about the resources needed for a successful attack would require further assumptions about access, implementations, and search procedures.
Finally, several results concern the particular intervention settings used in the paper. A flag can lead to rejection or further review. A paraphraser can be applied routinely or only to selected inputs. A tokenization change can be applied to an assistant whose training used one segmentation or to one trained on several. The experiments establish measured outcomes for the specified comparisons. The authors’ suggestions about combining or changing the interventions formulate future experiments whose benefits would have to be assessed with both safety and ordinary utility in view.
What came after
Studying perplexity and moving the defensive decision
Detecting Language Model Attacks with Perplexity makes the score itself the subject of study. In the baseline experiments, perplexity is one way to identify conspicuous optimized inputs and is evaluated alongside fundamentally different interventions. Centering the score makes its role as a detection signal the primary question. The connection is particularly close because the original work shows why a detector needs measurements on both unusual examples and ordinary requests. Detecting Language Model Attacks with Perplexity
SmoothLLM takes up the broader problem of defending assistants against jailbreaks. It belongs to the same line of work that treats the deployed interaction as a place where safeguards can be added. In the baseline paper, the central empirical comparison is how behavior changes when such an intervention is introduced. The later defense shares the object of that comparison, resistance to jailbreaks in a system still expected to answer users. SmoothLLM
SafeDecoding places the intervention at decoding, the process that produces the answer. That location differs from the original filter and its input transformations. It extends the study of inference-time defenses to the choice of output. This connection highlights a decision that an evaluation needs to locate precisely. A defense may act on the string coming in, on the process generating the reply, or on an additional judgment before the reply is delivered. SafeDecoding
LLM Self Defense studies defense through self-examination. Its framing makes an assistant’s examination of the interaction the basis for the additional safeguard. The baseline paper’s distinction between unusual input and a genuinely harmful response helps explain the relevance of this direction. A statistical score answers how expected the text is. Self-examination studies whether the assistant can recognize the problematic interaction itself. LLM Self Defense
Making robustness comparisons more systematic
HarmBench focuses on standardizing evaluation for automated red teaming and robust refusal. The baseline paper already exposes choices that shape an ASR result, including where the test inputs come from, how the assistant’s response is classified, and what access the evaluation assumes. A framework centered on evaluation addresses the need to make such choices explicit across studies. Its combination of automated probing and robust refusal connects the means of generating tests to the behavior those tests aim to assess. HarmBench
JailbreakBench takes up the related problem of an open benchmark for jailbreak robustness. The baseline study makes comparisons possible within one experiment by reusing a reference family of prompts and comparing to plain requests. The open-benchmark direction gives robustness itself a shared setting across evaluations. This matters because a defense’s measured benefit depends on the starting behavior and on which prompt conditions are counted. JailbreakBench
SALAD-Bench places the evaluation problem within a broader and hierarchical study of safety. Its scope is relevant to the distinction between a benchmark designed to test resistance to a particular suffix family and a benchmark intended to represent a wider range of safety behavior. A focused experiment can isolate how a defense responds to a certain input form. A broader assessment asks where that form fits among other safety tests. SALAD-Bench
Certifying LLM Safety against Adversarial Prompting approaches robustness through certification. That direction relates to the original paper’s question about formal guarantees and the minimum resources needed to defeat a defense. A certification claim needs a defined class of inputs and assumptions. An empirical result under a fixed search allowance describes the observed performance in that test. The relationship between the papers is the move towards statements with an explicitly defined scope of protection. Certifying LLM Safety against Adversarial Prompting
Revisiting access and the kinds of prompts that matter
Jailbreaking Black Box Large Language Models in Twenty Queries puts restricted access and the number of queries at the center of the evaluation. That focus connects directly to the baseline paper’s proposal to describe an adversary by available evaluations and by which internals can be inspected. A service query and an evaluation during search on accessible systems are different units of work. Both studies make the resource allowance interpretable by tying it to an access setting. Jailbreaking Black Box Large Language Models in Twenty Queries
AutoDAN studies stealthy jailbreak prompts. Its subject is directly relevant to the original detector’s premise, since the conspicuous surface properties of the reference suffixes gave perplexity a signal to work with. A study that explicitly focuses on stealth changes the input characteristics under consideration. It illustrates why an empirical filter result should travel with a description of the prompts on which it was obtained. AutoDAN
How Johnny Can Persuade LLMs to Jailbreak Them centers persuasion as a way of presenting requests that challenge safety. Its subject broadens the question raised by the original paper about sensitivity to the form of an instruction. A persuasion study focuses attention on language that can be meaningful to a reader. The baseline experiment isolates a different phenomenon by starting with the same harmful instruction and examining the effect of extra optimized text. How Johnny Can Persuade LLMs to Jailbreak Them
The later work on simple adaptive attacks against leading safety-aligned assistants returns to the question of what happens when the evaluation accounts for the systems being tested. This was central to interpreting the original detector and paraphraser. Their behavior on ordinary reference suffixes describes a common comparison, and their behavior under adaptation describes a stronger test with additional assumptions. As attack methods and defenses change, those assumptions determine what a measured success or failure can establish. Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks
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
Cite
Cite as Neel Jain, Avi Schwarzschild, Yuxin Wen, Gowthami Somepalli, John Kirchenbauer, Ping-yeh Chiang, Micah Goldblum, Aniruddha Saha, Jonas Geiping and Tom Goldstein. 2023. Baseline Defenses for Adversarial Attacks Against Aligned Language Models. arXiv:2309.00614.
@misc{jain2023baseline,
title = {{Baseline Defenses for Adversarial Attacks Against Aligned Language Models}},
author = {Neel Jain, Avi Schwarzschild, Yuxin Wen, Gowthami Somepalli, John Kirchenbauer, Ping-yeh Chiang, Micah Goldblum, Aniruddha Saha, Jonas Geiping and Tom Goldstein},
year = {2023},
doi = {10.48550/arxiv.2309.00614},
eprint = {2309.00614},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2309.00614}
}References
- Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examples. In Proceedings of the 35th International Conference on Machine Learning, pp. 274–283. PMLR, July 2018. URL https://proceedings.mlr.press/v80/athalye18a.html. OpenAlex ↗ · Scholar ↗
- Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862, 2022a. OpenAlex ↗ · Scholar ↗
- Yuntao Bai, Saurav Kadavath, Sandipan Kundu, Amanda Askell, Jackson Kernion, Andy Jones, Anna Chen, Anna Goldie, Azalia Mirhoseini, Cameron McKinnon, et al. Constitutional ai: Harmlessness from ai feedback. arXiv preprint arXiv:2212.08073, 2022b. our card
- Arjun Nitin Bhagoji, Daniel Cullina, Chawin Sitawarin, and Prateek Mittal. Enhancing robustness of machine learning systems via data transformations. In 2018 52nd Annual Conference on Information Sciences and Systems (CISS), pp. 1–5. IEEE, 2018. OpenAlex ↗ · Scholar ↗
- Nicholas Carlini and David Wagner. Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, AISec '17, pp. 3–14, New York, NY, USA, November 2017. Association for Computing Machinery. ISBN 978-1-4503-5202-4. . URL https://dl.acm.org/doi/10.1145/3128572.3140444. OpenAlex ↗ · Scholar ↗
- Nicholas Carlini, Anish Athalye, Nicolas Papernot, Wieland Brendel, Jonas Rauber, Dimitris Tsipras, Ian Goodfellow, Aleksander Madry, and Alexey Kurakin. On Evaluating Adversarial Robustness. arxiv:1902.06705[cs, stat], February 2019. . URL http://arxiv.org/abs/1902.06705. OpenAlex ↗ · Scholar ↗
- Nicholas Carlini, Milad Nasr, Christopher A. Choquette-Choo, Matthew Jagielski, Irena Gao, Anas Awadalla, Pang Wei Koh, Daphne Ippolito, Katherine Lee, Florian Tramer, and Ludwig Schmidt. Are aligned neural networks adversarially aligned? arxiv:2306.15447[cs], June 2023. . URL http://arxiv.org/abs/2306.15447. our card
- Stephen Casper, Jason Lin, Joe Kwon, Gatlen Culp, and Dylan Hadfield-Menell. Explore, Establish, Exploit: Red Teaming Language Models from Scratch. arxiv:2306.09442[cs], June 2023. . URL http://arxiv.org/abs/2306.09442. 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 ↗
- Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. Qlora: Efficient finetuning of quantized llms. arXiv preprint arXiv:2305.14314, 2023. our card
- Yann Dubois, Xuechen Li, Rohan Taori, Tianyi Zhang, Ishaan Gulrajani, Jimmy Ba, Carlos Guestrin, Percy Liang, and Tatsunori B Hashimoto. Alpacafarm: A simulation framework for methods that learn from human feedback. arXiv preprint arXiv:2305.14387, 2023. our card
- Javid Ebrahimi, Anyi Rao, Daniel Lowd, and Dejing Dou. HotFlip: White-box adversarial examples for text classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 31–36, Melbourne, Australia, July 2018. Association for Computational Linguistics. . URL https://aclanthology.org/P18-2006. our card
- Deep Ganguli, Liane Lovitt, Jackson Kernion, Amanda Askell, Yuntao Bai, Saurav Kadavath, Ben Mann, Ethan Perez, Nicholas Schiefer, Kamal Ndousse, et al. Red teaming language models to reduce harms: Methods, scaling behaviors, and lessons learned. arXiv preprint arXiv:2209.07858, 2022. our card
- Ji Gao, Jack Lanchantin, Mary Lou Soffa, and Yanjun Qi. Black-box generation of adversarial text sequences to evade deep learning classifiers. In 2018 IEEE Security and Privacy Workshops (SPW), pp. 50–56. IEEE, 2018. our card
- Yue Gao, I. Shumailov, Kassem Fawaz, and Nicolas Papernot. On the Limitations of Stochastic Pre-processing Defenses. In Advances in Neural Information Processing Systems, volume 35, pp. 24280–24294, December 2022. URL https://proceedings.neurips.cc/paper\_files/paper/2022/hash/997089469acbeb410405e43f0011be1f-Abstract-Conference.html. OpenAlex ↗ · Scholar ↗
- Amin Ghiasi, Ali Shafahi, and Tom Goldstein. Breaking certified defenses: Semantic adversarial examples with spoofed robustness certificates. In International Conference on Learning Representations, 2019. OpenAlex ↗ · Scholar ↗
- Amelia Glaese, Nat McAleese, Maja Trebacz, John Aslanides, Vlad Firoiu, Timo Ewalds, Maribeth Rauh, Laura Weidinger, Martin Chadwick, Phoebe Thacker, et al. Improving alignment of dialogue agents via targeted human judgements. arXiv preprint arXiv:2209.14375, 2022. our card
- Micah Goldblum, Avi Schwarzschild, Ankit Patel, and Tom Goldstein. Adversarial attacks on machine learning systems for high-frequency trading. In Proceedings of the Second ACM International Conference on AI in Finance, pp. 1–9, 2021. OpenAlex ↗ · Scholar ↗
- 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. Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection. arxiv:2302.12173[cs], May 2023. . URL http://arxiv.org/abs/2302.12173. our card
- Kathrin Grosse, Praveen Manoharan, Nicolas Papernot, Michael Backes, and Patrick McDaniel. On the (Statistical) Detection of Adversarial Examples. arxiv:1702.06280[cs, stat], October 2017. . URL http://arxiv.org/abs/1702.06280. our card
- Shixiang Gu and Luca Rigazio. Towards deep neural network architectures robust to adversarial examples. arXiv preprint arXiv:1412.5068, 2014. OpenAlex ↗ · Scholar ↗
- Chuan Guo, Alexandre Sablayrolles, Hervé Jégou, and Douwe Kiela. Gradient-based Adversarial Attacks against Text Transformers. arxiv:2104.13733[cs], April 2021. . URL http://arxiv.org/abs/2104.13733. our card
- Dan Hendrycks, Nicholas Carlini, John Schulman, and Jacob Steinhardt. Unsolved Problems in ML Safety. arxiv:2109.13916[cs], June 2022. . URL http://arxiv.org/abs/2109.13916. our card
- Hossein Hosseini and Radha Poovendran. Semantic adversarial examples. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 1614–1619, 2018. OpenAlex ↗ · Scholar ↗
- Neel Jain, Khalid Saifullah, Yuxin Wen, John Kirchenbauer, Manli Shu, Aniruddha Saha, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Bring your own data! self-supervised evaluation for large language models. arXiv preprint arXiv:2306.13651, 2023. OpenAlex ↗ · Scholar ↗
- Daniel Kang, Xuechen Li, Ion Stoica, Carlos Guestrin, Matei Zaharia, and Tatsunori Hashimoto. Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attacks. arxiv:2302.05733[cs], February 2023. . URL http://arxiv.org/abs/2302.05733. OpenAlex ↗ · Scholar ↗
- John Kirchenbauer, Jonas Geiping, Yuxin Wen, Manli Shu, Khalid Saifullah, Kezhi Kong, Kasun Fernando, Aniruddha Saha, Micah Goldblum, and Tom Goldstein. On the reliability of watermarks for large language models. arXiv preprint arXiv:2306.04634, 2023. our card
- Tomasz Korbak, Kejian Shi, Angelica Chen, Rasika Vinayak Bhalerao, Christopher Buckley, Jason Phang, Samuel R Bowman, and Ethan Perez. Pretraining language models with human preferences. In International Conference on Machine Learning, pp. 17506–17533. PMLR, 2023. our card
- Taku Kudo. Subword regularization: Improving neural network translation models with multiple subword candidates. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 66–75, Melbourne, Australia, July 2018. Association for Computational Linguistics. . URL https://aclanthology.org/P18-1007. our card
- Haoran Li, Dadi Guo, Wei Fan, Mingshi Xu, Jie Huang, Fanpu Meng, and Yangqiu Song. Multi-step Jailbreaking Privacy Attacks on ChatGPT. arxiv:2304.05197[cs], May 2023. . URL http://arxiv.org/abs/2304.05197. our card
- Jinfeng Li, Shouling Ji, Tianyu Du, Bo Li, and Ting Wang. Textbugger: Generating adversarial text against real-world applications. arXiv preprint arXiv:1812.05271, 2018. 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
- 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. our card
- Ninareh Mehrabi, Palash Goyal, Christophe Dupuy, Qian Hu, Shalini Ghosh, Richard Zemel, Kai-Wei Chang, Aram Galstyan, and Rahul Gupta. FLIRT: Feedback Loop In-context Red Teaming. arxiv:2308.04265[cs], August 2023. . URL http://arxiv.org/abs/2308.04265. our card
- Dongyu Meng and Hao Chen. Magnet: a two-pronged defense against adversarial examples. In Proceedings of the 2017 ACM SIGSAC conference on computer and communications security, pp. 135–147, 2017a. OpenAlex ↗ · Scholar ↗
- Dongyu Meng and Hao Chen. MagNet: A Two-Pronged Defense against Adversarial Examples. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, CCS '17, pp. 135–147, New York, NY, USA, October 2017b. Association for Computing Machinery. ISBN 978-1-4503-4946-8. . URL https://dl.acm.org/doi/10.1145/3133956.3134057. OpenAlex ↗ · Scholar ↗
- Jan Hendrik Metzen, Tim Genewein, Volker Fischer, and Bastian Bischoff. On detecting adversarial perturbations. arXiv preprint arXiv:1702.04267, 2017. OpenAlex ↗ · Scholar ↗
- Han Cheol Moon, Shafiq Joty, Ruochen Zhao, Megh Thakkar, and Xu Chi. Randomized smoothing with masked inference for adversarially robust text classifications. arXiv preprint arXiv:2305.06522, 2023. OpenAlex ↗ · Scholar ↗
- 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. arXiv:2005.05909 [cs], October 2020. URL http://arxiv.org/abs/2005.05909. arXiv: 2005.05909. our card
- Weili Nie, Brandon Guo, Yujia Huang, Chaowei Xiao, Arash Vahdat, and Animashree Anandkumar. Diffusion Models for Adversarial Purification. In Proceedings of the 39th International Conference on Machine Learning, pp. 16805–16827. PMLR, June 2022. URL https://proceedings.mlr.press/v162/nie22a.html. OpenAlex ↗ · Scholar ↗
- Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:0 27730–27744, 2022. our card
- Guilherme Penedo, Quentin Malartic, Daniel Hesslow, Ruxandra Cojocaru, Alessandro Cappelli, Hamza Alobeidli, Baptiste Pannier, Ebtesam Almazrouei, and Julien Launay. The RefinedWeb dataset for Falcon LLM: outperforming curated corpora with web data, and web data only. arXiv preprint arXiv:2306.01116, 2023. URL https://arxiv.org/abs/2306.01116. OpenAlex ↗ · Scholar ↗
- Fábio Perez and Ian Ribeiro. Ignore Previous Prompt: Attack Techniques For Language Models. arxiv:2211.09527[cs], November 2022. . URL http://arxiv.org/abs/2211.09527. our card
- Ivan Provilkov, Dmitrii Emelianenko, and Elena Voita. Bpe-dropout: Simple and effective subword regularization. arXiv preprint arXiv:1910.13267, 2019. our card
- Xiangyu Qi, Kaixuan Huang, Ashwinee Panda, Mengdi Wang, and Prateek Mittal. Visual Adversarial Examples Jailbreak Aligned Large Language Models. In The Second Workshop on New Frontiers in Adversarial Machine Learning, August 2023. URL https://openreview.net/forum?id=cZ4j7L6oui. our card
- Sylvestre-Alvise Rebuffi, Sven Gowal, Dan Andrei Calian, Florian Stimberg, Olivia Wiles, and Timothy A Mann. Data Augmentation Can Improve Robustness. In Advances in Neural Information Processing Systems, volume 34, pp. 29935–29948. Curran Associates, Inc., 2021. URL https://proceedings.neurips.cc/paper/2021/hash/fb4c48608ce8825b558ccf07169a3421-Abstract.html. OpenAlex ↗ · Scholar ↗
- Pouya Samangouei, Maya Kabkab, and Rama Chellappa. Defense-gan: Protecting classifiers against adversarial attacks using generative models. arXiv preprint arXiv:1805.06605, 2018. OpenAlex ↗ · Scholar ↗
- Ali Shafahi, Mahyar Najibi, Mohammad Amin Ghiasi, Zheng Xu, John Dickerson, Christoph Studer, Larry S Davis, Gavin Taylor, and Tom Goldstein. Adversarial training for free! In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper\_files/paper/2019/hash/7503cfacd12053d309b6bed5c89de212-Abstract.html. OpenAlex ↗ · Scholar ↗
- Xinyue Shen, Zeyuan Chen, Michael Backes, Yun Shen, and Yang Zhang. " do anything now": Characterizing and evaluating in-the-wild jailbreak prompts on large language models. arXiv preprint arXiv:2308.03825, 2023. our card
- Taylor Shin, Yasaman Razeghi, Robert L Logan IV, Eric Wallace, and Sameer Singh. Autoprompt: Eliciting knowledge from language models with automatically generated prompts. arXiv preprint arXiv:2010.15980, 2020. our card
- 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. 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 ↗
- MosaicML NLP Team. Introducing mpt-7b: A new standard for open-source, ly usable llms, 2023. URL www.mosaicml.com/blog/mpt-7b. OpenAlex ↗ · Scholar ↗
- Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023. our card
- Florian Tramer. Detecting Adversarial Examples Is (Nearly) As Hard As Classifying Them. In Proceedings of the 39th International Conference on Machine Learning, pp. 21692–21702. PMLR, June 2022. URL https://proceedings.mlr.press/v162/tramer22a.html. OpenAlex ↗ · Scholar ↗
- Florian Tramer, Nicholas Carlini, Wieland Brendel, and Aleksander Madry. On Adaptive Attacks to Adversarial Example Defenses. In Advances in Neural Information Processing Systems, volume 33, pp. 1633–1645. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/hash/11f38f8ecd71867b42433548d1078e38-Abstract.html. OpenAlex ↗ · Scholar ↗
- 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), pp. 2153–2162, Hong Kong, China, November 2019. Association for Computational Linguistics. . URL https://aclanthology.org/D19-1221. our card
- Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A Smith, Daniel Khashabi, and Hannaneh Hajishirzi. Self-instruct: Aligning language model with self generated instructions. arXiv preprint arXiv:2212.10560, 2022. OpenAlex ↗ · Scholar ↗
- Yuxin Wen, Neel Jain, John Kirchenbauer, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discovery. arXiv preprint arXiv:2302.03668, February 2023. URL https://arxiv.org/abs/2302.03668v1. our card
- Zuxuan Wu, Ser-Nam Lim, Larry S Davis, and Tom Goldstein. Making an invisibility cloak: Real world adversarial attacks on object detectors. In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part IV 16, pp. 1–17. Springer, 2020. OpenAlex ↗ · Scholar ↗
- Xiaoyong Yuan, Pan He, Qile Zhu, and Xiaolin Li. Adversarial examples: Attacks and defenses for deep learning. IEEE transactions on neural networks and learning systems, 300 (9):0 2805–2824, 2019. OpenAlex ↗ · Scholar ↗
- Zhen Zhang, Guanhua Zhang, Bairu Hou, Wenqi Fan, Qing Li, Sijia Liu, Yang Zhang, and Shiyu Chang. Certified robustness for large language models with self-denoising. arXiv preprint arXiv:2307.07171, 2023. OpenAlex ↗ · Scholar ↗
- 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. our card
- Kaijie Zhu, Jindong Wang, Jiaheng Zhou, Zichen Wang, Hao Chen, Yidong Wang, Linyi Yang, Wei Ye, Neil Zhenqiang Gong, Yue Zhang, and Xing Xie. PromptBench: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts. arxiv:2306.04528[cs], June 2023. . URL http://arxiv.org/abs/2306.04528. OpenAlex ↗ · Scholar ↗
- Roland S. Zimmermann, Wieland Brendel, Florian Tramer, and Nicholas Carlini. Increasing Confidence in Adversarial Robustness Evaluations. In Advances in Neural Information Processing Systems, volume 35, pp. 13174–13189, December 2022. URL https://proceedings.neurips.cc/paper\_files/paper/2022/hash/5545d9bcefb7d03d5ad39a905d14fbe3-Abstract-Conference.html. OpenAlex ↗ · Scholar ↗
- Andy Zou, Zifan Wang, J. Zico Kolter, and Matt Fredrikson. Universal and Transferable Adversarial Attacks on Aligned Language Models. arxiv:2307.15043[cs], July 2023. . URL http://arxiv.org/abs/2307.15043. our card
This page in Markdown https://md.research.elamur.ai/free/en/papers/jain-2023-baseline-defenses-adversarial-attacks-against/