Elamur Research

TextBugger: Generating Adversarial Text Against Real-world Applications

Paper · 2018 · Jinfeng Li, Shouling Ji, Tianyu Du et al.

Summary

A spelling change can leave the opinion in a movie review perfectly clear to a reader. A toxicity classifier can likewise encounter a comment whose wording looks unusual but whose hostility is still recognizable. TextBugger asks how frequently a system’s judgment changes under that kind of variation. The authors study text classification in settings where the result may feed into a recommendation system or help a moderator decide which comments deserve attention. Their comparison is between an original passage and an edited version expected to carry the same label.

The study considers two kinds of access. In the white-box experiments, the evaluator can inspect how a classifier responds to its numerical input. In the black-box experiments, the evaluator has the outputs exposed by an interface. TextBugger uses that evidence to concentrate on consequential parts of a passage and examines changes at the level of characters and words. An edited passage qualifies when its predicted category changes and its measured semantic similarity to the original remains high enough. A reader study tests separately whether people still recover the original judgment.

The experiments cover sentiment analysis on two movie-review collections and toxicity detection on Wikipedia comments. The authors test locally trained classifiers as well as commercial and other externally accessed systems. On the IMDB test material, Amazon AWS Comprehend yields a reported TextBugger success rate of 100%, with a generation time of 4.61 seconds and 97% semantic similarity. Microsoft Azure also yields 100% success on IMDB. In one toxicity example, Perspective assigns the original comment 92% toxicity and the edited comment 22%. The authors express the latter result as 78% non-toxic. In the reader study, 94.9% of the selected edited passages received their original label, compared with 95.5% correct classification for the unedited passages.

Some passages prepared against a local classifier also change the result at a service that played no part in preparing them. The authors characterize computational cost as sub-linear in document length, while their timing study shows different patterns across services over the lengths examined. Their spelling-correction and adversarial-training experiments find partial protection, and the authors report notifying the companies about the observed failures. Together, the tests distinguish three properties that matter in deployment: how accurately a classifier handles ordinary text, how consistently it handles changes in presentation, and how closely its judgments track those of readers.

Deep dive: TextBugger: Generating Adversarial Text Against Real-world Applications

TextBugger tests how small edits change sentiment and toxicity classifications, and whether readers and early defenses agree with those decisions. · about 38 minutes to read

The problem and its context

A stable judgment for a changed passage

In movie-review classification, the system reads a passage and reports a category that represents the writer’s attitude. The paper describes recommendation systems that use an assessment of this kind when ranking products or films. In toxicity detection, the text is an online comment, and a classifier’s judgment can assist the people who oversee a discussion. Both are examples of natural language understanding with a compact output. A potentially lengthy piece of writing becomes a label or a set of scores.

That reduction makes the task measurable. A benchmark can compare the returned category with an established label for each passage. It also leaves an important question unanswered. The system may agree with the reference on the original review and disagree on a version whose sentiment still seems evident to a reader. The original classification measures performance on one instance of the wording. The comparison across versions measures whether that performance survives a change that should preserve the judgment.

The reference label is essential to this test. If a revision removes the hostility from a comment, the change in the system’s decision may be appropriate. If the hostility remains evident, a different decision raises a question about robustness. This is why the paper treats the quality of the revised input as part of the evidence. A successful demonstration needs both a changed output and a reason to consider the original category applicable to the revision. The two observations concern different things: the system’s response and the meaning a person can recover.

The paper distinguishes this form of testing from manipulation of training data. In what earlier security research calls a causative attack, the intervention happens while the classifier is being developed. The examples used for learning are changed so that the resulting classifier learns different behavior. In an exploratory attack, the classifier is already in place. The variable is the text it receives when asked to make a prediction. TextBugger belongs to this second setting. The commercial experiments therefore concern the behavior visible to a user who can submit text for classification.

The authors also distinguish knowing how a classifier works from knowing how it responds. A research team can inspect parameters in a classifier it trains itself. A service customer may see a numerical score or a category through an application programming interface, or API. This narrower view still allows comparisons across inputs. It provides much less evidence about where, inside the system, a difference arose. The paper uses both kinds of access to ask complementary questions about the existence of failures and the conditions under which they can be observed.

Why written language changes the problem

The paper looks back to work on adversarial examples in image recognition. An adversarial example is an input deliberately chosen to produce an erroneous classification. Earlier image studies, as the authors describe them, show that a classifier can respond strongly to changes that have little effect on what a person sees. That finding motivates an analogous question for reading. A change to a character is often visible on inspection, but visibility alone tells little about whether a sentence’s point remains clear. Intriguing properties of neural networks, Towards Evaluating the Robustness of Neural Networks

There is also a difference in the units that can change. Pixel intensities allow gradual numerical adjustments. A written word is made of discrete symbols. The classifier can work with a numerical representation of those symbols, but a small movement inside that representation may have no obvious counterpart in ordinary writing. Returning from a numerical variation to a written word brings its own choices. A change that is small by a numerical measure can still alter the word’s role in the sentence or the attitude it conveys.

The problem runs in the other direction as well. A small change on the page can have a large effect on the input the classifier actually processes. The authors describe systems that recognize words through a finite vocabulary. Some written forms can be understood by readers even when they fall outside that vocabulary. If different unfamiliar forms receive a shared numerical representation, the classifier loses distinctions that a reader could recover from context. This was one reason for examining the written input and the resulting classification together.

What researchers had already tried

The paper traces an early line of work through gradients. A gradient describes the direction and rate of change of a numerical quantity near a given input. For language classification, earlier studies used gradients to connect a change in a score with a possible change in the input sequence. Papernot and colleagues examined recurrent networks and used successive changes to produce misclassification. TextBugger’s authors describe the resulting edits as capable of altering the original meaning substantially. The example illustrates how the objective of changing a prediction can diverge from the objective of preserving a passage. Crafting adversarial input sequences for recurrent neural networks

The authors also discuss HotFlip, which relates gradients to changes between discrete input units, and work by Samanta and Mehta, which uses sensitivity information alongside hand-designed changes. These approaches face a common question. Even with a useful account of what drives the score, which changes still give a person substantially the same text? The papers differ in how they connect the numerical information to something that can be read.

Another line of research studies what happens when familiar-looking language falls outside a system’s vocabulary. The authors cite observations from machine translation as well as toxicity classification. DeepWordBug is especially relevant because its evaluation also concerns text classifiers under black-box access. The earlier work establishes that spelling variation can expose fragility even when the evaluator has limited information about the classifier. TextBugger adds a comparison against this approach on both review sentiment and toxicity. DeepWordBug

Earlier research also investigated replacements intended to preserve meaning or grammatical function. The authors describe Alzantot and colleagues as searching among related words for sentiment experiments. They describe Ribeiro and colleagues as using grammatical categories and similarity in word representations to guide replacements. The distinction between grammatical fit and preserved sentiment matters here. Two alternatives may belong in the same grammatical position while giving a sentence opposing evaluations. Generating Natural Language Adversarial Examples

The remaining examples in the paper’s account address different kinds of language tasks. One evaluation inserted distracting material into question answering passages and required people to polish that material. Another used a generative approach for entailment and translation, with the authors describing its practical use as limited to short texts. These studies widen the idea of what an adversarial text can be. TextBugger narrows the experimental outcome to a category assigned to a review or comment, which makes the comparison with a reference label relatively direct.

The authors describe defensive research on text as less established than the corresponding work on images. They cite adversarial training in language research that was intended to improve performance on ordinary inputs. Their own defense question is whether training on altered examples changes the classifier’s behavior when it later receives such text. Ordinary accuracy still matters in that comparison. A defense that recovers the original judgment on edited passages has limited practical value if it also makes the underlying classification task substantially harder on ordinary ones. Adversarial Training Methods for Semi-Supervised Text Classification

The method, step by step

What a successful pair has to establish

The starting point is a labeled passage from one of the study’s corpora. The label describes its sentiment or its toxicity under the study’s rules. TextBugger examines the behavior of a fixed classifier when the written input varies. It seeks a revision for which the classifier gives another label while a separate measurement says the two passages remain close. The paired design means that a failure can be examined in relation to a specific original passage and its human-assigned category.

The classifier’s scores and its selected category play different roles. A score gives the system’s numerical support for a class. A classification assigns the passage to a category according to the system’s decision rule. Changes in score can reveal sensitivity even when the chosen category stays the same. In the paper’s success criterion, the category has to change. In the accompanying analyses, the score makes it possible to describe what happens short of that boundary.

Here is the experiment from the standpoint of its measurements.

How TextBugger evaluates a text pair

The steps in order.

How TextBugger evaluates a text pairStep 1: Begin with a passage and its label1. Begin with a passage and its labelStep 2: Examine classifier sensitivity to features of the passage2. Examine classifier sensitivity to features of the passageStep 3: Assess an edited version of the text3. Assess an edited version of the textStep 4: Compare its predicted category with the reference label4. Compare its predicted category with the reference labelStep 5: Check its similarity to the original5. Check its similarity to the originalStep 6: Validate selected results with human readers6. Validate selected results with human readers

The reader check applies to sampled passages in a separate study. The routine comparison for an edited passage uses the predicted label and the numerical similarity measurement. Human judgments matter because a numerical pass gives evidence about closeness under a particular representation. Having readers perform the classification gives additional evidence about whether the task-relevant judgment survives the change.

The paper represents a classifier, at the level of its label output, as a mapping.

ℱ: 𝒳 → 𝒴

The symbol ℱ denotes the classifier. The set 𝒳 is the input feature space, the space in which texts are represented to the classifier. The set 𝒴 contains the available classes. The arrow says that the classifier associates an input with a class. Elsewhere, the paper uses subscripts on the classifier symbol to refer to its confidence for a class. The label mapping and those numerical scores describe different views of the same prediction.

The label condition can be written on its own.

ℱ(xₐdv) = t,  t ≠ y

Here xₐdv denotes the altered passage, with the subscript identifying the adversarial version. The symbol t denotes the class assigned to it, and y denotes the ground-truth class carried by the original passage. The equality identifies the returned class. The inequality ≠ requires the returned and reference classes to differ. The experiments count departures from the reference category, which is why the authors describe them as untargeted in their discussion.

A separate condition puts a lower bound on similarity.

S(x, xₐdv) ≥ ε

Here x is the original passage, xₐdv is its edited counterpart, and S assigns a similarity score to the pair. The symbol ε is the acceptance threshold. The relation ≥ accepts a score equal to or above that threshold. The authors use 0.8 in the experiments. The score serves as a definition of acceptable closeness for the method. Its relation to reader judgment is an empirical question.

The separate conditions are especially important for comparing the tasks. A binary toxicity experiment has two available classes after the authors combine the original annotation categories. In sentiment, the authors describe interfaces that can also return a neutral category. The label condition can be applied in either case. The task semantics come from what the classes mean and from the evidence that the revised passage still deserves its original label.

What changes with access to the classifier

In the white-box setting, the authors assume that the evaluator knows the classifier’s architecture and parameters. The paper characterizes sensitivity with a Jacobian, an array that records how the different class scores respond locally to the parts of the numerical input. A partial derivative in that array concerns the response of one score to one input component under the differentiation convention being used. For text, the distinction between an input component and a written word matters because the classifier operates on a representation of the word.

The Jacobian concerns the immediate numerical neighborhood of the represented input. Its values describe the classifier’s behavior there. They are evidence about the dependence of a prediction on the representation of the passage, with a different value possible for each output class. A reader interpreting the review or comment has a different task. The meaning of an expression can depend on context and on relations across the sentence. Numerical sensitivity is useful to the experiment because it describes where the classifier’s decision is responsive.

The black-box tests have no such internal information. The authors instead infer which material matters from the answers a service gives when it evaluates text. Their design distinguishes between evidence at the scale of sentences and evidence at the scale of individual words. That distinction has a practical motivation for review-length inputs. An opinion can be expressed in a small number of sentences even when other sentences supply considerable detail. A sentence may also read differently alone than it does as part of a complete review, which limits the interpretation of a score obtained at that scale.

Scores from an interface allow the authors to observe changes that would be invisible in category names. A passage can retain its original category after a change while receiving substantially different support for it. In another case, the strongest class can change even when the difference between competing scores is small. This is why score access matters for interpreting the black-box experiments. The threat model mentions services exposing either predictions or confidence, but the sensitivity comparisons described in the paper rely on numerical responses.

Both settings examine small variations in written form and in word choice. The paper calls the resulting changes bugs. Its motivation for working at character level is that people can sometimes infer a word from an imperfect spelling while a classifier’s representation of the same text has changed considerably. This is partly a question of tokenization, the way written input becomes units for a system to process. Vocabulary membership adds another question: which of those units the system can represent distinctly.

The word-level side of the study draws on word embeddings. An embedding represents a word by numerical coordinates. Words with nearby representations can supply candidates for linguistically related changes. The authors use pretrained GloVe representations. They also point to a difficulty with treating vector proximity as evidence of equivalence. Words of opposite sentiment can occur in similar linguistic surroundings. A word can remain grammatical in the original sentence while changing its point. That possibility is a reason to compare the resulting passage with the original as a whole. GloVe: Global Vectors for Word Representation

What the similarity measures capture

The paper evaluates utility through comparisons on the written text and in vector space. Levenshtein distance concerns the character string. It counts the minimum number of insertions, deletions, and substitutions needed to produce one string from the other. The count describes how much editing the pair requires under those operations. It gives the same kind of unit to changes that may have very different consequences for a reader. An edit affecting the principal evaluation in a review can matter more than an edit to incidental wording.

The Jaccard coefficient captures a different property, overlap in the vocabulary of a pair of passages.

J(A, B) = |A ∩ B| ÷ |A ∪ B|

The symbol J denotes the coefficient. A and B are the sets of words in the original and revised passages. The intersection ∩ gives the words present in both sets, and the union ∪ gives all the distinct words belonging to either set. The bars give the number of elements in the enclosed set. The division sign ÷ expresses overlap as a share of the combined vocabulary, and = defines the coefficient in those terms. Repetition and position have no effect once the two sets have been formed. High overlap is therefore evidence about shared vocabulary, with word order and the composition of meaning left open.

Euclidean distance treats the two inputs as points in a numerical space.

d(p, q) = √((p₁ − q₁)² + (p₂ − q₂)² + ⋯ + (pₙ − qₙ)²)

Here d is the distance between vectors p and q. The subscripts identify corresponding coordinates, beginning with ₁ and ₂ and ending at ₙ. The symbol n is the vectors’ dimension. Each minus sign forms a coordinate difference. The superscript ² squares it. The plus signs add the squared values, and ⋯ covers the intermediate coordinates. The square-root sign √ converts the resulting sum to the straight-line distance. The equals sign defines d from those operations. The distance is a property of the chosen vector space, which is why the representation matters when comparing it with character edits or judgments of meaning.

For the semantic check, the authors use the Universal Sentence Encoder to turn the text into vectors. The encoder was trained on language prediction tasks for which information about the meaning of word sequences is useful. Cosine similarity compares the directions of the two encoded vectors.

S(p, q) = (p · q) ÷ (‖p‖ × ‖q‖)

Here S denotes cosine similarity, and p and q are the vectors for the original and changed texts. The centered dot indicates the dot product, which adds the products of corresponding coordinates. The double bars ‖ ‖ give the length of each vector. The multiplication sign × takes the product of those lengths, and ÷ divides the dot product by that quantity. The equals sign gives the rule that defines S. Standardizing by vector length makes the score a measure of direction. It is the S used in the paper’s similarity condition when the documents have been encoded.

The four measures can tell different stories about the same pair. A passage can change in relatively few characters while losing an unchanged word from the overlap calculation. Two passages can also preserve most of their words while their numerical representations move apart. Conversely, an embedding can be close for a long pair even if a locally important phrase changes. The paper reports the measures together to describe different aspects of the resulting text. Cosine similarity has the additional role of setting the minimum required closeness.

What was learned and what was held fixed

For the classifiers trained locally, the authors use separate portions of the data for fitting, validation, and testing. Fitting establishes the classifier’s learned parameters. Validation informs the choice of settings around that training process, which the paper calls hyper-parameters. The held-out test data supply the material for the final robustness measurements. The setup makes the unit of assessment a prediction about text outside the fitting partition.

The reported implementation retains stop words, common words that some preprocessing systems discard. The authors say they observed effects from those words on predictions. Their sentiment experiments use GloVe embeddings with 300 dimensions, pretrained on 840 billion tokens from Common Crawl. For words absent from the pretrained set, the implementation describes random initialization from the uniform interval [-0.1, 0.1]. This initialization concerns the reported feature preparation. The behavior of an externally hosted system facing unfamiliar words depends on its own representation, which is outside the authors’ view.

The paper reports means from experiments repeated 5 times and points to variation from stochastic training as a reason to repeat them. The locally trained classifiers can differ across runs even on the same corpus. The hosted evaluations instead add the practical conditions of communicating with a service. Timing in those experiments describes performance under the particular arrangement the paper used. Neither a timing observation nor an average across runs has the same interpretation as a held-out test accuracy.

Experiments and results

The review corpora and the classification systems

The IMDB collection contains 50,000 positive and negative reviews. Its established division puts 25,000 reviews in the training portion and 25,000 in the test portion. The authors set aside 20% of the training portion for validation. They report an average of 215.63 words per review across the dataset. At that length, a review may include descriptions of the film as well as the writer’s judgment of it. The label still concerns the passage as a whole. Learning Word Vectors for Sentiment Analysis

Rotten Tomatoes Movie Reviews, abbreviated MR, contains processed review sentences or snippets. The authors give counts of 5,331 positive items and 5,331 negative items, with an average length of 32 words. They split MR into 80% training, 10% validation, and 10% test material. An MR snippet provides fewer words across which to express an opinion than a typical IMDB review. The corpora also differ in how examples were collected and presented. Their contrast supplies two settings for testing sentiment robustness, with length investigated separately later in the paper. Seeing Stars

The local evaluations use logistic regression, a convolutional neural network, and a long short-term memory network. The paper abbreviates these as LR, CNN, and LSTM. Logistic regression gives a linear classification comparison. The convolutional classifier uses patterns over parts of the text. The recurrent classifier can carry information across a sequence. The authors use Kim’s CNN and identify the recurrent classifier through the work by Zhang and colleagues. The study also cites an analysis of choices that affect convolutional classification, which informed tuning. Convolutional Neural Networks for Sentence Classification, Character-level Convolutional Networks for Text Classification, A Sensitivity Analysis of Convolutional Neural Networks for Sentence Classification

The externally assessed sentiment offerings include Amazon AWS Comprehend and Microsoft Azure Text Analytics, which supply two of the paper’s most detailed comparisons. Google Cloud NLP and IBM Watson Natural Language Understanding also appear in the work on document length. The other services examined include ParallelDots, Aylien Sentiment, TheySay Sentiment, and TextProcessing. Mashape Sentiment is another service in the evaluation. The authors also use a pretrained fastText classifier provided by Facebook, identifying Amazon Review Polarity as its training collection. They classify their access to fastText as black-box because they treat its architecture and parameters as unavailable, just as they treat the internals of the hosted offerings.

Comparison methods and outcome measures

The white-box experiments include a random baseline. For each sentence, it selects 10% of the words for modification. It supplies a reference point for how frequently a change in the predicted category can occur when the choice of words receives no guidance from the classifier. It is a useful comparison because a classifier could respond erratically to edits in general. The observed performance of this baseline helps the authors ask whether their examples arise from indiscriminate disturbance or from the particular sensitivity investigated by their method.

The other white-box baselines adapt image-domain methods. The fast gradient sign method, FGSM, uses loss sensitivity to construct a numerical perturbation. DeepFool searches for a nearby crossing of a classifier’s decision boundary, the point at which the assigned category changes. The versions compared in the paper both use nearest-neighbor search, or NNS, to turn the resulting numerical representations back into text. This last step is part of what the experiment measures. A comparison of an adaptation includes how well its outcome survives conversion to readable input. Explaining and Harnessing Adversarial Examples, DeepFool

DeepWordBug is the main black-box baseline. It produces text changes in a setting where the classifier’s internals are unavailable. Comparing it with TextBugger therefore places two procedures under a similar access constraint. They differ in multiple ways. The resulting success rates compare complete procedures, and the similarity measurements help assess whether a more successful procedure obtains its result at the cost of more substantial alterations to the text.

The paper distinguishes clean accuracy, success rate, and the amount of editing. Clean accuracy concerns the unaltered test examples. Success rate concerns the classification outcome under the experiment’s conditions for the changed passage. The share of words perturbed measures the extent of the intervention in a sample. Text and vector comparisons then characterize the relationship between original and edited versions. A timing result adds information about the work required to obtain an altered version. These quantities have different denominators and answer different questions, even when reported together for the same classifier and corpus.

What changes in sentiment classification

On the IMDB white-box test against logistic regression, the paper reports TextBugger success in 95.2% of trials and puts the proportion of words changed per sample at 4.9%. No baseline exceeds 42% success in that comparison. The authors characterize the local classifiers as performing well on ordinary IMDB and MR material and report that the tested linear classifier is more susceptible than the tested neural classifiers. The contrast is informative precisely because clean accuracy and sensitivity to selected edits can coexist. It also refers to the implementations evaluated here, each with its own training and input representation.

The black-box IMDB results show the largest reported rates for TextBugger on AWS and Azure. The following comparison keeps the dataset, service, and outcome measure fixed.

Black-box success rate on the IMDB test set against Amazon AWS Comprehend

TextBugger met the classification criterion more often than DeepWordBug.

Black-box success rate on the IMDB test set against Amazon AWS ComprehendDeepWordBug: 68.1DeepWordBug68.1TextBugger (this paper): 100TextBugger (this paper)100
The numbers
System or settingsuccess rate %
DeepWordBug68.1
TextBugger (this paper)100

The AWS result comes with the reported generation time of 4.61 seconds and semantic similarity of 97%. The semantic figure describes the encoder-based comparison for that result. The success rate describes how frequently the classification criterion is met, and the time describes the speed of generation in the reported setting. These figures characterize a single experimental setting from different angles. A reader trying to understand the practical significance needs all three.

Against Microsoft Azure on IMDB, DeepWordBug reaches 56.3% success and TextBugger reaches 100%. The MR test gives another Azure result, this time on much shorter pieces of text. There the authors report 96.8% success with 7% of the words altered. They describe this scale as about 2 changed words per sample. That count is meaningful for imagining the physical appearance of a revised snippet. The fraction of the text affected gives a different perspective, because a short source leaves fewer unaffected words around each change.

At the level of an individual passage, one local CNN example moves from a reported 99.8% negative judgment to 81.0% positive. This example makes the distance between the displayed judgments easy to see. It is an illustration of what a successful result can look like. The corpus-level rates describe how often a qualifying result occurs across the evaluated inputs. A large movement in one example does not tell how close to the decision boundary the other successful examples end up.

The authors examine the entire distribution of scores before and after the changes, including attempts that fail to change the label. For the sentiment comparisons, they describe movement in the positive direction overall. Reading that finding requires attention to how a service expresses sentiment. Some of the evaluated outputs use a signed scale with positive and negative sides. Others put the two polarities in portions of a common interval, and the orientation of that interval differs between interfaces. The paper interprets movement relative to each service’s own meaning for the score.

The white-box utility measurements show how close many of the changed passages remain under the paper’s metrics. For IMDB results against LR and CNN, nearly 80% of the adversarial passages are within an edit distance of 25 of their originals. In the white-box IMDB semantic analysis, almost 90% reach a similarity of at least 0.9. These are statements about the distribution of the altered passages. The figures therefore provide information beyond the method’s acceptance floor. The edit distance describes the visible changes under a character-based count, and the cosine value describes proximity after encoding.

The authors focus their white-box utility analysis on TextBugger because the baselines succeeded infrequently. For the black-box tests, they do compare utility with DeepWordBug. Their account reports closer matches on both IMDB and MR for TextBugger under the text and vector measures. The combination is important. A gain in success would be harder to interpret if it consistently came with greater changes to the written passage. In these comparisons, the authors report favorable results on both frequency of success and the closeness of the resulting material.

The toxicity corpus and its results

The toxicity evaluation uses Wikipedia comments from the Kaggle Toxic Comment Classification competition. The original labels distinguish several types of toxicity. They include severe toxicity, obscenity, threats, and insults, alongside the general toxicity and identity-hate labels. For this paper, the categories are collapsed to a single toxic class. The other class is non-toxic. This gives the authors a common binary outcome that they can use across local classifiers and external services.

They draw non-toxic comments at random to make a balanced subset. They also remove abnormal examples with repeated characters and keep passages with at most 200 words because some interfaces limit input length. After preparation, the paper reports 12,630 items in each class and gives an average length of 55 words for the Kaggle dataset in its analysis. The resulting evaluation concerns this selected group of comments. It gives both categories substantial representation and defines which texts can contribute to the reported aggregate.

For local classifiers, the toxicity data are divided into 80% training, 10% validation, and 10% test material. The authors tune on validation and generate and evaluate their final examples on the test data. The black-box experiments include Google Perspective, ParallelDots AI, and Aylien Offensive Detector. IBM Natural Language Classifier and fastText complete the toxicity evaluation. For the latter two, the authors supply training material through the available interfaces. They use 80% of the Kaggle data for training and the rest for testing, with no validation portion reported for that arrangement. This is an instance in which control over what data to supply for training coexists with limited visibility into what happens to those data.

For local logistic regression on Kaggle, the authors report a success rate of 92.3% with 10.3% of the words changed in a sample. All white-box baselines stay at or below 40% success in that comparison. The authors give about 6 words as the corresponding scale of modification. In the black-box Kaggle test against ParallelDots, they report 82.1% success with 4.0% of the words perturbed, which they describe as about 3 words. These two examples put the rate of changed judgments beside the amount of textual change. The differences in classifier and access conditions make them separate tests of the same vulnerability.

The Perspective example shows why the type of output matters. Its starting comment receives a 92% toxicity score and its edited version receives 22%. The paper represents the second output as 78% non-toxic for the binary comparison. The service’s returned quantity in this example is the toxicity score. The authors also show a separate local LSTM example in which the reported result changes from 96.7% toxic to 83.5% non-toxic. Both examples concern specific passages. They complement the aggregate findings by showing that an individual result can involve a substantial swing in the reported judgment.

The authors describe a general movement toward non-toxic scores in their toxicity comparison, including the attempts that did not meet the category-change criterion. The utility results add information about the resulting passages. In the white-box Kaggle analysis, nearly 80% of adversarial examples have edit distance no greater than 20. The paper also reports that nearly 90% preserve semantic similarity of 0.9 in the white-box results. In the black-box Kaggle comparison, the authors characterize TextBugger’s output as retaining more utility than DeepWordBug’s. The utility result concerns how close the test pairs remain, while the score distributions concern the system’s output on the pairs.

What the participants read

The human study samples its material from IMDB and Kaggle. The authors report 500 legitimate and 500 adversarial passages. The adversarial selection contains material generated in both access settings, and each selected altered passage had succeeded against its classifier. Participants recruited through Amazon Mechanical Turk assigned labels and also marked words or expressions that struck them as suspicious. Asking those questions separately allows a reader to notice a change and still judge the passage as having the original sentiment or toxicity.

Each participant could annotate at most 20 reviews, and the study sought 3 annotations by different people for each item. The authors report 3,177 valid annotations from 297 workers. The classification comparison is the same at the level of the outcome as the earlier task: assign the passage its polarity or toxicity label. The evidence is different because the judgments come from people working with the written text. It can therefore speak directly to the concern that a changed classifier output might merely track a changed human judgment.

Readers were correct on 95.5% of the legitimate material. On 94.9% of the selected adversarial material they assigned the label carried by the original. The authors report that almost all human classification errors clustered on certain passages with ambiguous expressions, a pattern they saw in both groups. This observation gives context to the percentages. It shows that the source material itself can pose classification difficulty. The reader study’s central result concerns retention of the task label across lightly edited passages that already produced automated errors.

The marking exercise measures another property of those examples. The authors distinguish errors already present in the originals from changes added during the experiment. Existing errors make up 34.5% of the errors in the study material under that accounting, and added changes make up 65.5%. Participants marked 38.0% of the existing errors and 30.1% of the introduced changes. Those percentages have error instances as their reference. The classification percentages have passages as their reference. A participant could correctly identify a negative review and overlook its unusual wording, or notice a real spelling problem in text that had never been altered.

How the preliminary defenses performed

The first defense adds context-aware spelling correction before black-box classification. The authors use Microsoft Azure’s spelling service for that step. They report that it catches many changes, with some altered passages still receiving erroneous classifications after correction. The Perspective comparison concerns Kaggle comments after they pass through this additional stage.

Black-box success rate on Kaggle against Perspective after spelling correction

TextBugger retained a higher success rate after the same spelling correction.

Black-box success rate on Kaggle against Perspective after spelling correctionDeepWordBug: 16.5DeepWordBug16.5TextBugger (this paper): 35.6TextBugger (this paper)35.6
The numbers
System or settingsuccess rate %
DeepWordBug16.5
TextBugger (this paper)35.6

The figures above compare residual success after the defense for both methods. They describe how vulnerable the tested arrangement remained under a specific preprocessing intervention. Estimating the effect of correction itself requires comparing defended and undefended outcomes for the same method. The authors’ qualitative account reports that correction helps, while the remaining successes establish that the spelling service alone leaves gaps.

The other defense is adversarial training. The authors mix altered passages with ordinary training material and train the white-box classifiers on the combination. They report 10 epochs and a learning rate of 0.0005. An epoch is a pass through the training data, and the learning rate controls the size of updates during fitting. The reported outcomes are accuracy on legitimate examples and the share of altered examples still misclassified. The latter falls after training, while the paper describes comparatively little change in ordinary accuracy. The result gives preliminary evidence for training exposure as a defense against the evaluated variation.

What the ablations show

Selection matters in the comparison with random edits

The paper offers baseline comparisons, subgroup analyses, and interventions in the classification pipeline. Its comparisons generally vary a whole procedure or describe differences among the examples that procedure produced. A component ablation would hold the rest of the procedure fixed while changing a single design choice. The closest comparison for the importance of choosing sensitive material is the white-box random baseline. Random edits have little influence in the reported tests, whereas TextBugger frequently changes the label with a small share of the words altered. The evidence favors informed selection as part of the overall design.

The comparison leaves room for several sources of the difference. Random selection changes how words are chosen, and the two procedures can also differ in how many edits are attempted or which altered versions are evaluated. As a consequence, the gap does not give a separate effect estimate for each decision in TextBugger. The black-box evaluation with DeepWordBug has a similar interpretation. TextBugger produces higher reported success and closer text pairs. The authors attribute part of that outcome to their choices about evaluating candidate variations. A comparison between complete methods can support that explanation without isolating it.

The authors visualize words repeatedly identified as important by the local CNN in the two tasks. On IMDB, words that express unfavorable judgments feature prominently. On Kaggle, words associated with abusive speech do. This helps establish that the measured sensitivity frequently lands on expressions relevant to the label. At the same time, a frequency display combines several influences. A common word has more opportunities to appear, and its behavior can differ across contexts. The display is descriptive evidence about where sensitivity appears in these corpora. It gives less information about how a classifier responds to a specific word across all the contexts in which it might occur.

Length affects cost and confidence in different ways

The authors compare lengths across sentiment evaluations for Microsoft Azure, Google Cloud NLP, and IBM Watson. They find relatively little change in the frequency of successful examples across the examined lengths. For Watson and Google Cloud NLP they describe weaker changes in confidence on longer documents. The combination is possible because the confidence movement and the category crossing measure different outcomes. A shorter move can still cross the boundary if the original score and the competing classes occupy the right positions.

Reported runtime generally rises with length for Azure and Google Cloud NLP. For Watson it rises before 60 words and fluctuates for longer passages. The authors report that the amount of material in affected sentences grows with length below 60 words and changes little above that point. Across the three services in this comparison, they report generation within 100 seconds where the length of the documents is limited to 200 words. The observation establishes the time scale of those tests. Its relationship to the abstract’s broader complexity claim depends on how length, service response, and the structure of the data contribute to measured cost.

The length analysis also compares the amount of editing and the similarity of the resulting pairs. For Azure and Watson, longer texts generally have more perturbed words. For Google Cloud NLP the number changes relatively little. The paper reports that the greater number of changes in longer texts does not come with a fall in the measured semantic similarity. The authors suggest the rest of a long passage can carry enough information to keep its representation near the original. That explanation also illustrates how the metric can be insensitive to a local change that matters disproportionately to the task label.

Frequency, detectability, and correction are separate observations

The authors group the realized changes by type and find that the mix differs by task and classifier. The distributions describe what appears in the finished examples. To interpret a frequent type, the number of opportunities and the properties of the documents matter alongside the strength of the classifier’s response. A type can be frequent because it is applicable to many words, because other types often fail to preserve similarity, or because it has an unusually large effect in that evaluation. The paper’s distributions combine these influences rather than experimentally varying them one at a time.

The reader markings and spelling-correction results provide two further views of the same material. A conspicuous change can be easy for a person to spot and still leave the passage’s label apparent. A machine correction can similarly repair certain written forms while leaving other revisions untouched. The authors find that correction rates differ across kinds of changes and across the corpora. This helps explain why a preprocessing defense that addresses writing errors can leave some failures after correction. The post-correction success rates directly measure that residual vulnerability for the systems and examples tested.

Adversarial training offers a comparison at another point in the pipeline. Spelling normalization alters the input before classification. Training on edited examples changes how the classifier itself responds. The paper reports fewer errors on adversarial examples after the training intervention, with ordinary accuracy changing comparatively little. This supports a role for training data in the observed robustness. How much protection extends beyond the examples represented in training remains a separate empirical question.

Transfer gives evidence across classifiers

The transfer experiment starts with examples produced against a local LR, CNN, or LSTM classifier and evaluates those passages on other systems. On MR, revised passages generated against logistic regression reach 39.5% success when assessed against Azure. On Kaggle, revised passages from the logistic regression experiment reach 54.3% success at ParallelDots. The authors characterize the sentiment transfer results as moderate and identify clear transfer in parts of their toxicity study. The named source and destination, dataset, and classification task all belong with each percentage.

A transfer result establishes that the destination sometimes makes an error on material selected in relation to the source. It differs from a direct test, which uses behavior of the destination during the search for examples. Similarity between the outcomes gives no detailed diagnosis of what the systems share. Different representations could yield the same error on a particular passage. The experiment demonstrates the reach of selected examples across classification systems and shows why a source classifier’s success rate is insufficient to describe transfer to any given destination.

Limitations

Limits identified by the authors

The authors explicitly describe the evaluated attacks as untargeted. A qualifying result changes the output away from the original category. They discuss an extension for obtaining a particular class, but report no results for it. This matters when an interface offers several categories. A departure from negative sentiment can end with neutrality, for instance. Evidence about departures gives only part of what would be needed to establish that a specific destination could be obtained reliably across that interface’s test material.

They also identify room for more linguistically informed treatment of the text. They suggest dependency parsing in the broader context of syntactic analysis, named entity recognition, and paraphrasing as directions for extending the work. They discuss moving beyond isolated words to phrases and searching over alternatives more broadly. These suggestions concern the limited linguistic scope of the experiments. A phrase may have a meaning that depends on its words in combination. Evaluating changes at that scale would bring additional questions about how to preserve the original judgment.

The paper treats both defensive evaluations as preliminary. The authors identify a practical limitation of adversarial training in particular. A team needs enough appropriate altered material to include during training and some understanding of the kinds of variation the deployed classifier will encounter. The training result supports protection under the evaluated conditions. The paper leaves broader defenses and their evaluation for further work. It also notes the access constraints on hosted services, including limits on calls and their cost.

The authors report contacting the affected companies and say that the companies expressed an intention to fix the problems in a later version. This is a report of disclosure and of the responses they received. The experiments document behavior under the service conditions available for the study. A later evaluation would be needed to establish what changes were made or whether the reported failures persisted.

Limits visible in the study design

The numerical similarity threshold makes a large paired evaluation possible, but it establishes closeness under one encoder and one comparison rule. The sentiment of a passage can be retained even as a detail in its account changes. A comment can preserve its toxicity category while shifting the object of the insult. Neither possibility is ruled out by a favorable whole-text cosine score. The study’s evidence is strongest for retaining the label readers were asked to assign. Preservation of particular factual claims, implications, or relationships is outside what that task directly measures.

The human sample also conditions interpretation. The modified passages shown to participants had already changed the output of the tested classifier. This selection suits the question of whether an observed classifier failure can coexist with agreement among readers. It does not characterize reader responses to all versions considered by TextBugger. The reported clustering of human errors on ambiguous passages suggests that the reference labels themselves can be difficult to apply. The paper’s aggregate rates cannot resolve ambiguity in individual cases.

The construction of Kaggle’s evaluation subset determines what its success rates describe. Equal representation of toxic and non-toxic text helps comparisons under the authors’ setup. The resulting class mix reflects that sampling decision. The movement from multiple toxicity types to a binary label also leaves open how particular types contribute to the aggregate. Failure rates could differ for threats, insults, or other categories even when they all count as the same binary error. The length restriction and removal of abnormal texts further narrow the set directly represented by the result.

The sentiment data establish breadth at the level of full reviews and snippets within movie criticism. They give evidence from two collections of different typical lengths. Their differences also include provenance and the form in which the writing is presented, so a cross-corpus result gives limited evidence about the isolated effect of length. Applying the same conclusions to another domain or language would require material for which the reference judgment and the acceptability of written changes can be assessed in that setting.

Black-box explanations are necessarily incomplete. A classifier can change its score because a recognizable word now falls outside its vocabulary, because the boundaries of its input units change, or because a recognized form itself has a different effect inside the classifier. The experiment sees the combined result. The authors’ account of case sensitivity, for instance, is a conjecture about how the input is represented. The changed classifications are direct observations. Identifying which internal step produced those changes would require different access or a more controlled comparison.

The performance claims are also tied to the reported measures. Scores at separate services can have different orientations and meanings. A numerical shift at one service should be read in its own scale. The Perspective complement gives a convenient way to express a binary outcome, with its interpretation supplied by the authors. Confidence is useful as a description of a classifier’s response. The paper provides human agreement rates separately through the reader study.

Finally, the timing evidence describes selected services over a bounded range of input lengths. Wall-clock time includes interaction with the service, and texts of equal length can place different demands on the procedure. Those measurements support the authors’ claim that generation was practical in the examined conditions. Establishing a general growth rate would require separating the work of the procedure from service behavior and specifying the assumptions about the passages being evaluated. The results here give the scale of the observed costs and show how that scale varies among the tested services.

What came after

Shared frameworks and stronger criteria for examples

TextAttack brings adversarial attacks, data augmentation, and adversarial training into a common framework for natural language processing. TextBugger illustrates why those activities can belong together. Its edited texts first act as test cases that reveal a classification weakness. The training experiment then uses edited material to change the classifier’s response to the same broad kind of variation. TextAttack’s scope extends that connection to augmentation, where related changes can add variation to the material available for learning. The relationship lies in the way the same class of artifacts can serve distinct experimental roles.

Reevaluating Adversarial Examples in Natural Language takes the adequacy of the examples themselves as its subject. That concern follows directly from TextBugger’s paired design. A changed label counts as a robustness failure only if the revised passage still warrants the original judgment. Any measure used to assess that condition brings assumptions about what matters in the language. The earlier paper exposes those assumptions through several numerical measures and a human classification exercise. Reevaluating examples therefore concerns the quality of evidence supporting a success rate as well as the rate itself.

Measure and Improve Robustness in NLP surveys the relationship between measuring robustness and improving it. TextBugger provides a concrete instance of how these aims depend on each other. The spelling and training comparisons are intelligible because the study defines a failure, sets an expectation about what the text preserves, and compares classifier performance under changed conditions. The survey’s scope takes that relationship across natural language processing. A measure establishes the kind of stability being improved, so an improvement claim remains tied to the evaluation that produced it.

FLUKE frames robustness evaluation as linguistically driven and task-agnostic. TextBugger uses sentiment and toxicity to make the expected label after a change easy to state. A task-agnostic framework addresses the broader problem of finding appropriate variation and deciding what outcome should be preserved for different tasks. Its linguistic emphasis also connects to TextBugger’s proposed extensions beyond individual words. The common concern is how an evaluation can vary a text systematically and retain an interpretable criterion for whether the response remains appropriate.

Context and language as conditions on variation

BERT-ATTACK studies adversarial evaluation of BERT using BERT. Its framing places the representation used in producing adversarial material in relation to the system that material is meant to test. TextBugger’s discussion of word substitutions already shows why the choice of representation matters. A pair of words can be close in a vector space and still have different effects on sentiment. In both cases the plausibility of the changed text is a distinct concern from the response it elicits from the classifier.

Contextualized Perturbation for Textual Adversarial Attack puts the context of a change at the center of the problem. A visually plausible variation or a related replacement may have a different interpretation once it appears within a particular sentence. TextBugger approaches that distinction by comparing complete texts and asking readers to judge a sample. The later work’s contextual emphasis concerns an earlier question in the same evaluation: how to characterize a plausible textual change given the material around it.

Two later works bring synonym-based evaluation to specific languages. Arabic Synonym BERT-based Adversarial Examples addresses Arabic text classification. Precision vs. Perturbation studies synonym attacks for Ukrainian language processing. Their subjects extend the word-choice question to settings in which a useful evaluation depends on what counts as a related and suitable expression in the language being studied. This follows the problem TextBugger raises when it distinguishes vector proximity from retention of sentiment, now under different linguistic conditions.

Evaluating Robustness Against Multilingual Typographical Errors pursues the written-form side of the problem across languages. TextBugger uses typographical changes as evidence of a possible gap between human reading and classifier response. The multilingual study makes the variation itself an explicit subject of comparison. The inherited evaluation question is which differences in written form should leave a judgment intact, with acceptability now depending on more than one set of writing conventions.

From class labels to responses to prompts

PromptRobust examines robustness to adversarial prompts. A prompt gives the system an instruction or request, so the wording variation changes the presentation of a task the system is being asked to perform. TextBugger’s original and revised passages have a reference category for comparison. An evaluation of prompts must also specify what adequate behavior looks like when the instruction varies. The continuity is in testing behavior across changed inputs while holding an expectation about the correct response.

DecodingTrust gives GPT trustworthiness a broader assessment setting. The relation to TextBugger is methodological. Reliability depends on the conditions in which the system is evaluated. Clean inputs establish one set of behaviors, and challenging variations can expose another. For the earlier paper, that difference is visible in sentiment and toxicity classifications. A trustworthiness assessment gives that difference a place within a wider evaluation of behavior.

HarmBench focuses on standardized evaluation for automated red teaming and robust refusal. Its outcome is whether appropriate refusal persists under challenging requests. TextBugger’s moderation outcome is whether a toxicity judgment survives changes to the comment. The output and reference judgment differ, while both evaluations depend on stating what counts as failure and using conditions under which results can be compared. This is the thread from TextBugger’s paired passages and shared benchmarks to later work on robustness in systems that respond to instructions.

 Institutions

 Fields, topics and concepts

Appears in

Mentioned in articles aboutHangzhou

Cite

Cite as Jinfeng Li, Shouling Ji, Tianyu Du, Bo Li and Ting Wang. 2018. TextBugger: Generating Adversarial Text Against Real-world Applications. arXiv:1812.05271.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.14722/ndss.2019.23138 · arXiv 1812.05271

@misc{li2018textbugger,
  title = {{TextBugger: Generating Adversarial Text Against Real-world Applications}},
  author = {Jinfeng Li, Shouling Ji, Tianyu Du, Bo Li and Ting Wang},
  year = {2018},
  doi = {10.14722/ndss.2019.23138},
  eprint = {1812.05271},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.14722/ndss.2019.23138}
}

References

40 references, from the paper's own bibliography.

  1. M. Alzantot, Y. Sharma, A. Elgohary, B.-J. Ho, M. Srivastava, and K.-W. Chang, “Generating natural language adversarial examples,” arXiv preprint arXiv:1804.07998, 2018. our card
  2. M. Barreno, B. Nelson, A. D. Joseph, and J. Tygar, “The security of machine learning,” Machine Learning, vol. 81, no. 2, pp. 121–148, 2010. OpenAlex ↗ · Scholar ↗
  3. M. Barreno, B. Nelson, R. Sears, A. D. Joseph, and J. D. Tygar, “Can machine learning be secure?” in ASIACCS. 1em plus 0.5em minus 0.4em ACM, 2006, pp. 16–25. OpenAlex ↗ · Scholar ↗
  4. Y. Belinkov and Y. Bisk, “Synthetic and natural noise both break neural machine translation,” arXiv preprint arXiv:1711.02173, 2017. OpenAlex ↗ · Scholar ↗
  5. B. Biggio, G. Fumera, and F. Roli, “Design of robust classifiers for adversarial environments,” in SMC. 1em plus 0.5em minus 0.4em IEEE, 2011, pp. 977–982. OpenAlex ↗ · Scholar ↗
  6. N. Carlini and D. Wagner, “Towards evaluating the robustness of neural networks,” in S&P, 2017, pp. 39–57. our card
  7. D. Cer, Y. Yang, S.-y. Kong, N. Hua, N. Limtiaco, R. S. John, N. Constant, M. Guajardo-Cespedes, S. Yuan, C. Tar et al., “Universal sentence encoder,” arXiv preprint arXiv:1803.11175, 2018. OpenAlex ↗ · Scholar ↗
  8. M. Cheng, J. Yi, H. Zhang, P.-Y. Chen, and C.-J. Hsieh, “Seq2sick: Evaluating the robustness of sequence-to-sequence models with adversarial examples,” arXiv preprint arXiv:1803.01128, 2018. OpenAlex ↗ · Scholar ↗
  9. J. Ebrahimi, A. Rao, D. Lowd, and D. Dou, “Hotflip: White-box adversarial examples for nlp,” arXiv preprint arXiv:1712.06751, 2017. OpenAlex ↗ · Scholar ↗
  10. I. Evtimov, K. Eykholt, E. Fernandes, T. Kohno, B. Li, A. Prakash, A. Rahmati, and D. Song, “Robust physical-world attacks on machine learning models,” arXiv preprint arXiv:1707.08945, 2017. OpenAlex ↗ · Scholar ↗
  11. J. Gao, J. Lanchantin, M. L. Soffa, and Y. Qi, “Black-box generation of adversarial text sequences to evade deep learning classifiers,” arXiv preprint arXiv:1801.04354, 2018. our card
  12. Z. Gong, W. Wang, B. Li, D. Song, and W.-S. Ku, “Adversarial texts with gradient methods,” arXiv preprint arXiv:1801.07175, 2018. OpenAlex ↗ · Scholar ↗
  13. I. J. Goodfellow, J. Shlens, and C. Szegedy, “Explaining and harnessing adversarial examples,” in ICLR, 2015, pp. 1–11. our card
  14. H. Hosseini, S. Kannan, B. Zhang, and R. Poovendran, “Deceiving google's perspective api built for detecting toxic comments,” arXiv preprint arXiv:1702.08138, 2017. OpenAlex ↗ · Scholar ↗
  15. L. Huang, A. D. Joseph, B. Nelson, B. I. Rubinstein, and J. Tygar, “Adversarial machine learning,” in AISec. 1em plus 0.5em minus 0.4em ACM, 2011, pp. 43–58. OpenAlex ↗ · Scholar ↗
  16. R. Jia and P. Liang, “Adversarial examples for evaluating reading comprehension systems,” in EMNLP, 2017, pp. 2021–2031. our card
  17. Y. Kim, “Convolutional neural networks for sentence classification,” in EMNLP, 2014, pp. 1746–1751. our card
  18. Y. Li, T. Cohn, and T. Baldwin, “Learning robust representations of text,” in EMNLP, 2016, pp. 1979–1985. OpenAlex ↗ · Scholar ↗
  19. B. Liang, H. Li, M. Su, P. Bian, X. Li, and W. Shi, “Deep text classification can be fooled,” arXiv preprint arXiv:1704.08006, 2017. OpenAlex ↗ · Scholar ↗
  20. X. Ling, S. Ji, J. Zou, J. Wang, C. Wu, B. Li, and T. Wang, “Deepsec: A uniform platform for security analysis of deep learning model,” in IEEE S&P, 2019. OpenAlex ↗ · Scholar ↗
  21. A. L. Maas, R. E. Daly, P. T. Pham, D. Huang, A. Y. Ng, and C. Potts, “Learning word vectors for sentiment analysis,” in ACL. 1em plus 0.5em minus 0.4em Portland, Oregon, USA: Association for Computational Linguistics, June 2011, pp. 142–150. our card
  22. W. Medhat, A. Hassan, and H. Korashy, “Sentiment analysis algorithms and applications: A survey,” Ain Shams Engineering Journal, vol. 5, no. 4, pp. 1093–1113, 2014. OpenAlex ↗ · Scholar ↗
  23. T. Miyato, A. M. Dai, and I. Goodfellow, “Adversarial training methods for semi-supervised text classification,” ICLR, 2017. our card
  24. S.-M. Moosavi-Dezfooli, A. Fawzi, and P. Frossard, “Deepfool: a simple and accurate method to fool deep neural networks,” in CVPR, 2016, pp. 2574–2582. our card
  25. A. Nguyen, J. Yosinski, and J. Clune, “Deep neural networks are easily fooled: High confidence predictions for unrecognizable images,” in CVPR. 1em plus 0.5em minus 0.4em IEEE, 2015, pp. 427–436. OpenAlex ↗ · Scholar ↗
  26. C. Nobata, J. Tetreault, A. Thomas, Y. Mehdad, and Y. Chang, “Abusive language detection in online user content,” in WWW. 1em plus 0.5em minus 0.4em International World Wide Web Conferences Steering Committee, 2016, pp. 145–153. OpenAlex ↗ · Scholar ↗
  27. B. Pang and L. Lee, “Seeing stars: Exploiting class relationships for sentiment categorization with respect to rating scales,” in ACL. 1em plus 0.5em minus 0.4em Association for Computational Linguistics, 2005, pp. 115–124. our card
  28. N. Papernot, P. McDaniel, I. Goodfellow, S. Jha, Z. B. Celik, and A. Swami, “Practical black-box attacks against machine learning,” in Asia CCS. 1em plus 0.5em minus 0.4em ACM, 2017, pp. 506–519. OpenAlex ↗ · Scholar ↗
  29. N. Papernot, P. McDaniel, A. Swami, and R. Harang, “Crafting adversarial input sequences for recurrent neural networks,” in MILCOM. 1em plus 0.5em minus 0.4em IEEE, 2016, pp. 49–54. our card
  30. J. Pennington, R. Socher, and C. Manning, “Glove: Global vectors for word representation,” in EMNLP, 2014, pp. 1532–1543. our card
  31. G. Rawlinson, “The significance of letter position in word recognition,” IEEE Aerospace and Electronic Systems Magazine, vol. 22, no. 1, pp. 26–27, 2007. OpenAlex ↗ · Scholar ↗
  32. M. T. Ribeiro, S. Singh, and C. Guestrin, “Semantically equivalent adversarial rules for debugging nlp models,” in ACL, 2018. OpenAlex ↗ · Scholar ↗
  33. S. Samanta and S. Mehta, “Towards crafting text adversarial samples,” arXiv preprint arXiv:1707.02812, 2017. OpenAlex ↗ · Scholar ↗
  34. D. Sculley, G. Wachman, and C. E. Brodley, “Spam filtering using inexact string matching in explicit feature space with on-line linear classifiers.” in TREC, 2006. OpenAlex ↗ · Scholar ↗
  35. C. E. Shannon, “Communication theory of secrecy systems,” Bell system technical journal, vol. 28, no. 4, pp. 656–715, 1949. OpenAlex ↗ · Scholar ↗
  36. C. Szegedy, “Intriguing properties of neural networks,” in ICLR, 2014, pp. 1–10. our card
  37. C. Xiao, B. Li, J.-Y. Zhu, W. He, M. Liu, and D. Song, “Generating adversarial examples with adversarial networks,” arXiv preprint arXiv:1801.02610, 2018. OpenAlex ↗ · Scholar ↗
  38. X. Zhang, J. Zhao, and Y. LeCun, “Character-level convolutional networks for text classification,” in NIPS. 1em plus 0.5em minus 0.4em Neural information processing systems foundation, 2015, pp. 649–657. our card
  39. Y. Zhang and B. Wallace, “A sensitivity analysis of (and practitioners’ guide to) convolutional neural networks for sentence classification,” in IJCNLP, vol. 1, 2017, pp. 253–263. our card
  40. Z. Zhao, D. Dua, and S. Singh, “Generating natural adversarial examples,” in ICLR, 2018. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/li-2018-textbugger-generating-adversarial-text-against/