<!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>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Comparison of Transformer-based Deep Learning Methods for the Paraphrase Identification Task</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Oleksandr Marchenko</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vitalii Vrublevskyi</string-name>
          <email>vitalii.vrublevskyi@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Workshop</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Taras Shevchenko National University of Kyiv</institution>
          ,
          <addr-line>64/13, Volodymyrska St., Kyiv, 01601</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2023</year>
      </pub-date>
      <fpage>20</fpage>
      <lpage>21</lpage>
      <abstract>
        <p>The paper highlights the importance of paraphrase identification in various real-world applications, including information retrieval, machine translation, sentiment analysis, and question answering. It emphasises the significance of recognising different wordings that convey the same meaning and how this capability can enhance intelligent systems across domains. The paper aims to explore Transformer-based deep learning methods for paraphrase identification, offering insights into their capabilities and limitations to advance natural language understanding and inform researchers and practitioners in the field. It highlights that Transformer-based models, particularly BERT and its variants, have become state-of-the-art methods due to their ability to capture contextual information effectively and handle diverse linguistic expressions. The subsequent section of the paper will comprehensively compare these Transformer-based methods and discuss techniques for finetuning them for paraphrase detection tasks. Large Language Models were also explored, and a method was described to finetune them on classification tasks. models, large language models. Natural language processing, paraphrase identification, machine learning, transformer-based ORCID: 0000-0002-5408-5279 (Oleksandr Marchenko); 0009-0005-7070-9001 (Vitalii Vrublevskyi) Proceedings</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Identifying paraphrasing has become pivotal and challenging in the ever-evolving landscape of
natural language processing and understanding. Paraphrasing, a linguistic phenomenon wherein
different wordings convey the same meaning, is one of the cornerstones of human communication and
comprehension. Understanding and using the power of paraphrase identification have profound
implications across various domains, from information retrieval and machine translation to sentiment
analysis and question answering.</p>
      <sec id="sec-1-1">
        <title>Consider the following examples:</title>
        <p>The ability to discern and differentiate paraphrases is vital in numerous real-world applications.
1. Information Retrieval: Search engines strive to provide users with the most relevant and
comprehensive results. Paraphrase identification can enhance retrieval systems by recognizing different
formulations of user queries and retrieving documents that may use different words but convey the same
information.</p>
        <p>Example: A user searching for "effects of climate change" might also benefit from results that
mention "consequences of global warming."
2. Machine</p>
        <p>Translation: In translation, recognising paraphrases is very useful. Accurate
paraphrase identification can aid machine translation systems in generating contextually appropriate
translations by selecting from many possible wordings.</p>
        <p>Example: When translating "Je suis fatigué" from French to English, the system should recognize
that both "I am tired" and "I feel exhausted" convey the same underlying meaning.</p>
        <p>2023 Copyright for this paper by its authors.
CEUR</p>
        <p>ceur-ws.org
3. Sentiment Analysis: Social media and customer reviews are abundant data sources, often full of
paraphrased expressions. Paraphrase identification can help sentiment analysis models decipher the
sentiment behind various rephrasings of the same sentiment.</p>
        <p>Example: Identifying "I absolutely love this product" and "This product is fantastic!" as paraphrases
allows for a more nuanced understanding of user sentiment.</p>
        <p>4. Question Answering: In question-answering systems, paraphrase identification plays a crucial
role. It helps match user queries to potential answers, even when the wording varies significantly.</p>
        <p>Example: For the question "What are the effects of smoking?" paraphrase identification can assist
in recognizing that "What harm does smoking cause?" is a paraphrase of the same inquiry.</p>
        <p>In this paper, we delve into paraphrase identification and comprehensively explore
Transformerbased deep learning methods for this essential task. By leveraging state-of-the-art models and
innovative techniques, we aim to shed light on the capabilities and limitations of these methods in
recognising paraphrases, thus contributing to the advancement of natural language understanding and
facilitating the development of intelligent systems in a multitude of applications.</p>
        <p>In the subsequent sections, we will detail our methodology, dataset, experiments, and results to
provide insights that can guide practitioners and researchers in paraphrase identification.</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>2. Overview of different methods to make paraphrase identification</title>
      <p>Various approaches have been explored to tackle this challenge, from traditional methods to current
state-of-the-art deep learning techniques.</p>
      <p>This section provides an overview of different approaches to paraphrase detection, focusing on the
state-of-the-art methods that have garnered considerable attention and achieved remarkable results.</p>
      <p>
        1. Traditional Rule-Based Methods: Traditional paraphrase detection approaches rely on
handcrafted rules, linguistic patterns, and syntactic analysis. These methods often use lexical and
semantic features [
        <xref ref-type="bibr" rid="ref1 ref2 ref3">1, 2, 3</xref>
        ] to identify paraphrases. While these approaches are interpretable and can
work well in some instances, they may struggle with the complexities and nuances of natural language.
      </p>
      <p>
        2. Machine Learning-Based Methods: Machine learning techniques, such as Support Vector
Machines, Random Forests, and logistic regression, have been applied to paraphrase identification.
These methods involve feature engineering, where various linguistic and statistical features are
extracted from text pairs to train classifiers [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. While effective to some extent, these approaches may
require substantial feature engineering efforts and may not capture higher-level semantic relationships.
      </p>
      <p>
        3. Transformer-Based Models: Transformer-based models, such as BERT [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] (Bidirectional
Encoder Representations from Transformers). Its variants have revolutionised paraphrase detection.
These models are pre-trained on large text corpora and can capture contextual information effectively.
Finetuning these models on paraphrase identification datasets has consistently achieved state-of-the-art
results. BERT's ability to understand the context and nuances of language has made it a go-to choice
for many researchers.
      </p>
      <p>Among the diverse approaches to paraphrase detection, Transformer-based models, mainly variants
of BERT, have demonstrated remarkable performance and have become the de facto state-of-the-art
methods. These models, pre-trained on vast text corpora, capture local and global contextual
information, allowing them to discern fine-grained semantic relationships between sentences.
Additionally, advancements in finetuning techniques, data augmentation, and larger model architectures
have further boosted their performance.</p>
      <p>
        BERT-based models have achieved top-tier results in benchmark paraphrase identification datasets
such as the Microsoft Research Paraphrase Corpus (MRPC) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] and the Quora Question Pairs
dataset [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Their ability to handle diverse linguistic expressions, syntactic variations, and
domainspecific language makes them versatile and applicable to various paraphrase-detection tasks.
      </p>
      <p>In the subsequent section of this paper, we will delve into a comprehensive comparison of
Transformer-based deep learning methods, including BERT and its variants, to evaluate their
performance and show their suitability for different paraphrase identification scenarios. We will also
explore techniques for finetuning these models to achieve state-of-the-art results in paraphrase
detection.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Transformer models overview</title>
      <p>We selected a few different transformer models for the analysis. In this section, we want to go over
each of them and present ideas behind each. We will start from the original transformer model, and all
the rest will be listed alphabetically.</p>
      <p>
         BERT [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] short for "Bidirectional Encoder Representations from Transformers". BERT focuses
on pre-training deep bidirectional representations by considering both left and right context across all
layers. It can be finetuned with a single additional output layer and do question answering or language
inference without any task-specific modifications to its architecture. Details: it uses absolute position
embeddings; it was trained with masked language modeling and next sentence prediction objectives.
      </p>
      <p>
         ALBERT [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] short for "A lite BERT" was created to overcome the challenges of increasing
model size in pre-training natural language representations, including GPU/TPU memory limitations,
longer training times, and potential model degradation. To tackle these issues, the authors proposed two
parameter-reduction techniques to reduce memory usage and speed up BERT training. Details: it uses
absolute position embeddings and repeating layers, resulting in a small memory footprint (but compute
costs remain the same).
      </p>
      <p>
         DistilBERT [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] short for “A distilled version of BERT”. This model is trying to minimize params
of large-scale pre-trained models like BERT. Their approach is different from previous research,
because they tried to apply the distillation techniques [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] during the pre-training phase. As a result,
they reduced the size by 40% while retaining 97% of its language understanding capabilities. Details:
the authors introduce a triple loss function that combines language modelling, distillation, and
cosinedistance losses; it has been trained to predict the exact probabilities of the larger model.
      </p>
      <p>
         BART [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] short for “Bidirectional and Auto-Regressive Transformer”. It is a
sequence-tosequence model that uses a Transformer-based architecture, like BERT, for encoding but also includes
a left-to-right decoder like GPT. The model was learning intending to reconstruct artificially corrupted
text. It is capable of both text generation and comprehension tasks. Details: it uses absolute position
embeddings.
      </p>
      <p>
         ELECTRA [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] short for "Efficiently Learning an Encoder that Classifies Token Replacements
Accurately". This model uses a novel pre-training approach called "replaced token detection" instead
of the masked language modelling used in BERT. This new pre-training task is efficient since it operates
over all input tokens rather than just the masked subset. The efficiency gains are exceptionally
prominent for smaller models, with an example of a model trained on one GPU for 4 days outperforming
previous on the GLUE [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] natural language understanding benchmark. Details: no changes were made
to the underlying model BERT (ELECTRA is the pre-training approach); a small masked language
model was used to pretrain the model.
      </p>
      <p>
         MobileBERT [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] is a bidirectional transformer based on the BERT model but compressed and
accelerated. The main idea behind this model is to reduce the size of big models to make it possible to
use them on mobile devices. The resulting model is task-agnostic like the original BERT, allowing it to
be applied to various NLP tasks through finetuning. Details: it uses absolute position embeddings; the
teacher model was created on the base of the BERT_LARGE model, and knowledge transferring was
applied.
      </p>
      <p>
         RoBERTa [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] short for "Robustly optimised BERT approach". This model explores how the
performance of the original BERT can be optimised using more data and longer training times. It also
proposes to change the training objective - remove the next sentence prediction part. Their improved
pre-training procedure achieved state-of-the-art results even without multi-task finetuning. This
approach also highlights the importance of hyperparameter selection and its significant impact on
performance. Details: RoBERTa has the same architecture as BERT but uses a different pre-training
scheme.
      </p>
      <p>
         I-BERT [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] short for "Integer BERT". This model addresses the resource-intensive nature of
Transformer-based models like BERT and RoBERTa by introducing a novel quantisation approach. It
is based on memory footprint reduction via lower bit precision representation [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. The authors focus
on integer-only quantisation throughout the inference process, eliminating the need for floating-point
arithmetic. This approach relies on lightweight integer-only approximations for nonlinear operations
like GELU, SoftMax, and Layer Normalization. As a result, I-BERT achieves similar or slightly higher
accuracy than full-precision models. Details: I-BERT has the same architecture model as BERT.
      </p>
      <p>
         DeBERTa [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] short for "Decoding-enhanced BERT with disentangled attention". The model
builds upon RoBERTa and incorporates two innovative techniques. First, it employs a disentangled
attention mechanism where each word is represented by two vectors, one encoding its content and the
other its position. Attention weights between words are computed using disentangled matrices based on
content and relative positions. Second, it uses an enhanced mask decoder to predict masked tokens
during pre-training. Details: the DeBERTa model with 1.5 billion parameters surpasses the human
performance on the SuperGLUE [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] benchmark.
      </p>
      <p>
         SqueezeBERT [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ] is a model that is inspired by SqueezeNet [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ] - computer vision model.
SqueezeBERT is a bidirectional transformer model similar to BERT. Authors try to apply techniques
usually used in computer vision models to minimise the model's size and improve its speed. Details:
the critical distinction between SqueezeBERT and BERT lies in the architectural choice of using
grouped convolutions instead of fully connected layers for the Q, K, V, and FFN layers.
      </p>
      <p>All models described in this section will be analysed more deeply in the experiments section by their
size, structure and performance on the paraphrase identification task.</p>
      <p>Key metrics that will be used to compare models:
 Accuracy and F1 score.
 Size of the model.</p>
      <p> Number of sentences that the model can process in a second.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Dataset</title>
      <p>
        Quite a few different corpora are commonly used for the paraphrase identification task. We will use
Microsoft Research Paraphrase Corpus (MSRPC) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]: is a corpus containing pairs of sentences for
which it was manually indicated whether they are paraphrases. Dolan and Brockett created it at
Microsoft Research, and has become one of the most common datasets for this task. It contains 5,801
sentence pairs taken from various sources, including news articles, encyclopaedia articles, and web
pages. Multiple annotators were used for each pair of sentences to ensure the quality of the labels, and
disagreements were resolved by majority vote.
      </p>
    </sec>
    <sec id="sec-5">
      <title>5. Experiments</title>
      <p>
        The main goal of this paper is to compare different models and their effectiveness to identify
paraphrases. All finetuning for models described in this section was done using NVIDIA Tesla T4 with
16 GB GPU RAM and 50 GB System RAM using the Google Collab [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ] platform. Given restrictions
in computational resources, we limited amount of all models and used this experimental set-up:
 Each model was finetuned only 5 epochs.
 We used generic global parameters for finetuning for all models.
      </p>
      <p> Each model was finetuned five times, and we reported the mean and standard deviation. It was
done to show how stable the model training is.</p>
      <p>It is important to note that some of the models in the original papers achieved better results than
reported here. There are a couple of reasons why this happened:</p>
      <p> Each model has different checkpoints depending on the aimed size of the final model and the
vocabulary/training dataset used. In most cases, the best results were shown using large models we do
not use because of computational restrictions.</p>
      <p> Given a model, one can always try improving the results using different hyperparameter
optimisation techniques. We did not try to do such optimisation because of the high cost.</p>
      <p>
        We used Hugging Face [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ] library to access model checkpoints and to finetune those models on
MRPC [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] dataset. All the models listed above are built using transformer architecture, but they have
different configurations in terms of size, layers, size of the embeddings and vocabulary size.
      </p>
      <p>We can group models based on their size into two groups – small and regular (we do not want to use
the "large" word since we do not explore large transformer models in this paper due to their enormous
size). Small models: ALBERT base, DistilBERT, Google Electra small discriminator, Google
MobileBERT, SqueezeBERT. Regular models: BERT base, Facebook BART base, Google Electra base
discriminator, I-BERT RoBERTa base, Microsoft DeBERTa base, RoBERTa base.</p>
      <sec id="sec-5-1">
        <title>As mentioned above, all models were finetuned with these generic params:</title>
        <p> Batch size = 32.
 Fine tuning for 5 epochs.
 Learning rate = 0.00002.
 Weight decay = 0.01.</p>
        <p> AdamW (PyTorch) optimisation strategy.</p>
        <p>We can observe that for small models, ALBERT has the best accuracy and F1 score performance. It
is fascinating because compared to other small models, it has the smallest size – only 11M params. At
the same time, ALBERT is the slowest one, which is expected because the authors of ALBERT tried to
optimise the size and training time, not the speed.</p>
        <p> The fastest model is Google Electra small discriminator, compared to ALBERT, which has
pretty good results, only two percentage points lower, with more than x10 speed.</p>
        <p> Let us look at regular models' performance.</p>
        <p> We can observe that the Microsoft DeBERTa base has the best accuracy and F1 score for
regular-size models. This model is one of the biggest – 139M params. At the same time, the Microsoft
DeBERTa base is one of the slowest ones.</p>
        <p> The fastest model is the I-BERT RoBERTa base, but it is fair to say that all regular-size
models perform approximately the same in terms of samples per second.
 It is important to note that bigger models with the same architecture give better results – in
this case, the Google Electra base model is better than the smaller version by four percentage points.
The smaller model has almost eight times fewer parameters than the regular one but is five times
faster.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Small Experiment with Large Language Models</title>
      <p>Large language models are powerful deep learning algorithms for various natural language
processing tasks. They are based on transformer models and trained on massive datasets, enabling them
to understand, translate, predict, or generate text and perform tasks beyond language understanding.
These models have numerous parameters that serve as their knowledge base.</p>
      <p>
        While those language models, in most cases, were created for text generation purposes, it is possible
to use them to classify sentences. We wanted to explore whether LLM models can be used for
paraphrase detection and how complicated it is to finetune them. We selected the Llama 2 [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ] model
released in July 2023 as an excellent example of LLM that produces state-of-the-art results on most
benchmarks. It is important to note that this model is optimised for dialogue and text generation use
cases. Llama 2 is available as a range of large language models (LLMs) with parameters ranging from
7 billion to 70 billion. For this analysis, we selected the model with 7 billion parameters.
      </p>
      <p>Training and finetuning LLMs are technically and computationally challenging because of their
colossal size. To overcome this issue, a few approaches were developed.</p>
      <p>
        We used the Parameter-Efficient Finetuning (PEFT) [
        <xref ref-type="bibr" rid="ref25">25</xref>
        ] library for Llama 2 finetuning. We finetune
only a few (extra) model parameters using this library, significantly decreasing computational and
storage costs. This library supports a few methods of finetuning. We selected LoRa [
        <xref ref-type="bibr" rid="ref26">26</xref>
        ] because of its
LLM application. The main advantage of LoRa is that it does not try to finetune the original model - it
keeps pre-trained weights frozen. Instead, it creates two small matrices containing weight updates using
low-rank decomposition. The finetuning task becomes a task to build those two small matrices.
      </p>
      <p>Llama 2 finetuning details:
 Linear learning rate of 2 × 10−5
 Weight decay of 0.1
 Batch size of 16</p>
      <p>LoRa Config:
 Task type – SEQ_CLS
 r = 16 (the rank of the update matrices, expressed in int. Lower rank results in smaller update
matrices with fewer trainable parameters.)
 Lora alpha = 16
 Lora dropout = 0.1
 Bias = "all"</p>
      <p>To finetune the model on the MRPC dataset, we used a single NVIDIA A100 (40GB - Google
Collab).</p>
      <p>We finetuned the model for 40 epochs, but from the validation accuracy graph, it is clear that the
increase in accuracy during the last 20 is very minor.</p>
      <p>To finetune Llama 2, we used a different, more powerful GPU, so we will not include a comparison
of samples per second because it would not make sense.</p>
    </sec>
    <sec id="sec-7">
      <title>7. Conclusions</title>
      <p>Test Accuracy
84.52</p>
      <p>Test F1 score
88.48</p>
      <p>In this paper, we tried to analyse the state-of-the-art Transformer models. Almost all of them have
the same bidirectional structure, and they all build on the BERT model foundation.</p>
      <p>The field of model application is one of the main criteria for model selection. One should investigate
smaller Transformer models like ALBERT or SqueezeBERT to perform relatively well on small
devices. It should be used if accuracy is more critical - regular or large models will be your choice.</p>
      <p>Large Language Models can also be used to detect paraphrases, but the cost and complexity of their
finetuning are significantly larger compared with regular BERT-based models. We could not achieve
better accuracy with the finetuned Llama 2 model. As a result, further improvements to the model
performance can be made by exploring large models with even more parameters (Llama 2 70B model,
for example) or including more sentence-aware context into Transformer architecture. A Good example
is a DeBERTa model that tries to build a separate representation of a word and its position.</p>
    </sec>
    <sec id="sec-8">
      <title>8. References</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>C.</given-names>
            <surname>Fellbaum</surname>
          </string-name>
          , WordNet: An Electronic Lexical Database / Christiane Fellbaum, The MIT Press,
          <year>1998</year>
          . doi:
          <volume>10</volume>
          .7551/mitpress/7287.001.0001.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>P.</given-names>
            <surname>W. F. Thomas K Landauer and D. Laham</surname>
          </string-name>
          , “
          <article-title>An introduction to latent semantic analysis</article-title>
          ,
          <source>” Discourse Processes</source>
          , vol.
          <volume>25</volume>
          , no.
          <issue>2-3</issue>
          , pp.
          <fpage>259</fpage>
          -
          <lpage>284</lpage>
          ,
          <year>1998</year>
          , doi:10.1080/01638539809545028.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>C.</given-names>
            <surname>Boonthum</surname>
          </string-name>
          , “iSTART: Paraphrase Recognition,”
          <source>in Proceedings of the ACL Student Research Workshop</source>
          , Jul.
          <year>2004</year>
          , pp.
          <fpage>31</fpage>
          -
          <lpage>36</lpage>
          . URL: https://aclanthology.org/P04-2006.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>N.</given-names>
            <surname>Madnani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Tetreault</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Chodorow</surname>
          </string-name>
          , “
          <article-title>Re-examining Machine Translation Metrics for Paraphrase Identification,” in Proceedings of the 2012 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies</article-title>
          , Jun.
          <year>2012</year>
          , pp.
          <fpage>182</fpage>
          -
          <lpage>190</lpage>
          . [Online]. Available: https://aclanthology.org/N12-1019.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <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>
          , and
          <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>
          . URL: https://arxiv.org/abs/
          <year>1810</year>
          .04805. doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>1810</year>
          .
          <volume>04805</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>B.</given-names>
            <surname>Dolan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Quirk</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C.</given-names>
            <surname>Brockett</surname>
          </string-name>
          ,
          <article-title>"Unsupervised Construction of Large Paraphrase Corpora: Exploiting Massively Parallel News Sources,"</article-title>
          <source>in COLING 2004: Proceedings of the 20th International Conference on Computational Linguistics</source>
          , Aug.
          <year>2004</year>
          , pp.
          <fpage>350</fpage>
          -
          <lpage>356</lpage>
          . URL: https://aclanthology.org/C04-1051.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Quora</given-names>
            <surname>Duplicate Questions | Kaggle</surname>
          </string-name>
          ,
          <year>2023</year>
          . URL: https://www.kaggle.com/aymenmouelhi/quoraduplicate-questions.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Lan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Goodman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Gimpel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Sharma</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Soricut</surname>
          </string-name>
          ,
          <string-name>
            <surname>ALBERT:</surname>
          </string-name>
          <article-title>A Lite BERT for Self-supervised Learning of Language Representations</article-title>
          .
          <year>2020</year>
          . URL: https://arxiv.org/abs/
          <year>1909</year>
          .11942. doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>1909</year>
          .
          <volume>11942</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>V.</given-names>
            <surname>Sanh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Debut</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Chaumond</surname>
          </string-name>
          , and T. Wolf,
          <article-title>DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter</article-title>
          .
          <year>2020</year>
          . URL: https://arxiv.org/abs/
          <year>1910</year>
          .01108. doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>1910</year>
          .
          <volume>01108</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>G.</given-names>
            <surname>Hinton</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Vinyals</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Dean</surname>
          </string-name>
          ,
          <article-title>Distilling the Knowledge in a Neural Network</article-title>
          .
          <year>2015</year>
          . URL: https://arxiv.org/abs/1503.02531. doi:
          <volume>10</volume>
          .48550/arXiv.1503.02531.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>M.</given-names>
            <surname>Lewis</surname>
          </string-name>
          et al.,
          <article-title>BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and</article-title>
          <string-name>
            <surname>Comprehension.</surname>
          </string-name>
          <year>2019</year>
          . URL: https://arxiv.org/abs/
          <year>1910</year>
          .13461. doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>1910</year>
          .
          <volume>13461</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>K.</given-names>
            <surname>Clark</surname>
          </string-name>
          , M.-
          <string-name>
            <given-names>T.</given-names>
            <surname>Luong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q. V.</given-names>
            <surname>Le</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C. D.</given-names>
            <surname>Manning</surname>
          </string-name>
          , ELECTRA:
          <article-title>Pre-training Text Encoders as Discriminators Rather Than Generators</article-title>
          .
          <year>2020</year>
          . URL: https://arxiv.org/abs/
          <year>2003</year>
          .10555. doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>2003</year>
          .
          <volume>10555</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>A.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Michael</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Hill</surname>
          </string-name>
          ,
          <string-name>
            <surname>O. Levy</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Bowman</surname>
          </string-name>
          , “
          <article-title>GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding</article-title>
          ,”
          <source>in Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, Nov</source>
          .
          <year>2018</year>
          , pp.
          <fpage>353</fpage>
          -
          <lpage>355</lpage>
          . doi:
          <volume>10</volume>
          .18653/v1/
          <fpage>W18</fpage>
          -5446.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Song</surname>
          </string-name>
          , R. Liu,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Yang</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <article-title>MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices</article-title>
          .
          <year>2020</year>
          . URL: https://arxiv.org/abs/
          <year>2004</year>
          .02984. doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>2004</year>
          .
          <volume>02984</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          et al.,
          <source>RoBERTa: A Robustly Optimized BERT Pretraining Approach</source>
          .
          <year>2019</year>
          . URL: https://arxiv.org/abs/
          <year>1907</year>
          .11692. doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>1907</year>
          .
          <volume>11692</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>S.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gholami</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. W.</given-names>
            <surname>Mahoney</surname>
          </string-name>
          , and
          <string-name>
            <given-names>K.</given-names>
            <surname>Keutzer</surname>
          </string-name>
          ,
          <string-name>
            <surname>I-BERT</surname>
          </string-name>
          :
          <article-title>Integer-only BERT Quantization</article-title>
          .
          <year>2021</year>
          . URL: https://arxiv.org/abs/2101.01321. doi:
          <volume>10</volume>
          .48550/arXiv.2101.01321.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <surname>Dong</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yao</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gholami</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mahoney</surname>
            ,
            <given-names>M. W.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Keutzer</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <article-title>HAWQ: Hessian aware quantisation of neural networks with mixed-precision</article-title>
          .
          <source>In Proceedings of the IEEE International Conference on Computer Vision</source>
          , pp.
          <fpage>293</fpage>
          -
          <lpage>302</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>P.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Gao</surname>
          </string-name>
          , and W. Chen,
          <article-title>DeBERTa: Decoding-enhanced BERT with Disentangled Attention</article-title>
          .
          <year>2021</year>
          . URL: https://arxiv.org/abs/
          <year>2006</year>
          .03654. doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>2006</year>
          .
          <volume>03654</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>A.</given-names>
            <surname>Wang</surname>
          </string-name>
          et al.,
          <source>SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems</source>
          .
          <year>2020</year>
          . URL: https://arxiv.org/abs/
          <year>1905</year>
          .00537. doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>1905</year>
          .00537
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>F. N.</given-names>
            <surname>Iandola</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. E.</given-names>
            <surname>Shaw</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Krishna</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          K. W. Keutzer,
          <article-title>SqueezeBERT: What can computer vision teach NLP about efficient neural networks? 2020</article-title>
          . URL: https://arxiv.org/abs/
          <year>2006</year>
          .11316. doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>2006</year>
          .
          <volume>11316</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>F. N.</given-names>
            <surname>Iandola</surname>
          </string-name>
          , S. Han,
          <string-name>
            <given-names>M. W.</given-names>
            <surname>Moskewicz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Ashraf</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. J.</given-names>
            <surname>Dally</surname>
          </string-name>
          , and
          <string-name>
            <given-names>K.</given-names>
            <surname>Keutzer</surname>
          </string-name>
          ,
          <article-title>SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and &lt;0.5MB model size</article-title>
          .
          <year>2016</year>
          . URL: https://arxiv.org/abs/1602.07360. doi:
          <volume>10</volume>
          .48550/arXiv.1602.07360.
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>E.</given-names>
            <surname>Bisong</surname>
          </string-name>
          ,
          <article-title>"Google colaboratory" in Building Machine Learning</article-title>
          and
          <source>Deep Learning Models on Google Cloud Platform</source>
          , Berkeley, CA, USA:Apress, pp.
          <fpage>59</fpage>
          -
          <lpage>64</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>T.</given-names>
            <surname>Wolf</surname>
          </string-name>
          et al.,
          <article-title>"Transformers: State-of-the-Art Natural Language Processing,"</article-title>
          <source>in Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations</source>
          , Oct.
          <year>2020</year>
          , pp.
          <fpage>38</fpage>
          -
          <lpage>45</lpage>
          . URL: https://www.aclweb.org/anthology/2020.emnlpdemos.6.
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>H.</given-names>
            <surname>Touvron</surname>
          </string-name>
          et al.,
          <source>Llama</source>
          <volume>2</volume>
          :
          <string-name>
            <given-names>Open</given-names>
            <surname>Foundation</surname>
          </string-name>
          and Finetuned Chat Models.
          <year>2023</year>
          . URL: https://arxiv.org/pdf/2307.09288.pdf. doi:
          <volume>10</volume>
          .48550/arXiv.2307.09288.
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25] PEFT:
          <article-title>State-of-the-art Parameter-Efficient Finetuning, version 0</article-title>
          .4,
          <year>2023</year>
          . URL:https://github.com/huggingface/peft.
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>E. J.</given-names>
            <surname>Hu</surname>
          </string-name>
          et al.,
          <source>LoRA: Low-Rank Adaptation of Large Language Models</source>
          .
          <year>2021</year>
          . URL: https://arxiv.org/abs/2106.09685. doi:
          <volume>10</volume>
          .48550/arXiv.2106.09685.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>