Elamur Research

Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment

Paper · 2019 · Di Jin, Zhijing Jin, Joey Tianyi Zhou et al.

Summary

A reader can recognize the same opinion in two differently worded reviews. Can a classifier do the same? The authors introduce TextFooler to find edits that make a system change its prediction even though a person would still give the same answer. They study text classification, where a system assigns a category such as a news topic or a sentiment, and textual entailment, where it judges whether one sentence supports, contradicts, or leaves open what another sentence says. The challenge is to change the prediction while keeping the edited text readable, faithful to its source, and suitable for its original label.

TextFooler can query a target for its decision and confidence scores. Its first move is to remove each word in turn and see how the response changes. Those removals are temporary. They tell the search where to try substitutions, with common words on a stop list excluded. The substitutes come from word embeddings designed to bring synonyms close together. A part-of-speech tagger checks grammatical category, and Universal Sentence Encoder estimates the semantic similarity of the edited text to the source. When an eligible substitution changes the decision, the search can finish. Otherwise, a substitution that weakens confidence in the original decision can move the search along.

The classification experiments cover AG’s News, Fake News Detection, MR, IMDB, and Yelp Polarity. The entailment experiments use SNLI and MultiNLI. BERT is tested on both tasks, alongside WordCNN and WordLSTM for classification and InferSent and ESIM for entailment. On IMDB, WordLSTM goes from 89.8% accuracy on original inputs to 0.3% on edited inputs, with 5.1% of words modified on average. BERT goes from 95.6% to 6.8% on Yelp and from 89.4% to 4.0% on SNLI. Many outcomes fall below 10% accuracy. Fake News Detection stands out for retaining more accuracy, and the share of words edited for BERT on AG’s News is an exception to the paper’s general pattern of staying below 20%. The observed number of target queries grows approximately in proportion to input length.

People judging MR examples produced against WordLSTM give the source and edited texts the same label in 92% of cases. On the SNLI examples produced against BERT, they agree across versions in 85% of cases. Separate assessments find that the edited texts are generally close in meaning and grammaticality to their sources. The remaining mismatches matter. One substitution makes an entailment hypothesis more specific than its premise warrants, so a change of prediction can be appropriate. TextFooler offers a baseline for exposing sensitivity to wording, and its own evaluation shows what it takes to tell a prediction error from a change in the question being answered.

Deep dive: Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment

TextFooler tests whether BERT and other classifiers change their decisions after small word substitutions that aim to preserve meaning. · about 39 minutes to read

The problem and its context

When a wording change should leave the answer intact

A classification benchmark gives a system an input and checks whether its answer matches a recorded label. In a review dataset, that label might be positive or negative. In news classification, it might identify the topic of an article. The usual score counts correct answers across the evaluation examples. The authors ask what happens when someone searches those same examples for places where a small edit can change the decision. The search makes the evaluation deliberately demanding. It concentrates on wording that the target itself turns out to handle differently.

The paper situates this question in machine learning research on adversarial examples. An adversarial example begins with a legitimate input and alters it to exploit a prediction system’s sensitivity. From the reader’s perspective, the edited input should still do the same job. A favorable review should remain favorable, and a hypothesis that follows from its premise should still follow. The target’s decision should move in spite of that continuity. The authors also describe a constructive use for such examples. Once the fragile cases have been found, they can be added to training data to see whether learning from them makes the system harder to fool.

In language, preserving the job of an input is a more demanding condition than keeping most of its words. Consider the distinction between a review’s opinion and the facts it gives about a film. A substitution might alter the description of a scene while leaving the reviewer’s overall judgment recognizable. That is a success on label consistency and a possible failure on meaning. An edit can also leave the opinion clear while producing an awkward sentence. A reader who can recover the intended sentiment may still judge the rewritten review less grammatical. The paper treats these outcomes as different because each places a different burden on the generated text.

The authors give human judgments a role in defining those burdens. For task consistency, the relevant question is whether people give the same answer to the original and the revision. For meaning, they ask how closely the revised wording conveys the original content. For fluency, the concern is whether the revised text reads as plausible, grammatical language. These properties can come apart even when the outcome looks straightforward in an accuracy report. If the task is entailment, a fluent sentence that shares nearly all its words with the source can acquire a different correct answer because one description has become narrower.

This puts a condition on what a successful attack can establish. Finding two versions that elicit different predictions establishes that the system distinguishes them. If a reader has reason to distinguish them too, the difference can be warranted. If the edit preserves the task and the system goes from a correct answer to an incorrect one, the pair exposes a failure of stability. The authors’ approach uses inexpensive automatic checks to help construct pairs of the latter kind and then asks human judges how frequently some of the outputs live up to that aim.

Why search over text takes a different form

The paper traces much of the earlier work on adversarial examples to computer vision, including Intriguing Properties of Neural Networks, and also notes work in speech. A common approach in vision starts with a continuous input representation. The attacker can make small numerical adjustments, using gradient information to indicate the directions in which the target’s output is sensitive. A gradient describes how an output changes when the quantities that feed into it change. The paper’s text problem starts from words, where an edit selects a discrete alternative. An arbitrarily small step in a vector space need not correspond to a usable word in a sentence.

Earlier work described by the authors tried to bridge that gap through latent representations. A latent representation is a numerical description produced from the input. One line of work used a generative adversarial network to obtain such representations and then looked for nearby examples in that space. The reported concerns include the difficulty of applying the generative approach to text and the possibility that proximity in the representation allows a shift in the content. The underlying problem carries over to simpler lexical representations. Numerical closeness can narrow a search without settling which words a person would regard as equivalent in a particular context.

A separate family of approaches worked directly on the text. The authors discuss misspellings, scrambling, erasing words, and changing phrases by insertion or removal. These operations provide explicit ways to generate alternatives from discrete inputs. Their linguistic consequences vary. A spelling error may leave the intended meaning recoverable but make the output conspicuous. An erasure can remove a piece of the sentence that supplies the answer. The authors’ objection is that the success of an operation at changing predictions can coexist with poor fluency or preservation.

The paper also describes work that obtains rules from paraphrases produced through back-translation, where a sentence is translated into another language and then back. That route uses existing paraphrasing behavior to propose recurring changes. It belongs in the paper’s account because it takes semantic equivalence seriously while constructing the attacks. The authors mention a further use of adverse examples in studies of interpretability. Unusual or poorly supported decisions can draw attention to problems that a conventional explanation of a prediction might overlook. One earlier study discussed in the paper uses these examples in connection with encouraging uncertain outputs on problematic inputs.

The closest comparison methods include Generating Natural Language Adversarial Examples, which the authors describe in their benchmark discussion as looking for perturbations across the words of a sentence. TextFooler puts a separate measurement before that search. It asks which positions already have a discernible influence on the target, then spends its replacement effort there first. The authors connect that design to prior observations that some words serve as strong statistical cues for BERT. A cue can be useful on ordinary examples and still make a decision sensitive to the particular expression used.

Why test BERT through its outputs

The authors identify BERT as a particularly important case because they see strong ordinary performance and little prior attack work on it for classification. The question is whether that performance carries over to deliberately selected variants of ordinary inputs. Accuracy on the original test examples gives the experiment its starting point. The edited examples probe whether the system continues to get those decisions right when the words change and the human task remains the same.

The authors set up the attack around the information available at the target’s interface. The search can send in a text and observe the returned decision and confidence scores. Architecture, learned parameters, and training examples are hidden from it. This is the paper’s black-box setting. The same kind of observation can be collected from very different architectures, which lets the authors test BERT and the other systems with a common method. It also makes confidence an important part of the experimental conditions. A target that continues to predict the original label can still disclose a change in its support for that label, and the search can use that movement as evidence.

The method, step by step

From a source text to a candidate

TextFooler divides its work between finding a promising place to edit and finding an acceptable word to put there. Its first pass asks what happens when each position is omitted from the original text. Its second pass uses that ranking to decide which positions to consider for replacement. The first pass can reveal sensitivity even if an omission would leave an obviously incomplete sentence. The language constraints enter when the procedure constructs the version it might actually keep.

At a promising position, the method retrieves alternatives that are close to the original word in a lexical representation. It checks grammatical category and measures how closely a text containing each replacement resembles the source. The target predicts on the variants. If an acceptable one already yields a new label, the procedure favors the closest such version according to its sentence score. Otherwise, the confidence scores indicate which eligible edit offers the best intermediate step. This makes it possible to continue with a revised text even when the change at the current position falls short of a different decision.

How TextFooler constructs an edited example

The steps in order.

How TextFooler constructs an edited exampleStep 1: Obtain the source label and confidence scores1. Obtain the source label and confidence scoresStep 2: Measure the effect of omitting individual words2. Measure the effect of omitting individual wordsStep 3: Order positions and exclude listed stop words3. Order positions and exclude listed stop wordsStep 4: Propose nearby words with matching grammatical categories4. Propose nearby words with matching grammatical categoriesStep 5: Assess revised texts for similarity and prediction changes5. Assess revised texts for similarity and prediction changesStep 6: Keep the closest eligible revision that changes labels6. Keep the closest eligible revision that changes labelsStep 7: Otherwise advance with the least confident eligible revision7. Otherwise advance with the least confident eligible revision

The formal target

The paper begins with an indexed collection of texts.

𝓧 = {X₁, X₂, …, X_N}

The symbol 𝓧 names the collection, and Xᵢ is the text at index i. The subscripts 1 and 2 mark the first and second entries. The ellipsis stands for the intervening entries, and N is the total number of texts, so X_N is the last one. The braces enclose the members of the collection and the equals sign specifies its contents.

The corresponding labels receive parallel notation.

𝓨 = {Y₁, Y₂, …, Y_N}

Here 𝓨 denotes the label collection. Yᵢ is the label associated with Xᵢ, and N again gives the number of indexed entries. The numbered subscripts and ellipsis show the same ordering as in 𝓧. The braces and equals sign define the collection. Several texts can have the same kind of label, so the indexing identifies which label goes with which text.

The trained predictor is written as a mapping.

F : 𝓧 → 𝓨

F names the prediction function. The colon introduces the description of its inputs and outputs, and the arrow means that it takes a text from 𝓧 and returns a label in 𝓨. In the rest of the method, the prediction function is also used with an indicated label to refer to its confidence for that label.

The authors give a proposed adversarial text a pair of requirements.

F(X_adv) ≠ F(X) and Sim(X_adv, X) ≥ ε

X is the source input, and X_adv, with the subscript “adv” for adversarial, is a proposed edited version. Parentheses after F indicate the text on which the prediction is made. The symbol ≠ requires the two returned labels to differ. Sim is the similarity function, whose two arguments, separated by a comma, are the revised and source texts. The symbol ≥ requires the similarity to reach or exceed ε, the minimum acceptable value. The word “and” makes both requirements apply to the same candidate.

The paper describes the comparison function in terms of text pairs and a range of scores.

Sim : 𝓧 × 𝓧 → (0,1)

Sim again names the similarity function. The colon introduces the mapping. The cross sign pairs an element of 𝓧 with another element of 𝓧, and the arrow points to the range of scores. The parentheses around 0 and 1 designate the open interval between those endpoints. The authors describe resemblance in meaning and syntax as relevant to the broader goal. Their implemented check uses a sentence representation to approximate the semantic part and a separate category filter to help preserve grammar.

The decision condition permits any outcome different from the original prediction. For example, on a news-topic task the formal rule leaves the particular destination category unspecified. It is also a condition on two predictions. The source example has a recorded label, but the formula compares what F says about each version. The experiment’s accuracy measurements and human judgments are therefore needed to determine when the changes identified by the search correspond to errors on examples with a stable human answer.

Measuring which positions influence the decision

For the ranking stage, the paper writes the text as a word sequence.

X = {w₁, w₂, …, w_n}

X is the original text. The notation wᵢ refers to its word at position i. The subscripts 1 and 2 denote the opening positions, the ellipsis covers the intervening positions, and n is the length of the sequence in words. The equals sign defines X using the words enclosed in braces. The positions carry order, which matters when a word is omitted or replaced.

The ranking pass makes an omission variant for each position.

X_∖wᵢ = X ∖ {wᵢ} = {w₁, …, wᵢ₋₁, wᵢ₊₁, …, w_n}

X_∖wᵢ is the text with the word at position i removed, and ∖ indicates removal. The braces around wᵢ identify the occurrence removed from X. The other braces show the remaining sequence. The subscripts i−1 and i+1 identify the positions immediately before and after the omission where present. The numbered first and final positions and the ellipses stand for the surrounding words in source order. The equals signs identify the removal operation and the sequence it produces.

The system then compares responses to the source and its omission variant. A loss of confidence in the source decision counts even when that decision remains on top. If a different label takes over, the score also credits the gain in support for the new label.

I_wᵢ = ⎧ F_Y(X) − F_Y(X_∖wᵢ),
       ⎪   if F(X) = F(X_∖wᵢ) = Y
       ⎨ [F_Y(X) − F_Y(X_∖wᵢ)] + [F_Ȳ(X_∖wᵢ) − F_Ȳ(X)],
       ⎩   if F(X) = Y, F(X_∖wᵢ) = Ȳ, and Y ≠ Ȳ

I_wᵢ is the importance score for the position containing wᵢ. The large brace and the conditions beginning with “if” specify which expression to use. X is the source, X_∖wᵢ is the omission variant, and F gives the chosen label. Y is the source prediction. Ȳ is the new choice when the omission changes the prediction. F_Y and F_Ȳ give the confidence for their respective labels on the text in parentheses. The minus signs measure changes in those confidences. In the second case the brackets group the drop for Y and the rise for Ȳ, and the plus sign adds them. Equality identifies the predicted labels in each case, and ≠ specifies that Ȳ differs from Y.

The first term always asks how much support the original winner loses. The additional term asks how much a particular alternative gains when it becomes the winner. This is why the ranking needs scores for the relevant labels across the original and revised inputs. Merely seeing that a label stayed the same would give every such deletion an indistinguishable outcome at the level of the final decision.

The number is an estimate of influence on this target for this kind of omission. A word can score highly because it carries evidence a reader would also use. It can also score highly because the predictor has learned a narrow cue or because the resulting deletion is disruptive. The ranking is useful if it identifies where the subsequent substitution search is likely to find sensitive decisions. Identifying which of those explanations applies to a particular position would require a different investigation.

After calculating the scores, TextFooler orders the words and removes positions on stop lists drawn from NLTK and spaCy. A stop list is a set of words the procedure excludes from consideration. In this application the authors use it to reduce damage to the structure of the sentence. Keeping a position out of the replacement search takes priority over its importance score. The replacement pass then proceeds through the remaining ordering established from the original text.

From nearby words to eligible revisions

The search for a substitute begins with word vectors from the work of Mrkšić and colleagues. The vectors were designed to reflect linguistic constraints that make them useful for finding synonyms. The authors point to their performance on SimLex-999, which evaluates how well numerical representations reflect similarity between words. The vectors used here belong to the editing procedure. They have a different role from the representations that the target might use to make its own prediction.

The paper uses cosine similarity to compare these vectors. A cosine score reflects how closely the directions of two vectors align. The lexical search takes up to N near neighbors that clear a similarity cutoff δ. Here N names the neighbor setting, an unrelated use of the letter that denoted corpus size earlier. The reported setting takes N as 50 and δ as 0.7. The authors describe this choice as an empirical compromise. A larger pool or a more permissive cutoff supplies more possibilities, including options that can depart further from the source word’s meaning.

The next filter uses the spaCy tagger. A part of speech is a general grammatical category, such as noun or verb. The method retains alternatives with the same tag as the original word. The tag is a quick check on whether a plausible lexical neighbor can serve the same broad grammatical purpose. The edited sentence still has to accommodate the particular form and use of the replacement. Category agreement alone guarantees neither.

For a candidate that remains, the paper expresses the substitution by putting the proposed word at the selected position.

X_adv = {w₁, …, wᵢ₋₁, c, wᵢ₊₁, …, w_n}

X_adv denotes the proposed adversarial version at this stage, and c is the candidate word at position i. The preceding word is wᵢ₋₁ and the following word is wᵢ₊₁ when those positions exist. The ellipses represent all other positions between the first word w₁ and the final word w_n. The braces enclose the ordered words, and the equals sign defines the revision obtained by putting c where wᵢ had been. As the search continues, accepted changes supply the working text for the next substitutions.

The method obtains prediction scores on the revised input and compares that revision with the source. Universal Sentence Encoder maps whole texts to vectors. TextFooler takes the cosine between the vector for the original and the vector for the candidate and uses it to estimate meaning preservation. The paper calls the initial lexical pool Candidates and calls the pool that has passed the sentence check FinCandidates. The latter pool determines which replacements are eligible for the final choice at the current position.

The lexical and sentence comparisons use the same general kind of numerical score for different objects. The lexical comparison asks whether two words, considered as vectors in the vocabulary, are close enough for a replacement to be worth proposing. The sentence comparison asks whether a particular revised text remains close to the complete source. A word with several senses can bring an unsuitable neighbor into the first pool. The second comparison gives the method a chance to respond to the meaning of the whole revision in context. The paper specifies what the sentence threshold ε does without giving it a numerical value in the method description.

Selecting an edit and deciding whether to continue

The final choice at a position depends on whether any eligible candidate achieves a different predicted label. If several do, TextFooler chooses the one that has the highest sentence similarity. All of them achieve the prediction change, so the score for preserving the source breaks the comparison among successful options.

A candidate can pass every language filter and leave the prediction as it was. If all eligible candidates at a position do so, the paper says to choose the one with the lowest score for the original label and proceed to another position. A chain of revisions can then reach a new predicted label even when no eligible move at the first position did. Confidence supplies a way to choose the intermediate revision. Similarity limits which revisions are available to choose, and the predicted label supplies the stopping condition when the attack succeeds.

This is a greedy search, meaning that it makes each choice using the options considered at the current step. The search does not have to compare full sequences of possible future substitutions before deciding what to keep. That is part of the reason an ordinary text can be processed with a manageable number of target calls. The consequence is that its path depends on the original ranking and earlier choices. The method describes how to construct a strong candidate efficiently, without establishing that its result is the closest possible revision that could change the decision.

TextFooler uses trained targets and existing language resources to construct its examples. The authors train the targets using the task datasets and keep them fixed while they generate adversarial versions of evaluation inputs. They make the attack code, trained targets, and test samples available and identify a collection for the experimental data. A separate experiment changes the training data itself to see how BERT responds after learning from adversarial examples.

Experiments and results

The inputs and the decisions being tested

The automatic experiments span news and reviews as well as sentence pairs. AG’s News is a topic-classification task with four choices. An item can concern Business, Sports, World affairs, or Science/Technology. The authors concatenate an article’s headline and description to create the input. Fake News Detection uses material from the Kaggle Fake News Challenge and asks for a real-or-fake decision on a document. The authors join its headline and article body. Although both datasets use news, the labels ask different questions. A substitution can have different consequences for perceived topic and for the cues a target uses in making a fake-news prediction.

The review tasks vary by the length and origin of the text. MR assigns positive or negative sentiment to sentences from movie reviews. In this experiment 90% of MR serves as the training split and 10% as the test split. IMDB also concerns positive and negative movie reviews, using documents as its inputs. Yelp Polarity extends the sentiment task to Yelp reviews. In that dataset ratings of 1 and 2 provide negative labels, while ratings of 4 and 5 provide positive labels. A broad opinion expressed across a document can have considerable support outside the particular sentence where a replacement occurs. A shorter review may place much more weight on one description.

The entailment experiments use SNLI and MultiNLI. Each input consists of a premise and a hypothesis. The system decides if the premise supports the hypothesis, contradicts it, or leaves its status undecided. The neutral category covers situations where the premise supplies too little information to settle the hypothesis. SNLI contains 570K pairs derived from image captions. MultiNLI draws on genres including popular fiction, government reports, and transcribed speech. The paper describes its written and spoken inputs as more linguistically varied than SNLI. It reports MultiNLI results for matched and mismatched versions of the development set, indicated by m and mm.

The authors follow the sampling practice of Alzantot and colleagues and evaluate attacks using 1,000 examples chosen at random from the test set. Sampling selects the starting inputs. Editing afterwards is guided by the target’s outputs. The attacked examples therefore answer a question about a specific, directed change to an evaluation set. Their accuracy describes the result of that intervention on those examples.

The systems under test

For the classification datasets the authors train WordCNN, WordLSTM, and BERT. WordCNN is a word-based convolutional network of the kind discussed in Convolutional Neural Networks for Sentence Classification. Its filters examine short windows of successive words. The experiment uses window sizes of 3, 4, and 5, with 100 filters for each size. The dropout setting is 0.3. Dropout is a training setting that suppresses some activations to reduce dependence on particular signals.

WordLSTM is a recurrent system, which processes an ordered text through a state updated as it reads. The bidirectional version incorporates information from both directions through the sequence. The authors use a single layer, 150 hidden units, and dropout of 0.3. Both this system and WordCNN use 200-dimensional GloVe vectors that were trained on 6B tokens from Wikipedia and Gigawords. These are the input representations for the two classifiers. The synonym-oriented vectors used for proposing edits are a separate resource. GloVe: Global Vectors for Word Representation

The BERT target uses the base-uncased configuration, with 12 layers, 768 hidden units, 12 attention heads, and 110M parameters. The hidden units specify the size of its internal representation, and attention heads are components through which it combines information across positions. The entailment targets are InferSent, ESIM, and BERT adapted through fine-tuning, which means updating a pretrained system for the task at hand. The paper reports that the targets’ ordinary test accuracies are comparable to those of their original implementations. Establishing that starting performance gives the subsequent drops an interpretable reference point.

How the paper measures an attack

The authors compare accuracy on ordinary inputs with accuracy after editing. Original accuracy is the proportion of source examples receiving their expected labels. After-attack accuracy counts correct decisions on the corresponding edited material under the evaluation labels. A large drop is evidence of a strong attack to the extent that the edits preserve the right answer. Benchmark comparisons with other published attacks also describe attack success as the share of adversarial examples that receive incorrect predictions. The quantity reported for a comparison matters because a high attack success rate and a low after-attack accuracy both favor the attacker, while they are described from different perspectives.

A perturbation is an edit to the source wording. The word perturbation rate counts changed words relative to the source length. It tells a reader how much text was altered in pursuit of a prediction change. A second measure uses Universal Sentence Encoder to score similarity between each revision and its source. That score addresses the resemblance of the resulting texts, which depends on what the changed words do in context. A low rate of edits and a high similarity score give complementary information about the same set of revisions.

The query count measures another part of the procedure. Each request to the target supplies the responses needed to rank omissions or judge replacement variants. Counting the requests makes the paper’s efficiency claim concrete in the setting it studies. Two editing procedures could obtain comparable after-attack accuracy while making substantially different demands on the target interface. The authors therefore report query use alongside the outcome and the size of the edits.

Accuracy on documents and sentence pairs

The contrast between original and edited IMDB reviews is particularly sharp. For WordLSTM, the paper gives the original and after-attack accuracies shown below. The accompanying average edit rate on that dataset and target is 5.1% of words.

WordLSTM accuracy on original and edited IMDB evaluation inputs

TextFooler leaves WordLSTM with very little accuracy on edited movie reviews.

WordLSTM accuracy on original and edited IMDB evaluation inputsOriginal IMDB inputs: 89.8Original IMDB inputs89.8TextFooler IMDB inputs (this paper): 0.3TextFooler IMDB inputs (this paper)0.3
The numbers
System or settingaccuracy %
Original IMDB inputs89.8
TextFooler IMDB inputs (this paper)0.3

On IMDB, WordCNN reaches 0% after-attack accuracy with a 3.5% word perturbation rate. The authors report that the IMDB texts average 215 words and describe successful edits involving 10 words or fewer per example. This is the setting where the number of retained words makes the effect especially easy to see. The resulting review still contains much of the original evidence, yet a small share of changed positions can overturn the decision. Those counts quantify the size of the intervention. They leave the content of each change to be assessed separately.

BERT retains more after-attack accuracy than WordCNN in the reported classification comparisons, and the attacks against it change a larger share of words. The authors view this as part of a broader tendency for targets with higher original accuracy to be harder to attack. The Yelp result still shows that a strong starting score can coexist with very poor performance on deliberately edited reviews.

BERT accuracy before and after TextFooler on Yelp evaluation inputs

BERT loses most of its original Yelp accuracy on the edited reviews.

BERT accuracy before and after TextFooler on Yelp evaluation inputsOriginal Yelp inputs: 95.6Original Yelp inputs95.6TextFooler Yelp inputs (this paper): 6.8TextFooler Yelp inputs (this paper)6.8
The numbers
System or settingaccuracy %
Original Yelp inputs95.6
TextFooler Yelp inputs (this paper)6.8

The classification results have two different kinds of exception. For Fake News Detection, every tested classifier retains more after-attack accuracy than it does on the other classification datasets. The authors observe that their search finds it easier to obtain a fake prediction on genuine news than to obtain a real prediction on material originally labeled fake. This describes the direction of the classifier’s error. The truth of a news item is a separate matter. On AG’s News, the exception concerns how much the attack edits. BERT on that dataset lies outside the paper’s general description of an edit rate below 20%.

On textual entailment, the most clearly quantified example in the results discussion is BERT on SNLI. The attack leaves the system answering very few of the edited pairs correctly under their evaluation labels.

BERT accuracy on original and edited SNLI evaluation pairs

BERT’s accuracy falls sharply on the pairs revised by TextFooler.

BERT accuracy on original and edited SNLI evaluation pairsOriginal SNLI pairs: 89.4Original SNLI pairs89.4TextFooler SNLI pairs (this paper): 4.0TextFooler SNLI pairs (this paper)4.0
The numbers
System or settingaccuracy %
Original SNLI pairs89.4
TextFooler SNLI pairs (this paper)4.0

The SNLI outcome shows that the sensitivity extends to judgments about relations between sentences. Here the exact contribution of a single word can be decisive for the expected answer too. A hypothesis can become stronger than its premise with very little visible editing. The human study on this setting and the authors’ inspection of particular errors are especially important to the interpretation of the large accuracy drop.

According to the paper’s introduction, changing less than 20% of the words brings nearly all target results below 10%. Its detailed discussion describes the range more conservatively, with accuracy below 15% apart from Fake and perturbation below 20% apart from the BERT result on AG’s News. The examples on IMDB, Yelp, and SNLI illustrate the severe reductions behind the opening characterization. The exceptions identify where the attack has a weaker result or pays a higher editing cost.

The authors compare TextFooler with attacks by Li and colleagues, Alzantot and colleagues, and Kuleshov and colleagues. TextBugger, the first of these, includes changes at the level of characters and words and can produce misspellings. The Alzantot approach is described as seeking a perturbation across the words of an input. Kuleshov’s method uses greedy rules for finding replacements. The benchmark comparison uses LSTM as the target for IMDB and Yelp, with InferSent as the target on SNLI. Holding the dataset and target fixed gives changes in the reported metrics a more direct connection to the methods under comparison.

The authors report favorable results for TextFooler on both attack success and the fraction of words modified. On their comparison, seeking sensitive positions and then finding eligible replacements lets the procedure produce errors with fewer changes to the input words. This is a joint claim about effectiveness and edit size. The human assessments cover a separate question, whether the modifications in the authors’ outputs leave the language and its task sufficiently intact.

Query counts are approximately linear in input length across the reported settings. The authors give the ratio of target requests to text length as falling in the interval (2,8), with smaller ratios for longer texts. The pattern is consistent with the search procedure. Omissions follow word positions, and the vocabulary search offers a bounded set of alternatives at each selected position. Early success can end the replacement pass before it has visited the rest of the text. The reported ratio concerns demand on the target and is an empirical comparison across the inputs in the evaluation.

The authors analyze perturbation rate and encoder similarity separately for classification and entailment. Classification datasets have average lengths above 20 words, while the entailment inputs are around or below 10 words on the paper’s length measure. The paper reports that the encoder similarity behaves more stably on texts longer than 10 words. Comparing the scores within task families helps account for that distinction in the scale of the texts.

The linear regressions give r-squared values of 0.94 for classification and 0.97 for entailment. Here r-squared describes how closely the relationship in each task family fits the line used to connect edit rate and similarity. The authors interpret the fitted relationship as a strong negative association, with higher proportions of changed words going together with lower similarity. Their account also uses positive wording earlier in describing the association. The reported r-squared values measure fit and carry no direction themselves. The authors give the negative interpretation in the discussion of the regression. A close fit across the results describes the observed pattern among settings, leaving individual cases open to inspection.

What human judges assessed

The human study samples 100 examples for MR against WordLSTM and 100 examples for SNLI against BERT. For each task, two native English speakers judge independently. The volunteers have university-level education, and the authors qualify them using a test batch before the study. The evaluation gives different jobs to the judges so that a sentence can be marked down for grammar, a different answer, or a change in meaning, depending on which issue is being examined.

For grammaticality, the judges see original and edited texts mixed in shuffled order and score them on a 1–5 scale. The authors describe the scores of edited examples as close to those of the corresponding sources in both settings. An appropriate alternative word can blend into its surrounding construction and leave the revision smooth. The aggregate judgment indicates that many examples achieve that degree of fluency, alongside the awkward cases the authors identify in their error analysis.

For label consistency, the judges assign task labels to the mixture of texts. The authors compare the resulting labels for each original and revision. On MR, the human decisions coincide across versions in 92% of the assessed cases. On SNLI, they coincide in 85%. This checks whether the edit leaves the same decision available to a human reader. A reader can recognize the same movie-review sentiment in spite of a changed descriptive term. In entailment, a change in detail can alter precisely what the premise licenses, which helps explain why this comparison is needed even for fluent revisions.

For the meaning assessment, the judges compare originals with their revisions. They describe a pair as similar, ambiguous, or dissimilar. The authors assign those responses values of 1, 0.5, and 0, respectively. On this measure the MR pairs receive 0.91 and the SNLI pairs receive 0.86. These values summarize perceived similarity on a scale built from categorical judgments. They have a different interpretation from the rates at which the task labels agree, and from the cosine scores used by the search. Taken together, the human judgments show that many edits preserve the features the attack is intended to preserve and that the outcome depends in part on the task.

What the ablations show

Choosing the position matters under the same edit budget

An ablation changes or removes part of a procedure to see what difference it makes. The ranking comparison replaces TextFooler’s importance order with random selection of word positions. The authors keep the replacement mechanism and the word perturbation rate the same. They evaluate BERT on MR, AG’s News, and SNLI, covering review sentiment, news topic, and entailment.

After-attack accuracy rises by more than 45% on each dataset when the positions are selected at random, in the paper’s description of the result. The increase means that more edited inputs retain a correct prediction under the random procedure. With the proportion of modified words held fixed, the comparison isolates the value of concentrating an edit budget on positions that already show an effect in the omission test.

The result gives an empirical reason for the extra calls made before replacement begins. It is possible to offer similar classes of substitutions at random positions and still leave a target relatively unaffected. When the omission responses determine where to look, the same changing of words is focused on positions where the decision has shown sensitivity. The comparison tests the performance of this position ordering in combination with the paper’s replacement mechanism. It leaves open how the ordering would compare with another informed way of selecting positions.

The encoder check restricts what can count as a useful edit

The other ablation removes the sentence-level similarity requirement and targets BERT-Base. The context for this comparison is that a lexical neighbor can be semantically plausible as a word in isolation and still be a poor fit in a particular sentence. After the sentence check is removed, lower after-attack accuracy comes with lower query counts and a smaller percentage of changed words. Under that relaxed condition, the search has an easier path to a different prediction.

The revisions found without the check score lower on semantic similarity to their sources. The authors use qualitative comparisons to illustrate why the effect matters. A lexical proposal can carry a sense that is poorly matched to the sentence, and checking the resulting text can remove some of those inappropriate alternatives. A method measured only by the rate of prediction errors would be rewarded for accepting them. The constraints turn that result into a tradeoff between making the target fail and keeping a reasonable version of the original input.

The paper reports a smaller decline in encoder similarity for the entailment settings and points out that the relevant sentences are generally shorter than 20 tokens. The authors attribute the smaller measured effect to the encoder’s reduced sensitivity to meaning changes in short texts. The observation qualifies how much can be learned from the size of the ablation’s similarity change, particularly on a task where the content of a short hypothesis can determine its label.

Transfer tests what happens when the source of the edits changes

The transfer analysis asks what happens when an edited input prepared for one system is given to another. The authors take examples from the IMDB and SNLI test sets that successfully cause errors in the system used to construct them. They then evaluate these already selected examples on the remaining targets. The recipient’s responses play no role in selecting the inputs it receives.

The transfer table has an important direction. A row identifies the target used to generate and select the revisions, while a column identifies the system subsequently evaluated on that collection. Reversing the direction of the comparison can change the set of inputs. An edit found against BERT can be evaluated on another classifier, and an edit against that classifier can be evaluated on BERT, but selection began with different decisions in the two cases.

The authors describe the observed transfer as moderate. It is stronger for the entailment task than for classification in this study. They also report that the revisions prepared against BERT, the more accurate source system in the comparison, tend to transfer more. A drop in accuracy for a recipient suggests that some examples exploit sensitivities shared with the source target. The aggregate observation covers selected adversaries on the investigated datasets. It does not show which features of the edits make particular pairs of systems agree in their errors.

Reusing successful revisions for training

The training experiment changes the role of the generated examples. The authors start with BERT and use training examples from MR and SNLI to create adversarial revisions. They keep examples that fool the original system, add them to the ordinary training set, and give them the labels of their source texts. They then train BERT again on the expanded data and evaluate it under attack.

The after-attack accuracy increases, and the search also changes a greater proportion of words. These measures give the authors two indications of increased difficulty. The newly trained system gets more of the edited evaluation material right, and the procedure uses more extensive edits in the renewed attack. The defense is a preliminary result tied to training on the kind of input the search can produce. It shows a way to turn an observed fragility into training material and test whether the same challenge becomes harder to construct.

The inherited labels connect this experiment to the human evaluation. A successfully fooled target is the criterion for keeping examples during augmentation. The usefulness of those examples as labeled training data depends on whether the source label is still suitable. An edit that preserves natural wording while changing what a premise entails illustrates how that assumption can fail even in a seemingly good revision.

What inspection reveals about failed revisions

The authors group the failures they notice into ambiguity of word sense, grammatical faults, and changes of content that matter to the task. In their example involving ransom money, the intended action is to display the money. The replacement evokes testimony. The two verbs have a kind of lexical relationship, but the revised sentence uses the wrong sense for what the person is doing. This is a problem of word sense disambiguation, the choice of which meaning a word has in context. The case illustrates a specific weakness of comparing vocabulary entries whose vectors may be close for reasons that do not apply in the source sentence.

The grammatical example involves a description of a person riding a bike while wearing headphones. The system substitutes motorcycle for biking. The authors point to ambiguity about the grammatical category of biking. In the sentence it forms a verbal expression describing what the person is doing. The proposed replacement can name a related vehicle, but it does not supply the needed verb. Its lexical relevance makes the failure instructive. The category check can admit an alternative whose actual use is incompatible with the construction.

The content example is sharper because the revised sentence can read naturally. A premise describes a child running in a red hat. A hypothesis that merely says a child is running follows from it. Changing that hypothesis to describe a girl narrows the claim. The premise leaves the child’s gender open, so the relationship becomes neutral. The revision is globally similar and locally grammatical. It fails on precisely the information the entailment task asks the system to judge. Inspection of cases like this tells the reader how a high automatic attack score can include both genuine target errors and edits that make a new decision reasonable.

Limitations

Limits identified by the authors

The authors acknowledge that the generated examples vary in quality. Their discussion of word sense shows that lexical proximity is an imperfect guide to choosing a substitute, even with vectors designed for the purpose. A word with several senses can have neighbors appropriate to only some of them. Similarity between the revised and original sentence provides an additional filter, yet the errors show that it sometimes tolerates changes a reader would find substantial.

The paper also identifies problems with grammar. A broad category tag supplies less information than would be needed to establish that a replacement fits the particular sentence. A form that admits several analyses can be assigned a category that makes a plausible neighbor look acceptable. The authors propose further filtering heuristics as future work. Their reported human grammaticality assessments describe the quality of the evaluated outputs in aggregate and coexist with the syntactic errors they document.

For entailment, the authors explicitly acknowledge that a substitution can change the appropriate label. The child example shows why the issue concerns the meaning of the pair as a whole. A close alternative for a word in the hypothesis can introduce a claim the premise leaves unresolved. The sentence encoder evaluates similarity between the source and edited text, while the entailment task hinges on whether a particular proposition follows. Those questions can receive different answers for the same substitution.

Length is a stated complication for the encoder measure. The authors observe that similarity is less sensitive to some changes in short entailment inputs. They also treat classification and entailment separately when examining how edit rate relates to encoder similarity. A score that gives a useful aggregate description of changes to long documents can have a different interpretation for an entailment hypothesis whose decisive information is concentrated in a few words.

The authors present the training experiment as preliminary, and the automatic evaluation includes clear variation in attack effectiveness. Fake News Detection keeps more of its accuracy, and a meaning-preserving path through the accepted changes can be harder to find for some settings than for others. BERT on AG’s News is the reported exception on editing proportion. These variations set the scope of the general headline about large accuracy drops at low edit rates.

Limits visible in the study design

The query interface is part of the evidence. TextFooler needs confidence scores to compare variants that yield the same label and to track changes in support for the original and alternative winners. The experiments therefore apply directly to a score-bearing interface of the kind the paper describes. An interface returning only a category would withhold the information used by the stated importance calculation and the intermediate replacement rule. The paper offers no direct measurement of how the same kind of search would perform under that restriction.

The resources used for proposing and screening edits also define the search space. Vocabulary coverage determines whether the method can offer candidate words at a position. Category tagging affects which candidates advance, and the sentence encoder determines what counts as sufficiently close. Even if a target’s behavior is held fixed, a different pool of lexical options or a different acceptance rule can change which revisions are found. In particular, a failed search establishes the outcome of this procedure with these available moves. A different wording change, or a combination passed over by the greedy procedure, could still affect the target.

The stronger interpretation of after-attack accuracy depends on the evaluation label remaining correct. A source input can already receive a mistaken prediction, and a revision that changes its prediction satisfies the formal decision condition without necessarily creating a new mistake. Separately, an edit can invalidate the evaluation label by changing the content. The paper responds to the second problem with human reviews of selected samples, but those reviews cover MR against WordLSTM and SNLI against BERT. Their label-consistency results give evidence on those samples. They cannot establish label preservation for every dataset, target, or individual revision in the automatic experiments.

Consistency of human decisions is itself a particular measurement. Judges can agree across versions because they recognize the same sentiment or inference. That agreement supports the intended interpretation of the pair. It does not test every aspect of what the text communicates. The paper’s separate similarity assessment helps address this gap, and the grammaticality task helps establish whether a revision remains well formed. Their different scopes are especially visible when an edit alters a descriptive detail while a broad judgment, such as a review’s polarity, survives.

The encoder-based measure has a dependency that a reader should keep in mind. The search uses Universal Sentence Encoder to decide which revisions can survive, and automatic evaluation uses it again to report similarity. High scores are partly a consequence of screening by that same criterion. The human comparison provides a separate source of evidence in the settings where it was conducted. Similarly, a correlation between edit rate and encoder similarity gives an aggregate account of the experiments, while a short, decisive substitution can fall outside what either quantity adequately describes.

Efficiency, as measured in the paper, concerns the number of responses obtained from the target. That is a meaningful cost in a query-based setting. Candidate retrieval, tagging, and sentence encoding also require computation. Query counts leave that other work outside their measure. The empirical scaling result is most informative as a description of how target requests vary with text length under the procedure and settings tested.

Finally, the retraining experiment measures resistance after augmenting the training set with revisions produced by this attack. This is evidence for improved performance when the resulting system is challenged again in the study. Different families of changes can confront a predictor with patterns the augmented data never supplied. The paper also carries the source labels over to its generated training items, so the quality of that training signal depends on the very preservation assumptions investigated elsewhere. The results establish a useful defense comparison within the experiment and leave its reach beyond those conditions open.

What came after

New ways to construct and organize adversarial tests

TextFooler puts several decisions in view. An attack needs a way to propose edits, a means of searching among them, a judgment about which edits are acceptable, and an evaluation of what happens to the target. Later citing work takes up these decisions from different directions. Some papers identify a different source for edits. Others place the search inside a wider framework that also uses the resulting examples for training. The connections are visible in what the later papers set out to study, while technical reuse of a particular TextFooler component requires more specific evidence.

TextAttack addresses adversarial attacks, data augmentation, and adversarial training in a common framework. TextFooler already illustrates the relationship among those activities. An edited sentence starts as a probe of a fixed classifier and can then become additional training material if its label is sound. A framework organized around all three activities gives that sequence of experiments a common setting. The connection is strongest at the level of the workflow, from constructing examples to testing what happens when the target learns from them. TextAttack

BERT-ATTACK places BERT on both sides of the problem. Its subject is an attack against BERT which also uses BERT to carry out the attack. This changes where the editing side gets linguistic information. In TextFooler, synonym-oriented word representations propose the lexical neighbors, and BERT can supply the target’s predictions. BERT-ATTACK explicitly studies bringing the same named technology into attack construction, illustrating that the mechanism used to produce candidate inputs can itself be a research question. BERT-ATTACK

BAE also makes BERT part of adversarial example generation, with text classification as the setting. The shared problem with TextFooler is the construction of edited classifier inputs for which a changed prediction is informative. The BERT-based approach identifies a different basis for generating adversarial language. This makes candidate construction the point of comparison, alongside the continuing question of whether an example remains appropriate for the task after the edit. BAE

Another citing paper puts the structure of the word-level search in the foreground through combinatorial optimization. The phrase refers to choosing among discrete possibilities, where the space of combinations can grow as alternatives at different positions are considered together. TextFooler tackles that space through an importance order followed by greedy decisions at individual positions. Framing word-level adversarial editing as a combinatorial problem makes the selection of a search strategy an explicit object of study. Word-level Textual Adversarial Attacking as Combinatorial Optimization

A study of gradient-based attacks against text transformers takes up the question of what information guides the search. TextFooler’s black-box procedure estimates sensitivity through the scores obtained on omission variants. A gradient-based approach studies attacks whose guidance comes from derivatives. The line connecting them is the effort to find changes that matter to the target. The source of information used to find those changes is a defining part of each approach’s setting. Gradient-based Adversarial Attacks against Text Transformers

Preservation and defense become research questions in their own right

Reevaluating Adversarial Examples in Natural Language makes the evaluation of such examples its subject. That agenda follows naturally from the tension in TextFooler between an obvious prediction change and the less obvious validity of the revised input. TextFooler’s human study distinguishes whether the answer stays the same, whether meaning stays close, and whether the language remains grammatical. Its own failure cases show why reviewing the status of generated examples matters to claims about vulnerability. Reevaluating Adversarial Examples in Natural Language

Work on defending pretrained systems from adversarial word substitution places the defense objective in the foreground and expressly includes retaining performance in its scope. TextFooler’s preliminary retraining study asks whether a system becomes harder to attack after learning from generated replacements. A defense study with a performance requirement raises the accompanying question of what happens to usefulness under ordinary conditions. The connection is the need to assess what resistance to substitution buys and how it relates to the original task. Defending Pre-trained Language Models from Adversarial Word Substitution Without Performance Sacrifice

A study of synonym substitutions in text-to-SQL carries the stability question into a task that produces a database query from language. There the intended request supplies the basis for judging whether two wordings should lead to equivalent behavior. That gives the word-level substitution problem a different output structure from the sentiment and entailment settings. The continuity is the demand that meaning-preserving lexical variation leave the system able to perform the same task. Towards Robustness of Text-to-SQL Models against Synonym Substitution

PromptRobust moves the subject of robustness evaluation to adversarial prompts. That focus extends the broader concern visible in TextFooler, that an evaluation should consider what happens when a person deliberately looks for wording that changes behavior. The type of input being edited and the behavior under evaluation determine what counts as a valid comparison. For TextFooler, the paper supplies a concrete answer through classification labels, similarity checks, and human judgments on paired texts. The later prompt work belongs to the same evaluation lineage because it puts the choice of adverse wording inside the test itself. PromptRobust

 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

 Concepts 1Key ideas and methods explained on our concept pages.Text classification · 50 works

Appears in

Mentioned in articles aboutSingapore Hong Kong

Cite

Cite as Di Jin, Zhijing Jin, Joey Tianyi Zhou and Peter Szolovits. 2019. Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment. arXiv:1907.11932.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1907.11932 · arXiv 1907.11932

@misc{jin2019is,
  title = {{Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment}},
  author = {Di Jin, Zhijing Jin, Joey Tianyi Zhou and Peter Szolovits},
  year = {2019},
  doi = {10.48550/arxiv.1907.11932},
  eprint = {1907.11932},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1907.11932}
}

References

33 references, from the paper's own bibliography.

  1. Alzantot, M.; Sharma, Y.; Elgohary, A.; Ho, B.-J.; Srivastava, M.; and Chang, K.-W. 2018. Generating natural language adversarial examples. arXiv preprint arXiv:1804.07998. our card
  2. Bowman, S. R.; Angeli, G.; Potts, C.; and Manning, C. D. 2015. A large annotated corpus for learning natural language inference. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics. our card
  3. Carlini, N., and Wagner, D. 2018. Audio adversarial examples: Targeted attacks on speech-to-text. arXiv preprint arXiv:1801.01944. OpenAlex ↗ · Scholar ↗
  4. Cer, D.; Yang, Y.; Kong, S.-y.; Hua, N.; Limtiaco, N.; John, R. S.; Constant, N.; Guajardo-Cespedes, M.; Yuan, S.; Tar, C.; et al. 2018. Universal sentence encoder. arXiv preprint arXiv:1803.11175. OpenAlex ↗ · Scholar ↗
  5. Chen, Q.; Zhu, X.; Ling, Z.; Wei, S.; Jiang, H.; and Inkpen, D. 2016. Enhanced lstm for natural language inference. arXiv preprint arXiv:1609.06038. OpenAlex ↗ · Scholar ↗
  6. Conneau, A.; Kiela, D.; Schwenk, H.; Barrault, L.; and Bordes, A. 2017. Supervised learning of universal sentence representations from natural language inference data. arXiv preprint arXiv:1705.02364. our card
  7. Devlin, J.; Chang, M.-W.; Lee, K.; and Toutanova, K. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805. our card
  8. Ebrahimi, J.; Rao, A.; Lowd, D.; and Dou, D. 2017. Hotflip: White-box adversarial examples for text classification. arXiv preprint arXiv:1712.06751. our card
  9. Feng, S.; Wallace, E.; Grissom, I.; Iyyer, M.; Rodriguez, P.; Boyd-Graber, J.; et al. 2018. Pathologies of neural models make interpretations difficult. arXiv preprint arXiv:1804.07781. our card
  10. Gagnon-Marchand, J.; Sadeghi, H.; Haidar, M.; Rezagholizadeh, M.; et al. 2018. Salsa-text: self attentive latent space based adversarial text generation. arXiv preprint arXiv:1809.11155. OpenAlex ↗ · Scholar ↗
  11. Gao, J.; Lanchantin, J.; Soffa, M. L.; and Qi, Y. 2018. Black-box generation of adversarial text sequences to evade deep learning classifiers. arXiv preprint arXiv:1801.04354. our card
  12. Goodfellow, I. J.; Shlens, J.; and Szegedy, C. 2014. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572. our card
  13. Goodfellow, I.; Shlens, J.; and Szegedy, C. 2015. Explaining and harnessing adversarial examples. In International Conference on Learning Representations. our card
  14. Hill, F.; Reichart, R.; and Korhonen, A. 2015. Simlex-999: Evaluating semantic models with (genuine) similarity estimation. Computational Linguistics 41(4):665–695. our card
  15. Hochreiter, S., and Schmidhuber, J. 1997. Long short-term memory. Neural computation 9(8):1735–1780. OpenAlex ↗ · Scholar ↗
  16. Kim, Y. 2014. Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882. our card
  17. Kuleshov, V.; Thakoor, S.; Lau, T.; and Ermon, S. 2018. Adversarial examples for natural language classification problems. OpenAlex ↗ · Scholar ↗
  18. Kurakin, A.; Goodfellow, I.; and Bengio, S. 2016a. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533. OpenAlex ↗ · Scholar ↗
  19. Kurakin, A.; Goodfellow, I. J.; and Bengio, S. 2016b. Adversarial machine learning at scale. CoRR abs/1611.01236. OpenAlex ↗ · Scholar ↗
  20. Li, J.; Ji, S.; Du, T.; Li, B.; and Wang, T. 2018. Textbugger: Generating adversarial text against real-world applications. arXiv preprint arXiv:1812.05271. our card
  21. Li, J.; Monroe, W.; and Jurafsky, D. 2016. Understanding neural networks through representation erasure. arXiv preprint arXiv:1612.08220. our card
  22. Liang, B.; Li, H.; Su, M.; Bian, P.; Li, X.; and Shi, W. 2017. Deep text classification can be fooled. arXiv preprint arXiv:1704.08006. OpenAlex ↗ · Scholar ↗
  23. Moosavi-Dezfooli, S.-M.; Fawzi, A.; Fawzi, O.; and Frossard, P. 2017. Universal adversarial perturbations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 1765–1773. OpenAlex ↗ · Scholar ↗
  24. Mrkšić, N.; Séaghdha, D. O.; Thomson, B.; Gašić, M.; Rojas-Barahona, L.; Su, P.-H.; Vandyke, D.; Wen, T.-H.; and Young, S. 2016. Counter-fitting word vectors to linguistic constraints. arXiv preprint arXiv:1603.00892. OpenAlex ↗ · Scholar ↗
  25. Niven, T., and Kao, H.-Y. 2019. Probing neural network comprehension of natural language arguments. arXiv preprint arXiv:1907.07355. OpenAlex ↗ · Scholar ↗
  26. Pang, B., and Lee, L. 2005. Seeing stars: Exploiting class relationships for sentiment categorization with respect to rating scales. In Proceedings of the 43rd annual meeting on association for computational linguistics, 115–124. our card
  27. Papernot, N.; McDaniel, P.; Goodfellow, I.; Jha, S.; Celik, Z. B.; and Swami, A. 2017. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, 506–519. ACM. OpenAlex ↗ · Scholar ↗
  28. Pennington, J.; Socher, R.; and Manning, C. 2014. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), 1532–1543. our card
  29. Ribeiro, M. T.; Singh, S.; and Guestrin, C. 2018. Semantically equivalent adversarial rules for debugging nlp models. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, 856–865. OpenAlex ↗ · Scholar ↗
  30. Szegedy, C.; Zaremba, W.; Sutskever, I.; Bruna, J.; Erhan, D.; Goodfellow, I.; and Fergus, R. 2013. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199. our card
  31. Williams, A.; Nangia, N.; and Bowman, S. R. 2017. A broad-coverage challenge corpus for sentence understanding through inference. arXiv preprint arXiv:1704.05426. our card
  32. Zhang, X.; Zhao, J.; and LeCun, Y. 2015. Character-level convolutional networks for text classification. In Advances in neural information processing systems, 649–657. our card
  33. Zhao, Z.; Dua, D.; and Singh, S. 2017. Generating natural adversarial examples. arXiv preprint arXiv:1710.11342. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/jin-2019-bert-really-robust-strong-baseline/