Universal Adversarial Triggers for Attacking and Analyzing NLP
Paper · 2019 · Eric Wallace, Shi Feng, Nikhil Kandpal et al.
Summary
A prediction can fail because an input is unusually difficult. It can also fail because a small piece of added text overwhelms the evidence that should determine the answer. This paper investigates a particularly revealing version of the latter problem: whether the same short sequence can redirect predictions across many different inputs. The authors call these sequences universal adversarial triggers. A trigger is searched for once, then attached unchanged to examples from a dataset. Its purpose is to push the system toward a chosen label, answer, or kind of continuation, even though the underlying examples differ.
The authors develop a search procedure that uses gradients to propose replacements for the trigger’s tokens. A gradient describes how changing a token’s internal representation would affect the attack objective. Since text consists of discrete vocabulary choices, the procedure uses this information to rank actual replacement tokens, then evaluates promising candidates. Crucially, it computes its search signal across a batch of examples. The resulting sequence is therefore optimized to work repeatedly, rather than tailored to an individual sentence. The authors extend this approach across word, character, and sub-word inputs, applying it to sentiment classification, natural language inference, extractive question answering, and conditional text generation.
The attacks can have substantial effects. On SNLI, the paper reports an entailment accuracy change from 89.94% without an attack to 0.55% with a trigger. A separate prediction-distribution analysis shows that adding the word “nobody” makes the Decomposable Attention system assign the contradiction label to 99.43% of entailment examples. In SQuAD, a trigger makes the selected answer equal “to kill american people” for 72% of why questions. For GPT-2, a short prefix produces explicitly racist statements in 63% of the manually examined samples from the attacked 117M version. A trigger found against that version also affects the 345M version. Transfer appears in the classification and reading-comprehension experiments as well: access to the eventual target’s gradients is not always necessary.
The paper’s contribution extends beyond attack success. A sequence that works across unrelated examples offers a way to investigate general tendencies in a predictor. The SNLI triggers align strongly with words associated with particular labels in the dataset. The SQuAD analyses reveal a different combination of weaknesses: sensitivity to wording around an answer and reliance on the answer type suggested by a question word. These findings make triggers useful for interpretability as well as adversarial evaluation. The evidence remains bounded by the tested tasks and attack conditions. “Universal” describes a shared attack across examples, not a guarantee that every example, architecture, dataset, or task will be affected.
Interesting ideas
Search for a shared failure. Instead of repeatedly asking what change breaks a particular example, optimize a single intervention across a collection. Averaging the search signal over a batch encourages changes that exploit recurring behavior. This is useful when the scientific question concerns a general shortcut, or when an engineer needs a compact regression test that can be applied to many inputs. The same principle can guide evaluation even where gradients are unavailable: the object of interest is a reusable failure pattern instead of an isolated mistake.
Use gradients to narrow a discrete search. The paper treats a gradient as a guide to vocabulary choices, rather than pretending that a continuous change to an embedding is already a valid text edit. Its linear approximation identifies promising tokens; actual evaluations determine which candidates deserve to survive. This separation is useful whenever the allowed interventions are discrete but the system offers a differentiable internal representation. It also provides a practical compromise between testing every possible edited input and trusting a local approximation without checking it.
Keep the desired answer separate from its surrounding cues. In the reading-comprehension experiments, the attack’s answer phrase is fixed while neighboring tokens are optimized. Later, the phrase can be replaced without rebuilding the surrounding sequence. This design helps distinguish an attachment to a particular answer from a more general susceptibility to its presentation. Researchers studying extraction, ranking, or evidence selection can borrow that distinction: vary the content to be selected separately from the context that makes it attractive.
Compare optimized attacks with simple association baselines. A strange sequence is not automatically evidence of an obscure mechanism. The authors compare their triggers with words chosen through pointwise mutual information, a measure of association, and with answer phrases inserted without additional wording. In SNLI, basic word–label associations explain much of what the search discovers. In SQuAD, they explain less. These comparisons keep interpretation grounded by asking whether a complicated search has uncovered something beyond an inexpensive statistical cue.
Treat transfer as an experimental variable. The authors separate the systems used to construct a trigger from those used to test it. They also compare attacks generated against a single predictor with attacks generated against an ensemble. This makes it possible to study whether the sequence exploits something shared or something specific to its search target. The same design is valuable for robustness evaluations across alternative embeddings, tokenizers, random initializations, and architectures. It also prevents success against the development target from being mistaken for generality.
Probe an attack after finding it. Shuffling tokens, moving the sequence, deleting pieces, and replacing the answer turn a successful attack into a controlled analysis. Each manipulation asks a different question about the cause of failure. Order changes test whether a bag of associated words is sufficient; relocation tests dependence on position; deletion tests whether components help locally but harm transfer. This approach applies broadly to discovered prompts and adversarial examples: finding a strong intervention is the beginning of explanation, not its completion.
Deep dive: Universal Adversarial Triggers for Attacking and Analyzing NLP
How universal adversarial triggers steer NLP predictions, transfer between systems, and expose shortcuts in classification and generation. · about 36 minutes to read
How Mova uses it
For Mova, the small transparent language system written in Rust, the paper offers an evaluation strategy and a way to organize explanations of failure. A concrete implementation of its trigger search is not established here. The applications below are proposals, and their usefulness would depend on which predictions, scores, and internal operations Mova exposes.
The most direct application would be a test for evidence being displaced by irrelevant text. Mova could receive a collection of inputs with known expected behavior, followed by a search for a shared prefix or suffix that changes that behavior. The sequence would stay fixed during evaluation on separate examples. That arrangement would test whether a local cue acquires too much influence across a task, rather than whether an individual sentence can be rewritten into something genuinely different.
Transparency could make such a test especially informative. When an added phrase changes an output, the useful next question is which visible decision changed: the interpretation of the input, the selection of supporting text, or the choice among candidate outputs. A proposed Mova evaluation could record those intermediate decisions alongside the final result. The paper motivates the shared intervention; inspecting Mova’s own exposed operations would be an additional diagnostic design, not a result demonstrated by the authors.
The reading-comprehension setup suggests a particularly concrete experiment. Insert a candidate answer into an irrelevant passage fragment, then vary the words surrounding that answer. If selection changes mainly because the fragment resembles the expected answer type, the test would reveal a weakness similar to the one the paper diagnoses in SQuAD. The answer phrase and the surrounding cues should be controlled separately. That would help distinguish a system that recognizes a plausible kind of answer from one that actually connects the answer to the question’s content.
The exact gradient-guided algorithm would require suitable internal machinery. It depends on differentiable representations, a task loss, and access to derivatives for the attack tokens. Being implemented in Rust does not establish that Mova has those components. Where they are absent, the transferable idea is the shared discrete search objective, which could be explored through direct candidate evaluation. Such a procedure would be inspired by the paper’s experimental logic while differing from its optimization method.
A further proposal is to preserve discovered triggers as regression cases. After an implementation change, the same sequence could be attached to a held-out collection and its effect inspected again. The record should distinguish a trigger found through internal access, an untouched sequence transferred from another system, and a sequence refined using queries to Mova. The paper shows why these distinctions matter: a shorter attack improved through target queries provides different evidence from a trigger that transfers without adaptation.
The practical lesson for Mova is therefore specific. Test whether added text can systematically overpower relevant evidence, and use the system’s transparency to investigate the resulting changes. There is no demonstrated Mova attack rate, defense, or implemented trigger-search component to report.
The problem and its context
From individual errors to reusable attacks
An adversarial attack deliberately changes an input to induce an unwanted prediction. The paper places this problem within natural language processing, where deployed systems may classify documents, answer questions, or generate continuations. The concern is not simply that a system sometimes makes mistakes. An attacker chooses the modification to increase the chance of a particular failure.
The authors connect this concern to earlier work on adversarial behavior, including Intriguing properties of neural networks. They also describe practical motivations: an adversary might try to evade a spam classifier, manipulate a fake-news decision, or alter material that an answer system later reads. These examples establish why control over apparently peripheral text can matter.
Most attacks discussed in the paper’s account of prior NLP research are constructed for particular inputs. A search examines a sentence and chooses a change that works there. This can reveal a weakness, but it leaves open how reusable the intervention is. An attack that must be regenerated for every message presents a different threat from an attack phrase that can be copied and attached repeatedly.
Universal triggers address this distinction. Their content does not adapt to the current example. A sentiment trigger remains the same across reviews; an inference trigger remains the same across hypotheses; a reading-comprehension trigger is shared across passages and questions within its designated question type. The variation lies in the ordinary input, while the adversarial sequence stays fixed.
This arrangement changes the requirements at attack time. Constructing a trigger may demand privileged access and substantial search, but applying an already discovered trigger does not require another gradient calculation. The authors also argue that distribution becomes easier: an effective sequence can be shared with someone who did not perform the original optimization. Transfer to another system can reduce the required access further.
Why the same intervention is scientifically useful
An input-specific attack can be difficult to interpret beyond its immediate example. A modification may interact with the sentence’s topic, syntax, or accidental wording. A shared trigger offers a different kind of evidence. If it repeatedly pushes diverse examples toward the same output, it identifies a tendency that persists across those contexts.
That does not make the trigger a complete explanation of the predictor. It does make it a useful experimental handle. The researcher can hold the intervention constant, examine where it succeeds, and then alter its components. The paper uses this approach to connect adversarial behavior with dataset associations and answer-selection heuristics.
This places the work at the intersection of robustness and evaluation. Ordinary held-out accuracy measures performance under the benchmark’s usual conditions. A trigger experiment asks how stable those predictions remain under a particular controlled intervention. Both measurements matter, but they address different questions.
The paper also relates adversarial evaluation to interpretation through earlier work on removing representations or perturbing inputs locally. Its contribution is to shift the scale of the intervention. Rather than explain sensitivity around a single sentence, it searches for an addition that exposes a broader input–output pattern.
Earlier ways of constructing adversarial text
The algorithm builds most directly on HotFlip. In the authors’ account, HotFlip uses derivatives to approximate the effect of replacing a discrete token. The present paper adapts that idea so the replacement is selected for a trigger shared across a batch.
Other earlier approaches described by the authors include generative methods and human participation. Syntactically controlled paraphrase generation supplies a different route to adversarial inputs. Trick Me If You Can represents a human-in-the-loop approach to challenging question-answering systems. These methods help establish that adversarial text need not be obtained through a single search mechanism.
The paper also distinguishes its attack from semantically equivalent adversarial rules. Those rules use backtranslation-derived paraphrases and apply where an appropriate rewriting rule matches. Universal triggers instead add a sequence whose search is tied to a particular predictor. The sequence can be attached without first finding a matching phrase in the original input.
That difference matters for meaning preservation. A paraphrase method explicitly seeks a reformulation with equivalent meaning. A trigger attack adds material, potentially awkward or irrelevant, while leaving the original text present. The paper’s central question concerns whether this addition can dominate prediction, rather than whether every resulting input satisfies a strict semantic-equivalence criterion.
The authors acknowledge parallel research on universal attacks for text classification. They distinguish their work through the search procedure, the range of tasks, and the analysis of what the attacks reveal. Their broader claim therefore combines an attack contribution with a diagnostic one.
Dataset shortcuts as an existing concern
The interpretation experiments build on earlier warnings about inference benchmarks. Annotation Artifacts in Natural Language Inference Data and Hypothesis Only Baselines in Natural Language Inference had identified associations between hypothesis wording and labels in SNLI. The present paper asks whether its independently discovered attack words align with those associations.
For reading comprehension, the paper draws on previous adversarial evaluations and on What Makes Reading Comprehension Questions Easier?. The latter motivates a test that removes most of the question. If answer selection remains strongly driven by the surviving question word, the system may be matching answer types without sufficiently using the rest of the question.
These are distinct possible shortcuts. SNLI offers a setting where an individual word can strongly suggest a label. SQuAD offers a setting where an answer-looking phrase, placed in a favorable local context, can attract extraction. The paper does not assume the same explanation will fit both.
The method, step by step
Define what the attacker controls
The attacker controls a sequence of added tokens. A token may be a word, a sub-word unit, or a character, depending on the system under attack. Tokenization therefore determines the space in which the search operates.
The authors generally add the sequence before the ordinary input, although their formulation also permits an addition at the end. They use different attachment points for different tasks. The sentiment attack precedes a review. The SNLI attack precedes the hypothesis. The reading-comprehension attack precedes the paragraph that contains the evidence. The generation attack precedes the user’s text.
For an individual targeted attack, the desired condition is:
f(t_adv; t) = ỹ
Here, f is the attacked predictor, t is the original token sequence, and t_adv is the added trigger. The semicolon indicates that the sequences are combined, with the trigger placed first in this notation. The symbol ỹ denotes the attacker’s desired output.
This condition describes success on an example, but it does not yet express universality. A trigger that works on a particular t may fail elsewhere. The search objective therefore evaluates one shared t_adv over a distribution of ordinary inputs:
argmin_t_adv E_t∼𝒯[L(ỹ, f(t_adv; t))]
The argmin asks which trigger produces the smallest expected loss. The symbol 𝒯 denotes the input distribution, and E denotes averaging over inputs drawn from it. L is the task’s loss function: it measures how far the current prediction is from the attacker’s target. The remaining symbols have the same meanings as above.
The important change is the scope of optimization. The attacker is no longer selecting a separate sequence for each t. A common sequence must reduce the target loss across many inputs. In practice, the authors estimate this shared objective through batches.
Searching for a shared adversarial trigger
The steps in order.
Choose a length and an initial sequence
The search begins with a fixed trigger length. This is an explicit design choice instead of something the main algorithm discovers automatically. A longer sequence offers more positions to influence the output, while a shorter sequence is less conspicuous.
Initialization is deliberately simple. The authors repeat “the” for word-based attacks and “a” for the sub-word or character settings. The initial sequence need not already resemble an effective attack. It is a starting point from which the tokens are repeatedly replaced.
The appendix checks alternatives, including a repeated token whose embedding lies near the mean of the vocabulary embeddings. It also reports experiments with random restarts. These variations lead to similar outcomes or final losses, suggesting that the method is not dependent on a uniquely fortunate initial phrase.
At this stage the original inputs remain fixed. The changing object is the shared added sequence. This restriction makes the eventual attack easy to apply, and it makes the experiment easier to interpret: the search cannot tailor an edit to the content of each individual example.
Turn a gradient into actual token choices
A derivative naturally describes a small movement in a continuous space. Text does not offer arbitrary small movements between vocabulary entries. The authors bridge that gap through word embeddings, which associate discrete tokens with vectors.
For each trigger position, the current token has an embedding. The loss is differentiated with respect to that embedding, averaging the gradient across the current batch. The search then estimates how replacing the token with another vocabulary item would change the loss.
The replacement criterion is:
argmin_e′ᵢ∈𝒱 (e′ᵢ − e_advᵢ)ᵀ ∇_e_advᵢ L
The symbol e_advᵢ is the current embedding at trigger position i. The candidate replacement is e′ᵢ, drawn from 𝒱, the collection of vocabulary embeddings. The expression ∇_e_advᵢ L is the batch-averaged gradient of the loss with respect to the current embedding. The superscript ᵀ indicates a transpose, making the expression a dot product.
The term inside the minimization is a first-order estimate of the loss change. A candidate is attractive when its displacement from the current embedding points toward a lower target loss. This is an approximation, so the best predicted replacement need not be the best replacement under a full evaluation.
The authors score vocabulary candidates through dot products. If the embeddings have dimension d, the calculation uses a d-dimensional dot product for each vocabulary item. They report that this ranking operation is readily parallelized and cheaper than a full forward evaluation for the systems they test.
After a candidate embedding is selected, its associated token becomes the proposed text replacement. The attack thus remains a sequence that can actually be supplied to the system. It does not depend on injecting an arbitrary internal vector at evaluation time.
Evaluate alternatives rather than trusting the ranking
The gradient ranking supplies candidates, not a guarantee. The authors retain the top-k token proposals at a position and use the actual loss to compare resulting sequences. Search proceeds from the leftmost trigger position toward the right.
Beam search allows several partially updated sequences to remain under consideration. At each position, candidate replacements expand those sequences. The procedure then keeps the sequences with the lowest measured loss on the current batch, according to the selected beam size.
Candidate count and beam size serve different purposes. Candidate count determines how many replacement tokens the gradient ranking contributes. Beam size determines how many alternative trigger sequences survive between positions. A beam size of 1 still permits evaluation of multiple token candidates, but it retains only the best sequence at that point.
This distinction matters when interpreting the appendix. Considering more gradient candidates improves the sentiment search, while retaining a wider beam offers little additional benefit for classification. Reading comprehension benefits more clearly from the wider sequence search.
The process repeats over batches, updating the same trigger toward a lower shared target loss. The paper describes this as iterative optimization and illustrates convergence to a sentiment attack sequence. It does not establish that the procedure finds a global optimum over all possible sequences.
Use a loss that matches the task
For text classification, the authors minimize cross-entropy for the chosen incorrect label. A sentiment attack can push positive examples toward negative predictions, or negative examples towards positive predictions. An inference attack can push examples toward a selected relation label.
In extractive question answering, the output is a span from the paragraph. The attack contains the desired answer phrase, and that phrase stays fixed while the surrounding trigger tokens change. The loss combines cross-entropy terms for the answer’s start and end positions.
This setup makes attack success unusually concrete. It is not enough for the original answer to disappear. The selected span must become the attacker’s designated phrase. The trigger is shared across paragraphs and questions, but separate sequences are optimized for why, who, when, and where questions.
The authors use trigger sentences of length ten for this task. Their target answers are “to kill american people” for why, “donald trump” for who, “january 2014” for when, and “new york” for where. They describe these choices as arbitrary and expect other answers to behave similarly, while later substitution experiments test part of that expectation.
Conditional generation requires a different target definition. The original user text constrains what a plausible continuation looks like, making an identical continuation across all inputs an unsuitable goal. The attack instead seeks outputs resembling a set of target texts in content.
The generation objective is:
E_y∼𝒴, t∼𝒯 Σ_i=1^|y| log(1 − p(yᵢ | t_adv, t, y₁, …, yᵢ₋₁))
The set 𝒴 contains target outputs, and 𝒯 contains user inputs. The expectation averages over draws from those sets. The sequence y is a target output; |y| is its length; and yᵢ is its token at position i. The probability p is assigned to that token given the trigger, the user input, and the preceding target tokens.
The summation adds the token-level terms. Minimizing the expression encourages higher probabilities for the desired output tokens, because log(1 − p) becomes smaller as p increases. This is the objective the paper specifies; it should not be silently replaced with a different likelihood expression.
The complete spaces of possible user inputs and racist target outputs are infeasible to enumerate. The authors initially approximate them with non-racist and racist tweets. In later experiments, they use thirty manually composed racist statements, with average length ten, and omit user text during optimization. They report similar behavior from this simpler setup.
That simplification is important to the interpretation of the search. The attack does not need an exhaustive catalogue of user contexts or target continuations to find an influential prefix. It also means that optimizing across arbitrary user inputs is an aspiration of the formulation instead of a literal description of every later optimization run.
Handle contextual embeddings and subwords
The ordinary vocabulary replacement rule assumes a stable collection of token embeddings. ELMo complicates that assumption because a word’s representation changes with its context.
The authors therefore attack the character input to ELMo, where they can work with context-independent embeddings. They restrict the allowable characters to upper-case letters, lower-case letters, and punctuation within ASCII values 33-126. This excludes boundary markers and other unusual symbols that would provide a less ordinary attack surface.
For GPT-2, the relevant units are sub-words. The paper relates this issue to subword tokenization and Neural Machine Translation of Rare Words with Subword Units. Replacing a token can alter how the resulting string is segmented, so the authors decode the modified sequence and tokenize it again.
This step keeps the optimized object consistent with the text that will actually be submitted. A sequence of internal token identifiers is not sufficient if converting it to text changes the segmentation. The authors report that their short triggers rarely suffer substantial optimization problems from this issue.
Visible words and optimized units must therefore be distinguished. The generation trigger appears as a short string with word-like pieces, but the experiment describes its search length as six sub-word tokens. Character-based sentiment attacks involve another unit again. A general statement about “short triggers” should not erase those differences.
Separate search data from evaluation data
The authors search for classification triggers on development data and assess them on test data. This separation tests whether a shared sequence generalizes to examples that did not supply its optimization signal.
SQuAD requires an exception because the hidden test set is unavailable to the authors. They reserve 2000 training examples for trigger construction and evaluate the attacks on the development split. The reading-comprehension results should therefore be identified as development-set evaluations.
The paper reports modest search settings because of limited GPU resources. Word-based sentiment attacks use 20 candidates and beam size 1. Character-based sentiment attacks use 20 candidates and beam size 3. SNLI uses 40 candidates with beam size 1; SQuAD uses 20 candidates with beam size 5.
For GPT-2, the search uses 100 candidates and beam size 1. These are search parameters, not sample counts or success rates. Keeping their roles distinct is necessary because the generation evaluation separately draws samples and labels their content.
The authors make the attack and experiment implementation publicly available in the universal-triggers code repository. That release supports reproduction of the method, while the paper’s conclusions still depend on the particular tasks, settings, and evaluations reported.
Experiments and results
Sentiment classification: a shared prefix can outweigh the review
The sentiment experiments use the binary Stanford Sentiment Treebank. The authors test bidirectional LSTM classifiers with word2vec representations and with ELMo representations. Their reported overall accuracies are 86.4% and 89.6%, respectively.
The word-level attack excludes words from a sentiment lexicon. This restriction prevents an overly simple result in which an obviously positive or negative word supplies the intended sentiment directly. It does not guarantee that every remaining trigger is semantically neutral, but it removes a conspicuous shortcut in constructing the attack.
For positive examples, the discovered prefix is “zoning tapping fiennes.” Positive-subset accuracy changes from 86.2% before the attack to 29.1% after it. In the opposite direction, “comedy comedy blutarsky” changes negative-subset accuracy from 86.6% to 23.6%.
These measurements concern different subsets and different targeted directions. They should not be merged into a single post-attack score for the entire dataset. They show that the shared sequence can frequently redirect the intended class under each specified setup.
The trigger-length experiment provides another view of the positive-to-negative attack:
Trigger length and positive-subset accuracy on Stanford Sentiment Treebank
Longer searched prefixes leave fewer positive examples correctly classified.
The numbers
| System or setting | accuracy % |
|---|---|
| No trigger | 86.2 |
| One-word trigger | 46 |
| Three-word trigger | 29.1 |
| Ten-word trigger (this paper) | 13 |
Here, lower accuracy means a stronger attack, not a better sentiment classifier. The comparison illustrates the influence of additional attack positions without establishing that every longer sequence is effective or that the same relation holds indefinitely.
The ELMo experiment changes the attack surface. Rather than replacing whole words from a static vocabulary, the authors optimize characters in a prepended word. For the positive subset, accuracy moves from 89.1% to 51.5%. For the negative subset, the corresponding change is from 90.1% to 52.2%.
These results show that contextualized word representations do not eliminate the vulnerability under the tested character-based intervention. They do not provide a clean comparison of embedding methods alone, because the attacks differ in their units and constraints.
Natural language inference: strong directionality and transfer
Natural language inference asks how a hypothesis relates to a premise. The SNLI dataset comes from A large annotated corpus for learning natural language inference. The labels considered here are entailment, contradiction, and neutral.
The authors use ESIM and Decomposable Attention with GloVe embeddings, together with a Decomposable Attention variant using ELMo. Their reported overall accuracies are 86.8%, 84.7%, and 86.4%, respectively. These overall scores are distinct from the class-specific attack results.
The attack adds a single word before the hypothesis. Its search averages gradients from the GloVe-based ESIM and Decomposable Attention systems. The ELMo-based system is excluded from that optimization and serves as a transfer target.
The paper’s abstract gives the following representative entailment result:
Reported SNLI entailment accuracy before and after a universal trigger
A shared trigger can nearly eliminate correct entailment predictions in the reported attack.
The numbers
| System or setting | accuracy % |
|---|---|
| Original predictions | 89.94 |
| Universal trigger (this paper) | 0.55 |
The full analysis makes clear that the effect is directional. Entailment and neutral examples can become highly vulnerable, while contradiction examples are more resistant. The authors report that the attacks can drive the former classes close to no correct predictions, whereas the contradiction degradation is more limited.
The prediction distribution gives stronger evidence of targeting than accuracy alone. With “nobody” added to entailment hypotheses, the Decomposable Attention system predicts contradiction for 99.43% of those examples. The appendix separately reports an entailment prediction frequency of 0.15% under that trigger.
These quantities answer different questions. Accuracy asks whether the original label survives. A prediction distribution shows where the system goes instead. The latter supports the claim that the trigger repeatedly induces a particular alternative rather than merely producing arbitrary errors.
Transfer is substantial enough that the ELMo-based system experiences the largest accuracy degradation despite not contributing gradients. This is evidence that the attack can exploit behavior shared across representation choices. It does not mean that ELMo is generally less robust under every attack or task.
Reading comprehension: forcing a selected answer span
The reading-comprehension experiments use SQuAD. The primary search target is a lower-cased, GloVe-based BiDAF system. The authors deliberately start with this relatively simple setup and then test transfer.
The frequency with which an extracted span exactly matches the attacker’s target is measured by the attack success rate. This differs from ordinary exact match against SQuAD’s reference answer. An attack can reduce normal task performance without satisfying this stricter targeted criterion.
On why questions, the paper reports 72% success for inducing “to kill american people.” For who, when, and where questions, it describes success on the original BiDAF target as nearly 50%. Those outcomes show that a shared addition can repeatedly supply the selected answer despite differences in the original passage and question.
A baseline inserts the answer phrase without optimized neighboring words. It performs substantially worse. The central effect therefore depends on how the answer is presented, rather than on its mere availability somewhere in the paragraph.
Transfer targets include an ELMo-based BiDAF variant, a BiDAF variant with character convolutions, and QANet. These comparisons vary embeddings, tokenization, or architecture. The triggers affect these targets, although transfer is imperfect.
To reduce dependence on a single search target, the authors train another GloVe-based BiDAF system with a different random seed and optimize an ensemble attack. This generally improves transfer for the tested question types, with why questions as the stated exception. That exception matters: ensemble construction is helpful here, but not uniformly helpful.
All of these SQuAD attack evaluations use the development split. Trigger construction uses the separately reserved training examples. The results do not represent an evaluation against the unavailable hidden test set.
Generation: changing the character of the continuation
The generation experiment attacks a language model, GPT-2, through a prefix. Search against the 117M version yields “TH PEOPLEMan goddreams Blacks.” The sequence is not an ordinary instruction and has no clear coherent meaning as a sentence.
The authors show examples where this prefix leads to racist continuations after different user inputs. Their systematic sample evaluation has a narrower condition: they generate 100 continuations using the trigger alone, without additional user text. Sampling uses top-k selection with k=10, and the continuations are manually labeled.
For those 117M samples, 63% contain an explicitly racist statement. The paper also reports that 98% are racial, offensive, or both. The first measure is narrower than the second and should not be treated as interchangeable with it.
A useful control supplies only the group-name token at the end of the discovered sequence. That condition produces explicit racism in 2% of 100 samples. The comparison argues against attributing the full effect to that token alone.
The same discovered sequence is also evaluated on GPT-2 345M. Among 100 manually labeled samples, 58% are categorized as racist. The authors describe those outputs as more fluent while showing a comparable degree of explicit racism.
Explicitly racist GPT-2 samples under different prefix conditions
The complete searched prefix has a much stronger effect than the isolated group-name token and transfers to the larger version.
The numbers
| System or setting | explicitly racist samples % |
|---|---|
| GPT-2 117M, group-name token only | 2 |
| GPT-2 117M, searched trigger (this paper) | 63 |
| GPT-2 345M, transferred trigger | 58 |
Higher values in this chart indicate greater attack effectiveness. They are not desirable generation quality. The comparison supports the importance of the discovered sequence and its transfer, while the broader interpretation must retain the sample-based and manually judged nature of the measurement.
What the ablations show
More candidate evaluations and a wider beam solve different problems
The appendix examines both the number of gradient-ranked replacements and the number of surviving sequences. These controls help explain why the method combines a linear approximation with direct evaluation.
Increasing the replacement candidate count improves the sentiment attack in the reported comparison. This means the best actual replacement is not always the one ranked first by the local approximation. Evaluating alternatives can correct some of that ranking error.
A wider beam has a different effect. For classification, the authors find little or no additional attack-success benefit. For reading comprehension, beam search helps substantially. This suggests that keeping alternative combinations across positions is more important in the tested span-selection problem.
The comparison does not isolate a universal property of classification versus extraction. It concerns the particular losses, trigger lengths, and systems examined. Even so, it provides a practical lesson: candidate ranking quality and sequence-combination search deserve separate analysis.
The paper also compares its main replacement rule with projected gradient descent. The alternative first moves the embedding in continuous space:
e_advᵢ − α ∇_e_advᵢ L
Here, e_advᵢ is the current trigger embedding, ∇_e_advᵢ L is its loss gradient, and α controls the size of the movement. The resulting vector is then mapped to its nearest vocabulary embedding using Euclidean distance.
The authors report faster convergence from their linear replacement approach and use it throughout the main experiments. This supports their implementation choice under the tested conditions. It does not establish that projection-based search is inferior for every vocabulary, loss, or search budget.
Initialization does not identify a unique special phrase
Repeated ordinary tokens are enough to start the search. Repeating a vocabulary item near the mean embedding produces similar results, and random restarts end with similar losses.
These observations suggest that multiple effective trigger sequences exist. The discovered text should therefore not be interpreted as the only string capable of producing the failure. Its scientific value lies partly in the pattern it exposes, rather than in the uniqueness of its exact spelling.
At the same time, similar final loss is not proof that every initialization reaches the same behavior on unseen data. The appendix’s observation is more limited: the tested alternatives do not reveal a strong dependence on a single privileged starting point.
SNLI triggers align with dataset associations
The authors test the relationship between attack words and label artifacts through pointwise mutual information:
PMI(word, class) = log[p(word, class) / (p(word) p(class))]
The joint probability p(word, class) measures how often a hypothesis word and label occur together. The marginal p(word) measures the word’s frequency, and p(class) measures the label’s frequency. The logarithm expresses their association relative to what would be expected from those marginal frequencies.
A high value indicates that the word and label co-occur more strongly than their separate frequencies would suggest. It is an association measure, not evidence that the word logically determines the relation between a premise and hypothesis.
The authors use add-100 smoothing and rank hypothesis words by their association with each class. They then inspect the percentile ranks of discovered trigger words. Those words tend to occupy high ranks for the labels they induce; “nobody” is the highest-ranked item in the relevant analysis.
They also reverse the direction of the test. Instead of asking whether searched triggers resemble artifacts, they use highly associated words as attacks. Adding “no” to entailment hypotheses leaves Decomposable Attention entailment accuracy at 2.26%; “tv” leaves it at 1.45%; and “naked” leaves it at 3.77%.
This reverse test strengthens the interpretation. The connection is not merely that an unusual attack word happens to have a statistical association. Words selected directly from the association analysis also cause substantial targeted disruption.
The authors nonetheless treat the difficulty of inducing entailment as a separate issue. They suggest that high lexical overlap between premise and hypothesis encourages entailment predictions. An unchanged added word cannot tailor overlap to each pair. This offers a plausible explanation for directional differences, but the paper presents it as a hypothesis rather than a fully isolated causal result.
SQuAD is not explained by word association alone
The reading-comprehension analysis adapts PMI to the context surrounding an answer. The authors collect the four tokens before and after reference spans, then measure associations between those neighboring words and question types.
Some discovered trigger words fit this account well. “Because,” for example, has the strongest association among words preceding answers to why questions. Other trigger tokens have weak associations or do not appear in the corresponding neighborhood at all.
To test how far the statistical explanation goes, the authors sample surrounding words from the top-10 PMI candidates. They generate 20 alternatives and select the strongest using average attack success across the evaluated systems.
The best such sequence is only slightly stronger than inserting the target answer without optimized context. This contrasts with the SNLI findings. Simple local word associations capture part of SQuAD’s vulnerability, but they do not reproduce the full effect of the gradient-guided search.
This result also limits how literally the final text should be read. An interpretable token may point towards a recognizable cue, while the rest of the sequence may exploit interactions that are not summarized by individual word frequencies.
Removing question content exposes answer-type matching
The question-reduction test keeps only the question word and removes the remaining content. The authors then apply their existing triggers to these reduced questions on the SQuAD development set.
For the GloVe-based BiDAF target, attack success reaches 100% for who, when, and where. For why, it reaches 96.0%. These results show how strongly the attack answer can attract selection once the question supplies only a broad answer-type cue.
A person name can resemble the answer to a who question without answering which person the original question concerns. A date or location can fit when or where at the same shallow level. The experiment separates that type compatibility from the richer relation expressed by the full question.
It would be too strong to infer that the complete system never uses question content. The success increase under reduction indicates that the removed content sometimes constrains the attack. The finding is that broad type matching can become overwhelmingly influential under the controlled condition.
Order and position matter without fixing one valid arrangement
The authors shuffle the tokens surrounding the target answer while leaving the answer itself intact. They perform ten shuffles for each ensemble-generated trigger and compare average and best success.
Average effectiveness falls, showing that the attack is not simply an unordered collection of helpful words. Yet the strongest shuffled version can approach the original performance. There are multiple useful arrangements, even though most random reorderings are worse.
Moving the sequence tests another dependency. Triggers optimized at the front of a paragraph can remain effective at the end. For the ensemble why trigger, the reported success values are 31.6 at the front and 37.4 at the end.
Those values concern that particular placement experiment. They should not be combined with the separate 72% why result as though the conditions were identical. The useful conclusion is that a learned attack can survive a positional change and may even improve under it.
Deletion reveals overfitting in transfer
Removing a token from the triggers decreases success on the original GloVe-based BiDAF target. In that local sense, the optimized pieces contribute to the attack.
The same deletions can help against a different target. The authors query the ELMo-based system while trying reductions, finding shorter sequences that transfer more effectively. This reveals that a token useful against the search target can interfere with a shared effect elsewhere.
The experiment therefore identifies residual overfitting. A strong sequence against the original target is not necessarily the sequence that best exposes behavior common to another system.
It also changes the access condition. Once the ELMo target is queried to choose which tokens to remove, the final reduced attack is no longer an untouched transfer result. It is a refinement informed by observations of that target’s outputs.
Answer substitutions and generation controls narrow the explanation
Replacing a target answer while preserving its surrounding trigger can leave the reading-comprehension attack effective. The authors substitute “bomb in the classroom” for the original why answer and “jeff dean” for the original who answer, among their examples.
Success sometimes increases. This supports the view that the surrounding text promotes a position or answer-like span, rather than relying entirely on one particular answer phrase. It does not establish equal performance for every possible replacement.
The generation controls point to another interaction. The isolated final group-name token produces much less explicit racism than the full prefix. Replacing that token with other group names can still lead to offensive continuations, so the effect is neither reducible to the original final token nor completely independent of the larger sequence.
Together, these analyses make the paper more informative than a catalogue of attack strings. They show which pieces of an explanation survive changes to wording, position, answer identity, and target system.
Limitations
Limits the authors identify
The authors explicitly restrict their demonstrated transfer to systems trained on the same dataset. They propose attacks that cross datasets or even tasks as future research. The reported results therefore do not establish a sequence that reliably disrupts unrelated applications.
They also identify a gap between attack effectiveness and natural appearance. Some sequences contain recognizable cues, but others are conspicuous nonsense. Finding grammatical triggers, or triggers effective at arbitrary positions within an input, remains a proposed direction.
The search is constrained by available computation. Candidate counts and beam widths are relatively small, and the authors suggest that larger settings might improve outcomes. The results measure what their procedure finds under those settings; they do not characterize the strongest possible attack.
Transfer is imperfect, particularly in reading comprehension. Ensemble search helps in many conditions, and deletion can improve results on another target, but neither observation establishes uniform portability. The overfitting analysis is part of the evidence, not a minor exception to it.
For generation, the authors acknowledge subjectivity in judging racism and offensiveness. Manual labels provide direct inspection of the sampled continuations, but the categories require interpretation. The reported rates inherit that dependence on the labeling procedure.
The paper closes by proposing future work on assigning responsibility and defending against trigger-induced failures. It does not demonstrate a complete defense or resolve the accountability questions it raises.
Limits visible in the experimental design
A shared objective is not a guarantee of success on every example. The optimization minimizes an average loss, and the measured attacks often succeed on a substantial subset rather than universally. The term “universal” identifies reuse of the intervention across inputs.
The scope of that reuse also varies by task. A SQuAD trigger is specialized to a question category. An SNLI trigger is studied relative to a source class and target behavior. The generation prefix targets a broad kind of continuation rather than a fixed exact output. These are related attack settings, but their success rates are not directly interchangeable.
Concatenating text does not automatically preserve the original task’s correct answer under every possible interpretation. Adding a word to a hypothesis can affect its meaning or grammatical status. Adding a phrase to a review can alter its expressed sentiment. The sentiment lexicon restriction addresses an obvious concern, but the experiments do not establish semantic invariance for every attacked example.
This qualification is especially important when interpreting classification accuracy as evidence of reasoning failure. The paper’s strongest diagnostic support comes from the conjunction of repeated effects, dataset-association analyses, targeted prediction distributions, and controlled changes. A single changed label would provide less information.
The generation percentages have a narrower sampling condition than the broadest attack claim. The systematic evaluation uses the trigger alone, whereas user-conditioned behavior is illustrated through examples. The samples support a claim about the tested prefix distribution; they do not measure an average attack rate over all possible user inputs.
The sample-label appendix also contains a reporting inconsistency. It describes the 117M categories as alternatives but gives percentages that cannot all represent an exclusive partition as written. The category-specific explicit-racism result can be reported, but the entire breakdown should not be treated as a clean distribution without clarification.
Model comparisons do not isolate a single causal factor. Character-based attacks against ELMo differ from word-based attacks in their allowed edits. Reading-comprehension transfer can change embeddings, segmentation, and architecture. Such experiments demonstrate transfer across combined changes, but they do not independently quantify each change’s contribution to robustness.
The PMI analyses establish strong associations and useful attack predictors, especially for SNLI. They do not identify every internal computation responsible for an output. Likewise, the question-reduction experiment strongly supports answer-type sensitivity without proving that the full system relies exclusively on that heuristic.
Finally, discovering a vulnerability is different from measuring its real-world prevalence. The paper offers motivating scenarios involving manipulated documents and generated responses, but its experiments evaluate benchmark tasks and specified access conditions. It does not quantify how frequently an attacker would obtain the necessary insertion point in a deployed application.
What came after
From harmful triggers to automatically chosen prompts
The later citation record places this paper near work on automated prompting. AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts addresses prompt construction for eliciting knowledge. Its subject connects naturally to the trigger paper’s central demonstration: a short, computationally selected sequence can substantially change the behavior of a fixed predictor.
The connection is a shared problem structure, with a different intended outcome. In an attack, the sequence encourages an undesirable response. In knowledge elicitation, the desired response is useful task behavior. The available citation information establishes the later work’s subject and its citation of the trigger paper; it does not establish that every component of the earlier search was adopted unchanged.
RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learning makes a different optimization approach explicit in its title. It belongs beside the trigger paper as work on selecting discrete text to steer predictions. The trigger paper supplies a concrete early example of why that search space matters, while the later title identifies reinforcement learning as its own approach.
Pre-train, Prompt, and Predict situates prompting within a broader systematic survey. The relevant conceptual connection is that the interface text becomes an object of design and optimization. The universal-trigger results show that this interface can exercise strong influence even when it is not a fluent instruction.
How Can We Know What Language Models Know? and Factual Probing Is [MASK] concern knowledge probing. Their subjects intersect with the trigger paper’s measurement lesson: observed behavior depends partly on how a system is queried or conditioned. The citation information alone does not support importing their methods or empirical conclusions into the trigger paper’s results.
Toxic generation and systematic safety evaluation
RealToxicityPrompts takes toxic degeneration in language generation as its stated evaluation subject. Its connection to the GPT-2 trigger experiment is direct at the level of the problem: context can steer a continuation towards harmful content.
The earlier paper demonstrates that an optimized short prefix can induce this behavior and transfer between GPT-2 versions. The later work’s title points towards evaluation organized around prompts and toxic generation. The citation record does not, by itself, specify which trigger strings, sampling settings, or optimization details it reused.
Red Teaming Language Models with Language Models identifies automated red teaming as another subsequent direction. Universal triggers contribute to the same broad evaluation question: how can a system be deliberately challenged to reveal behavior that ordinary test examples may miss? The later title identifies language models as part of its testing approach, instead of establishing equivalence with gradient-guided token replacement.
HarmBench frames automated red teaming and robust refusal through a standardized evaluation framework. This extends the surrounding research agenda from demonstrating individual failure mechanisms toward organizing their evaluation. The citation relationship supports discussing it as part of that agenda, without assigning it unreported results.
DecodingTrust addresses trustworthiness assessment more broadly. The trigger paper’s harmful-generation experiment represents a particular kind of behavior such an assessment must distinguish from ordinary fluency or task accuracy. It shows why apparently competent generation can still require deliberate stress testing.
Universal attacks and robustness beyond the original tasks
Universal and Transferable Adversarial Attacks on Aligned Language Models carries forward the earlier paper’s defining concerns in its stated subject: an attack can be shared across inputs and transferred across targets. Its focus on aligned systems places those concerns in a later setting.
The conceptual continuity should be stated carefully. The original study attacks classification, extraction, and generation; it does not establish results about the later work’s targets. The later title and citation establish a related research direction, not a retrospective expansion of what the original experiments proved.
Jailbroken: How Does LLM Safety Training Fail? concerns failures of safety training. It connects to the trigger paper through the question of whether a system’s intended behavior remains stable under adversarial conditioning. The exact mechanisms and results of that later investigation are not specified by its citation entry.
PromptRobust names adversarial prompts as an evaluation target. The universal-trigger paper supplies a useful distinction for reading such work: vulnerability can be measured through input-specific attacks, shared attacks across examples, or attacks that also transfer between systems. Those conditions should remain visible rather than being compressed into a single robustness label.
Other listed citations place the work within the wider development of textual adversarial search. BERT-ATTACK concerns adversarial attacks using BERT, while Word-level Textual Adversarial Attacking as Combinatorial Optimization explicitly frames the search as combinatorial optimization. Their titles identify neighboring approaches to the same basic obstacle: choosing effective changes in a discrete language space.
Benchmark design and controlled generation
Dynabench: Rethinking Benchmarking in NLP connects to the paper’s evaluation argument. A benchmark score can coexist with a repeatable failure under a controlled intervention. The trigger experiments offer a concrete reason to inspect behavior beyond ordinary aggregate performance, while the later work’s stated subject is the design of benchmarking itself.
Plug and Play Language Models concerns controlled generation. It belongs in this discussion because influence over generated content is not inherently an attack: the scientific question also supports legitimate control. The trigger paper demonstrates how strongly a small conditioning sequence can redirect output, while the later title identifies controlled generation as its goal.
Across these later subjects, the enduring contribution is a precise experimental move: hold the adversarial sequence fixed while changing the ordinary input. That move makes repeated failures easier to compare, turns transfer into a measurable question, and provides a stable intervention for investigating which cues overpower the evidence a task should require.
Cite
Cite as Eric Wallace, Shi Feng, Nikhil Kandpal, Matt Gardner and Sameer Singh. 2019. Universal Adversarial Triggers for Attacking and Analyzing NLP. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).
@inproceedings{wallace2019universal,
title = {{Universal Adversarial Triggers for Attacking and Analyzing NLP}},
author = {Eric Wallace, Shi Feng, Nikhil Kandpal, Matt Gardner and Sameer Singh},
booktitle = {Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)},
year = {2019},
doi = {10.18653/v1/d19-1221},
eprint = {1908.07125},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/d19-1221}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/wallace-2019-universal-adversarial-triggers-attacking-analyzing/
References
- Melika Behjati, Seyed-Mohsen Moosavi-Dezfooli, Mahdieh Soleymani Baghshah, and Pascal Frossard. 2019. Universal adversarial attacks on text classifiers. In ICASSP. OpenAlex ↗ · Scholar ↗
- Yonatan Belinkov and Yonatan Bisk. 2018. Synthetic and natural noise both break neural machine translation. In ICLR. OpenAlex ↗ · Scholar ↗
- Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Šrndić, Pavel Laskov, Giorgio Giacinto, and Fabio Roli. 2013. Evasion attacks against machine learning at test time. In ECML-PKDD. OpenAlex ↗ · Scholar ↗
- Samuel R Bowman, Gabor Angeli, Christopher Potts, and Christopher D Manning. 2015. A large annotated corpus for learning natural language inference. In EMNLP. our card
- Tom B Brown, Dandelion Mané, Aurko Roy, Martín Abadi, and Justin Gilmer. 2017. Adversarial patch. NIPS Machine Learning and Computer Security Workshop. OpenAlex ↗ · Scholar ↗
- Qian Chen, Xiaodan Zhu, Zhenhua Ling, Si Wei, Hui Jiang, and Diana Inkpen. 2017. Enhanced LSTM for natural language inference. In ACL. OpenAlex ↗ · Scholar ↗
- Minhao Cheng, Jinfeng Yi, Huan Zhang, Pin-Yu Chen, and Cho-Jui Hsieh. 2018. Seq2sick: Evaluating the robustness of sequence-to-sequence models with adversarial examples. arXiv preprint arXiv:1803.01128. OpenAlex ↗ · Scholar ↗
- Javid Ebrahimi, Daniel Lowd, and Dejing Dou. 2018a. On adversarial examples for character-level neural machine translation. In COLING. our card
- Javid Ebrahimi, Anyi Rao, Daniel Lowd, and Dejing Dou. 2018b. HotFlip: White-box adversarial examples for text classification. In ACL. our card
- Shi Feng, Eric Wallace, Alvin Grissom II, Mohit Iyyer, Pedro Rodriguez, and Jordan Boyd-Graber. 2018. Pathologies of neural models make interpretations difficult. In EMNLP. our card
- Alex Graves and Jürgen Schmidhuber. 2005. Framewise phoneme classification with bidirectional LSTM and other neural network architectures. In Neural Networks. OpenAlex ↗ · Scholar ↗
- Suchin Gururangan, Swabha Swayamdipta, Omer Levy, Roy Schwartz, Samuel R. Bowman, and Noah A. Smith. 2018. Annotation artifacts in natural language inference data. In NAACL. our card
- Tianxing He and James Glass. 2019. Detecting egregious responses in neural sequence-to-sequence models. In ICLR. OpenAlex ↗ · Scholar ↗
- Alex Hern. 2018. Facebook translates “good morning” into “attack them”, leading to arrest. The Guardian. OpenAlex ↗ · Scholar ↗
- Mohit Iyyer, John Wieting, Kevin Gimpel, and Luke Zettlemoyer. 2018. Adversarial example generation with syntactically controlled paraphrase networks. In NAACL. our card
- Robin Jia and Percy Liang. 2017. Adversarial examples for evaluating reading comprehension systems. In EMNLP. our card
- Jiwei Li, Will Monroe, and Dan Jurafsky. 2016. Understanding neural networks through representation erasure. arXiv preprint arXiv:1612.08220. our card
- R Thomas McCoy, Ellie Pavlick, and Tal Linzen. 2019. Right for the wrong reasons: Diagnosing syntactic heuristics in natural language inference. In ACL. our card
- Paul Michel, Xian Li, Graham Neubig, and Juan Miguel Pino. 2019. On evaluation of adversarial perturbations for sequence-to-sequence models. In NAACL. our card
- Tomas Mikolov, Edouard Grave, Piotr Bojanowski, Christian Puhrsch, and Armand Joulin. 2018. Advances in pre-training distributed word representations. In LREC. our card
- Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. 2017. Universal adversarial perturbations. In CVPR. OpenAlex ↗ · Scholar ↗
- Nicolas Papernot, Patrick D. McDaniel, Ananthram Swami, and Richard E. Harang. 2016. Crafting adversarial input sequences for recurrent neural networks. IEEE Military Communications Conference. our card
- Ankur P Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. 2016. A decomposable attention model for natural language inference. In EMNLP. our card
- Jeffrey Pennington, Richard Socher, and Christopher D. Manning. 2014. GloVe: Global vectors for word representation. In EMNLP. our card
- Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. Deep contextualized word representations. In NAACL. our card
- Adam Poliak, Jason Naradowsky, Aparajita Haldar, Rachel Rudinger, and Benjamin Van Durme. 2018. Hypothesis only baselines in natural language inference. In *SEM. our card
- Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. Technical report. OpenAlex ↗ · Scholar ↗
- Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. SQuAD: 100,000+ questions for machine comprehension of text. In EMNLP. our card
- Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. 2018. Semantically equivalent adversarial rules for debugging NLP models. In ACL. OpenAlex ↗ · Scholar ↗
- Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Neural machine translation of rare words with subword units. In ACL. our card
- Min Joon Seo, Aniruddha Kembhavi, Ali Farhadi, and Hannaneh Hajishirzi. 2017. Bidirectional attention flow for machine comprehension. In ICLR. our card
- Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew Ng, and Christopher Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In EMNLP. our card
- Saku Sugawara, Kentaro Inui, Satoshi Sekine, and Akiko Aizawa. 2018. What makes reading comprehension questions easier? In EMNLP. our card
- Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. 2014. Intriguing properties of neural networks. In ICLR. our card
- Eric Wallace, Pedro Rodriguez, Shi Feng, Ikuya Yamada, and Jordan Boyd-Graber. 2019. Trick me if you can: Human-in-the-loop generation of adversarial examples for question answering. In TACL. our card
- Adams Wei Yu, David Dohan, Minh-Thang Luong, Rui Zhao, Kai Chen, Mohammad Norouzi, and Quoc V. Le. 2018. QANet: Combining local convolution with global self-attention for reading comprehension. In ICLR. our card
- Wei Emma Zhang, Quan Z Sheng, and Ahoud Abdulrahmn F Alhazmi. 2019. Adversarial attacks on deep learning models in natural language processing: A survey. arXiv preprint arXiv:1901.06796. OpenAlex ↗ · Scholar ↗