Elamur Research

Methods for Detoxification of Texts for the Russian Language

Paper · 2021 · Daryna Dementieva; Daniil Moskovskiy; Varvara Logacheva; David Dale; Olga Kozlova; Nikita Semenov; and Alexander Panchenko

Summary

A person writing an offensive comment may have a complaint or an argument worth expressing in different words. The authors study whether a system can suggest that wording in Russian. They frame detoxification as a kind of style transfer. The input is a toxic sentence, and the desired output expresses its substance in neutral language. A successful rewrite must deal with the offensive wording, keep what the writer is saying, and read naturally. The authors present the study as the first investigation they knew of to tackle this task for Russian.

The paper compares two ways of changing a sentence. DetoxGPT uses a pretrained Russian generator to produce a whole paraphrase. The authors try giving it an instruction, including examples in the prompt, and adapting it on a small collection of manually written rewrites. CondBERT takes a local approach. It uses evidence from toxic and neutral comments to identify suspect words, masks them, and proposes replacements that fit the surrounding text. The local procedure learns from separately collected examples of the two styles. It can therefore run without a training set that pairs each offensive comment with a neutral version.

The authors assemble RuToxic from Russian social media comments, manually rewrite 200 toxic sentences for the parallel training collection, and reserve 10,000 toxic sentences for testing. They compare the two approaches with copying the input, deleting words from a list, and retrieving a similar comment from a neutral collection. The evaluation measures whether the output appears neutral, how closely it resembles the input, and how predictable it is as Russian text. A joint score rewards performance across those dimensions. The authors also examine example rewrites, which reveal problems that are easy to miss in aggregate.

The strongest joint result comes from fine-tuned detoxGPT-large. The trained generator can produce natural paraphrases, but it sometimes changes what the writer meant. CondBERT reaches the highest reported style transfer accuracy in the comparison of usable approaches and tends to keep more of the input wording. Its substitutions can leave awkward sentences or introduce another rude term. The examples also show why success depends on the sentence. An optional insult can sometimes be dropped cleanly, a meaningful word may need a replacement, and a sentence whose hostility is bound up with its phrasing may require a wider rewrite.

Deep dive: Methods for Detoxification of Texts for the Russian Language

The paper compares whole-sentence rewriting and targeted word replacement for removing toxicity from Russian text while preserving meaning. · about 35 minutes to read

The problem and its context

From flagging a comment to revising it

The motivating application is a writing aid for social media. As a user types a comment, a system could identify offensive language and offer a version the user can choose to post. The paper describes this as another way to respond to toxicity alongside practices such as blocking sensitive material. The proposed intervention happens while the writer can still revise the message. It gives the writer something to consider in place of the offending text.

That proposal extends a familiar task in natural language processing. In detection, the system decides whether a piece of text belongs to a category. Prior work discussed in the paper includes automatic analysis of offensive and abusive language. A detector can supply a label, but the label gives a writer no wording to use. A detoxifier must decide what parts of a sentence can change and what parts carry the message the writer needs to keep. The paper situates detection work partly through Schmidt and Wiegand’s survey of hate speech detection.

The distinction matters even for a short comment. If a writer adds an insult to a complaint about a decision, removing the insult may leave a complete complaint. If the offensive expression also conveys the action being criticized, removing it may leave the reader guessing. A neutral sentence on the same general subject could be perfectly readable and still attribute a different view to the writer. These are different ways to fail the revision task, although a detector could give all the resulting sentences its neutral label.

The paper approaches toxicity as an attribute that can be changed while much of the text’s content and character carries over. Negative judgment can remain part of the message. A complaint need not become praise, and a disagreement need not become agreement. Neutrality in this setup concerns the offensive quality of the wording as represented by the data and the evaluator. This is an operational goal for the rewrite, and its consequences emerge in the way the authors collect examples and score results.

What counts as style

The authors note that defining style in text is difficult. One broad conception treats style as the manner in which a writer expresses a meaning. Their experiments use a narrower, data-driven conception. A style is a category whose examples display characteristics that distinguish them from other texts, and a classifier can be used to assign the category. Here the labels are toxic and neutral. This gives the authors a way to set up training data and judge outputs without first resolving the general linguistic question of where style ends and content begins.

Other transfer tasks make the principle easier to see. A formality task can ask for a different register while preserving the subject and point of an utterance. A sentiment task can specify a change in the polarity of an expression. The paper also mentions changes in subjective bias and transformations toward more polite language. Its examples of this research include cross-alignment for non-parallel style transfer, the GYAFC study of formality transfer, and tag-and-generate politeness transfer.

A data-driven style label still says little about where the distinguishing evidence lies. A word can be strongly associated with toxic comments in a collection, which makes it an attractive candidate for editing. That association may reflect the way writers use the word in the collected comments, and the same word could contribute something different elsewhere. Sentence-level examples give the system evidence about the categories. They do not automatically mark the span that should change or identify an acceptable substitute.

The paper identifies earlier English-language work that applies style transfer to offensive content or profanity and treats politeness transfer as a nearby problem. A related approach is discussed in Fighting Offensive Language on Social Media. The authors’ novelty claim concerns their application to Russian. They test techniques that build on an existing body of transfer research and ask what can be achieved for Russian with the data and pretrained components available to them.

What a training collection can tell a system

The paper organizes earlier text transfer work around a practical distinction. A parallel collection supplies a source text and a target text intended to express corresponding content in different styles. A non-parallel collection supplies examples of each style independently. A collection of positive reviews and a collection of negative reviews, for instance, could show how sentiment is expressed without containing a negative counterpart to each positive review. That distinction controls what a learner can observe during training.

With aligned examples, a system sees a concrete transformation. The source shows how the writer initially expressed the message, and the target demonstrates one plausible way to express it under the new style requirement. This allows a formulation similar to supervised machine translation: the system is given a source sequence and learns to produce a corresponding target sequence. For detoxification, both sequences are in Russian. The correspondence is about what the sentences say, and the difference concerns how they say it.

The paper observes that finding separately collected texts in different styles is often easier than obtaining pairs. Neutral versions of offensive comments must be written for the task if they are unavailable in the original collection. With non-parallel data, a system can still learn which words are characteristic of each style, what kinds of expressions occur in context, and how the two groups of texts differ. It must use that evidence to infer an appropriate edit for an individual sentence.

The earlier Delete, Retrieve, Generate approach gives one account of how such an inference could work. Some words contribute the style signal, while the other material conveys much of the content. The method identifies stylistic material, removes it, and uses evidence from the target style to reconstruct the text. CondBERT shares the premise that an editor can work by locating particular words. The quality of the result consequently depends on both locating suitable places to edit and choosing defensible replacements.

The paper also describes disentangled representation learning as an alternative. In that approach, style and content are represented separately. A generator can then use the content representation with a different style representation. This makes the separation a property of the learned representation. The word-editing approach used in the Russian experiments makes the separation visible in the text itself, through the distinction between masked spans and retained context.

A further line of work treats stylistic change as paraphrasing. The paper describes how style transfer as paraphrase generation adapts a GPT-based generator with an automatically assembled parallel collection spanning different styles. It also mentions T5 as an example of pretrained text-to-text generation. The Russian experiments use the available ruGPT3 generator to investigate a related question with a small, manually written parallel collection. The authors test whether prior training in Russian and paraphrasing gives it enough of a head start for a small amount of task-specific supervision to matter.

The method, step by step

What the systems have to produce

The authors begin with texts in a source style and texts in a target style. They treat style as assignable by a function, such as a system for text classification. This formalization supplies a way to talk about the style of an original comment as well as that of a proposed revision.

g(xᵢ) → sᵢ

Here g assigns a style label. The input xᵢ is the text at index i, and sᵢ is the corresponding label. The arrow indicates the direction of the assignment. In the Russian task, sᵢ can be toxic or neutral. A label describes the text as a whole. The decisions about which words to edit belong to the particular detoxification procedure.

Dˣ = {x₁, x₂, …, xₙ}

Dˣ denotes the source collection. Each x with a subscript is a source example, and n is the size of the collection. The braces enclose its members, the ellipsis stands for intervening examples, and the superscript X associates the collection with the source side. Its style, written sˣ, is toxic.

Dʸ = {y₁, y₂, …, yₘ}

Dʸ denotes the target collection. Each y with a subscript is a target example, and m is the size of this collection. The braces and ellipsis again denote the members and the intervening entries. The superscript Y associates this collection with the target side. Its style, written sʸ, is neutral. In the non-parallel setup, the indexing of the two collections does not establish a correspondence between individual entries.

fθ : X → Y

In this expression, fθ is the transformation with parameters θ. X denotes the space of possible source-style texts and Y the space of possible target-style texts. The arrow specifies a mapping from the former space to the latter. The collections Dˣ and Dʸ are the available examples from those spaces. The general task is to learn a transformation that can be applied to new inputs.

p(y′ | x, sʸ)

The symbol p denotes a conditional probability. The candidate output is y′, x is the original source sentence, and sʸ specifies the requested target style. The vertical bar separates the candidate from the conditions. In the authors’ formulation, successful parameter selection should favor a y′ that retains the content of x and has the requested style. The notation gives the goal of training. The whole-sentence and local methods make different practical choices about how to pursue it.

{(x₁, y₁), (x₂, y₂), …, (xₙ, yₙ)}

This is the paper’s notation for a parallel collection. The parentheses group each source x with its corresponding target y. Matching subscripts identify a pair, n is the number of pairs, and the ellipsis represents the omitted intermediate pairs. In this case each y is a neutral rendering of its paired toxic x. The aligned examples show which aspects of the original can carry into a target that the authors accept for training.

Where the training examples come from

The authors build RuToxic by joining two existing collections of Russian comments released on Kaggle. The constituent data come from Odnoklassniki and Pikabu. Their labels give the authors a supply of examples from both styles. The neutral portion can also serve as the search collection for Retrieve, and toxic and neutral labels supply the supervision needed to learn which words are associated with toxic comments.

To make the aligned collection, the authors select 200 toxic sentences and manually compose neutral versions. Each pair gives detoxGPT an example of the desired relationship between input and output. A human rewrite can leave the sentence mostly intact or make wider changes where the original phrasing makes that necessary. From the learner’s perspective, both are instances of the same task: continue from a toxic source with a neutral rendering that corresponds to it. The parallel collection supplies this direct evidence on a small scale.

CondBERT can use the independent style labels. It learns associations from texts marked toxic or neutral and, in its adapted configuration, learns how the distribution of words in a gap depends on the style. The label describes a whole example during training. CondBERT turns that information into a local decision at test time by combining a word-selection procedure with a gap filler that is directed towards neutral language.

How detoxGPT rewrites a sentence

DetoxGPT starts with ruGPT3, a pretrained Russian generator used in the paper’s GPT-based approach. It generates a continuation in sequence, choosing what to produce next given the text already available. The task is presented in a paraphrasing format. A Russian instruction asking for a paraphrase comes before the source, and a separator after the source indicates where the continuation belongs. By producing the full target sentence, the generator can coordinate changes across a clause or throughout the comment.

The authors investigate three ways of conveying the detoxification task. In the zero-shot setup, they use the generator as it stands with the paraphrasing prompt. The system has already been trained to paraphrase, so the prompt can draw on an existing ability. The instruction asks for a reformulation, and the setup supplies no paired demonstration of the additional requirement to make the text neutral.

The few-shot learning setup adds examples to the prompt while leaving the pretrained parameters in place. The demonstrations appear before the new input and illustrate the relation the continuation should follow. Each presents a toxic sentence before the separator and its neutral rewrite after it. The new source appears with the paraphrasing instruction and the separator, supplying the same opening structure while leaving the continuation for the generator.

tᵢˣ >>> tᵢʸ

Here tᵢˣ is the toxic sentence in pair i, and tᵢʸ is its neutral counterpart. The subscript i identifies the pair and the superscripts identify the source and target styles. The literal separator >>> marks the transition from the input to the rewrite. The same arrangement appears in both the examples supplied in context and the strings prepared for task-specific training.

In the fine-tuning setup, the examples are used to update the generator’s parameters. The authors train on the aligned strings and then prompt the adapted system to rewrite new inputs. The distinction from few-shot use is where the task-specific evidence goes. Demonstrations in a prompt influence generation through the current input. Fine-tuning incorporates information from the training pairs into the parameters that are used across subsequent inputs.

The paper uses three sizes of ruGPT3. The small configuration has 125m parameters, the medium has 350m parameters, and the large has 760m parameters. Each has a context of 2048. The authors refer to the adapted systems by the corresponding detoxGPT size. Both the few-shot and fine-tuned scenarios use the collection of 200 parallel samples as their source of paired examples. Their report ties the two scenarios to that collection while leaving the per-prompt allocation of examples unspecified.

The generator also needs a policy for choosing its next item from the alternatives it predicts. The paper sets top_k to 3. The k in the name limits the ranked candidate set by count. The authors set top_p to 0.95. The p in that setting is a cumulative probability threshold used to define a candidate set from the most probable options. Both settings concern which possible continuations are available to the sampling procedure.

Temperature is the other reported generation setting. The paper denotes it by t and uses 50 in the detoxGPT experiments. The authors describe it in terms of freedom to depart from a likely continuation. In their account, a temperature around 1 can leave the source nearly unchanged, while a setting such as 100 can prompt a dialogue where a paraphrase was wanted. These examples explain the motivation for the setting. The paper gives no scores for a systematic comparison of alternative temperatures.

How condBERT changes selected words

CondBERT uses the gap-filling ability of BERT. A masked predictor is trained to infer missing material from visible context. Here the missing material is chosen for an editing purpose. The system inserts a mask at a place that appears to contribute to toxicity and uses the context around it to look for an alternative.

How condBERT edits a toxic sentence

The steps in order.

How condBERT edits a toxic sentenceStep 1: Learn word weights from labeled comments1. Learn word weights from labeled commentsStep 2: Identify tokens above the toxicity threshold2. Identify tokens above the toxicity thresholdStep 3: Mask the selected tokens3. Mask the selected tokensStep 4: Predict replacements from surrounding text4. Predict replacements from surrounding textStep 5: Penalize candidates associated with toxicity5. Penalize candidates associated with toxicityStep 6: Compare possible multi-token replacements6. Compare possible multi-token replacementsStep 7: Insert the selected wording7. Insert the selected wording

The first component is a bag-of-words logistic regression classifier. A bag-of-words representation describes the words found in the text without representing their order. The classifier learns from sentences labeled toxic or neutral. Its learned vocabulary weights are then reused for editing. A sufficiently high weight is treated as evidence that a token in a source sentence should be masked. The decision uses a pre-defined threshold, whose numerical value the paper gives no basis to report.

This procedure assigns the word weights a different job from the one they performed during training. The classifier learns to predict a sentence label using words as evidence. At editing time, the authors interpret a large weight as evidence against an individual occurrence and use it to designate a position for revision. A word’s general association with toxic sentences determines whether the editor considers changing it. The gap filler then uses the actual sentence to determine what might go in its place.

In the adapted condBERT configuration, training on both style collections gives the gap filler an explicit style input. The authors add an embedding layer to represent the style. An embedding represents an item through a vector of learned values. The extra layer lets the predictor learn different distributions for gaps in toxic and neutral examples. At editing time, neutral is the desired style, and the candidates must also make sense in the visible sentence.

CondBERT applies a further preference against toxic replacements. The authors use the same classifier weights to estimate toxicity for entries in the BERT vocabulary and lower the predicted probabilities of penalized candidates. This is a different use of the weights from choosing a location to mask. Selection determines where the sentence is editable. Penalization influences which wording is favored once the editor is working on a gap. A candidate can fit the surrounding phrase yet be a poor choice for a neutral rewrite, so the two signals give the procedure different kinds of evidence.

The editor can replace a mask with several tokens. It expands candidates progressively with beam search, keeping promising partial continuations available for further expansion. To compare a candidate sequence, the procedure uses the harmonic mean of its token probabilities. In practical terms, a very unlikely token can weigh heavily against a phrase, even if the other parts are probable. The extension lets the editor consider a phrase where a single replacement would be awkward or fail to convey enough of the original meaning.

The authors run condBERT with and without extra adaptation of the masked predictor. In their zero-shot configuration, the selection of places to edit and the penalties for suspect replacements are still in use. Zero-shot refers to the gap filler’s lack of the additional style-specific training. In the fine-tuned configuration, the predictor learns the style-conditioned distributions from the non-parallel collections. Both versions are therefore directed toward detoxification through the external classifier, and the adapted version has an additional way to use style information.

The starting weights come from either DeepPavlov’s Conversational RuBERT or Geotrend’s Russian version of multilingual BERT. A critical implementation difference concerns the prediction layer for masked text. The Geotrend version comes with pretrained weights for this layer. The DeepPavlov version lacks those pretrained weights, so that component starts from scratch in the setup described by the authors. This difference affects a central operation in condBERT, because every proposed edit relies on the prediction of suitable material for a gap.

Local editing preserves the visible parts of the source by construction. That is useful when those parts express the substance accurately and the offensive material is concentrated at a few positions. It also limits how much restructuring the editor can do when a change affects the grammar or sense of an entire clause. DetoxGPT has the freedom to rebuild that clause. Its freedom gives it more ways to preserve the intended meaning through a paraphrase, and more ways to depart from that meaning as well.

Experiments and results

The corpus and the baselines

RuToxic contains 163,187 texts. Its toxic category contains 31,407 texts, reported as 19% of the collection, and its non-toxic category contains 131,780. The comments come from the Russian social networks Odnoklassniki and Pikabu. The authors randomly select 10,000 toxic sentences for the detoxification test and exclude those sentences from training. The reported task is thus a transfer away from toxicity on held-out comments carrying the source label.

The training and test data answer different questions. The manually rewritten collection gives chosen neutral counterparts for adaptation. The larger evaluation uses toxic originals to see what the systems produce on new material. The reported automatic content comparisons use each original sentence and its output. This means the methods can be compared even for a test input that has no designated neutral reference. It also means that the scores cannot compare an output directly with a particular human-authored rewrite for that item.

Duplicate returns the input unchanged. This gives the evaluation a point of reference for a system that preserves the writer’s wording completely. A method can compare favorably with Duplicate on neutrality while doing much worse at keeping the message. Duplicate makes the preservation side of that comparison explicit, and it shows why source similarity on its own is an insufficient test of detoxification.

Delete looks for entries in a manually assembled list of offensive terms and removes matches. The authors extend that list with lemmas, the base forms used to group related word forms. For both Delete and Retrieve, they use UDPipe for tokenization, which divides the text into units for processing, and lemmatization, which maps tokens to base forms. For Delete, this can extend coverage beyond the particular forms originally listed. The procedure still depends on what the vocabulary covers and on whether the remaining words form a complete expression.

Retrieve searches a neutral collection for the comment judged closest to the source. It represents each text by averaging the vectors of its tokens and selects by cosine similarity, a measure of how closely the vectors point in the same direction. The vectors come from Russian fastText resources distributed through RusVectores. The paper relates these word embeddings to the earlier work on fastText and subword information.

A Retrieve output is already a human-written sentence from the neutral collection. Its value as a revision depends on whether the collection has a sentence that conveys the original writer’s particular point, and whether the search can identify it. Topical resemblance can help retrieval without maintaining the same claim or attitude. The baseline puts that behavior next to Delete’s opposite tendency to preserve much of the original wording while sometimes leaving evidence of toxicity or damaging the sentence structure.

How the outputs are scored

Style transfer accuracy, abbreviated STA, measures how frequently the output receives the neutral label from a separate evaluator. The authors adapt a binary RuBERT classifier on RuToxic. Its reported F₁ score is 0.83 on a held-out test set for toxicity detection. F₁ combines precision and recall for classification. That figure characterizes the classifier’s performance on its detection test. STA uses the classifier as a judge of detoxification outputs, where every system is trying to reach the neutral category.

The procedure turns neutrality into a measurable criterion while keeping it separate from fidelity. An unrelated neutral sentence can score well on STA. A nearly exact copy of the source can score well on a similarity measure while receiving a toxic label. The detector also judges whatever language the systems generate, including awkward fragments and previously unseen rewrites. Its held-out detection result offers evidence about the evaluator, but the paper does not give a separate validation of its labels for all these kinds of generated text.

The authors measure preservation using wording and vector similarity. The most direct wording measure is word overlap, abbreviated WO. It compares the words shared by the source and output with the words represented in their union.

WO = count(x ∩ y) / count(x ∪ y)

WO is the unigram word overlap rate. The symbols x and y stand for the token collections in the original and edited sentences. The intersection sign ∩ identifies the tokens counted as shared, and the union sign ∪ identifies those covered by either text. The function count supplies the two totals, and the slash divides the shared total by the union total. Higher overlap indicates that more of the vocabulary is shared relative to the vocabulary covered by the pair.

The authors also report the BLEU score, using n-gram precision for n from 1 to 4. An n-gram is a sequence of n adjacent tokens. This measure reflects how much local phrasing survives at several lengths. In the paper’s preservation setup, it concerns the relation between the original and the rewrite. Keeping a long stretch of the source can support the score, while a fluent paraphrase can express the same thought with fewer shared sequences.

The vector measure, abbreviated CS, is cosine similarity between representations of the original and the output. The authors average fastText token vectors to represent each sentence. Cosine similarity then compares the directions of those averages. This offers a way to register lexical relatedness when the two sentences use different words. For this kind of semantic similarity, averaging also makes the representation insensitive to word order. It can therefore overlook certain changes in how the same words are related.

For language quality, the paper uses perplexity, abbreviated PPL. It reports how predictable a text is to a pretrained Russian predictor. Lower perplexity is interpreted as evidence that the output is more natural. The authors choose ruGPT2Large for this evaluation. They say that it was trained on a larger amount of text than the ruGPT3 versions they used and that it was separate from their detoxGPT generation setups. The choice gives all the outputs a common measure of predictability.

The joint score combines neutrality, content similarity, and language quality. The paper follows earlier evaluation work that uses a geometric mean for such a tradeoff. The construction makes it difficult to obtain a strong joint score by excelling on one component while doing very poorly on another.

GM = (max(STA, 0) × max(CS, 0) × max(1/PPL, 0))^(1/3)

GM is the joint geometric mean. STA is style transfer accuracy, CS is cosine similarity, and PPL is perplexity. The function max takes the larger of its two arguments, so each occurrence of 0 provides a floor. The term 1/PPL is the reciprocal of perplexity, which makes lower perplexity contribute in the favorable direction. The multiplication signs combine the three terms, and raising their product to the power 1/3 takes the cube root. WO and BLEU are reported independently of GM, where they help explain how much wording different methods retain.

What can be compared numerically

The paper gives exact figures for the corpus, the splits, the toxicity evaluator’s F₁ score, and the generation settings. Its discussion of the output evaluation gives the relative performance of the systems and describes the result table’s statistical annotations. The individual STA, CS, WO, BLEU, PPL, and GM values for the detoxification systems are unavailable as numerical entries. The ordering below therefore follows the authors’ account, with no numerical margins assigned to the comparisons.

The chart compares the parameter counts of the generators used for detoxGPT. The star marks the size whose fine-tuned configuration achieved the strongest joint detoxification result. The metric in the chart is size, where a lower count means fewer parameters. It provides the scale of the tested configurations alongside the reported performance ordering.

Pretrained generator parameter counts for detoxGPT on RuToxic

The generator that gives the strongest joint result after fine-tuning is the largest configuration tested.

Pretrained generator parameter counts for detoxGPT on RuToxicdetoxGPT-small: 125detoxGPT-small125detoxGPT-medium: 350detoxGPT-medium350detoxGPT-large (this paper): 760detoxGPT-large (this paper)760
The numbers
System or settingmillion parameters
detoxGPT-small125
detoxGPT-medium350
detoxGPT-large (this paper)760

The result table’s caption defines a significance marker for improvement over Retrieve at p ≤ 0.01. Here p is the p-value used for the comparison, and the inequality describes the cutoff for the marker. The authors obtain standard deviations for GM by bootstrapping the test dataset, which uses resampling to assess how the score varies with the test examples. The caption defines how to read the annotations. It supplies no particular system’s p-value or standard deviation.

How the baselines perform

Delete gets relatively little change in the detected style and high similarity to the source. Its word-based similarity follows from the operation it performs. When the system removes a listed term, the surrounding tokens are still there to be counted. That can be helpful for a clean deletion, where the writer’s point survives with few changes. The same procedure can leave a sentence incomplete when the deleted material connected other parts of the expression.

The paper associates these broken constructions with high perplexity for Delete. This explains an important distinction between small edits and fluent edits. An operation can preserve many tokens while leaving the remaining sequence hard to read. A vocabulary can also miss a toxic expression altogether. Both problems can occur in the same evaluation, one visible in the quality of edited outputs and the other in the low rate of successful style change.

Retrieve has relatively high STA and the strongest GM among the baselines. Its outputs start as readable human comments from the neutral collection. The authors also report extremely low WO and BLEU, and they describe much of the retrieved content as unlike the original. A likely-looking comment is therefore a strong baseline for some metric components even when it serves poorly as a faithful revision. The comparison motivates looking at individual scores as well as at GM.

Duplicate provides the purely conservative behavior alongside these two interventions. Delete changes selected input words by removing them, and Retrieve swaps out the whole sentence for an existing text. The baselines give concrete ways to interpret a proposed method’s scores. High overlap can come from doing very little, and a neutral fluent sentence can come from changing the subject. A convincing detoxification result needs preservation and neutrality in the same output.

How the rewriting and editing approaches perform

The authors try zero-shot, few-shot, and fine-tuned detoxGPT with each available generator size. They describe the unadapted zero-shot and few-shot outputs as poor across the sizes and report the small version’s results as the illustration of those scenarios. Its prompted configurations have lower content similarity and fluency than the baselines. A paraphrasing instruction and demonstrations in context did not establish a reliable detoxification procedure under these settings.

Zero-shot generation can still get high style transfer accuracy. The authors trace this to unrelated outputs that are frequently neutral. The high style score is therefore accompanied by the failure to provide a rewrite of the source. They set aside that setup when comparing viable detoxifiers. This case shows how a detector can do its assigned job and still give a favorable signal to an output that fails the larger task.

Fine-tuning on 200 parallel samples changes the outcome. The adapted detoxGPT variants outperform the baselines in the authors’ account, and detoxGPT-large gives the highest joint score. They describe it as the strongest of their GPT configurations, with particularly favorable perplexity. The conclusion presents the overall result as a tradeoff among approaches, with condBERT ahead on style accuracy and stronger on reported similarity measures in the comparison. The best joint result belongs to the system that balances the evaluated dimensions most successfully under GM.

CondBERT improves on Delete in the reported joint comparison but falls below Retrieve. The authors attribute that ordering to fluency. The editor often preserves more of the original and produces a neutral label more successfully than a simple deletion strategy, yet local substitutions can make the resulting sequence awkward. Its advantage in style accuracy and preservation can therefore coexist with a weaker joint outcome.

The Geotrend-based configurations generally fare better than their DeepPavlov counterparts. The authors attribute the advantage to the pretrained masked prediction layer. They also report a concrete output problem in the DeepPavlov setup, which sometimes inserts the special symbol [UNK] in place of a word. Such a replacement makes an edit visibly defective even if a large part of the sentence remains intact. It illustrates the practical importance of the part of the system that converts a mask back into text.

The authors include Russian output examples from the fine-tuned GPT variants and the fine-tuned Geotrend condBERT setup. Their discussion describes condBERT sometimes choosing an inappropriate word and detoxGPT sometimes losing the connection with the original. In most of the examples discussed, at least one detoxGPT version offers a sensible answer. The authors’ manual judgments do not always favor the large version even though the automatic metrics favor it overall. That observation concerns the inspected examples and gives a reason to treat the aggregate ranking and the quality of any individual revision as distinct questions.

The paper identifies RuToxic as the combined comment collection and says that it makes the code and the data used for training and evaluation available through its rudetoxifier repository. The reported evaluation is a comparison on held-out sentences from RuToxic. The examples supplement the automatic scores by showing how some of the underlying failures look in an actual rewrite.

What the ablations show

What task-specific training changes

The paper uses comparisons between configurations and analyses of outputs in place of a component-by-component ablation series. The closest comparison on the GPT side is between leaving the generator unchanged and adapting it with parallel examples. In zero-shot use, the prompt engages a paraphrasing ability. In few-shot use, the demonstrations add evidence about the requested kind of paraphrase. In fine-tuning, paired examples change the parameters. The experiment distinguishes these ways of conveying the task under the authors’ chosen settings.

The most pronounced result is the gap between the prompted setups and fine-tuning. The authors see poor prompted output with every size they try. The strongest adapted setup provides the best joint score. The comparison supports the practical claim that, for this experiment, prior training and a paraphrasing prompt are insufficient to get consistent neutral rewrites, while explicit training on the small paired collection can make the approach work substantially better. The paper does not vary collection size systematically, so the result gives evidence for the chosen training set and no estimate of the amount of supervision needed in general.

Few-shot use also probes whether seeing examples of the transformation is enough when those examples appear only in the current input. The paper’s result shows that access to paired examples alone did not deliver a good outcome in that configuration. Some of the difference may depend on details such as the examples actually placed in a prompt and the way continuations are sampled. The study changes the mode of task adaptation and evaluates the resulting system. It leaves those individual influences unresolved.

The size comparison has a narrower interpretation. Within the fine-tuned GPT experiments, the large configuration gives the best automatic result. The systems share the task and nominal context size, which makes their ordering relevant to the choice of a pretrained starting point. The examples show that a smaller system can still give a preferable answer for a particular input. The reported ordering is consequently evidence for an aggregate advantage on this test, rather than a guarantee about which system will best preserve meaning in a given sentence.

What the local editor comparison controls

On the BERT side, the zero-shot and fine-tuned configurations share the classifier-based selection of tokens and the penalties on candidate replacements. The part the authors deliberately vary is the additional adaptation of the predictor on toxic and neutral text. That makes the setup informative about the possible contribution of style-conditioned prediction. It also makes the term zero-shot specific to the gap filler. The editor as a whole still receives task-specific guidance from the word weights.

The paper discusses the results of the local editors mainly in terms of their starting weights and their comparison with detoxGPT and the baselines. It does not give a numerical gain from the extra style conditioning in the results discussion. The comparison also leaves masking, toxicity penalization, and multi-token search operating together. The authors’ explanation that explicit penalties help to account for condBERT’s high STA is consistent with the design. Without a run that changes only the penalty, the experiment cannot quantify how much of the style advantage that component creates.

The Geotrend and DeepPavlov comparison highlights a prerequisite for local editing. The procedure needs a predictor that is already good at filling gaps in Russian text, or one that learns to do so during adaptation. The authors favor an explanation based on the Geotrend version’s pretrained prediction layer. The comparison uses different pretrained starting points, so it gives practical evidence for those configurations while leaving the isolated effect of the prediction layer uncertain. A controlled test of that effect would keep the other starting weights fixed.

The occasional [UNK] replacement illustrates a different point from the aggregate ranking. A local edit can be restricted exactly as intended and still yield unusable material at the selected position. This kind of failure is compatible with high source overlap because the rest of the sentence carries over. In an individual example, the replacement itself reveals the problem more clearly than an overlap score does. The paper uses the observation to explain why the editor’s conservative scope does not guarantee readable output.

What the examples and baselines reveal together

Delete and Retrieve offer a comparison between two deliberately simple strategies. Delete tests how far the task can be addressed by removing listed wording. Retrieve tests how favorable style and fluency scores can look when a system chooses an existing neutral sentence. Their different score profiles show that preservation, neutrality, and naturalness respond to different properties of an output. A favorable result in any one dimension leaves open whether the system succeeded on the other two.

CondBERT adds replacement to the conservative strategy. Keeping the surrounding text can preserve details that a free paraphrase might lose, and an appropriate substitute can do more than dropping a meaningful word. The example analysis shows that choosing an alternative associated with a neutral style can still yield a poor fit in a particular context. A plausible word considered on its own can disturb the sentence’s grammar, nuance, or idiomatic phrasing. Much of the editor’s difficulty lies in those interactions between a changed span and material that remains fixed.

DetoxGPT can resolve such interactions by choosing the wording of the entire output. Its strong perplexity result fits the authors’ observation that whole-sentence generation frequently leads to more natural text. The price is reduced control over which content carries into the rewrite. Their inspection finds cases where the output is unrelated to the input, including failures that cannot be understood as simple substitutions. Within the limits of the examples, local editing and wider generation thus exhibit different failure patterns.

The manual analysis also adds something to the interpretation of the large generator’s ranking. An aggregate score favors the system with the strongest average behavior under the chosen criteria and includes tradeoffs defined by GM. Reading a pair of sentences allows a human to focus on a crucial particular, such as whether the output keeps the complaint or changes the person or action under discussion. The authors’ observation that the large configuration is not always visibly better reflects the difference between scoring a set of outputs and judging the success of a particular revision.

Limitations

Limits the authors identify

The authors describe practical weaknesses at both ends of the editing spectrum. A list-based deletion method has incomplete coverage. Offensive expressions can take new forms, and affixes or combinations can make them difficult to match. Even a correctly matched word can have semantic or grammatical work to do. If deleting it removes information needed to understand the sentence, the change undermines the purpose of offering a rewrite.

The local editor retains the same general problem of deciding where the toxicity resides. Its word selection relies on corpus associations, and the authors suggest that better selection could improve it. Its candidate penalties also provide an imperfect defense. The paper observes that it can produce another offensive or rude expression despite those penalties. A neutral candidate can introduce an additional problem if it fits the local prediction well enough to be chosen but leaves the sentence unnatural. Allowing several tokens expands the available edits while keeping the surrounding construction fixed.

Whole-sentence generation suffers from the corresponding loss of control. The authors observe that detoxGPT sometimes changes the content extensively. Fine-tuning improves the aggregate result, and it still leaves cases where the generated sentence conveys something different from the original. The paper suggests that a larger set of parallel examples and more careful tuning of generation settings could improve detoxGPT. Those are directions the authors identify from the outcome, with no reported experiments establishing the size of either improvement.

The authors also place their evaluation amid debate over automatic measurements for style transfer. They use several metrics because success requires a combination of properties. Their example analysis makes this concern concrete. A result can look favorable on the joint score across the corpus while producing misguided revisions on individual comments. Their human reading supports the general patterns in the results and also finds cases where the automatic ordering offers little guidance about which output is best.

Their proposed direction is to combine deletion, substitution, and broader reformulation according to the kind of toxicity in a sentence. The reasoning follows from their examples and score profiles. Optional offensive material can sometimes be removed, while a content-bearing term may call for a substitution and a more thoroughly hostile formulation may require a rewrite. The paper gives this as a prospective strategy. The reported test compares the individual approaches and does not evaluate a system that chooses among them for each input.

Limits of the experimental setup

The evaluation covers a held-out selection of toxic Russian social media comments from the same combined corpus used for development. This supports a conclusion about new examples from RuToxic under the reported split. Russian text in a different domain may have different vocabulary, conventions, and kinds of offense. The paper provides no cross-domain or cross-community test to establish how its relative results would carry over.

The score for style is tied to a toxicity evaluator trained on RuToxic, and the reported F₁ of 0.83 concerns its own held-out detection task. That is relevant evidence for the quality of the evaluator. It does not measure how often the evaluator agrees with people specifically on generated texts that contain fragments, unusual substitutions, or fluent changes of subject. Two systems can also make different kinds of mistakes that interact with a classifier differently. The available evaluation gives their rate of receiving a neutral label, instead of a calibrated estimate of human acceptance.

The word-based content metrics and averaged-vector similarity each cover only part of fidelity. Lexical overlap rewards material carried over from the input. It can favor an incomplete edit and penalize a valid rewording. Averaged vectors can recognize vocabulary related to the same topic, but they discard the order of the words and can fail to preserve the relationships that determine the claim. A single changed word can matter to the writer more than the rest of the sentence combined, even when the average vector barely reflects the change.

Perplexity measures predictability according to a separate Russian predictor. A predictable output can be fluent and irrelevant at the same time. An awkward output can preserve the writer’s precise point, and the perplexity measure would still reasonably identify a language-quality issue. Combining perplexity with other metrics makes that score less likely to dominate the interpretation on its own. The choice of GM still defines a particular balance and does not measure acceptability to an author or reader directly.

The example inspection gives qualitative evidence about local substitutions and whole-sentence rewrites. The paper reports no systematic human ratings across the entire test set, agreement between raters, or a measured preference among the systems. The observation that at least one GPT configuration frequently supplies a sensible answer in the displayed comparison does not tell a user in advance which one to choose. The aggregate experiment scores the systems individually. It does not test a selection procedure that could reliably find the best rewrite for each input.

The experiments begin with inputs labeled toxic. They therefore do not measure how frequently a real writing aid would flag a neutral comment or make an unnecessary change. The motivating application involves offering a suggestion to a person in the course of writing. Testing the suggestion in isolation can show whether it has desirable properties on known toxic inputs. The study does not measure whether users would adopt it, whether it retains the wording they care about, or whether the intervention changes what happens in a conversation.

The small parallel collection makes the fine-tuning result practical to demonstrate, while leaving open which examples were most important. The authors report neither a varying-size study nor a comparison of different manual rewrite strategies. A collection can embody consistent choices about when to remove words, preserve criticism, or rebuild a sentence, and those choices can influence what the generator learns. The experiment establishes the result of using the selected pairs under the reported conditions. It leaves the sensitivity to alternative pairs and editorial choices unmeasured.

The reported score ordering also sets a limit on the precision of the comparison. The paper identifies the best joint system, describes where other systems excel, and explains the criterion used for significance annotations. The individual detoxification metric values and their uncertainties are unavailable here as numerical results. As a consequence, the comparison supports claims about direction and observed failure modes, while the magnitude of particular score gaps remains undetermined.

What came after

Text Detoxification in isiXhosa and Yorùbá cites the Russian study and takes text detoxification into two further language settings. The later work is dated 2026 and describes its approach as cross-lingual machine learning for low-resource African languages. Its connection to the earlier paper is at the level of the problem being tackled. The Russian study brought the task beyond the English-language examples discussed in its review, and the later study investigates it for isiXhosa and Yorùbá.

The two works frame the data question differently. The Russian experiments compare what can be done using independently labeled comments with what can be done using a small aligned collection in the same language. The later paper frames its approach as cross-lingual, which places the relation between languages at the center of the investigation. That is an extension of the research question of how to attempt detoxification when the resources for a particular language are limited.

The citation and the later work’s stated scope establish this thematic continuation. They leave open which parts of the Russian procedure it reused, whether it adopted any of the same evaluation choices, and how its systems performed. The later study can be placed in the same line of research on detoxification across languages without attributing specific methods or results to it beyond that scope.

Cite

Cite as Daryna Dementieva; Daniil Moskovskiy; Varvara Logacheva; David Dale; Olga Kozlova; Nikita Semenov; and Alexander Panchenko. 2021. Methods for Detoxification of Texts for the Russian Language. arXiv:2105.09052.

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

@misc{semenov2021methods,
  title = {{Methods for Detoxification of Texts for the Russian Language}},
  author = {Daryna Dementieva; Daniil Moskovskiy; Varvara Logacheva; David Dale; Olga Kozlova; Nikita Semenov; and Alexander Panchenko},
  year = {2021},
  doi = {10.48550/arxiv.2105.09052},
  eprint = {2105.09052},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2105.09052}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/dementieva-2021-methods-detoxification-texts-russian-language/

References

29 references, from the paper's own bibliography.

  1. Amine Abdaoui, Camille Pradel, and Grégoire Sigel. Load what you need: Smaller versions of mutililingual BERT. In Proceedings of SustaiNLP: Workshop on Simple and Efficient Natural Language Processing, pages 119–123, Online, November 2020. Association for Computational Linguistics. our card
  2. Nikolay Arefyev, Boris Sheludko, Alexander Podolskiy, and Alexander Panchenko. Always keep your target in mind: Studying semantics and improving performance of neural lexical substitution. In Proceedings of the 28th International Conference on Computational Linguistics, pages 1242–1255, Barcelona, Spain (Online), December 2020. International Committee on Computational Linguistics. our card
  3. Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomás Mikolov. Enriching word vectors with subword information. Trans. Assoc. Comput. Linguistics, 5:135–146, 2017. our card
  4. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. our card
  5. Ashwin Geet D'Sa, Irina Illina, and Dominique Fohr. Towards non-toxic landscapes: Automatic toxic comment detection using DNN. In Proceedings of the Second Workshop on Trolling, Aggression and Cyberbullying, pages 21–25, Marseille, France, May 2020. European Language Resources Association (ELRA). OpenAlex ↗ · Scholar ↗
  6. Leon A. Gatys, Alexander S. Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 2414–2423. IEEE Computer Society, 2016. OpenAlex ↗ · Scholar ↗
  7. Di Jin, Zhijing Jin, Zhiting Hu, Olga Vechtomova, and Rada Mihalcea. Deep learning for text style transfer: A survey. CoRR, abs/2011.00416, 2020. our card
  8. Vineet John, Lili Mou, Hareesh Bahuleyan, and Olga Vechtomova. Disentangled representation learning for non-parallel text style transfer. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 424–434, Florence, Italy, July 2019. Association for Computational Linguistics. our card
  9. Kalpesh Krishna, John Wieting, and Mohit Iyyer. Reformulating unsupervised style transfer as paraphrase generation. In Bonnie Webber, Trevor Cohn, Yulan He, and Yang Liu, editors, Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, EMNLP 2020, Online, November 16-20, 2020, pages 737–762. Association for Computational Linguistics, 2020. our card
  10. Yuri Kuratov and Mikhail Arkhipov. Adaptation of deep bidirectional multilingual transformers for russian language. CoRR, abs/1905.07213, 2019. OpenAlex ↗ · Scholar ↗
  11. Andrey Kutuzov and Elizaveta Kuzmenko. WebVectors: A Toolkit for Building Web Interfaces for Vector Semantic Models, pages 155–161. Springer International Publishing, Cham, 2017. OpenAlex ↗ · Scholar ↗
  12. Juncen Li, Robin Jia, He He, and Percy Liang. Delete, retrieve, generate: a simple approach to sentiment and style transfer. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 1865–1874, New Orleans, Louisiana, June 2018. Association for Computational Linguistics. our card
  13. Aman Madaan, Amrith Setlur, Tanmay Parekh, Barnabás Póczos, Graham Neubig, Yiming Yang, Ruslan Salakhutdinov, Alan W. Black, and Shrimai Prabhumoye. Politeness transfer: A tag and generate approach. In Dan Jurafsky, Joyce Chai, Natalie Schluter, and Joel R. Tetreault, editors, Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, ACL 2020, Online, July 5-10, 2020, pages 1869–1881. Association for Computational Linguistics, 2020. our card
  14. David D. McDonald and James Pustejovsky. A computational theory of prose style for natural language generation. In Maghi King, editor, EACL 1985, 2nd Conference of the European Chapter of the Association for Computational Linguistics, March 27-29, 1985, University of Geneva, Geneva, Switzerland, pages 187–193. The Association for Computer Linguistics, 1985. OpenAlex ↗ · Scholar ↗
  15. Igor Melnyk, Cícero Nogueira dos Santos, Kahini Wadhawan, Inkit Padhi, and Abhishek Kumar. Improved neural text attribute transfer with non-parallel data. CoRR, abs/1711.09395, 2017. OpenAlex ↗ · Scholar ↗
  16. Cicero Nogueira dos Santos, Igor Melnyk, and Inkit Padhi. Fighting offensive language on social media with unsupervised text style transfer. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 189–194, Melbourne, Australia, July 2018. Association for Computational Linguistics. our card
  17. Endang Wahyu Pamungkas and Viviana Patti. Cross-domain and cross-lingual abusive language detection: A hybrid approach with deep learning and a multilingual lexicon. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop, pages 363–370, Florence, Italy, July 2019. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  18. Richard Yuanzhe Pang and Kevin Gimpel. Unsupervised evaluation metrics and learning criteria for non-parallel textual transfer. In Alexandra Birch, Andrew M. Finch, Hiroaki Hayashi, Ioannis Konstas, Thang Luong, Graham Neubig, Yusuke Oda, and Katsuhito Sudoh, editors, Proceedings of the 3rd Workshop on Neural Generation and Translation@EMNLP-IJCNLP 2019, Hong Kong, November 4, 2019, pages 138–147. Association for Computational Linguistics, 2019. OpenAlex ↗ · Scholar ↗
  19. Reid Pryzant, Richard Diehl Martinez, Nathan Dass, Sadao Kurohashi, Dan Jurafsky, and Diyi Yang. Automatically neutralizing subjective bias in text. In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pages 480–489. AAAI Press, 2020. OpenAlex ↗ · Scholar ↗
  20. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. OpenAlex ↗ · Scholar ↗
  21. Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21:140:1–140:67, 2020. our card
  22. Sudha Rao and Joel Tetreault. Dear sir or madam, may I introduce the GYAFC dataset: Corpus, benchmarks and metrics for formality style transfer. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 129–140, New Orleans, Louisiana, June 2018. Association for Computational Linguistics. our card
  23. Anna Schmidt and Michael Wiegand. A survey on hate speech detection using natural language processing. In Proceedings of the Fifth International Workshop on Natural Language Processing for Social Media, pages 1–10, Valencia, Spain, April 2017. Association for Computational Linguistics. our card
  24. Tianxiao Shen, Tao Lei, Regina Barzilay, and Tommi S. Jaakkola. Style transfer from non-parallel text by cross-alignment. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 6830–6841, 2017. our card
  25. Alexey Tikhonov and Ivan P. Yamshchikov. What is wrong with style transfer for texts? CoRR, abs/1808.04365, 2018. OpenAlex ↗ · Scholar ↗
  26. Minh Tran, Yipeng Zhang, and Mohammad Soleymani. Towards a friendly online community: An unsupervised style transfer framework for profanity redaction. In Proceedings of the 28th International Conference on Computational Linguistics, pages 2107–2114, Barcelona, Spain (Online), December 2020. International Committee on Computational Linguistics. OpenAlex ↗ · Scholar ↗
  27. Xing Wu, Shangwen Lv, Liangjun Zang, Jizhong Han, and Songlin Hu. Conditional BERT contextual augmentation. In João M. F. Rodrigues, Pedro J. S. Cardoso, Jânio M. Monteiro, Roberto Lam, Valeria V. Krzhizhanovskaya, Michael Harold Lees, Jack J. Dongarra, and Peter M. A. Sloot, editors, Computational Science - ICCS 2019 - 19th International Conference, Faro, Portugal, June 12-14, 2019, Proceedings, Part IV, volume 11539 of Lecture Notes in Computer Science, pages 84–95. Springer, 2019. OpenAlex ↗ · Scholar ↗
  28. Xing Wu, Tao Zhang, Liangjun Zang, Jizhong Han, and Songlin Hu. "mask and infill" : Applying masked language model to sentiment transfer. CoRR, abs/1908.08039, 2019. OpenAlex ↗ · Scholar ↗
  29. Ivan P. Yamshchikov, Viacheslav Shibaev, Nikolay Khlebnikov, and Alexey Tikhonov. Style-transfer and paraphrase: Looking for a sensible semantic similarity metric. CoRR, abs/2004.05001, 2020. OpenAlex ↗ · Scholar ↗