Elamur Research

Don't lose the message while paraphrasing: A study on content preserving style transfer

Paper · 2023 · Nikolay Babakov, David Dale, Ilya Gusev et al.

Summary

A dialogue assistant can make an order confirmation sound more conversational by changing how it addresses the customer. The order itself still has to be the same. A fluent rewrite can fail at that job if it drops a delivery address, changes a product name, or turns a question into a statement. This paper studies formal-to-informal rewriting in task-oriented dialogue systems. It asks how well different approaches preserve both the overall meaning of an utterance and the particular values a conversation needs to proceed.

The authors create PreserveDialogue, an evaluation set of 1100 formal and informal sentence pairs. The formal utterances come from task-oriented conversations, and each has a set of annotated values, called slots, that a rewrite should retain. The authors filter an existing collection for a substantial change in formality and rewrite 369 informal versions whose meaning had shifted. They train the systems that need parallel examples on a separate corpus, GYAFC, and use PreserveDialogue to compare how those systems handle dialogue. Their evaluation scores the meaning of the whole sentence, the survival of the annotated slots, the degree of informality, and grammatical acceptability.

The strongest approach in the reported comparisons is LEWIT, an adaptation of the earlier edit-based system LEWIS. It learns from aligned formal and informal sentences which parts of a source tend to stay in place and which parts change. A T5 generator then fills the gaps around the retained text. When important slots are supplied at test time, LEWIT can build its template around them. When they are unavailable, it can use either learned edit tags or automatically detected entities to decide what to keep.

LEWIT leads the evaluated baselines on the joint measure in both test settings. The versions differ in how they balance the goals. Without supplied slots, learned edit tags give better overall meaning and slot scores than automatic entity tags, while the entity-based version scores better for informality. With supplied slots, adding learned edits can improve meaning preservation at a cost to the style score. The paper also identifies a design tradeoff. Keeping parts of the original wording in place protects details, but it restricts how freely the sentence can be reorganized.

Deep dive: Don't lose the message while paraphrasing: A study on content preserving style transfer

This study compares ways to make formal dialogue more casual while preserving essential details, and introduces the edit-based system LEWIT. · about 33 minutes to read

The problem and its context

What a change of style is supposed to leave in place

Text style transfer changes a property of how a message is expressed. In the paper’s framing, that property could be sentiment, degree of formality, or resemblance to a historical literary style. The practical motivation ranges from writing assistance to giving dialogue agents more varied ways to speak. The authors choose the direction from formal to informal. That narrows the work to a recognizable task while leaving a difficulty that runs through the broader problem. A well-formed output can display the requested style and still be a poor rewrite of its input.

In a task-oriented conversation, an utterance helps someone carry out an action. A proposed delivery, for example, depends on what is being delivered, where it is going, and when it is expected. Those details can be treated as slots when the dialogue data attaches explicit values to them. An address may occupy several adjacent words, and the entire span is needed to identify its value. The surrounding sentence does a different job. It might ask the user to confirm the delivery or offer a choice. Both the values and the act of asking or offering belong to the message the rewrite should convey.

The paper illustrates the distinction with a pizza-ordering question. Informal spellings and contractions can change how the question sounds while leaving the food and destination in place. The range of plausible mistakes is wider than a spelling error. A rewrite might omit the destination, substitute another destination, or retain the address while altering what the assistant is asking the user to do. These failures motivate distinct checks. A slot check can look for the address, while a sentence-level semantic similarity measure can assess broader correspondence between the rewrite and a reference.

The authors also distinguish between preserving a value and preserving its exact spelling. A time can be written with a numeral or expressed in words. If a rewrite uses an equivalent form, a strict character comparison can mistake the change for a loss of information. Conversely, a small spelling or numeric change can be consequential even when the strings remain similar. The paper addresses the first issue through normalization rules and gives partial credit for approximate matches. The suitability of that partial credit depends on what the score is being asked to establish.

GYAFC, Grammarly’s Yahoo Answers Formality Corpus, provides formal and informal renderings of sentences. It supports supervised learning, where the system sees examples of the transformation it is asked to perform. The authors use it for training and develop a separate resource for the dialogue question. That question requires an indication of which source values matter to the task and informal references that keep the underlying message. An ordinary pair of different styles can show how wording changes. The slot annotation makes it possible to ask, systematically across the evaluation set, whether selected details survive that change.

Where earlier systems could put a constraint

The paper organizes its discussion of prior work around ways to control text generation. A conventional sentence generator builds candidate outputs from left to right. Beam search keeps a group of promising partial sequences as it considers the next pieces of text. The probability used to rank those candidates reflects the generator’s prediction about continuations. A named span may be important to the dialogue task without receiving any explicit protection in that search. Training on corresponding sentences gives the generator evidence about what a good continuation should contain. The search procedure can still choose a candidate that leaves an important span out.

Hard lexical constraints intervene in decoding, the process of turning a system’s predictions into an output sequence. The methods the paper describes modify the search so that specified text must appear in the result. This is a direct way to protect a known value. It leaves another decision to the generator, which still has to choose the language around that value and connect it correctly to the rest of the sentence. A constraint on an address can secure its presence. Whether the output still treats it as the delivery destination depends on how the sentence is written.

Soft constraints put information about the desired span into the training or input representation. The paper gives two examples. One encloses the span in special markers, making the preservation instruction visible alongside the text. The other substitutes a placeholder for the span. The system can learn to reproduce the placeholder, and the original value can then be restored. In the first case, the text provides both the value and a signal about its importance. In the second, the generator can handle the same placeholder across many different values. Its treatment of that placeholder determines whether the value has a suitable place in the final sentence.

The authors also discuss the Levenshtein Transformer, an earlier approach to sequence generation through editing. Levenshtein editing describes changes in terms of operations on a sequence. In the Levenshtein Transformer, a decoder repeatedly refines its output using deletion and insertion. The paper describes separate predictions for deleting text, choosing where and how much to insert, and selecting the inserted tokens. This earlier system illustrates a broader choice available to a generator. It can transform an existing sequence through explicit operations, with the decisions about keeping and changing text exposed as part of generation.

The route from LEWIS to supervised rewriting

The closest predecessor is LEWIS. As originally designed, it addresses style transfer without ready-made parallel sentences. It builds a pseudo-parallel corpus, meaning a set of source and target pairs assembled automatically to serve the role of paired examples. The paper describes the use of a detector for stylistically informative words and style-specific BART systems to construct those pairs. A RoBERTa tagger then learns to assign edit labels to source tokens. A BART component supplies missing text for the target style.

Several earlier approaches to content preservation, in the authors’ account, divide the work in a similar way. A first component decides where to remove or mask text. A second supplies replacements for the resulting gaps. The useful distinction for the dialogue task is between deciding what can change and deciding what wording should take its place. Those decisions can draw on different kinds of evidence. A dialogue annotation can identify a destination as important, while an informal paraphrase can show how speakers phrase the request around it.

LEWIT carries that distinction into a supervised setting. The authors have formal and informal sentences that are already paired, so they can derive edit labels from the relationship between the two sentences. They also replace the BART infiller with T5. The motivation is specific to the job that component performs. T5’s pretraining includes recovering missing spans, which resembles the task of supplying informal wording around retained text. BART learns reconstruction under a broader set of corruptions. The paper treats this difference as a reason to try the substitution and evaluates it in the dialogue comparison. T5’s unified text-to-text approach

The method, step by step

Learn from a formal sentence and its informal counterpart

Suppose a formal utterance and its informal counterpart describe the same delivery. The rewrites that teach LEWIT may shorten the request or change its phrasing while reusing words for the delivery details. Aligning the pair reveals which parts can be carried over from the source and where the informal wording departs from it. This provides supervision for two related tasks. The system can learn where an edit is likely to be useful and learn how to express the missing language once some words have been set aside for retention.

The training pairs come from GYAFC. It contains over 110K informal and formal sentence pairs, with the collection divided roughly evenly between entertainment and music and family and relationships. The study uses the formal sentence as the input and the informal sentence as the intended output. The pairs give LEWIT examples of wording that recurs across styles and wording that changes. They also give the full-sentence baselines examples of the same rewriting direction. PreserveDialogue supplies a separate collection of dialogue utterances for evaluation.

A token is a unit of text processed by a system. An edit alignment associates the units of a formal source with those of its paired informal target through the operations needed to transform one sequence into the other. A source unit can have a match that stays the same, or the transformation can involve replacement, deletion, or insertion. The authors use these coarse edit categories to train the token tagger. That training signal comes from the surface relationship between paired sentences. The alignment itself represents how the example was rewritten. Deciding which values are essential to a dialogue can come from a separate annotation.

How LEWIT learns and applies informal edits

The steps in order.

How LEWIT learns and applies informal editsStep 1: Align formal and informal training sentences1. Align formal and informal training sentencesStep 2: Derive edit labels and masked target templates2. Derive edit labels and masked target templatesStep 3: Train RoBERTa to predict source edits3. Train RoBERTa to predict source editsStep 4: Train T5 to supply missing target spans4. Train T5 to supply missing target spansStep 5: Build a test template from available signals5. Build a test template from available signalsStep 6: Fill gaps around the retained text6. Fill gaps around the retained text

Predict where a rewrite should make changes

The first trained component is a RoBERTa token tagger. A tagger assigns a category to each relevant input unit using the source sentence as context. For LEWIT, the categories describe edit operations derived from the formal and informal pairs. During training, the informal counterpart is available to determine those categories. For a new utterance, the edit-based variant can use the tagger’s prediction from the formal source. The prediction takes the place of information that an actual informal counterpart would provide. RoBERTa pretraining

The distinction between the training label and the predicted label matters. In a paired example, one can see that a source expression survived because the target contains an aligned expression. At test time, an edit tagger has to generalize from prior pairs to a new sentence. Its output indicates which parts appear suitable for retention according to the editing patterns it learned. Some of those parts may be important values, and some may be ordinary words that work equally well in a formal or informal sentence.

An edit label is also different from a word choice. It can indicate that a span should be changed without specifying the informal phrase that will take its place. This lets the tagger focus on the structure of the edit. The generator receives a partially specified target and is responsible for producing the language needed to complete it. The split is useful when a name or address is easy to recognize as something worth retaining, while the appropriate informal wording depends on the surrounding request.

Train a generator to fill the template

The aligned training pairs also define templates for the generator. A template represents a target with retained text and gaps that stand for masked portions. The authors train T5-base on an input that joins the original formal sentence to this template. The generator’s target consists of the words masked from the informal example. Consequently, it has access to the complete formal message and to a partial specification of the informal version.

These two pieces serve different purposes. The formal sentence supplies the meaning on which the rewrite should be based. The template indicates which text is already available to the finished rewrite and where new text needs to go. A gap can require more than one token, so the missing content is treated as a span. This is the part of LEWIT’s training that resembles T5’s pretraining. In each case, the generator learns to supply language that belongs in a stretch of missing context.

This formulation also determines what the generator can change. If the template retains a sequence of source words, the gaps give T5 room to alter the surrounding phrasing. A template with more retained text gives it fewer places to make changes. A template with fewer retained spans delegates more of the sentence to the generator. The design can therefore protect the original wording wherever a template deliberately retains it, while the quality of the finished sentence still depends on the content of the generated spans.

The paper’s account of training describes the important spans for template construction using words of the target that are similar to words in the source. The dialogue slot annotations used at evaluation have a different origin. They come from the structured dialogue data and identify values of interest in the formal utterance. The use of GYAFC during training thus teaches retention and editing from sentence pairs. The evaluation then asks how those abilities work in a setting with independently specified details to protect.

Choose what to retain at test time

One experimental setting supplies the important values alongside the source sentence. LEWIT-constr builds its template around those supplied slots. Its generation task is to write the intervening text in the target style while the protected values stay in the template. LEWIT-constr-tag uses those slots together with the learned edit predictions. The additional tags let it retain other source material when the tagger judges that it should survive the rewrite. This can affect meaning outside the annotated slot list, as well as the amount of wording open to stylistic change.

The other setting withholds the human-specified slot list from the systems during generation. The annotations remain available to evaluate their outputs. LEWIT-tag uses the RoBERTa edit tagger to decide which source text to retain. LEWIT-NER builds its template using a separate named entity recognition system. Named entity recognition identifies spans that refer to entities. Here it acts as a substitute signal for important text when the dialogue annotations are unavailable to the generator.

The tagger and the entity detector answer different questions about the same sentence. An edit tagger can mark wording as reusable because similar wording survived in paired rewrites during training. An entity detector can select a span because of what kind of expression it is. The former may preserve semantically important words outside a named span. The latter provides a more directly entity-oriented basis for constructing the template. The study tests both routes with the same objective of producing more informal dialogue while maintaining the message.

Build the dialogue evaluation set

PreserveDialogue is derived from SGDD-TST, a collection that already paired formal dialogue utterances with informal paraphrases and included human judgments about their meaning. Its formal utterances came from SGDD, which records task-oriented dialogues and their slots. The informal versions in SGDD-TST were produced by a T5-based system adapted using GYAFC. The human judgments identified some pairs in which the generated informal version had altered the meaning. Those cases are particularly relevant to this paper because the informal version will serve as the comparison text for a system’s new rewrite.

The authors first use a formality ranker to screen the pairs for a substantial stylistic change. They score both sides and keep 1100 pairs for which the movement toward informality exceeds the empirically chosen cutoff of 0.45. The selection is about the relative change from the formal utterance to its informal counterpart. Even a semantically faithful paraphrase can be excluded at this stage if the ranker finds too little change in style.

The authors then use the existing semantic judgments to identify 369 of the retained pairs whose members were judged different in meaning. Members of the research team rewrite those informal versions to recover the original sense, using their judgment about how to express the result informally. They use the formality ranker again to verify the informality of the revised messages. This procedure gives the informal side two kinds of provenance. Some examples retain the earlier generated paraphrase, and some have been revised by the team in response to a meaning problem.

The formal side of each pair provides the link back to SGDD. The authors take the pre-defined entity values associated with that utterance and treat them as its important slots. The resulting example contains a formal input, an informal reference, and the annotated values to check in new outputs. The informal reference gives a sentence-level meaning comparison. The slot list makes specific parts of the message individually visible to the evaluator. When the slot list is also used as a generation input, it gives the system protected content in advance.

Turn several evaluation goals into a sentence score

The paper evaluates four aspects of each rewrite. General meaning preservation asks how close the output is to the informal reference. Slot preservation checks how well it retains the values annotated for the source. Style accuracy uses a formality ranker to assess the requested direction of rewriting. Fluency is represented by a grammatical acceptability score. The authors compute a product for each sentence and then average those products over the evaluation set. They attribute the logic of combining several requirements in this way to earlier work on style transfer as paraphrase generation. Reformulating Unsupervised Style Transfer as Paraphrase Generation

The paper gives the aggregation rule in words. Its sentence-level calculation and corpus average can be written together as follows.

J = (Σᵢ Mᵢ × Pᵢ × Aᵢ × Fᵢ) / N

Here J is the joint score across the evaluated examples. The index i identifies an example, and Σᵢ adds the products over those examples. Mᵢ is the general meaning preservation score for example i, Pᵢ is its slot preservation score, Aᵢ is its style score, and Fᵢ is its fluency score. The multiplication sign combines the four scores on the same example. The slash indicates division by N, the number of evaluated examples, and the equals sign defines J.

Computing the product before averaging matters for the interpretation. An example with a low score on one requirement contributes a smaller product even if its other scores are strong. In dialogue terms, a sentence can sound casual and grammatical but still receive little joint credit if it loses the information needed to act on the message. The separate component scores remain important. Two systems with similar joint scores can have different profiles, such as protecting details more faithfully or making the wording noticeably more informal.

For general content preservation the authors use the Mutual Implication Score, or MIS. It relies on natural language inference, which evaluates whether one statement supports another. The score considers both directions between the generated output and the informal reference. This is appropriate to the question the paper is asking. A rewrite can be compatible with a reference while leaving some information out, and it can also introduce information that the reference does not support. Looking in both directions is intended to capture this distinction. The paper describes the directional basis of the score and cites earlier validation of the measure.

Slot preservation starts with normalization. The authors lower-case the text and apply lemmatization, which reduces words to their base forms. Rules standardize variants of place names, times, and numbers and expand common abbreviations, including some terms for geographic entities and currencies. The procedure accounts for the original forms as well as the standardized versions. An exact match can therefore be found even when the rewrite uses a conventional alternate rendering of a value.

For an unmatched slot, the evaluator finds the most similar n-gram in the output. An n-gram is a contiguous sequence of units. The comparison uses chrF, a similarity measure based on character sequences, and gives approximate matches credit weighted by that score. The denominator is the number of annotated slots in the source. The following notation expresses the verbal rule for an utterance with annotated slots.

P = (E + Σⱼ cⱼ) / K

Here P is the utterance’s slot preservation score. E counts slots matched exactly under the procedure, and + adds that count to the approximate credit. The index j identifies a slot left over after exact matching, cⱼ is the chrF score of its best matching output span, and Σⱼ sums those scores. The slash divides the credited total by K, the number of annotated source slots. The equals sign defines P. This calculation gives a standardized exact match full credit and lets a near match contribute in proportion to character similarity.

The style score comes from a RoBERTa formality ranker trained on GYAFC and P&T. It provides a graded way to assess the degree of formality instead of requiring the rewrite to use any specific informal expression. The same kind of ranking signal is used to construct the evaluation set and to score style at evaluation. To measure fluency, the paper uses a separate RoBERTa classifier trained on CoLA (the Corpus of Linguistic Acceptability), which assigns each English sentence one of two grammatical acceptability labels. The fluency component thus draws its evidence from how acceptable a sentence looks under that classifier.

Experiments and results

A training corpus and a separate dialogue test

The experiments compare ways of transferring formality under two conditions on PreserveDialogue. In the first, annotated slots are supplied during inference, the stage at which a trained system rewrites a new utterance. In the second, they are withheld from the rewriting system. The evaluator uses the annotated slots in both conditions. This makes it possible to ask how well the systems protect the target values when those values can be specified up front and how well they do when they must decide what to retain from the source.

All baselines that require tuning use the parallel examples from GYAFC. In the benchmark, the input is an utterance from a task-oriented dialogue. The distinction matters because the training examples establish what a formal-to-informal rewrite can look like, whereas the test makes successful rewriting depend in part on task values that can be checked individually. A system that learns effective stylistic substitutions on the training material still has to apply them selectively to dialogue. The reference and annotations let the authors examine that selectivity from more than one direction.

From copying the input to rewriting it under constraints

The simplest comparisons are copy-paste and only-slots. Copy-paste returns the formal source as it stands. Its output retains the words and values already in the utterance. Only-slots returns the annotated values separated by commas. It can keep the specified details while losing the parts of the sentence that explain their relationship. These outputs probe whether the joint evaluation rewards performing the entire task. A copy should have little credit for changing style, while a list of values should have difficulty with the requirements of a complete, meaningful utterance.

The sequence-to-sequence systems transform a text sequence into another text sequence. The basic T5 version, seq2seq-t5, is trained to generate the informal output from the formal input. The paraphrase-initialized version, seq2seq-t5-para, starts from a T5 system that has already been adapted on paraphrasing data. This comparison asks whether prior experience producing alternative expressions is helpful in the specific formal-to-informal task. The study also tries seq2seq-t5-template, which uses a target-derived template as the paired text during training.

Two versions of these full-sequence systems use hard lexical constraints at inference. The systems labeled seq2seq-t5-constr and seq2seq-t5-para-constr start from the corresponding trained systems and use a constrained beam search to include supplied spans. The paper identifies dynamic beam allocation as the basis for the implementation it uses. What changes in these comparisons is the search. The required wording can appear because a candidate must satisfy that constraint, even though the rest of the output is still generated as a sequence.

Another comparison lets beam search generate alternatives and then changes the criteria used to pick the final candidate. The authors rerank the outputs using the mean of the candidate’s conditional probability and its BLEURT score. Conditional probability represents how well the candidate fits the generator’s prediction given the input. BLEURT supplies a separate similarity signal. The authors choose BLEURT for selection because MIS already serves as the final meaning metric. They try this reranking on both the constrained and unconstrained versions of the paraphrase-initialized T5 system.

R(h) = mean(B(h), Q(h))

Here h is a candidate hypothesis produced by beam search. B(h) is its BLEURT score, and Q(h) is its conditional probability under the generator given the input. The comma separates the values supplied to mean, which takes their arithmetic average. R(h) is the score used to rerank h, and the equals sign defines it. Reranking selects among candidates that are already available. Its effect therefore depends on both the available alternatives and the scoring rule that chooses among them.

The slot-tags and delex comparisons move part of the preservation task into the representation used for training. Slot-tags places markers around a span of text that should survive the rewrite. Delex replaces the complete span with a placeholder, trains the sequence generator to reproduce that placeholder, and fills it with the source value afterward. Delex can restore a value at the place specified by a reproduced placeholder. The system still needs to decide how the rest of the sentence should read around it. The two approaches differ in how much of the original span the generator handles directly.

Prompted completion and BART-based editing

The GPT2 comparison trains GPT2-medium on parallel examples to continue a rewriting prompt. The prompt identifies the source as formal and asks for a more informal version. GPT2-tuned uses the rewriting request without a list of slot constraints. GPT2-tuned-constr includes the values that should be carried over. These configurations use prompts as the interface to the task and use supervised tuning as well. Listing the slots in the prompt gives the system information about what to include, while generation is still responsible for following that information.

The paper also adapts LEWIS to parallel training data. This point helps interpret the comparison to LEWIT. The tested LEWIS systems use BART for infilling after it has been tuned on the study’s parallel data. LEWIS-constr uses known slots as constraints. LEWIS-tag obtains edit labels from a RoBERTa tagger trained on edits derived from the parallel pairs. The experiment therefore includes edit-based baselines that share the availability of paired training data with LEWIT. Their performance gives a closer comparison for the choice of infiller than a comparison with full-sentence generation alone.

These groups expose different points of intervention. A hard constraint acts while the decoder searches. Reranking reconsiders completed candidates. Tags, placeholders, and prompts change the information presented to a generator. An edit-based template keeps parts of the source fixed in advance and makes the missing pieces the focus of generation. The resulting systems can satisfy an entity constraint in superficially similar ways, yet their remaining freedom to alter the message or the sentence structure differs.

Metric checks and how to read them

The authors report prior evidence for MIS as a measure of content preservation in formality transfer. Across the datasets in the earlier comparison they cite, its Spearman correlation with human judgments ranges from 0.62 to 0.77. Spearman correlation measures how well two rankings agree. In this context it indicates how closely the metric’s ordering of examples tends to follow the ordering from human judgments. That range concerns the earlier evaluation of the metric. The transfer-system experiment uses MIS as an automatic score on PreserveDialogue.

The paper checks the formality ranker on the GYAFC and P&T test splits. It reports Spearman correlation of 0.82 on GYAFC and 0.76 on P&T. Both numbers evaluate the ranker, which the authors use to assess predicted formality. The comparison shows how strongly the same evaluation instrument correlates with the formality judgments in each test setting. A transfer system’s style score on PreserveDialogue answers a separate question about the wording it produces.

Formality ranker on the GYAFC and P&T test splits by Spearman correlation

The ranker agrees more closely with the formality judgments on GYAFC.

Formality ranker on the GYAFC and P&T test splits by Spearman correlationGYAFC test split (this paper): 0.82GYAFC test split (this paper)0.82P&T test split: 0.76P&T test split0.76
The numbers
System or settingSpearman correlation
GYAFC test split (this paper)0.82
P&T test split0.76

The fluency instrument is a CoLA-trained classifier. According to the paper, the classifier was trained for 5 epochs using batches of 32, a 2e-05 learning rate, and a sequence length limit of 128. Its output spans 0 to 1, with higher values indicating greater predicted acceptability. The reported classifier accuracy is 0.85 on the CoLA validation set. That accuracy describes classification on CoLA. For a generated rewrite, the study uses the classifier’s score as an indicator of fluency and combines it with scores that address meaning, slots, and style.

The authors use the naive systems to check the behavior of the combined evaluation. Both are at the bottom of the reported joint rankings, with substantially lower joint scores than the nearest non-naive alternatives. That is consistent with what the controls were designed to probe. Retaining the original utterance can protect meaning and values while leaving the formality unchanged. Listing values can preserve slot strings while failing to convey a natural conversational utterance. The check establishes that these shortcuts are insufficient to score well on the joint measure.

When the system has to infer what to keep

With pre-defined slots withheld during generation, both LEWIT-NER and LEWIT-tag lead the baseline systems on the joint metric. They give similar overall performance by that measure. The difference appears in the component scores. The edit-tagger version performs better on broad content preservation and on the slot measure, while the entity-based version performs better on style accuracy. The result gives two viable ways to build the template without supplied dialogue annotations, with a different balance between preservation and stylistic movement.

The method of choosing retained text offers a plausible account of that pattern. Edit tags encode evidence from source and target correspondences in previous formal-to-informal pairs. A template based on those tags can keep words that support the original meaning even when they are outside a named entity. A template built around recognized entities draws its decisions from a different cue. It may leave surrounding text available for more substantial restyling. The component scores are consistent with this explanation, while the experiment reports the effect of switching the whole template signal.

The authors include generated examples to illustrate the kinds of differences that component scores can reflect. Their discussion identifies occasions when an ordinary sequence-to-sequence system changes a specific value or the intent of the utterance. They also describe unnatural outputs from a simpler slot-preserving approach such as delexicalization. The examples illustrate distinct failure mechanisms. A stored value can survive placeholder substitution even if the rest of the sentence sounds awkward, and a natural sentence can be an unsuitable paraphrase if it changes what the speaker is trying to do.

When important values are supplied

When the slot list is available at inference, LEWIT variants again outperform the tested baselines on the joint score. The comparison within LEWIT asks whether the supplied values should be the only explicit anchors or whether learned edit decisions should supplement them. The authors report that adding the tags can improve overall content preservation, with an accompanying drop in style accuracy. This is a comparison in which both approaches can use the essential values. The difference concerns how much other wording the template keeps.

Many constrained variants preserve the specified slots by design. The paper’s results caption explains why it does not highlight a highest slot score in that group. For these systems, faithful slot retention can follow directly from including the required values in the search or fixing them in the template. The remaining metrics help show what the system does around those values. A method can meet the lexical requirement and still produce wording that differs in purpose from the reference, sounds awkward, or remains too formal for the requested rewrite.

The BART-based LEWIS variants are the strongest baselines as a family in the paper’s account, and LEWIT still does better on the joint metric. The authors attribute this most plausibly to the fit between T5 and gap filling. A comparison against LEWIS is particularly informative because that baseline shares the broad plan of retaining parts of an utterance and completing the gaps. The evidence supports the effectiveness of LEWIT as tested. The result is expressed through the reported ordering and component tradeoffs, while the stated numeric values describe the evaluation instruments, edit labels, and significance procedure.

What the significance procedure compares

The authors compare the best LEWIT variant within each group with the baselines using the Wilcoxon signed-rank test. This is a paired comparison procedure that ranks the magnitudes of differences and takes their signs into account. Here the paper describes drawing 30 random subsets of 900 test examples and using the mean measurements from those selections in the assessment. These values describe the sampling procedure on the test set. They are separate from the number of distinct pairs in PreserveDialogue.

The threshold reported for the test is written as follows.

α = 0.05

The Greek letter α denotes the significance threshold used for the Wilcoxon signed-rank comparisons. The equals sign sets that threshold to 0.05. The paper’s results caption also identifies cases in which a difference from LEWIT is insignificant under its procedure. The overall ranking and the component-level statistical comparisons address related questions. A system can lead on the joint score while individual measures show smaller or statistically indistinguishable differences for particular alternatives.

What the ablations show

Substituting the generator in an edit-based pipeline

The paper’s clearest architectural comparison is between adapted LEWIS and LEWIT. Both use the idea of representing a rewrite as retained text plus gaps. Both can be trained in the parallel-data setting used in the study. In LEWIS, BART supplies the missing wording. In LEWIT, T5 does that work. Since LEWIS is already strong within the baseline set, the reported joint advantage for LEWIT is evidence about a consequential choice inside the edit-based approach. It shows that the way the gaps are filled matters alongside the decision to keep anchors.

The authors connect the advantage to the pretraining tasks. BART is described as learning to reconstruct text under several kinds of corruption, including deletion, sentence rearrangement, and document rotation. T5 has experience producing spans that were deliberately masked. Recovering multi-token spans is close to the fine-tuning task used in LEWIT, where the input includes both a source sentence and a partial representation of the desired target. The comparison is consistent with the authors’ account of why T5 is well suited to this particular generator role.

The generator substitution nevertheless compares systems with different pretraining histories and architectures. A direct test of the role of span masking by itself would require holding other differences fixed. The paper’s comparison measures the effect of using the tested T5-based and BART-based approaches in the study’s setting. Its explanatory account is about the fit of span infilling to the job LEWIT gives the generator.

Adding edit predictions to known slots

LEWIT-constr and LEWIT-constr-tag give a controlled view of what happens when the template has access to additional evidence about retention. The supplied slots are available in both variants. The second uses predicted edit labels as well. Because the existing slots already protect particular values, the extra signal can influence text carrying meaning outside those values. Verbs, descriptions, and other reusable phrases can help keep the output aligned with the source utterance even when they have no slot annotation.

The reported improvement in meaning preservation and decrease in style accuracy fit the mechanics of the template. More retained surrounding wording can make it easier to keep the intent recognizable. It can also leave fewer opportunities to change the expressions that the ranker uses to detect informality. This comparison shows a tradeoff even when the most important values are already known. The style and content components help explain the direction of that tradeoff, which a joint score by itself would compress into a single ranking.

Changing the template signal when slots are withheld

The comparison of LEWIT-tag and LEWIT-NER examines what can stand in for the missing slot list. The tag-based version starts with a learned prediction of how the source text might be edited. The NER version starts with spans recognized as entities. Each type of evidence can be useful without access to the dialogue annotations, and each can miss content that the other would retain. The experiment reports similar joint performance for the two variants along with an advantage for the edit tagger on meaning and slot preservation and an advantage for NER on style.

The study also reports the distribution of predicted edit labels within the test set. The tagger assigns “replace” to 46,7% and “equal” to 50% of its labels. “Delete” accounts for 3% and “insert” for 0.3%. These figures describe the tagger’s assignments on the test set. They are distinct from the rate at which annotated slots survive and from any count of edits observed in the completed outputs. The distribution shows that retention and replacement dominate the tagger’s proposed treatment of the source.

That pattern is compatible with the authors’ picture of informal paraphrasing through local changes. A sentence can have several replacement labels and still rely heavily on its source structure. A replacement label identifies a place to change and does not characterize the size or semantic consequence of the resulting change. Likewise, an equal label can preserve ordinary wording as well as an important value. The label frequencies help describe how the tagger partitions the input. The content and slot metrics are needed to assess whether that partitioning supports the rewrite.

Comparing lexical survival with sentence quality

The hard constraints, tags, and placeholder systems are useful comparisons because they target a narrow failure: losing the text of an important span. The output examples show why solving that failure can leave other work to do. A placeholder system may return the correct value within an unnatural sentence. An unconstrained full-sentence rewrite can make changes that affect a slot or the overall intent. Edit-based methods are described as generally avoiding these problems in the illustrated cases, where they can keep the source context around the important details.

The paper’s two naive baselines take the distinction further. They are controls for the benchmark rather than modifications of LEWIT. Their low joint performance demonstrates that the evaluation penalizes outputs that satisfy only part of the task. The constrained comparisons then show what happens when a real generator has explicit protection for values and has to produce a complete rewrite. Together, the comparisons help explain why a leaderboard for this task needs to account for both the correctness of the details and the quality of the surrounding message.

Limitations

Limits the authors identify

LEWIT gains control over what survives by anchoring the rewrite to parts of its source. The authors identify the accompanying loss of freedom as the system’s main limitation. A template can make substantial syntactic reorganization difficult. Once meaningful stretches of the original sentence have been retained in place, the generator has to work around them. A more natural informal sentence may call for changing the ordering of clauses or expressing the request in a different construction. The same template that protects the values can restrict such a rewrite.

The authors accordingly emphasize applications in which faithful transmission of details is especially important, including goal-oriented dialogue. A sentence involved in arranging an order must still communicate the intended order. Within that use case, the paper treats some loss of freedom to alter the sentence as an acceptable consequence of protecting the message. When a change of voice requires a more extensive rewrite, the design offers a different balance between flexibility and preservation.

What the benchmark represents

The experiment tests informal rewrites of utterances taken from task-oriented dialogues. Its inputs and metrics are at sentence level. A conversation that extends across turns can make earlier commitments, refer back to a previously mentioned value, or depend on what the other party has already confirmed. Judging the preservation of those relationships would require evidence at the level of the interaction. The paper’s benchmark measures how the individual utterance is rewritten and how its annotated values fare.

The direction of transfer is also specific. The authors use formal-to-informal examples and assess the outputs with a ranker trained for formality. The paper motivates style transfer with several other possible directions, but those directions can involve different changes to the source. The relative advantage of an anchored template depends on how naturally the desired style can be expressed through local substitutions. The dialogue results establish a case for the tested direction and data, with broader transfer left open.

The training and evaluation sets play distinct roles. GYAFC supplies parallel examples from Yahoo Answers topics. PreserveDialogue supplies the utterances with task values. This setup measures transfer from general paired formality training to the specific dialogue benchmark. It offers no direct estimate of how much annotated dialogue training would change the rankings or what would happen on another set of dialogues with a different range of entities, speech acts, or conventions for informality.

How construction affects the reference answers

The informal side of PreserveDialogue originates in paraphrases produced by a T5-based system adapted on GYAFC, followed by filtering and selective human rewriting. This gives the benchmark practical access to a parallel set and addresses known discrepancies in meaning. It also means that the references reflect the paraphrasing tendencies of an automatic system and the choices of the team where it repaired an example. An acceptable informal rewrite may differ from the chosen reference in wording, structure, and the degree of informality it expresses.

There is also a connection between the evaluation’s style criterion and the selection of examples. The authors use a formality ranker to filter the pairs and to verify the informal style of revised versions. The benchmark therefore emphasizes style shifts that are visible to that instrument. The reported correlations for GYAFC and P&T provide evidence about ranking agreement on those test sets. The paper’s main comparison does not supply an independent set of human judgments of style and fluency for the generated PreserveDialogue outputs.

For meaning evaluation, the use of a score based on implication in both directions offers flexibility beyond overlap with the reference wording. Its output still depends on predictions from an automatic evaluator. A sentence can be a legitimate paraphrase and be hard for that evaluator to recognize. A subtle change can also escape a high-level measure of similarity. The inclusion of slot preservation responds to one part of this problem by checking pre-defined values separately from the judgment about the whole utterance.

What the slot and joint scores establish

The slot score balances two requirements. It should recognize harmless variation, such as writing a time differently, and it should identify lost information. Normalization helps with the first requirement by reconciling forms that should count as equivalent. Approximate matching makes the comparison more graded. That grading also means high character similarity can yield partial credit for text that differs in an important detail. In a dialogue task, a small alteration to an identifier, address, or numerical value can have an effect out of proportion to its character-level distance.

Presence of a value and correct use of that value are also distinct. An output can contain a protected span within a sentence that changes the assertion or request around it. An evaluator that searches for the slot can give credit for the span’s presence, while the meaning measure has to detect the broader change. Thus the stronger interpretation of message preservation rests on how the measurements work together. The score for preserving a lexical value has a narrower interpretation than successful completion of a dialogue action.

The joint measure penalizes examples that do poorly on a component. It consequently favors methods that work across several requirements on the same utterance. It still describes average performance. An application may treat a particular error, such as losing the destination for a delivery, as decisive even if the system performs well overall. The slot and component scores expose some of that variation, while the joint ranking supports a comparison across the benchmark. Neither the benchmark average nor the illustrative examples give a guarantee about each new utterance.

Finally, the significance procedure described in the paper repeatedly samples from one test set. The resulting measurements concern differences observed on PreserveDialogue under that procedure. The resampled means draw on a shared collection of utterances, and the paper does not report a separate dialogue corpus on which the rankings are replicated. The experiment can support a comparative conclusion about the tested systems on the benchmark, while the stability of that conclusion across independent collections remains an open question.

What came after

The authors released PreserveDialogue, the experimental code, and the trained LEWIT system. PreserveDialogue makes it possible to evaluate informal rewriting with explicit checks on source values. The code accompanies the benchmark with the comparison and scoring procedures, and the trained system makes the edit-based approach available for reuse. Evidence of subsequent studies extending LEWIT, reusing PreserveDialogue, or independently testing the paper’s findings is unavailable.

Cite

Cite as Nikolay Babakov, David Dale, Ilya Gusev, Irina Krotova and Alexander Panchenko. 2023. Don't lose the message while paraphrasing: A study on content preserving style transfer. arXiv:2308.09055.

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

@misc{babakov2023don,
  title = {{Don't lose the message while paraphrasing: A study on content preserving style transfer}},
  author = {Nikolay Babakov, David Dale, Ilya Gusev, Irina Krotova and Alexander Panchenko},
  year = {2023},
  doi = {10.48550/arxiv.2308.09055},
  eprint = {2308.09055},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2308.09055}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/babakov-2023-don-t-lose-message-while/

References

30 references, from the paper's own bibliography.

  1. Babakov, N., Dale, D., Logacheva, V., Krotova, I., Panchenko, A.: Studying the role of named entities for content preservation in text style transfer. In: Rosso, P., Basile, V., Martínez, R., Métais, E., Meziane, F. (eds.) Natural Language Processing and Information Systems. pp. 437–448. Springer International Publishing, Cham (2022) OpenAlex ↗ · Scholar ↗
  2. Babakov, N., Dale, D., Logacheva, V., Panchenko, A.: A large-scale computational study of content preservation measures for text style transfer and paraphrase generation. In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop. pp. 300–321. Association for Computational Linguistics, Dublin, Ireland (May 2022) OpenAlex ↗ · Scholar ↗
  3. Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J.D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al.: Language models are few-shot learners. Advances in neural information processing systems 33, 1877–1901 (2020) our card
  4. Chen, G., Chen, Y., Wang, Y., Li, V.O.: Lexical-constraint-aware neural machine translation via data augmentation. In: Bessiere, C. (ed.) Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI-20. pp. 3587–3593. International Joint Conferences on Artificial Intelligence Organization (7 2020), main track OpenAlex ↗ · Scholar ↗
  5. Cui, R., Agrawal, G., Ramnath, R.: Constraint-embedded paraphrase generation for commercial tweets. In: Proceedings of the 2021 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining. p. 369–376. ASONAM '21, Association for Computing Machinery, New York, NY, USA (2021) OpenAlex ↗ · Scholar ↗
  6. Gu, J., Wang, C., Junbo, J.Z.: Levenshtein Transformer. Curran Associates Inc., Red Hook, NY, USA (2019) OpenAlex ↗ · Scholar ↗
  7. Hu, J.E., Khayrallah, H., Culkin, R., Xia, P., Chen, T., Post, M., Van Durme, B.: Improved lexically constrained decoding for translation and monolingual rewriting. 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). pp. 839–850. Association for Computational Linguistics, Minneapolis, Minnesota (Jun 2019) our card
  8. Jhamtani, H., Gangal, V., Hovy, E., Nyberg, E.: Shakespearizing modern language using copy-enriched sequence to sequence models. In: Proceedings of the Workshop on Stylistic Variation. pp. 10–19. Association for Computational Linguistics, Copenhagen, Denmark (2017) our card
  9. Krishna, K., Wieting, J., Iyyer, M.: Reformulating unsupervised style transfer as paraphrase generation. In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP). pp. 737–762. Association for Computational Linguistics, Online (Nov 2020). our card
  10. Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., Zettlemoyer, L.: BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. pp. 7871–7880. Association for Computational Linguistics, Online (Jul 2020) our card
  11. Li, H., Huang, G., Cai, D., Liu, L.: Neural machine translation with noisy lexical constraints. IEEE/ACM Transactions on Audio, Speech, and Language Processing 28, 1864–1874 (2020). OpenAlex ↗ · Scholar ↗
  12. Luo, F., Li, P., Yang, P., Zhou, J., Tan, Y., Chang, B., Sui, Z., Sun, X.: Towards fine-grained text sentiment transfer. In: Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. pp. 2013–2022. Association for Computational Linguistics, Florence, Italy (Jul 2019) OpenAlex ↗ · Scholar ↗
  13. Moskovskiy, D., Dementieva, D., Panchenko, A.: Exploring cross-lingual text detoxification with large multilingual language models. In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop. pp. 346–354. Association for Computational Linguistics, Dublin, Ireland (May 2022) OpenAlex ↗ · Scholar ↗
  14. Pavlick, E., Tetreault, J.: An empirical analysis of formality in online communication. Transactions of the Association for Computational Linguistics 4, 61–74 (2016) our card
  15. Popović, M.: chrF: character n-gram F-score for automatic MT evaluation. In: Proceedings of the Tenth Workshop on Statistical Machine Translation. pp. 392–395. Association for Computational Linguistics, Lisbon, Portugal (Sep 2015). our card
  16. Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., Liu, P.J.: Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res. 21(1) (jan 2020) our card
  17. Rao, S., Tetreault, J.: 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). pp. 129–140. Association for Computational Linguistics, New Orleans, Louisiana (Jun 2018) our card
  18. Rastogi, A., Zang, X., Sunkara, S., Gupta, R., Khaitan, P.: Towards scalable multi-domain conversational agents: The schema-guided dialogue dataset. In: Proceedings of the AAAI Conference on Artificial Intelligence. vol. 34, pp. 8689–8696 (2020) our card
  19. Reid, M., Zhong, V.: LEWIS: Levenshtein editing for unsupervised text style transfer. In: Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021. pp. 3932–3944. Association for Computational Linguistics, Online (Aug 2021) OpenAlex ↗ · Scholar ↗
  20. Reif, E., Ippolito, D., Yuan, A., Coenen, A., Callison-Burch, C., Wei, J.: A recipe for arbitrary text style transfer with large language models. In: Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers). pp. 837–848. Association for Computational Linguistics, Dublin, Ireland (May 2022) OpenAlex ↗ · Scholar ↗
  21. Sellam, T., Das, D., Parikh, A.: BLEURT: Learning robust metrics for text generation. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. pp. 7881–7892. Association for Computational Linguistics, Online (Jul 2020) our card
  22. Shen, T., Lei, T., Barzilay, R., Jaakkola, T.: Style transfer from non-parallel text by cross-alignment. In: Guyon, I., Luxburg, U.V., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., Garnett, R. (eds.) Advances in Neural Information Processing Systems. vol. 30. Curran Associates, Inc. (2017) our card
  23. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., Polosukhin, I.: Attention is all you need (2017) our card
  24. Warstadt, A., Singh, A., Bowman, S.R.: Neural network acceptability judgments. arXiv preprint arXiv:1805.12471 (2018) OpenAlex ↗ · Scholar ↗
  25. Wilcoxon, F.: Individual comparisons by ranking methods. Biometrics Bulletin 1(6), 80–83 (1945) OpenAlex ↗ · Scholar ↗
  26. Wu, X., Zhang, T., Zang, L., Han, J., Hu, S.: Mask and infill: Applying masked language model for sentiment transfer. In: Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI-19. pp. 5271–5277. International Joint Conferences on Artificial Intelligence Organization (7 2019) OpenAlex ↗ · Scholar ↗
  27. Zhang, M., Tan, L., Fu, Z., Xiong, K., Lin, J., Li, M., Tu, Z.: Don't change me! user-controllable selective paraphrase generation. In: Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume. pp. 3522–3527. Association for Computational Linguistics, Online (Apr 2021) OpenAlex ↗ · Scholar ↗
  28. Zhang, Y., Ge, T., Sun, X.: Parallel data augmentation for formality style transfer. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. pp. 3221–3228. Association for Computational Linguistics, Online (Jul 2020) OpenAlex ↗ · Scholar ↗
  29. Zhang, Y., Wang, G., Li, C., Gan, Z., Brockett, C., Dolan, B.: POINTER: Constrained progressive text generation via insertion-based generative pre-training. In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP). pp. 8649–8670. Association for Computational Linguistics, Online (Nov 2020) OpenAlex ↗ · Scholar ↗
  30. Zhuang, L., Wayne, L., Ya, S., Jun, Z.: A robustly optimized BERT pre-training approach with post-training. In: Proceedings of the 20th Chinese National Conference on Computational Linguistics. pp. 1218–1227. Chinese Information Processing Society of China, Huhhot, China (Aug 2021) our card