<!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>RAG Meets Detox: Enhancing Text Detoxification Using Open Large Language Models with Retrieval Augmented Generation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Erik Řehulka</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marek Šuppa</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Cisco Systems</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Comenius University</institution>
          ,
          <addr-line>Bratislava</addr-line>
          ,
          <country country="SK">Slovakia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <abstract>
        <p>In this work we present our solution at the Multilingual Text Detoxification 2024 task, whose objective is to take toxic text and convert into one that conveys the same meaning without containing any toxicity. Our approach utilizes open Large Language Models extended with dynamic prompt creation combined with Retrieval Augmented Generation. The evaluation results show that despite its simplicity, our method has the potential to provide competitive results, as evidenced by both the automatic and manual evaluation executed by the task organizers. Overall, our approach ranked 5th in the manual evaluation, with our best-performing language, German, even surpassing the human reference.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;PAN 2024</kwd>
        <kwd>Retrieval Augmented Generation</kwd>
        <kwd>text detoxification</kwd>
        <kwd>Llama3</kwd>
        <kwd>LLM</kwd>
        <kwd>toxic text</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>The task of identification of toxicity in texts is an active area of research. Social networks are trying to
address this problem by simply blocking such texts. A more interesting and efective approach might
be to automatically rewrite these texts, so that they are ideally no longer toxic, but their meaning is
kept intact. This processed is denoted as detoxification .</p>
      <p>The Multilingual Text Detoxification (TextDetox) 2024 task aims to create and explore such methods.
The participants are provided with a dataset of toxic texts in several languages from all over the globe,
which then should be detoxified. The goal is to find a method, which after evaluation provides texts
which are neutral, but their meaning is the same as the toxic text on the input.</p>
      <p>We explore how a data scientist with only an API access to a Large Language Model (LLM), in our
case Llama3 can develop efective solutions for this task. We did not fine-tune or alter in any way, the
only approach was to creatively adjust prompts given to the LLM, so that its outputs will get highest
score possible. We have developed several methods, from the simple ones like zero shot prompting, to
utilizing existing datasets of text detoxifications and generating these prompts dynamically considering
the input text to be detoxified.</p>
      <p>For this we have used external tools like vector databases containing pairs of toxic texts and their
neutral counterparts, which were queried using embedding of the toxic texts. We have found this
method to be competitive and despite its simplicity it achieved high ranking in this task.</p>
      <p>We submitted our results under the usernames erehulka and mareksuppa to the CodaLab portal.
Our best-performing languages, in comparison to other participants’ submissions, were German and
Chinese. Notably, our score for German even surpassed the human references in the manual evaluation.
Overall, our approach ranked 5th in the manual evaluation. A more detailed discussion of our results is
provided in Section 6.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        Most of the work in this area has been done mainly for the English and Russian language. The first study
on automatic detoxification of Russian language was introduced in 2021 [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], where two models were
suggested: a BERT-based approach for local corrections and a supervised approach based on a pretrained
GPT-2 model. Another contribution presented two unsupervised methods for text detoxification [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
The first method combined style-conditional language models with paraphrasing models to perform
style transfer, while the second method used BERT to replace toxic words with non-ofensive synonyms.
      </p>
      <p>
        In the realm of parallel data collection for the task of detoxification, a ParaDetox pipeline was
introduced [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. It collected non-toxic paraphrases of toxic sentences. This work provided new parallel
corpora for training detoxification models, demonstrating that models trained on this data outperformed
existing unsupervised approaches by a significant margin.
      </p>
      <p>
        The challenges of multilingual and cross-lingual detoxification were explored by investigating the
behavior of large multilingual models [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. They found these models can do multilingual style transfer,
but it is not possible to do cross-lingual detoxification without fine-tuning.
      </p>
      <p>
        The RUSSE-2022 shared task [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] was a competition similar to this one, focused on detoxification
methods for Russian, featuring parallel training data and manual evaluation. The study found that the
best performance for the Russian language was achieved using the ruT5 model, which was fine-tuned
on parallel data. In this context, parallel data refers to each toxic record having a corresponding neutral
counterpart.
      </p>
      <p>
        A study has been made in the area of evaluating the quality of the detoxification process, suggesting
ChrF and BertScore metrics can be used for this task [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The ChrF measure is used even in this task for
the computation of the similarity of meaning between the original toxic text and its detoxified version.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Datasets</title>
      <p>In our work we utilized two datasets, both published by the competition organizers. Both of these
datasets are available on the HuggingFace platform.</p>
      <p>
        The first dataset is textdetox/multilingual_toxic_lexicon [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], which contains a set of toxic
words for each of the input languages. The number of toxic words for each language difered, with the
exact numbers depicted in Table 1. As Table 1 shows, these numbers difer a lot between the languages.
For example for languages like Amharic, Hindi or even German there are only a couple hundreds of
the records, and for the Russian language there is around 141,000 records. These words were used as a
lexicon of toxic words, which were passed to some of the prompts, as examples of words which must
not be present in the resulting detoxified text.
      </p>
      <p>
        The second dataset is textdetox/multilingual_paradetox [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], which was published by the
organizers after the development phase has ended and contains both the original as well as detoxified
inputs for the development phase. We have used this dataset to dynamically create the prompt using
Retrieval Augmented Generation (RAG), more of which is discussed in Section 4.4. For each language
the dataset contained exactly 400 records.
      </p>
    </sec>
    <sec id="sec-4">
      <title>4. System Description</title>
      <p>On input our system receives a toxic text to be detoxified, along with an abbreviation of the language
of the input. All of the languages present on the input with their respective abbreviations can also be
seen in Table 1.</p>
      <p>Our approach was to create a prompt which then would be passed to the Llama3 model, such that its
result would be the detoxified text. Here we present the diferent methods we used, starting from a
simple zero-shot prompting, and finally using retrieval augmented generation with a simple lexicon.</p>
      <sec id="sec-4-1">
        <title>4.1. Zero Shot</title>
        <p>In the first phase we explored how eficient is zero-shot approach with just the instructions on how to
detoxify the input, with the input at the end. The prompt can be seen in Appendix A and only specifies
the task of detoxification. When it comes to diferent languages, there was no specification on what is
the language, just that the result must be in the same language as the input.</p>
        <p>With just this knowledge the model outputs were sometimes very diferent from the input, because
it tried to rewrite the whole sentence, to keep the meaning and not be toxic. However the specification
of toxic text is very broad, so we needed to somehow specify how the output should look for given
input, so it will just rewrite the toxic parts and ideally keep the rest of the text as it is. Thus we have
moved to providing examples of input-output pairs for the model.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Few Shot with language specification and examples</title>
        <p>Next we added some examples mainly in English, and also in other languages to the prompt, along
with specifying what is the language of the input. The prompt can be seen in Appendix B, with the
{language} filled in from Table 1. This has proved to obtain better results in languages other than
English.</p>
        <p>The English examples during the development phase were actually retrieved from the s-nlp/paradetox
dataset on the HuggingFace platform, which was published before the competition and mentioned in the
competition guidelines. Because there was such dataset only for English and Russian (s-nlp/ru_paradetox),
the examples for other languages were actually used from the output of our model.</p>
      </sec>
      <sec id="sec-4-3">
        <title>4.3. Separate prompts for each language</title>
        <p>We have also experimented with creating a separate prompt for each language, with the examples only
from the language. We tried to even translate the whole prompt from English to the given language.
However this has not proved to be a great improvement, for some languages as Hindi or Amharic it was
even worse than the previous approaches, so we have dropped this idea, and for the most languages we
have created the prompt in English, with only the examples of input and output being in the target
language.</p>
        <p>Since these methods utilized no outer knowledge not known to the model, we needed to somehow fill
in the examples from real data, which contained pairs of toxic text, and its detoxified version for each
language. This dataset has been released after the development phase, containing 400 such examples for
each language. With this we have moved to utilizing Retrieval-Augmented Generation and generating
the examples such that they will be most similar to the text we are actually trying to detoxify.</p>
      </sec>
      <sec id="sec-4-4">
        <title>4.4. Retrieval Augmented Generation (RAG)</title>
        <p>RAG, or Retrieval-Augmented Generation, enhances the capabilities of large language models (LLMs)
by incorporating references from knowledge bases external to their training data. These LLMs are
trained on extensive datasets and utilize billions of parameters to perform tasks such as answering
queries, language translation, and text completion. The main diference from model fine-tuning is that
ifne-tuning involves adjusting the parameters of a pretrained language model to adapt it to a specific
task or domain. This process typically involves training the model on a smaller, task-specific dataset to
refine its understanding and performance in that particular area. Fine-tuning essentially tweaks the
existing parameters of the model to specialize its capabilities.</p>
        <p>On the other hand, RAG incorporates references from external knowledge bases to enhance the
output of a language model without retraining it. Instead of modifying the model’s parameters, RAG
augments its generation process by retrieving relevant information from authoritative sources and
iflls the prompt by adding this retrieved information. This approach is not only cost-efective but also
ensures that LLM-generated content maintains relevance, accuracy, and utility across diverse contexts.</p>
        <p>For this reason, we have chosen to explore the performance of RAG in this specific task, so we won’t
have to fine-tune existing models, but use them in their current state.</p>
        <sec id="sec-4-4-1">
          <title>4.4.1. Prompt Template</title>
          <p>The complete prompt is available in Appendix C. It consists of several elements, most of which are
dynamically generated according to the specific input. However, the prefix, which directs the LLM to
act as a text detoxifier remains consistent across all prompts:
You are a text detoxifier. On input you receive a text which may be toxic or
harmful. Your task is to rewrite this text in a way that does not
contain any toxicity or harmful words, while preserving the original
content and context.</p>
          <p>The Output contains only the detoxified text and nothing else like notes or
additional information. You do not add any more context to the resulting
text, which is not in the original text.</p>
          <p>Do not rewrite the original text too much, just either remove the toxic part
completely, or replace it with some non-toxic words while preserving
the meaning and context.</p>
          <p>The language of the input is {language} and the language of the response
must be the same.</p>
          <p>The language (in the prompt as {language}) is filled in based on the language of the input, as
mentioned before.</p>
          <p>The most of the remaining prompt is generated based on the specific input to be detoxified.</p>
        </sec>
        <sec id="sec-4-4-2">
          <title>4.4.2. Retrieval augmentation</title>
          <p>## Toxic words
In the used prompt, there is also a space for some examples, mainly in the following part:
The input text may contain offensive or harmful words. You should either
remove them or replace them with non-offensive words.</p>
          <p>Here are some examples of toxic words you may find in the input text:</p>
          <p>As the listing shows, the prompt contains parts denoted as ## Toxic words and ## Examples,
which contain a number of examples that are filled in based on the input text. For this we have used the
method of Retrieval Augmentation, where we get a number of examples for both parts relevant for the
input text.</p>
          <p>For the ## Toxic words part we use the multilingual_toxic_lexicon dataset, from which
we get all of the words from the input text present in the lexicon for the input language, along with five
random words from this dataset, to make sure that there will always be at least five examples of toxic
words. For the selection of words present in the input we have simply filtered those words, which are
exactly present in the input text, without creating an index or otherwise. Each of this word is added to
the prompt in format - {word}\n.</p>
          <p>For the second part with ## Examples we use RAG. We utilize the Chroma vector database 1 to
create an index of embeddings from the mentioned textdetox/multilingual_paradetox dataset.
We generate the index using the LaBSE transformer model, since this model has been used by the
organizers in evaluating the submissions. Each record from the dataset is saved in the collection with
following fields:
• embeddings - embedded toxic sentence,
• documents - unmodified toxic sentence,
• metadatas - neutral (detoxified) sentence for that row, along with the language of the input,
• ids - necessary id for the database.</p>
          <p>Instead of creating a separate index for each of the languages, we have created only one and then
retrieve data from the index by specifying which language we want to retrieve. At inference time
the same embedding model on which the model was created provides embedding of the sample being
evaluated and this embedding is used to query the database, which will return k closest items from its
index for the same language as the sample. We have set the value of k to 10. After getting these closest
items, we add them to the prompt, in format:</p>
          <p>Input: {text}\nOutput: {metadata[’neutral_sentence’]}\n\n,
with text being the original toxic sentence and neutral_sentence being detoxified.</p>
        </sec>
        <sec id="sec-4-4-3">
          <title>4.4.3. Delete baseline</title>
          <p>For the Amharic language, this approach has not proved to be ideal. The responses of the Llama3 model
for the prompts took much longer than for the other languages, and the resulting score was much lower
compared to other participant’s submissions. Because of this, we have used for this specific language
an approach similar to the one used in delete baseline, that is just deleting toxic words from the input
and keeping the rest as is.</p>
          <p>For this we have removed all words from the input, which were present in the toxic words lexicon
dataset for the Amharic language, and returned this modification as the detoxified text. Nothing else
has been done on this particular language, thus it has not been passed through the same pipeline as the
one mentioned in this section.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Output cleanup</title>
      <p>Since the model not always outputs only the detoxified texts, we needed to cleanup the result, so that
only the detoxified text would be present.</p>
      <p>The model sometimes included a “Note“ saying something about the detoxified text, or it would
prefix the result with “Translation:“ or “Output“. We have removed these texts completely, and also for
the notes we even removed all text which was after the “Note“ keyword. This is because the note was
always at the end of the model output, so we have not lost any information this way. This has been
present mainly in the first approaches like zero-shot, for the last part with RAG we have not used this.</p>
      <p>Also the model sometimes responded with the text in quotes, so in that case we have removed the
quotes from beginning and end of the response. For several languages the format of the quotes was
diferent, so we remove these types of quotes: ", “, «, ’.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Results and Discussion</title>
      <p>In this section we describe the main results obtained as part of the Task, in which the outputs of the
submitted systems were evaluated both automatically as well as by manually labeling a subsample of
100 texts per language via crowdsourcing.</p>
      <p>
        To evaluate the results, three criteria are assessed:
1. The absence of ofensive content or toxic language in the text. For this purpose, a specifically
ifne-tuned xlm-roberta-large model for toxicity binary classification task is used [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
2. The preservation of the original meaning in the detoxified text. This is quantified by calculating
the cosine similarity between LaBSE embeddings.
3. The grammatical correctness of the detoxified text. This is evaluated using the ChrF metric [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
      <p>Each of these metrics ranges from 0 to 1. To derive a composite metric, the final score for a given
result is computed as the product of all three metrics, referred to as the joint metric. Subsequently,
the scores for individual languages are calculated as the mean of all scores for that language, and the
overall score is obtained by averaging the scores across all languages.</p>
      <p>The results of the automatic evaluation can be seen in Table 2. In it, we outline all of the system
configurations in order to show their impact on the final score. The very first line describes the
results obtained by the "duplicate" baseline, which was included to highlight and contrast the baseline
performance with the presented models. In general, we can conclude that all of the proposed models
managed to beat the baseline when considering the average performance across all languages, in some
cases by a significant margin. The zero-shot approach, denoted as ”LLama 3” in Table 2 obtained average
performance of 0.380. Extending it with Retrieval Augmented Generation (RAG) has improved the
average performance to 0.403. We then noticed that when retrieving the examples to include inside the
prompt, which is an important part of the RAG pipeline, the resulting examples might be in a language
diferent from the output language. This has the potential of confusing the model during the generation
process and hence we limited the examples to only include those that are in the output language (” +
select”).</p>
      <p>
        We further hypothesized that instructing the model to ensure specific toxic words were not present
in the final output might have a positive impact on its quality. We hence implemented an approach in
which all the toxic words we obtained from the textdetox/multilingual_toxic_lexicon dataset
were included in the prompt if they could be found in the toxic sentence to be detoxified. We further
added 5 more toxic words to the prompt to allow the model to see more samples of toxic words to
remove from the input. This yielded the performance of 0.420. We further experimented with the order
of examples in the prompt and found that reversing their order (e.g. making sure the closese example
from the validation set is mentioned the last in the prompt) has had positive impact on performance
(which we denote as ”+ reverse” in Table 2. In order to see what impact does the embedding part of
RAG have on the final preformance we also experiment with the embedding model and make use of
the multilingual-e5-large model which obtained state-of-the-art performance on many retrieval
tasks in the multilingual setup [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. As the results in Table 2 suggest, it also had a positive impact in
our case, albeit a relatively small one. Finally, comparing the per-language performance we noticed that
the performance is steadily improving for all languages except for Amharic (am). We hence decided to
re-implement the delete baseline for this langauge, which was supposed to bring its performance to
about 0.270. Our repimplementation has brought the performance to 0.278 as depicted in the ”+ am
delete” line.
      </p>
      <p>As Table 3 shows, our final model has done relatively well in many languages in manual evaluation –
in English its performance was tied with human references whereas for German it even surpassed the
human references. We do note, however, that the model has performed surprising poorly for Hindi (hi),
suggesting that there is room for potential improvement in the future, for instance by updating the
language-specific prompts in this particular case.</p>
    </sec>
    <sec id="sec-7">
      <title>7. Conclusion</title>
      <p>In this study, we assess how well the Llama3 model performs when enhanced with retrieval augmented
generation and a lexicon of toxic words for the purpose of text detoxification. We investigate the
efectiveness of utilizing the Llama3 model in this context. By populating the prompt with pairs of toxic
and neutral text examples, as well as toxic words from the lexicon, we achieve promising results. Our
approach ranks 5th in manual evaluations of the results, with the 4th best approach having the same
score and the best approach being better by only 0.06, indicating competitive performance. Particularly
noteworthy is the strong performance of languages such as German and Chinese, in which our approach
emerged as the second best performer.</p>
    </sec>
    <sec id="sec-8">
      <title>Acknowledgements</title>
      <p>This research was partially supported by grant APVV-21-0114.</p>
    </sec>
    <sec id="sec-9">
      <title>A. Zero Shot prompt template</title>
      <p>You are a text de-toxifier. You receive a toxic text and your task is to
rewrite the toxic parts in a non-toxic way while saving the main content.
Do not add more text, if the text is short, keep it short. Keep the
nontoxic words in the text the same. You do not respond anything else, just
the rewritten, non-toxic text. The input is in "" and can be in any
language. The result must be in the same language as the input. "{phrase
}"</p>
    </sec>
    <sec id="sec-10">
      <title>B. Few Shot with languages and examples prompt template</title>
      <p>We haven’t included the entire prompt due to its length, but there are similar examples for other
languages where it says &lt;examples for other languages&gt;.</p>
      <p>You are a text detoxifier. On input you receive a text which may be toxic
or harmful. Your task is to rewrite this text in a non harmful or
toxic way while preserving the original content and context.</p>
      <p>Output only contains the detoxified text, nothing else like notes or
additional information. You do not add any more context to the
resulting text, which is not in the original text. Try not to rewrite
the original text too much, just either remove the toxic part
completely, or replace it with some non-toxic words while preserving
the meaning and context.</p>
      <p>The language of the input is {language} and the language of the output
must be the same.</p>
      <p>Here are some examples in English what should be the output for given
texts:
- Input: "she is looking like shite .",</p>
      <p>Output: "she is looking like bad",
- Input: "btw jonhson county is a real shithole in case you were
wondering .",</p>
      <p>Output: "Johnson county is not good.",
- Input: "why are canadians so taken up with hockey when their teams are
all losers ?",</p>
      <p>Output: "Why are canadians so taken up woth hockey?",
- Input: "keep crying me a river , bitch boy .",</p>
      <p>Output: "keep crying me a river , ya boy .",
- Input: "until feminists take on islam and how it treats women , the
entire movement is a total farce !",</p>
      <p>Output: "Feminism is not a good movement",
- Input: "countless crap has been spotted by me .",</p>
      <p>Output: "countless wrong things has been spotted by me .",
or in other languages:
- Input (in German): "dieser Holtmann scheint ein Grüner-Bastard zu sein!
#BerichtAusBerlin",</p>
      <p>Output: "Dieser Holtmann scheint ein Grüner zu sein! #BerichtAusBerlin"
- Input (in Spanish): "pues hazme los deberes furcia barata",</p>
      <p>Output: "Pues hazme los deberes a tiempo barata."
&lt;examples for other languages&gt;
Provide only the detoxified text as the output, no additional information
. Input (in {language}): "{phrase}"</p>
    </sec>
    <sec id="sec-11">
      <title>C. RAG prompt</title>
      <p>You are a text detoxifier. On input you receive a text which may be toxic or
harmful. Your task is to rewrite this text in a way that does not
contain any toxicity or harmful words, while preserving the original
content and context.</p>
      <p>The Output contains only the detoxified text and nothing else like notes or
additional information. You do not add any more context to the resulting
text, which is not in the original text.</p>
      <p>Do not rewrite the original text too much, just either remove the toxic part
completely, or replace it with some non-toxic words while preserving
the meaning and context.</p>
      <p>The language of the input is {language} and the language of the response
must be the same.</p>
      <p>The input text may contain offensive or harmful words. You should either
remove them or replace them with non-offensive words.</p>
      <p>Here are some examples of toxic words you may find in the input text:
## Toxic words
Your output is only the detoxified text, you do not say anything else.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>D.</given-names>
            <surname>Dementieva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Moskovskiy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Logacheva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Dale</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Kozlova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Semenov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Panchenko</surname>
          </string-name>
          ,
          <article-title>Methods for detoxification of texts for the russian language</article-title>
          ,
          <source>Multimodal Technologies and Interaction</source>
          <volume>5</volume>
          (
          <year>2021</year>
          ). URL: https://www.mdpi.com/2414-4088/5/9/54. doi:
          <volume>10</volume>
          .3390/mti5090054.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>D.</given-names>
            <surname>Dale</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Voronov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Dementieva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Logacheva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Kozlova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Semenov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Panchenko</surname>
          </string-name>
          ,
          <article-title>Text detoxification using large pre-trained neural models</article-title>
          , in: M.
          <article-title>-</article-title>
          <string-name>
            <surname>F. Moens</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          <string-name>
            <surname>Huang</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Specia</surname>
          </string-name>
          , S. W.-t. Yih (Eds.),
          <source>Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing</source>
          , Association for Computational Linguistics, Online and
          <string-name>
            <given-names>Punta</given-names>
            <surname>Cana</surname>
          </string-name>
          , Dominican Republic,
          <year>2021</year>
          , pp.
          <fpage>7979</fpage>
          -
          <lpage>7996</lpage>
          . URL: https://aclanthology.org/
          <year>2021</year>
          .emnlp-main.
          <volume>629</volume>
          . doi:
          <volume>10</volume>
          .18653/v1/
          <year>2021</year>
          .emnlp-main.
          <volume>629</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>V.</given-names>
            <surname>Logacheva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Dementieva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ustyantsev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Moskovskiy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Dale</surname>
          </string-name>
          , I. Krotova,
          <string-name>
            <given-names>N.</given-names>
            <surname>Semenov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Panchenko</surname>
          </string-name>
          ,
          <article-title>Paradetox: Detoxification with parallel data</article-title>
          ,
          <year>2022</year>
          , pp.
          <fpage>6804</fpage>
          -
          <lpage>6818</lpage>
          . doi:
          <volume>10</volume>
          .18653/ v1/
          <year>2022</year>
          .
          <article-title>acl-long</article-title>
          .
          <volume>469</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>D.</given-names>
            <surname>Moskovskiy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Dementieva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Panchenko</surname>
          </string-name>
          ,
          <article-title>Exploring cross-lingual text detoxification with large multilingual language models</article-title>
          , in: S. Louvan,
          <string-name>
            <given-names>A.</given-names>
            <surname>Madotto</surname>
          </string-name>
          ,
          <string-name>
            <surname>B.</surname>
          </string-name>
          Madureira (Eds.),
          <source>Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop</source>
          , ACL 2022, Dublin, Ireland, May
          <volume>22</volume>
          -27,
          <year>2022</year>
          , Association for Computational Linguistics,
          <year>2022</year>
          , pp.
          <fpage>346</fpage>
          -
          <lpage>354</lpage>
          . URL: https://aclanthology.org/
          <year>2022</year>
          .acl-srw.
          <volume>26</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>D.</given-names>
            <surname>Dementieva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Logacheva</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Nikishina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Fenogenova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Dale</surname>
          </string-name>
          , I. Krotova,
          <string-name>
            <given-names>N.</given-names>
            <surname>Semenov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Shavrina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Panchenko</surname>
          </string-name>
          , Russe-2022:
          <article-title>Findings of the first russian detoxification shared task based on parallel corpora</article-title>
          ,
          <year>2022</year>
          , pp.
          <fpage>114</fpage>
          -
          <lpage>131</lpage>
          . doi:
          <volume>10</volume>
          .28995/2075-7182-2022-21-114-131.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>V.</given-names>
            <surname>Logacheva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Dementieva</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Krotova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Fenogenova</surname>
          </string-name>
          , I. Nikishina,
          <string-name>
            <given-names>T.</given-names>
            <surname>Shavrina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Panchenko</surname>
          </string-name>
          ,
          <article-title>A study on manual and automatic evaluation for text style transfer: The case of detoxification</article-title>
          ,
          <source>Proceedings of the 2nd Workshop on Human Evaluation of NLP Systems (HumEval)</source>
          (
          <year>2022</year>
          ). URL: https://api.semanticscholar.org/CorpusID:248780050.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7] TextDetox, Multilingual toxic lexicon, https://huggingface.co/datasets/textdetox/multilingual_ toxic_lexicon,
          <year>2023</year>
          . Accessed:
          <fpage>2024</fpage>
          -05-30.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8] TextDetox, Multilingual paradetox, https://huggingface.co/datasets/textdetox/multilingual_ paradetox,
          <year>2023</year>
          . Accessed:
          <fpage>2024</fpage>
          -05-30.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>D.</given-names>
            <surname>Dementieva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Moskovskiy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Babakov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Ayele</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Rizwan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Schneider</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Yimam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Ustalov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Stakovskii</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Smirnova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Elnagar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mukherjee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Panchenko</surname>
          </string-name>
          ,
          <article-title>Overview of the multilingual text detoxification task at pan 2024</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>
          , A. G. S. de Herrera (Eds.), Working Notes of CLEF 2024 -
          <article-title>Conference and Labs of the Evaluation Forum, CEUR-WS</article-title>
          .org,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M.</given-names>
            <surname>Popović</surname>
          </string-name>
          ,
          <article-title>chrF: character n-gram F-score for automatic MT evaluation</article-title>
          , in: O.
          <string-name>
            <surname>Bojar</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Chatterjee</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Federmann</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Haddow</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Hokamp</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Huck</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Logacheva</surname>
          </string-name>
          , P. Pecina (Eds.),
          <source>Proceedings of the Tenth Workshop on Statistical Machine Translation, Association for Computational Linguistics</source>
          , Lisbon, Portugal,
          <year>2015</year>
          , pp.
          <fpage>392</fpage>
          -
          <lpage>395</lpage>
          . URL: https://aclanthology.org/W15-3049. doi:
          <volume>10</volume>
          .18653/v1/
          <fpage>W15</fpage>
          -3049.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>L.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Majumder</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Wei</surname>
          </string-name>
          ,
          <source>Multilingual e5 text embeddings: A technical report</source>
          ,
          <year>2024</year>
          . arXiv:
          <volume>2402</volume>
          .
          <fpage>05672</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>