<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>TextTrojaners at CheckThat! 2024: Robustness of Credibility Assessment with Adversarial Examples through BeamAttack⋆</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>David Guzman Piedrahita</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Arnisa Fazla</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lucas Krauter</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Zurich</institution>
          ,
          <addr-line>Rämistrasse 71, CH-8006 Zürich</addr-line>
          ,
          <country country="CH">Switzerland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper describes the submission of TextTrojaners for the CheckThat! 2024 lab task 6: Robustness of Credibility Assessment with Adversarial Examples [1]. We achieved the second best results on the BODEGA evaluation metric. Our approach BeamAttack is a novel algorithm for generating adversarial examples in natural language processing through the application of beam search. To further improve the search process, we integrate a semantic filter that prioritizes examples with the highest semantic similarity to the original sample, enabling early termination of the search. Additionally, we leverage a model interpretability technique, LIME, to determine the priority of word replacements, along with existing methods such as that determine word importance through the model's logits. Our approach also allows for skipping and removing words, enabling the discovery of minimal modifications that flip the label. Furthermore, we utilize a masked language model to predict contextually plausible alternatives to the words to be replaced, enhancing the coherence of the generated adversarial examples. BeamAttack demonstrates state-of-the-art performance, outperforming existing methods with scores of up to 0.90 on the BiLSTM, 0.84 on BERT, and 0.82 on the RoBERTa classifier 1.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Model Robustness</kwd>
        <kwd>Adversarial Attack</kwd>
        <kwd>Beam search</kwd>
        <kwd>Masked Language Models</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Social media platforms increasingly rely on machine learning algorithms for content filtering to identify
misleading, harmful, or illegal content. Despite advancements, these models remain vulnerable to
adversarial attacks, wherein the input text is manipulated to deceive the model, even after undergoing
adversarial training [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. As adversaries continue to develop new attack techniques, assessing the
robustness of text classification approaches becomes imperative.
      </p>
      <p>
        We participated in “Task 6: Robustness of Credibility Assessment with Adversarial Examples
(InCrediblAE)” at the ‘CheckThat! lab’ during CLEF 2024, which was designed to assess the robustness of
popular text classification methods used in credibility assessment tasks [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The task involves conducting
adversarial attacks on multiple text classification systems trained on various credibility assessment
datasets. The goal is to modify the input text in a way that flips the classification of the models while
minimizing semantic and syntactic modifications. These attacks are categorized as grey-box attacks,
where we have access to the output logits of the victim models, and we can query the victim models as
many times as we want.
      </p>
      <p>
        Previous research on grey-box adversarial attacks on text classification systems has explored
modifications at the character [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], word [
        <xref ref-type="bibr" rid="ref4 ref5 ref6">4, 5, 6</xref>
        ], and sentence levels of the input text. These methods
encompassed a range of techniques, including random character and word replacements [
        <xref ref-type="bibr" rid="ref10 ref11 ref5 ref7 ref8 ref9">7, 8, 9, 10, 11, 5</xref>
        ],
substitution with similar words [
        <xref ref-type="bibr" rid="ref12 ref13 ref6">12, 13, 6</xref>
        ], and controlled sentence paraphrasing to generate
semantically similar text [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. Our submission follows the line of research in the field that focuses on sequential
word replacement using Masked Language Models (MLMs) combined with a search algorithm.
      </p>
      <p>
        We introduce BeamAttack, our word-level adversarial attack and submission to the shared task.
At its core, BeamAttack employs a beam search algorithm to identify optimal word substitutions,
thereby enabling the generation of multiple alternative adversarial text hypotheses capable of
lfipping the model’s classification. Leveraging techniques from existing literature and innovative
approaches, BeamAttack integrates a Masked Language Model (MLM), specifically RoBERTa [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ],
to produce contextually appropriate word substitutions. BeamAttack demonstrated superior
performance compared to all baseline methods across all datasets, securing the second place in the competition.
      </p>
      <p>
        Our contributions include the following:
• We employ a beam search algorithm to explore combinations of multiple word substitutions,
optimizing for the output logits of classifier models. This approach significantly expands the
search space compared to the greedy search commonly used in the literature and allows for the
generation of multiple alternative adversarial samples in a single run. While beam search has
been utilized in white-box attacks by Ebrahimi et al. [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ], to our knowledge, it has not been
applied in a grey-box scenario.
• In line with existing methodologies [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], we generate contextual word substitution alternatives
using a Masked Language Model. Although Li et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] utilized a BERT model [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ], we employ a
RoBERTa model [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] to enhance the efectiveness of our approach.
• We adapt the beam search algorithm to allow for the option of not modifying certain words
or removing them instead of substituting them at each step. This modification enables a more
lfexible and comprehensive exploration of possible word replacement combinations.
• In addition to the logit-based word importance ranking method commonly used in the literature
[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], we experiment with identifying vulnerable words in the input text using the explainable
AI framework LIME [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ], ofering a novel perspective on word vulnerability in adversarial text
generation.
      </p>
      <p>In the following sections, we will present the details of our approach addressing the challenge of
robustness in credibility assessment. Section 2 provides an overview of related work in the field of
NLP adversarial attacks, highlighting the fundamental principles of various attack methods and their
applications. Section 3 describes the specific task we participate in, namely “Task 6: Robustness of
Credibility Assessment with Adversarial Examples (InCrediblAE)”, and outlines the datasets and victim
models used in our experiments. In Section 4, we present our algorithm and methodology for generating
adversarial examples. The results of our experiments are presented in Section 5, where we evaluate
the efectiveness of our algorithm in attacking the victim models. In Section 6, we conduct an ablation
study to analyze the impact of hyper-parameters on our algorithm’s performance. Finally, we conclude
our paper in Section 7 and outline limitations and potential avenues for future work in Section 8.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        Despite their powerful capabilities, neural networks sufer from a lack of interpretability, making it
dificult to predict their behavior, which can raise security concerns. Szegedy et al. [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] highlighted
that while neural networks exhibit impressive generalization capabilities, they are also vulnerable to
adversarial examples.
      </p>
      <p>
        An adversarial sample is generated from the original sample by applying the smallest possible change
that leads to a misclassification by the target model, known as the victim classifier. The goal is to alter
the sample just enough to trick the classifier into making an incorrect prediction. A formal definition
for adversarial samples or examples can be found in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>
        While much of the existing research focuses on adversarial attacks in image classification [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ], similar
vulnerabilities exist in text classification tasks [
        <xref ref-type="bibr" rid="ref21 ref22 ref4">21, 22, 4</xref>
        ].
      </p>
      <sec id="sec-2-1">
        <title>2.1. Categories of Adversarial Attacks</title>
        <p>
          Adversarial attacks in NLP can be classified in three categories: white-box attacks, black-box attacks,
and grey-box attacks. White-box attacks are also called gradient-based attacks, since the adversary (the
attacker) has access to the weights and thus the gradients of the victim model [
          <xref ref-type="bibr" rid="ref16 ref23 ref24 ref5">23, 24, 16, 5</xref>
          ].
        </p>
        <p>
          Black-box attacks are the more realistic scenario, where the adversary only has access to the prediction
of the victim for any given input samples. Most algorithms assume an infinite number of queries to
ifnd the best perturbation [
          <xref ref-type="bibr" rid="ref14 ref25">25, 14</xref>
          ], or make use of surrogate models [
          <xref ref-type="bibr" rid="ref26">26</xref>
          ].
        </p>
        <p>
          Przybyła et al. [
          <xref ref-type="bibr" rid="ref27">27</xref>
          ] proposes a grey-box scenario, where the adversary has access to not only the
predictions, but also to the probabilities given to each class by the victim. This scenario enables
adversaries to optimize their attacks based on the output probability distributions [
          <xref ref-type="bibr" rid="ref13 ref28 ref29 ref30 ref31 ref6 ref8">28, 29, 6, 13, 30, 31,
32, 8</xref>
          ].
        </p>
        <p>We can also distinguish between targeted and untargeted attacks. In a targeted attack, the attacker
aims to mislead the model into a specific incorrect class or label. In an untargeted attack, the attacker
aims to mislead the model into any incorrect class or label, without a specific target in mind. The shared
task at hand, InCrediblAE, focuses solely on untargeted attacks.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Granularity of Modifications in Adversarial Attacks</title>
        <p>Adversarial attacks in NLP difer fundamentally from those in computer vision due to the symbolic
and discrete nature of text versus the continuous nature of images. This discreteness complicates the
creation of adversarial examples in NLP, as modifications must preserve the grammatical and semantic
integrity of the text while still deceiving the model. Consequently, NLP adversarial attacks often focus
on specific granularities of modification, such as characters, words, subwords, or entire sentences.</p>
        <p>
          Character-level methods involve changing individual characters in the adversarial text [
          <xref ref-type="bibr" rid="ref16 ref3 ref5 ref8">5, 16, 8, 3</xref>
          ].
        </p>
        <p>
          Sentence-level methods modify longer passages of a text, including paraphrasing entire sentences in
a constrained manner to create adversarial samples [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ].
        </p>
        <p>
          Word-level methods modify the original text by removing, adding, or substituting words, often
combining these techniques to create adversarial examples [
          <xref ref-type="bibr" rid="ref10 ref11">10, 11</xref>
          ]. This process typically involves
identifying vulnerable words in the input text and then modifying these selected words to generate
adversarial samples [
          <xref ref-type="bibr" rid="ref13 ref23 ref28 ref29 ref4 ref6">4, 33, 28, 29, 6, 13, 23</xref>
          ].
        </p>
        <p>Most of the recent work in adversarial text is based on search algorithms that first rank the words
in an input sequence by their importance scores and then search the space of possible replacements
for each word according to this pre-computed ranking. This common approach requires a method for
calculating word importance scores to determine the optimal order for word replacement, a strategy for
selecting suitable word replacements, and a search strategy for iterative word replacement to guide the
process of finding the most efective substitutions.</p>
        <p>
          The replacement strategies involve replacing selected words with out-of-vocabulary words [
          <xref ref-type="bibr" rid="ref7 ref8 ref9">7, 8, 9</xref>
          ];
introducing common typos [
          <xref ref-type="bibr" rid="ref10 ref11 ref5">10, 11, 5</xref>
          ]; replacing words with their synonyms or using rule-based systems
like dictionaries or WordNet [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]; leveraging embedding spaces to identify semantically similar words
[
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]; and using masked language models (MLM) to find a word that fits the given context [
          <xref ref-type="bibr" rid="ref13 ref6">13, 6</xref>
          ].
        </p>
        <p>
          The methods for calculating the word importance scores involve grey-box methods utilizing the
change in the output probabilities of the victim model, when some words are masked or removed [
          <xref ref-type="bibr" rid="ref4 ref5 ref6">4, 5, 6</xref>
          ]
and black-box attacks such as calculating the gradient of a surrogate model’s output regarding the input
words [
          <xref ref-type="bibr" rid="ref26">26</xref>
          ]. For example, BERT-Attack [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] iteratively masks each word, measuring the resulting change
in prediction, and thereby assessing the degree to which the outcome depends on the deleted word.
        </p>
        <p>
          One of the most common search strategies is greedy search where each word is replaced sequentially
in the order of the word importance [
          <xref ref-type="bibr" rid="ref26 ref4 ref6">33, 4, 26, 6</xref>
          ]. For example, BERT-Attack tries replacing each word
with alternatives iteratively until it either manages to flip the classification or moves on to the next
word to be replaced. This is a relatively query-eficient strategy, however the search space is severely
limited, and it is highly dependent on the performance of the word importance scoring method.
        </p>
        <p>
          Other search strategies with a larger search space include evolutionary algorithms [
          <xref ref-type="bibr" rid="ref28 ref29">28, 29</xref>
          ]; and beam
search [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ]. For example, HotFlip [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ], a white-box adversarial attack for text classification, uses a beam
search-based approach that leverages gradient information to guide the search process.
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Task 6: Robustness of Credibility Assessment with Adversarial</title>
    </sec>
    <sec id="sec-4">
      <title>Examples (InCrediblAE)</title>
      <p>
        The CheckThat! lab at CLEF 2024 [34] introduced a novel task designed to assess the robustness of
popular text classification approaches. The task 6 [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] simulates the content filtering processes commonly
employed in social media, spanning multiple domains. For each domain, we were provided with three
pre-trained classifiers and a corresponding attack dataset. Our objective was to craft adversarial
examples for each sample in the dataset, which would flip the binary classification outcome while
preserving the original meaning.
      </p>
      <sec id="sec-4-1">
        <title>3.1. Dataset Description</title>
        <p>The basic statistics of the provided datasets are summarized in Table 1. Each dataset is divided into
three subsets: training, development (dev), and attack. The training and dev subsets are used to train
the classifier, while the attack subset serves as the evaluation dataset, where the efectiveness of our
attack is measured. Each dataset is designed for a binary classification task, and therefore, the positive
rate corresponds to the portion of samples belonging to class 1, and is therefore also a measure of class
imbalance. Notably, we observed significant variations in the length of samples across the datasets,
measured in terms of the number of characters, which are also reported in the table.</p>
        <p>
          Next, we briefly outline the diferent text domains. All except C19 are already published and described
in the CheckThat! lab at CLEF 2023 [
          <xref ref-type="bibr" rid="ref27">27</xref>
          ]:
• Style-based news bias assessment (HN): Categorizing news articles as either credible or
non-credible based on stylistic cues.
• Propaganda detection (PR): Text passages from news articles that employ propaganda
techniques to influence readers.
• Fact checking (FC): Evaluating the accuracy of news articles by considering contextual
information from given related Wikipedia snippets.
• Rumor detection (RD): Identifying Twitter threads that disseminate information without a
reliable source.
• COVID-19 misinformation detection (C19): Comprises social media messages that convey
either factual information or misinformation about the COVID-19 pandemic. The classifier must
rely on subtle cues, such as writing styles reminiscent of those found in high-quality news sources
(HN), to make its assessments.
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>3.2. Target Classifier Models</title>
        <p>For each domain, the organizers provided three classifiers, each trained in a binary classification setup
on the training split of the corresponding dataset.</p>
      </sec>
      <sec id="sec-4-3">
        <title>3.3. Evaluation</title>
        <p>The evaluation process is designed to assess the efectiveness of generated adversarial examples in
altering the victim’s decision while preserving the original meaning. Driven by the formulation of the
shared task itself, our approach employs an untargeted attack strategy (see Section 2.1). This means
that, for every sample, we aim to alter the victim’s decision by flipping it to the opposite of its original
prediction.</p>
        <p>
          To quantify the success of an attack, InCrediblAE uses the BODEGA score [
          <xref ref-type="bibr" rid="ref27">27</xref>
          ], a comprehensive
metric that evaluates the adversarial examples from multiple angles. The BODEGA score is calculated
by multiplying three components. The confusion score, which indicates whether the victim classifier’s
decision has changed and the attack was successful; the semantic score, which measures the similarity
between the original and adversarial examples using BLEURT; and the character score, which calculates
the Levenshtein distance as a similarity score. All three metrics range in values from 0 to 1.
        </p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>4. Methodology</title>
      <p>Our approach focuses on word-level attacks, a well-regarded technique in recent literature for its
balance between edit distance and semantic similarity. We aim to improve upon this by evaluating and
addressing the shortcomings of previous techniques.1</p>
      <p>
        We redefine previous word-level attacks, such as HotFlip [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] and BERT-Attack [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], as search problems.
In this perspective, the total search space is determined by the number of words to be replaced and
the number of valid replacements for each word. This redefinition highlights the potential of search
algorithms in optimizing word replacements.
      </p>
      <sec id="sec-5-1">
        <title>4.1. BeamAttack</title>
        <sec id="sec-5-1-1">
          <title>4.1.1. Beam Search</title>
          <p>BeamAttack combines three components: a method for calculating a ranking of words to determine
their replacement order, a word replacement strategy, and the beam search algorithm to explore the
search space of possible word replacement combinations. The algorithm overview is given in Figure 1.
Most existing techniques employ greedy search algorithms, selecting the first word(s) that efectively
alters the model’s prediction. This greedy strategy can lead to sub-optimal adversarial samples, requiring
more word changes than necessary.</p>
          <p>Our approach adopts beam search as a replacement for greedy search, leveraging its eficacy as a
decoding strategy for language models. Beam search explores multiple potential solutions concurrently,
structured in a tree-like fashion, where each node represents a partial solution and branches signify
possible extensions. At each step, beam search maintains a predefined number of the most promising
partial solutions, known as the beam size . This parameter balances exploration and computational
eficiency: larger  values increase the likelihood of finding optimal or near-optimal solutions but
elevate computational complexity, while smaller  values reduce demands at the cost of potentially
overlooking superior solutions.</p>
          <p>In our approach, beam search operates by iteratively expanding the most promising nodes until a final
solution is reached. The root node represents the input text, and subsequent nodes denote candidate
adversarial texts. At each depth, one word is replaced, with branching occurring when alternative
words are considered for replacement. To manage computational complexity, we decouple the number
of alternatives evaluated at each depth (branching factor ) from the number of branches retained after
pruning. At each depth beyond the first,  ×  nodes are evaluated, with  replacements per alternative
from the previous depth and  nodes from the previous depth, since we prune down to the  nodes
retained from the previous depth post-pruning.</p>
          <p>Selection of promising nodes is based on their efectiveness in reducing the predicted probability
of the original class while increasing the probability of the target class. This objective guides branch
pruning during the search process. The search continues until cumulative changes are suficient to alter
the model’s classification for a designated number of hypotheses. To preserve semantic similarity to the
original sample, we introduce the hypothesis count ℎ: the search extends until at least ℎ branches flip
the model classification. The final adversarial sample is chosen as the node with the highest semantic
similarity to the original sample, as measured by Bleurt scores [35], among the selected hypotheses.</p>
        </sec>
        <sec id="sec-5-1-2">
          <title>4.1.2. Word Replacement Strategy</title>
          <p>For each individual replacement, we enable the option to either keep the word intact or remove it
altogether at any depth of the beam search. This added flexibility allows us to preserve the original
word if replacements have no impact on changing the probability, thus reducing similarity and edit
distances. Conversely, removing the word entirely may be the best strategy to confuse the model in
more challenging cases.</p>
          <p>To maximize text fluency, we use a masked language model to suggest replacements for any given
word. This approach leverages the model’s pretraining to ensure that the replacements are likely to be
coherent with the rest of the text. We primarily use RoBERTa-Large for this purpose.
1The pseudocode for the algorithm can be found in the Appendix 1.</p>
          <p>For each depth of beam search, we evaluate the top  (branching factor) highest likelihood word
replacements as suggested by the masked language model. This strategy ensures that the potential
replacements not only fit well within the context of the sentence but also maintain the overall semantic
coherence of the text.</p>
        </sec>
        <sec id="sec-5-1-3">
          <title>4.1.3. Word Importance Scoring Method</title>
          <p>
            To determine the order in which words should be replaced, we use two diferent techniques to identify
the most important words for the model’s decision: LIME [
            <xref ref-type="bibr" rid="ref18">18</xref>
            ] and logit-based importance scores, as
proposed by Li et al. [
            <xref ref-type="bibr" rid="ref6">6</xref>
            ].
          </p>
          <p>LIME is an explainability algorithm that provides local explanations for model predictions. It works
by perturbing the input data and observing the changes in the output. Specifically, for each word in the
input sentence, LIME generates a set of perturbed versions of the sentence with that word replaced by
various alternatives. It then fits a simple, interpretable model to these perturbed instances to estimate
the importance of each word based on how much the model’s output changes.</p>
          <p>Logit-based importance scores, on the other hand, measure the influence of each word on the model’s
output logits directly. Let  = [0, . . . , , . . .] denote the input sentence, and () represent the
logit output by the target model for the correct label . The importance score  for each word  is
defined as the diference in logits when the word is masked:</p>
          <p>= () − ( ∖ ),
where  ∖  is the sentence with  replaced by a [MASK] token. This score quantifies how much
the presence of  contributes to the model’s prediction.</p>
          <p>Our approach is specifically designed to maximize the risk of incorrect model predictions by exploiting
the vulnerabilities in the model’s decision-making process. We achieve this by identifying the most
susceptible words in the input text and strategically replacing them with semantically consistent
alternatives. This targeted approach enables us to efectively manipulate the model’s decision while
preserving the overall coherence of the text. Moreover, by focusing on the most critical words, we
increase the likelihood of achieving our goal with a minimal number of word replacements, thereby
maintaining the semantic integrity of the original text.</p>
        </sec>
      </sec>
      <sec id="sec-5-2">
        <title>4.2. Hyper-parameters</title>
        <p>For each dataset and victim model combination, we determined a diferent set of hyperparameters for
our BeamAttack approach. To achieve this, we employed an informed random search on subsets of
10-50 samples for each task and victim model. Our search strategy was guided by intuition and initial
observations, allowing us to efectively fine-tune the hyperparameters. We considered the following
ranges for the hyperparameter values:
1. Beam size : We tested values between 10 to 100, increasing in steps of 5 (i.e., 10, 15, 20, ...). We
increased the beam size until the improvement in the BODEGA score became negligible (less
than 1 point). Figure 2 illustrates how this approach led to convergence.
2. Branching factor : We tested a range of values similar to the chosen  values, within a range
of -20 to +20 around the selected  values.
3. Hypothesis count ℎ: Based on initial experiments, we decided to test hypothesis counts of 5, 10,
and 20. This decision was made considering the dificulty of the task at hand and the BODEGA
scores obtained during the hyper-parameter search. We observed that further increasing ℎ did
not significantly improve the scores, as explained in Section 6.4.
4. Word importance scoring method: We compared the results of both word importance scoring
methods, LIME and logit-based, in the initial experiments of each dataset and victim model
combination.
RoBERTa
RoBERTa
RoBERTa
RoBERTa
RoBERTa</p>
        <p>Pr2
FC
RD
HN
C19
PR2
FC
RD
HN
C19
PR2
FC
RD
HN
C19</p>
      </sec>
      <sec id="sec-5-3">
        <title>4.3. Computational Resources</title>
        <p>This chapter outlines the computational resources utilized and the hyper-parameter tuning strategies
employed to optimize our BeamAttack approach, which demanded substantial computational power.
To overcome the limitations imposed by computational and time constraints, we resorted to a random
search strategy to determine the optimal parameter set for each scenario, recognizing that this approach
may not necessarily result in the identification of the globally optimal combination. We primarily used
Kaggle’s free GPU infrastructure, which ofers NVIDIA Tesla P100s and T4x 4. We report the running
time statistics for the final runs of each model and dataset combination in Table 3.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>5. Results</title>
      <p>
        The outcomes of this shared task and a comparison with those reported by Przybyła et al. [
        <xref ref-type="bibr" rid="ref27">27</xref>
        ] are
presented in Tables 4, 5, and 6. Notably, we do not report scores for the Covid (C19) classification
subtask besides our own, as no oficial published scores are available. The same thing applies to the
RoBERTa victim in Table 6.
      </p>
      <p>Our algorithm outperforms all other algorithms on BERT and BiLSTM victims, demonstrating the
superior efectiveness of BeamAttack. While other algorithms may generate adversarial samples with
better character or semantic scores in specific tasks, they fail to achieve this consistently across the
entire dataset. Moreover, our confusion scores are always superior to those of other techniques.</p>
      <p>Nevertheless, our algorithm needs many victim queries to achieve this goal. For example, in the task
RD on the BERT classifier (see Table 4), our BeamAttack takes roughly double the number of queries
2FacebookAI/roberta-large model from Hugging Face: https://huggingface.co/FacebookAI/roberta-large
3vinai/bertweet-large model from Hugging Face: https://huggingface.co/vinai/bertweet-large
4For the submission phase, we used an NVIDIA Tesla T4 GPU.
compared to the Genetic algorithm. This highlights a trade-of between the quality of the generated
adversarial samples and the computational resources required to achieve them.</p>
      <p>In summary, our BeamAttack algorithm has shown exceptional capability in producing high-quality
adversarial samples that are highly efective in deceiving victims, thereby surpassing the performance
of other algorithms when tested on BERT and BiLSTM victims.</p>
    </sec>
    <sec id="sec-7">
      <title>6. Ablation Experiments</title>
      <p>We conducted a small-scale ablation study to investigate the impact of various hyper-parameters on
the performance of our BeamAttack algorithm, shedding some light on the relationship between these
parameters and the algorithm’s efectiveness. Specifically, we investigate the impact of logit-based
versus LIME, beam size , branching factor  and the hypothesis count ℎ on the algorithm’s performance,
exploring each of these parameters in the context of specific scenarios of task and victim model. The
full results of the ablation studies can be found in the Appendix B.</p>
      <sec id="sec-7-1">
        <title>6.1. Word Importance</title>
        <p>
          Besides the logit-based approach from BERT-Attack [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], we utilized LIME, a state-of-the-art
interpretability framework, to identify crucial words in a sample that influence the victim’s decision-making
process. By modifying these words, we increased the victim’s susceptibility to our adversarial attack.
        </p>
        <p>We report some comparisons of LIME in the appendix in Table 7. From this table, we can gather
multiple insights. For instance, for the BERT victim the choice of importance method depends on the
task dataset, with RD favoring the logit-based method and FC preferring LIME. For the BiLSTM, the
logit-based method is superior on all datasets. For RoBERTa, which is architecturally similar to BERT,
the choice of importance method also depends on the dataset, with FC favoring LIME.</p>
        <p>Furthermore, we observed that for the RoBERTa victim and C19 task, the choice between LIME and
logit-based depends on other hyper-parameters such as beam size, branching factors, and hypothesis
count. More specifically, our results suggest transformer-based classifiers, namely classifiers BERT and
RoBERTa are generally more vulnerable to LIME over logit-based for the HN and FC datasets. Both
these datasets classify whether a statement contains facts, with HN using subtle clues in writing styles
and FC using external knowledge from Wikipedia. We leave the investigation behind this observation
PR
FC
RD</p>
        <p>Method
BAE 0.34
BERT-ATTACK 0.60
DeepWordBug 0.22
Genetic 0.40
SememePSO 0.16
PWWS 0.38
SCPN 0.00
TextFooler 0.39
BeamAttack (Ours) 0.84
BAE 0.11
BERT-ATTACK 0.43
DeepWordBug 0.28
Genetic 0.50
SememePSO 0.41
PWWS 0.47
SCPN 0.09
TextFooler 0.43
BeamAttack (Ours) 0.69
BAE 0.34
BERT-ATTACK 0.53
DeepWordBug 0.44
Genetic 0.52
SememePSO 0.44
PWWS 0.48
SCPN 0.09
TextFooler 0.46
BeamAttack (Ours) 0.79
BAE 0.07
BERT-ATTACK 0.18
DeepWordBug 0.16
Genetic 0.20
SememePSO 0.10
PWWS 0.16
SCPN 0.01
TextFooler 0.16</p>
        <p>BeamAttack (Ours) 0.59
C19</p>
        <p>BeamAttack (Ours)
0.71
con
to future work.</p>
        <p>Our results suggest that exploring explainable AI frameworks for adversarial attacks is a promising
direction of research. However, our experiments show that LIME only improved upon the logit-based
approach on a few datasets. Additionally, LIME requires more queries, and when the improvement was
marginal, we opted for the logit-based approach due to resource constraints.</p>
        <p>BAE 0.48
BERT-ATTACK 0.64
DeepWordBug 0.41
Genetic 0.44
SememePSO 0.21
PWWS 0.44
SCPN 0.00
TextFooler 0.43
BeamAttack (Ours) 0.90
BAE 0.15
BERT-ATTACK 0.53
DeepWordBug 0.29
Genetic 0.54
SememePSO 0.47
PWWS 0.53
SCPN 0.12
TextFooler 0.51
BeamAttack (Ours) 0.70
BAE 0.36
BERT-ATTACK 0.60
DeepWordBug 0.48
Genetic 0.61
SememePSO 0.53
PWWS 0.57
SCPN 0.08
TextFooler 0.55
BeamAttack (Ours) 0.76
BAE 0.09
BERT-ATTACK 0.29
DeepWordBug 0.16
Genetic 0.32
SememePSO 0.15
PWWS 0.29
SCPN 0.01
TextFooler 0.24</p>
        <p>BeamAttack (Ours) 0.83
C19</p>
        <p>BeamAttack (Ours) 0.72</p>
        <p>Con
6.2. Beam Size 
We also conducted an experiment to investigate the efect of the beam size  on our algorithm’s
performance. Specifically, we experimented on a subset of 30 samples from the PR2 dataset using
the RoBERTa victim model. The results are presented in Figure 2, with the exact scores provided
in Appendix Table 8. Our analysis reveals a consistent improvement in all scores as the beam size
increases.</p>
        <p>However, we encountered a significant limitation. As shown in the table, a beam size of 100 requires
16,500 queries per sample, which is impractical for limited GPU setup. Therefore, we sought an optimal</p>
        <p>Con
trade-of where the scores would reach a plateau. In the case of PR2 and RoBERTa, we determined that
a beam size of 60 strikes a reasonable balance between performance and computational feasibility.</p>
      </sec>
      <sec id="sec-7-2">
        <title>6.3. branching factor</title>
        <p>We further explored the impact of the branching factor  on our algorithm’s performance, using a
ifxed beam size of 40. We conducted an experiment on a subset of 30 samples from the PR2 dataset,
employing the RoBERTa victim model. The results are illustrated in Figure 3, which displays the scores
against varying branching factors. The exact scores can be found in Appendix Table 9. Our analysis
reveals that increasing the branching factor  leads to a slight improvement in the BODEGA score.</p>
      </sec>
      <sec id="sec-7-3">
        <title>6.4. Hypothesis Count ℎ</title>
        <p>Our algorithm’s flexibility in replacing, skipping, or removing words, combined with the use of a masked
language model, ensures that the resulting sentence remains semantically correct. The beam search
approach enables us to eficiently query for multiple adversarial samples and use the one that is most
semantically close to our original sentence.</p>
        <p>We conducted an ablation study on the hypothesis count ℎ, which defines how many adversarial
samples to use before selecting the closest. We explored diferent scenarios, incrementing the parameter
from 10 to 20, but observed only minimal efects, resulting in a negligible improvement or deterioration
of less than 1% in the BODEGA score. We provide a small-scale report of our findings for the RoBERTa
victim and various tasks in the appendix (Table 10). Notably, in some cases, it came at the cost of
requiring more queries. Therefore, we opted to maintain a constant value of 10 for the hypothesis count
in most cases.</p>
        <p>We acknowledge that a more comprehensive investigation of this parameter could have potentially
yielded further improvements.</p>
      </sec>
      <sec id="sec-7-4">
        <title>6.5. LIME Parameters</title>
        <p>The LIME explainability method itself presents several hyper-parameters that can be optimized.
Although tuning these parameters was not our primary focus, we recognized their potential impact on our
approach. Due to time constraints, we initially chose to keep the parameters fixed, but we later realized
that adjusting them could have a significant efect on our algorithm’s performance. The complete
documentation of parameters can be found here5.</p>
        <p>Specifically, we found that by reducing the number of samples used by LIME, we could substantially
decrease the number of victim model queries required without compromising our algorithm’s
performance. Notably, by setting the number of samples to 500, a significant reduction of 4500 queries per
explanation was achieved, compared to LIME’s default setting of 5000. This adjustment may come at
the cost of reduced performance for longer samples, highlighting the need for further exploration of
these parameters in future work.</p>
        <p>In future studies, researchers could explore matching the explainability model better to the victim
model. This could involve trying out diferent kernel sizes or entirely diferent kernels. We think this
adjustment could improve the eficency of generating an explanation.</p>
      </sec>
    </sec>
    <sec id="sec-8">
      <title>7. Conclusion</title>
      <p>In this shared task, we introduced BeamAttack, an innovative adversarial text generation method that
combines multiple techniques from the literature with novel approaches. At the core of BeamAttack
lies the beam search algorithm, which serves as a fundamental tool in optimizing adversarial text
generation.</p>
      <p>Our method leverages a Masked Language Model (MLM), specifically RoBERTa, to produce
contextually appropriate word substitutions. Notably, RoBERTa’s ability to generate alternative words with
typos and controversial connotations significantly enhances BeamAttack’s efectiveness.
5Code Documentation of LimeTextExplainer.</p>
      <p>LimeTextExplainer</p>
      <p>https://lime-ml.readthedocs.io/en/latest/lime.html#lime.lime_text.</p>
      <p>Additionally, we integrate LIME, an interpretability method, to calculate the contribution of each
word to the model’s classification. Our experiments demonstrate significant improvements in attack
efectiveness, particularly in specific task contexts.</p>
      <p>The key feature of BeamAttack is its utilization of beam search, which enables the identification
of optimal word-level modifications. Unlike previous methods relying on simplistic greedy search
approaches, BeamAttack’s beam search strategy allows for more nuanced modification decisions.
Moreover, by incorporating the capability to skip or remove words, inspired by prior work, we enhance
the algorithm’s flexibility in exploring potential solutions.</p>
      <p>Furthermore, BeamAttack’s beam search produces multiple alternative adversarial text hypotheses
capable of flipping the model’s classification. By selecting the hypothesis with the highest semantic
similarity to the input text, our method efectively filters out dissimilar or contradictory hypotheses.</p>
      <p>In summary, BeamAttack’s eficacy is significantly attributed to its beam search component, which
plays a crucial role in optimizing adversarial text generation. The flexibility provided by tunable
hyper-parameters allows users to prioritize semantic or character similarity based on their specific
requirements.</p>
    </sec>
    <sec id="sec-9">
      <title>8. Limitations</title>
      <p>Our word replacement strategy in BeamAttack is currently limited to methods of substituting and
removing words. Removing a word can sometimes result in syntactically incorrect and nonsensical
sentences, especially since RoBERTa is not utilized for this operation. This decreases the coherence
of the context after the change. To enhance the quality of our outputs, we recommend exploring the
integration of word insertion techniques into the beam search process. This approach could potentially
improve the syntactic and semantic integrity of the sentences.</p>
      <p>The BeamAttack approach strives to maintain semantic similarity to the original sample via semantic
ifltering. However, there could be a benefit to scoring the beams at each step of the beam search, rather
than solely relying on selecting the hypothesis with the highest semantic score.</p>
      <p>Moreover, while RoBERTa provides context-based alternatives, these alternatives solely depend on
the context rather than the word to be replaced itself. This limitation may impact the performance of
the beam search, potentially resulting in alternatives that are opposite in meaning to the word to be
replaced. To address this, potential solutions include prompting Language Models (LLMs) to produce
word candidates at each step of the beam search or filtering out produced alternatives based on similarity
to the word to be replaced. However, these approaches may introduce trade-ofs and require careful
consideration to maintain performance.</p>
      <p>In our experiments, we limited ourselves to the use of the Explainable AI method LIME. However, we
suggest that future research should explore the potential of diverse Explainable AI methods to uncover
vulnerabilities in the victim’s decision-making process. Our experience with LIME has demonstrated
the value of these approaches, but we believe that Explainable AI frameworks could provide even
more insightful explanations. By leveraging these techniques, researchers may be able to identify more
efective strategies for generating adversarial examples, ultimately leading to more robust and reliable
machine learning models.</p>
    </sec>
    <sec id="sec-10">
      <title>Acknowledgments</title>
      <p>We would like to express our gratitude to the Department of Computational Linguistics at the University
of Zurich (UZH) for the valuable advice and guidance they ofered throughout our research. Additionally,
we appreciate their eforts in providing us with access to a GPU during the evaluation phase of our project.
For more information about the department, please visit their website at https://www.cl.uzh.ch/en.html.
[32] D. Lee, S. Moon, J. Lee, H. O. Song, Query-eficient and scalable black-box adversarial attacks on
discrete sequential data via bayesian optimization, 2022. arXiv:2206.08575.
[33] S. Ren, Y. Deng, K. He, W. Che, Generating natural language adversarial examples through
probability weighted word saliency, in: A. Korhonen, D. Traum, L. Màrquez (Eds.), Proceedings
of the 57th Annual Meeting of the Association for Computational Linguistics, Association for
Computational Linguistics, Florence, Italy, 2019, pp. 1085–1097. URL: https://aclanthology.org/
P19-1103. doi:10.18653/v1/P19-1103.
[34] A. Barrón-Cedeño, F. Alam, T. Chakraborty, T. Elsayed, P. Nakov, P. Przybyła, J. M. Struß, F. Haouari,
M. Hasanain, F. Ruggeri, X. Song, R. Suwaileh, The clef-2024 checkthat! lab: Check-worthiness,
subjectivity, persuasion, roles, authorities, and adversarial robustness, in: N. Goharian, N.
Tonellotto, Y. He, A. Lipani, G. McDonald, C. Macdonald, I. Ounis (Eds.), Advances in Information
Retrieval, Springer Nature Switzerland, Cham, 2024, pp. 449–458.
[35] T. Sellam, D. Das, A. Parikh, BLEURT: Learning robust metrics for text generation, in: D. Jurafsky,
J. Chai, N. Schluter, J. Tetreault (Eds.), Proceedings of the 58th Annual Meeting of the Association for
Computational Linguistics, Association for Computational Linguistics, Online, 2020, pp. 7881–7892.</p>
      <p>URL: https://aclanthology.org/2020.acl-main.704. doi:10.18653/v1/2020.acl-main.704.</p>
    </sec>
    <sec id="sec-11">
      <title>A. BeamAttack Algorithm</title>
      <p>Input:  = [0, 1, . . . , ] // input tokenized sentence,  // gold-label,  // beam size,  // branching factor,  // hypothesis count,
 // the target model to attack
Output:  // adversarial sample
Initialize the beam as a priority queue with the original sentence and its score  ← PriorityQueue()
.((, ._()[ ]))
begin FCalculateWordImportance
_ ← [] foreach word  in  do
_  ← LIME_importance(, , ) _</p>
      <p>_.((, _  + _))
end
return _
end
end
masked_language_model.predict(, , ) return 
←
logit_importance(, , )</p>
      <p>CalculateWordImportance(, ) Sort _ by descending order
while beam is not empty do
_ ← [] foreach (, ) in beam do
foreach word  in _ do
 ← GetTopReplacements( , , ) foreach replacement in replacements do
 ←  with  replaced by replacement _ ← ._()[ ]
_.((, _))
begin FLogit_importance
_ ←  with  replaced by [MASK] return ._()[ ] − ._(_)[ ]</p>
      <p>Algorithm 1: BeamAttack
end
end
end</p>
      <p>end
end
end
 ←
end
end
end
return _
begin FLIME_importance</p>
      <p>Input: , , 
return LIME_score
end
end
Sort _ by score  ← top  items from _
Check for success: foreach (, ) in beam do
if model.predict() ̸=  then</p>
      <p>_.((, ))
end
if length of _ ≥  then
break</p>
      <p>SelectBestCandidate(_)
return  if _ is not empty, otherwise return None
begin FSelectBestCandidate
_ ← None _ ← −∞ foreach (, ) in _ do
 ← Bleurt_score(, ) if  &gt; _ then</p>
      <p>_ ←  _ ←</p>
    </sec>
    <sec id="sec-12">
      <title>B. Ablation Studies</title>
      <p>RD
RD
FC
FC
FC
FC
HN
HN
FC
FC
1.0
1.0
1.0
1.0
1.0</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>P.</given-names>
            <surname>Przybyła</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Shvets</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Mu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. C.</given-names>
            <surname>Sheang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Song</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Saggion</surname>
          </string-name>
          ,
          <article-title>Overview of the CLEF2024 CheckThat! lab task 6 on robustness of credibility assessment with adversarial examples (incrediblae)</article-title>
          , in: G. Faggioli,
          <string-name>
            <given-names>N.</given-names>
            <surname>Ferro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Galuščáková</surname>
          </string-name>
          ,
          <string-name>
            <surname>A</surname>
          </string-name>
          . García Seco de Herrera (Eds.), Working Notes of CLEF 2024 -
          <article-title>Conference and Labs of the Evaluation Forum</article-title>
          ,
          <string-name>
            <surname>CLEF</surname>
          </string-name>
          <year>2024</year>
          , Grenoble, France,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>W. E.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q. Z.</given-names>
            <surname>Sheng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Alhazmi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <article-title>Adversarial attacks on deep-learning models in natural language processing: A survey</article-title>
          ,
          <source>ACM Trans. Intell. Syst. Technol</source>
          .
          <volume>11</volume>
          (
          <year>2020</year>
          ). URL: https://doi.org/10.1145/3374217. doi:
          <volume>10</volume>
          .1145/3374217.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>B.</given-names>
            <surname>Formento</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. S.</given-names>
            <surname>Foo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. A.</given-names>
            <surname>Tuan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. K.</given-names>
            <surname>Ng</surname>
          </string-name>
          ,
          <article-title>Using punctuation as an adversarial attack on deep learning-based NLP systems: An empirical study</article-title>
          , in: A.
          <string-name>
            <surname>Vlachos</surname>
          </string-name>
          , I. Augenstein (Eds.),
          <source>Findings of the Association for Computational Linguistics: EACL</source>
          <year>2023</year>
          ,
          <article-title>Association for Computational Linguistics</article-title>
          , Dubrovnik, Croatia,
          <year>2023</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>34</lpage>
          . URL: https://aclanthology.org/
          <year>2023</year>
          .findings-eacl.1. doi:
          <volume>10</volume>
          .18653/v1/
          <year>2023</year>
          .findings-eacl.
          <volume>1</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>D.</given-names>
            <surname>Jin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Jin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. T.</given-names>
            <surname>Zhou</surname>
          </string-name>
          , P. Szolovits,
          <article-title>Is bert really robust? natural language attack on text classification and entailment, 2019</article-title>
          . URL: https://api.semanticscholar.org/CorpusID:198967870.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ji</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Du</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Wang</surname>
          </string-name>
          , Textbugger:
          <article-title>Generating adversarial text against real-world applications</article-title>
          , ArXiv abs/
          <year>1812</year>
          .05271 (
          <year>2018</year>
          ). URL: https://api.semanticscholar.org/CorpusID:54815878.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>L.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Ma</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Xue</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Qiu</surname>
          </string-name>
          , BERT-ATTACK:
          <article-title>Adversarial attack against BERT using BERT</article-title>
          , in: B.
          <string-name>
            <surname>Webber</surname>
            , T. Cohn,
            <given-names>Y.</given-names>
          </string-name>
          <string-name>
            <surname>He</surname>
          </string-name>
          , Y. Liu (Eds.),
          <source>Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)</source>
          ,
          <article-title>Association for Computational Linguistics</article-title>
          , Online,
          <year>2020</year>
          , pp.
          <fpage>6193</fpage>
          -
          <lpage>6202</lpage>
          . URL: https://aclanthology.org/
          <year>2020</year>
          .emnlp-main.
          <volume>500</volume>
          . doi:
          <volume>10</volume>
          .18653/v1/
          <year>2020</year>
          .emnlp-main.
          <volume>500</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Belinkov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bisk</surname>
          </string-name>
          ,
          <article-title>Synthetic and natural noise both break neural machine translation</article-title>
          ,
          <source>ArXiv abs/1711</source>
          .02173 (
          <year>2017</year>
          ). URL: https://api.semanticscholar.org/CorpusID:3513372.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>J.</given-names>
            <surname>Gao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Lanchantin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. L.</given-names>
            <surname>Sofa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Qi</surname>
          </string-name>
          ,
          <article-title>Black-box generation of adversarial text sequences to evade deep learning classifiers</article-title>
          ,
          <source>in: 2018 IEEE Security and Privacy Workshops (SPW)</source>
          ,
          <year>2018</year>
          , pp.
          <fpage>50</fpage>
          -
          <lpage>56</lpage>
          . doi:
          <volume>10</volume>
          .1109/SPW.
          <year>2018</year>
          .
          <volume>00016</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>H.</given-names>
            <surname>Hosseini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Kannan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , R. Poovendran,
          <article-title>Deceiving google's perspective api built for detecting toxic comments</article-title>
          ,
          <source>ArXiv abs/1702</source>
          .08138 (
          <year>2017</year>
          ). URL: https://api.semanticscholar.org/ CorpusID:15418780.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>B.</given-names>
            <surname>Liang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Su</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Bian</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Shi</surname>
          </string-name>
          ,
          <article-title>Deep text classification can be fooled</article-title>
          ,
          <source>in: Proceedings of the 27th International Joint Conference on Artificial Intelligence, IJCAI'18</source>
          , AAAI Press,
          <year>2018</year>
          , p.
          <fpage>4208</fpage>
          -
          <lpage>4215</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>S.</given-names>
            <surname>Samanta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Mehta</surname>
          </string-name>
          ,
          <article-title>Towards crafting text adversarial samples (</article-title>
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>G. A.</given-names>
            <surname>Miller</surname>
          </string-name>
          ,
          <article-title>WordNet: A lexical database for English</article-title>
          ,
          <source>in: Human Language Technology: Proceedings of a Workshop held at Plainsboro, New Jersey, March</source>
          <volume>8</volume>
          -
          <issue>11</issue>
          ,
          <year>1994</year>
          ,
          <year>1994</year>
          . URL: https: //aclanthology.org/H94-1111.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>S.</given-names>
            <surname>Garg</surname>
          </string-name>
          , G. Ramakrishnan, Bae:
          <article-title>Bert-based adversarial examples for text classification</article-title>
          , ArXiv abs/
          <year>2004</year>
          .
          <year>01970</year>
          (
          <year>2020</year>
          ). URL: https://api.semanticscholar.org/CorpusID:214802269.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>M. T.</given-names>
            <surname>Ribeiro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Guestrin</surname>
          </string-name>
          ,
          <article-title>Semantically equivalent adversarial rules for debugging NLP models</article-title>
          , in: I. Gurevych, Y. Miyao (Eds.),
          <source>Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume</source>
          <volume>1</volume>
          :
          <string-name>
            <surname>Long</surname>
            <given-names>Papers)</given-names>
          </string-name>
          ,
          <source>Association for Computational Linguistics</source>
          , Melbourne, Australia,
          <year>2018</year>
          , pp.
          <fpage>856</fpage>
          -
          <lpage>865</lpage>
          . URL: https://aclanthology.org/P18-1079. doi:
          <volume>10</volume>
          .18653/v1/
          <fpage>P18</fpage>
          -1079.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ott</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Goyal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Du</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Joshi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Levy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lewis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Zettlemoyer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Stoyanov</surname>
          </string-name>
          ,
          <article-title>Roberta: A robustly optimized bert pretraining approach</article-title>
          ,
          <year>2019</year>
          . arXiv:
          <year>1907</year>
          .11692.
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>J.</given-names>
            <surname>Ebrahimi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Rao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lowd</surname>
          </string-name>
          , D. Dou,
          <article-title>HotFlip: White-box adversarial examples for text classification</article-title>
          , in: I. Gurevych, Y. Miyao (Eds.),
          <source>Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume</source>
          <volume>2</volume>
          :
          <string-name>
            <surname>Short</surname>
            <given-names>Papers)</given-names>
          </string-name>
          ,
          <source>Association for Computational Linguistics</source>
          , Melbourne, Australia,
          <year>2018</year>
          , pp.
          <fpage>31</fpage>
          -
          <lpage>36</lpage>
          . URL: https://aclanthology.org/P18-2006. doi:
          <volume>10</volume>
          .18653/v1/
          <fpage>P18</fpage>
          -2006.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>J.</given-names>
            <surname>Devlin</surname>
          </string-name>
          , M.-
          <string-name>
            <given-names>W.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Toutanova</surname>
          </string-name>
          , Bert:
          <article-title>Pre-training of deep bidirectional transformers for language understanding</article-title>
          ,
          <year>2019</year>
          . arXiv:
          <year>1810</year>
          .04805.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>M. T.</given-names>
            <surname>Ribeiro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Guestrin</surname>
          </string-name>
          ,
          <article-title>"why should I trust you?": Explaining the predictions of any classifier</article-title>
          ,
          <source>in: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</source>
          , San Francisco, CA, USA,
          <year>August</year>
          13-
          <issue>17</issue>
          ,
          <year>2016</year>
          ,
          <year>2016</year>
          , pp.
          <fpage>1135</fpage>
          -
          <lpage>1144</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>C.</given-names>
            <surname>Szegedy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Zaremba</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Sutskever</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Bruna</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Erhan</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Goodfellow</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Fergus</surname>
          </string-name>
          ,
          <source>Intriguing properties of neural networks</source>
          ,
          <year>2014</year>
          . arXiv:
          <volume>1312</volume>
          .
          <fpage>6199</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>D.</given-names>
            <surname>Hendrycks</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Basart</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Steinhardt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Song</surname>
          </string-name>
          , Natural adversarial examples,
          <year>2021</year>
          . arXiv:
          <year>1907</year>
          .07174.
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>T.</given-names>
            <surname>McCoy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Pavlick</surname>
          </string-name>
          , T. Linzen,
          <article-title>Right for the wrong reasons: Diagnosing syntactic heuristics in natural language inference</article-title>
          , in: A.
          <string-name>
            <surname>Korhonen</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Traum</surname>
          </string-name>
          , L. Màrquez (Eds.),
          <article-title>Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Association for Computational Linguistics</article-title>
          , Florence, Italy,
          <year>2019</year>
          , pp.
          <fpage>3428</fpage>
          -
          <lpage>3448</lpage>
          . URL: https://aclanthology.org/P19-1334. doi:
          <volume>10</volume>
          . 18653/v1/
          <fpage>P19</fpage>
          -1334.
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>R.</given-names>
            <surname>Jia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Liang</surname>
          </string-name>
          ,
          <article-title>Adversarial examples for evaluating reading comprehension systems</article-title>
          , in: M.
          <string-name>
            <surname>Palmer</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Hwa</surname>
          </string-name>
          , S. Riedel (Eds.),
          <source>Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing</source>
          , Association for Computational Linguistics, Copenhagen, Denmark,
          <year>2017</year>
          , pp.
          <fpage>2021</fpage>
          -
          <lpage>2031</lpage>
          . URL: https://aclanthology.org/D17-1215. doi:
          <volume>10</volume>
          .18653/v1/
          <fpage>D17</fpage>
          -1215.
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>N.</given-names>
            <surname>Papernot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>McDaniel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Swami</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Harang</surname>
          </string-name>
          ,
          <article-title>Crafting adversarial input sequences for recurrent neural networks</article-title>
          ,
          <source>in: MILCOM</source>
          <year>2016</year>
          - 2016
          <string-name>
            <given-names>IEEE</given-names>
            <surname>Military Communications</surname>
          </string-name>
          <string-name>
            <surname>Conference</surname>
          </string-name>
          , IEEE Press,
          <year>2016</year>
          , p.
          <fpage>49</fpage>
          -
          <lpage>54</lpage>
          . URL: https://doi.org/10.1109/MILCOM.
          <year>2016</year>
          .
          <volume>7795300</volume>
          . doi:
          <volume>10</volume>
          .1109/MILCOM.
          <year>2016</year>
          .
          <volume>7795300</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>P.</given-names>
            <surname>Gaiński</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Bałazy</surname>
          </string-name>
          ,
          <article-title>Step by step loss goes very far: Multi-step quantization for adversarial text attacks</article-title>
          , in: A.
          <string-name>
            <surname>Vlachos</surname>
          </string-name>
          , I. Augenstein (Eds.),
          <source>Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics</source>
          , Association for Computational Linguistics, Dubrovnik, Croatia,
          <year>2023</year>
          , pp.
          <fpage>2038</fpage>
          -
          <lpage>2048</lpage>
          . URL: https://aclanthology.org/
          <year>2023</year>
          .eacl-main.
          <volume>149</volume>
          . doi:
          <volume>10</volume>
          .18653/v1/
          <year>2023</year>
          .eacl-main.
          <volume>149</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Che</surname>
          </string-name>
          , K. He,
          <article-title>TextHacker: Learning based hybrid local search algorithm for text hard-label adversarial attack</article-title>
          , in: Y.
          <string-name>
            <surname>Goldberg</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          <string-name>
            <surname>Kozareva</surname>
          </string-name>
          , Y. Zhang (Eds.),
          <source>Findings of the Association for Computational Linguistics: EMNLP</source>
          <year>2022</year>
          ,
          <article-title>Association for Computational Linguistics</article-title>
          , Abu Dhabi, United Arab Emirates,
          <year>2022</year>
          , pp.
          <fpage>622</fpage>
          -
          <lpage>637</lpage>
          . URL: https://aclanthology.org/
          <year>2022</year>
          .findings-emnlp.
          <volume>44</volume>
          . doi:
          <volume>10</volume>
          .18653/v1/
          <year>2022</year>
          .findings-emnlp.
          <volume>44</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>R.</given-names>
            <surname>Maheshwary</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Maheshwary</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Pudi</surname>
          </string-name>
          ,
          <article-title>A strong baseline for query eficient attacks in a black box setting</article-title>
          ,
          <source>ArXiv abs/2109</source>
          .04775 (
          <year>2021</year>
          ). URL: https://api.semanticscholar.org/CorpusID:237485150.
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [27]
          <string-name>
            <given-names>P.</given-names>
            <surname>Przybyła</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Shvets</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Saggion</surname>
          </string-name>
          ,
          <article-title>Verifying the robustness of automatic credibility assessment</article-title>
          ,
          <year>2023</year>
          . arXiv:
          <volume>2303</volume>
          .
          <fpage>08032</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          [28]
          <string-name>
            <given-names>M.</given-names>
            <surname>Alzantot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sharma</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Elgohary</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.-J.</given-names>
            <surname>Ho</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Srivastava</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.-W.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <article-title>Generating natural language adversarial examples</article-title>
          , in: E.
          <string-name>
            <surname>Rilof</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Chiang</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Hockenmaier</surname>
          </string-name>
          , J. Tsujii (Eds.),
          <source>Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing</source>
          , Association for Computational Linguistics, Brussels, Belgium,
          <year>2018</year>
          , pp.
          <fpage>2890</fpage>
          -
          <lpage>2896</lpage>
          . URL: https://aclanthology.org/ D18-1316. doi:
          <volume>10</volume>
          .18653/v1/
          <fpage>D18</fpage>
          -1316.
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          [29]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Qi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , Q. Liu,
          <string-name>
            <given-names>M.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <article-title>Word-level textual adversarial attacking as combinatorial optimization</article-title>
          , in: D.
          <string-name>
            <surname>Jurafsky</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Chai</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          <string-name>
            <surname>Schluter</surname>
          </string-name>
          , J. Tetreault (Eds.),
          <article-title>Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Association for Computational Linguistics</article-title>
          , Online,
          <year>2020</year>
          , pp.
          <fpage>6066</fpage>
          -
          <lpage>6080</lpage>
          . URL: https://aclanthology.org/
          <year>2020</year>
          .acl-main.
          <volume>540</volume>
          . doi:
          <volume>10</volume>
          .18653/v1/
          <year>2020</year>
          .acl-main.
          <volume>540</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref30">
        <mixed-citation>
          [30]
          <string-name>
            <given-names>X.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Gong</surname>
          </string-name>
          , W. Liu,
          <string-name>
            <given-names>J.</given-names>
            <surname>Bailey</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Tao</surname>
          </string-name>
          , W. Liu,
          <article-title>Semantic-preserving adversarial text attacks</article-title>
          ,
          <source>IEEE Transactions on Sustainable Computing</source>
          <volume>8</volume>
          (
          <year>2023</year>
          )
          <fpage>583</fpage>
          -
          <lpage>595</lpage>
          . doi:
          <volume>10</volume>
          .1109/TSUSC.
          <year>2023</year>
          .
          <volume>3263510</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref31">
        <mixed-citation>
          [31]
          <string-name>
            <given-names>M.</given-names>
            <surname>Ni</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Sun</surname>
          </string-name>
          , W. Liu,
          <article-title>Fraud's bargain attack: Generating adversarial text samples via word manipulation process</article-title>
          ,
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          (
          <year>2024</year>
          )
          <fpage>1</fpage>
          -
          <lpage>14</lpage>
          . doi:
          <volume>10</volume>
          .1109/TKDE.
          <year>2024</year>
          .
          <volume>3349708</volume>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>