Studying the role of named entities for content preservation in text style transfer
Paper · 2022 · Nikolay Babakov, David Dale, Varvara Logacheva et al.
Summary
Changing how a request sounds should leave its details intact. A flight request can become more formal while still asking for the same destination. If the destination changes, the rewrite has changed the request itself, even if nearly every other word survives. The authors study this problem in task-oriented dialogue, where people use language to arrange things such as flights, hotel stays, and restaurant reservations. They ask how frequently changes to named entities account for failures of content preservation, and whether explicitly checking those entities helps automatic scores agree with people.
The authors create SGDD-TST, a benchmark of 10,287 original utterances paired with automatically generated formality rewrites. The original utterances come from the Schema-Guided Dialogue Dataset. Crowd workers judge how much of the original meaning each rewrite retains, using categories that distinguish equivalent or nearly equivalent pairs from pairs with substantial differences and pairs with unrelated content. The authors then examine two kinds of failure. They look at rewrites people judged to have changed the meaning, and they inspect pairs for which human judgments and automatic scores rank the same text very differently.
Missing or altered entities are the most prominent error in the sample of meaning-changing rewrites. They also appear among the worst disagreements for every similarity measure examined in the manual analysis. A pair can look nearly identical and still refer to a different place or time. Ordinary words matter as well. A changed verb or preposition can alter the requested action, and a rewrite can turn an instruction into a statement. These failures explain why the authors treat entity overlap as one part of judging whether content survives.
An entity-only score has a Spearman rank correlation of 0.06 with human judgments on SGDD-TST. The authors get better results for several established measures by blending their original scores with entity overlap and letting the share of entity tokens in the pair determine the weight. The blend significantly improves agreement with human rankings for measures such as BLEU, METEOR, and ROUGE, as well as some measures based on averaged word representations. BLEURT and BERTScore receive no improvement from the same adjustment. They already agree more closely with people than the older baselines, though the authors still find serious entity-related errors among their worst disagreements. The benchmark therefore reveals both where a simple entity check helps and where faithful rewriting remains difficult to measure.
Deep dive: Studying the role of named entities for content preservation in text style transfer
How named entities can expose meaning changes in formality rewrites of task-oriented dialogue, and which similarity measures benefit. · about 31 minutes to read
The problem and its context
Formality changes the wording of a request
Text style transfer rewrites a passage so that it has a different stylistic property. Formality is one example. The authors also point to prior work on changing sentiment and rewriting language in a Shakespearean style. The task depends on a distinction between the property selected for change and the information that should carry through the rewrite. In a formality task, a different way of making a request is welcome. A different reservation is a substantive error.
The intended use helps determine which changes count as substantive. The paper points to requests for a taxi or a flight, where a response might be made more informal to suit conversation. The place named as the destination of a ride and the airport named as the departure point still need to be accurate. A person may accept a different degree of politeness or a different sentence construction while expecting the reply to describe the same service. The rewrite has to preserve the particulars that allow the participants to understand what has been arranged.
Names are especially easy to overlook when judging a pair by its general subject. Two utterances may both be about making a reservation. They may mention the same type of service and use much of the same wording. A change to the place can nevertheless make them requests for different reservations. The importance of the changed span comes from its role in the utterance. Its contribution to a general resemblance score may be small because it occupies so little of the text.
The authors use named entity to discuss references to identifiable objects such as people, places, and organizations. In the dialogue material they also examine service details associated with times and other objects relevant to a request. A useful distinction is between the expression in the text and the thing it refers to. An airport can occupy a short span in a sentence while identifying something very specific in the world. An evaluator looking at that span needs to consider whether the two sentences still refer to the same thing. Automatic named entity recognition supplies the spans for the paper’s scoring method.
Entity preservation and preservation of meaning have a more complicated relationship than simply keeping names in place. The same airport name could appear in two sentences that assign it different roles. A rewrite can also drop or change an action while keeping every name. Conversely, changes in ordinary wording are often how a valid style transfer is accomplished. A measure must be responsive to changes that matter and tolerant of changes that serve the requested style. These demands explain why the paper examines entities as a component of evaluation and compares that component with measures of the whole utterance.
Earlier benchmarks tested different kinds of text
Formality transfer already had parallel data, meaning pairs of utterances that express corresponding content in different styles. The paper discusses GYAFC, which was built from Yahoo Answers material using formal rewrites. The authors describe the subjects of existing formality datasets as often involving everyday discussion, including entertainment and family affairs. Those settings supply examples of how formality varies. The authors identify personal planning as a distinct setting in which a text can carry details that have direct consequences for a task.
Earlier work had also collected human judgments about content similarity. The paper mentions datasets for detoxification, for sentiment transfer, and for formality transfer. This matters because a system can be evaluated on more than its ability to produce recognizable stylistic changes. People can assess whether a rewritten sentence still says roughly what the original did. The authors’ gap concerns the source of the utterances and the characteristic details people need to track when making those judgments. They describe task-oriented dialogue as a setting that recently proposed style-transfer techniques had yet to address, to the best of their knowledge.
The paper’s premise has a precedent in related evaluation work. The authors cite research that used information about named entities and other categories of words to improve measures such as BLEU and METEOR for a question-related task. That precedent concerns a shared measurement problem. Overall wording can be a weak guide to whether a pair agrees on the words that determine what it asks. The present study examines that problem for formality rewrites of requests and replies in dialogue systems.
Automatic similarity measures emphasize different evidence
A content-similarity measure turns an original utterance and its rewrite into a score. The intended ordering is straightforward. A faithful rewrite should receive a higher score than a rewrite that changes important content. The hard part is deciding how the score should respond to particular textual differences. Some changes are apparent directly from the words. Others depend on what a word refers to or on how it relates to the rest of the utterance.
The paper describes word overlap as a common choice in earlier style-transfer work. Measures in this family can register a shared phrase or a changed sequence. If most of the utterance is similar, however, one important substitution can make a modest contribution to the score. A shift from a booking request about one place to a booking request about another still leaves an extensive set of words in common. Overlap is evidence that the wording resembles the source. How well that evidence tracks the details of the request remains an empirical question.
The authors describe earlier measures that represent words as vectors and compare averages of those representations. A vector is a sequence of numerical values used to represent a word. Averaging produces a representation of the utterance that can reflect similarities between expressions with different wording. A changed service detail can be difficult to isolate in a single representation of the entire sentence. The word embeddings used by the paper’s baselines are examined alongside measures that use representations informed by the surrounding words.
The paper also discusses BERTScore and BLEURT. BERTScore compares representations of tokens in the original and the rewrite and combines their matches into a score. BLEURT uses a learned scoring procedure that reads the two texts together. Both offer ways to compare sentences beyond counting common expressions. Their ability to handle wording changes makes them relevant to semantic similarity in style transfer. The paper asks whether that greater flexibility also helps when a small wording change affects a specific real-world reference.
Rewriting and judging are distinct tasks
The study follows errors from generation to evaluation. A formality transfer system can create an unfaithful sentence even when an evaluator recognizes the error. An evaluator can also overrate a rewrite that people immediately recognize as different. Diagnosing the first problem requires examining what the rewrite changed. Diagnosing the second requires comparing the evaluator’s response with human judgments about the pair.
A benchmark with human judgments gives the authors a common basis for comparing automatic measures. Every measure scores pairs produced in the same domain, and the human scores establish an ordering against which the automatic rankings can be judged. Manual inspection can then identify what happened in particular cases of disagreement. This design connects questions about average performance to the concrete changes that prompted the investigation in the first place.
The method, step by step
The task has separate requirements for style, content, and fluency
The authors formalize style transfer as a function with three inputs. It receives the source style, the requested style, and the source text. Its output is a text in the requested style. A reader can think of the target style as specifying what kind of change to make and the source text as specifying the material to carry through that change.
α: S × S × D → D
Here α is the transfer function, S is the set of styles, and D is the set of texts. The symbol × joins the input sets to indicate that α receives a choice from each of them. The first S supplies the source style, the second S supplies the destination style, and the D before the arrow supplies the original text. The arrow points to D because the output is also a text.
dᵈˢᵗ = α(sˢʳᶜ, sᵈˢᵗ, dˢʳᶜ)
Here dᵈˢᵗ is the output text and α is the same transfer function. The symbols sˢʳᶜ and sᵈˢᵗ denote the source and target styles, respectively. The symbol dˢʳᶜ denotes the original text. The superscripts ˢʳᶜ and ᵈˢᵗ identify the source and destination. The equals sign says that the output text is whatever the function returns for the three arguments in parentheses.
The first requirement is about the style that a reader or evaluator would attribute to the output. The style should change, and the change should reach the requested destination.
σ(dˢʳᶜ) ≠ σ(dᵈˢᵗ)
Here σ is a function that assigns a style to a text. Its arguments dˢʳᶜ and dᵈˢᵗ denote the original and rewritten texts. The symbol ≠ requires their assigned styles to differ.
σ(dᵈˢᵗ) = sᵈˢᵗ
Here σ is the style function, dᵈˢᵗ is the rewrite, and sᵈˢᵗ is the requested style. The equals sign requires the style assigned to the rewrite to match that request. Together, these conditions distinguish an intended style change from any detectable stylistic shift.
The second requirement concerns the material that should survive across versions. The threshold is set by the task. In the authors’ motivating domain, the names and details that determine the requested service can be central to that requirement.
δ(dˢʳᶜ, dᵈˢᵗ) ≥ tᵟ
Here δ is a function that judges content preservation between the original text dˢʳᶜ and the rewritten text dᵈˢᵗ. The symbol tᵟ is the task-specific threshold for δ. The superscript identifies the function to which the threshold belongs. The symbol ≥ requires content preservation to reach or exceed that level.
The third requirement concerns the quality of the output as an utterance. A rewrite has to read fluently while meeting the style and content requirements.
ψ(dᵈˢᵗ) ≥ tᵠ
Here ψ measures fluency, with the output text dᵈˢᵗ as its argument. The symbol tᵠ denotes the threshold for that fluency function, with its superscript serving as a label. The symbol ≥ requires the fluency judgment to reach or exceed the threshold. Evaluating fluency takes only the output as an argument here. Evaluating content preservation takes both texts because it concerns what changed between them.
The experiments concentrate on estimating the content side of this specification. The paper uses a separate notation for an automatic score that measures the semantic relatedness of a pair.
sim(dˢʳᶜ, dᵈˢᵗ)
Here sim is the chosen content-similarity measure, dˢʳᶜ is the original utterance, and dᵈˢᵗ is its rewrite. The two arguments in parentheses tell the measure which texts to compare. A higher value represents greater similarity according to that measure. The human judgments provide a way to assess how well its scores order rewrites by the meaning they retain.
Dialogue utterances become pairs for evaluation
From dialogue utterances to an entity-aware similarity score
The steps in order.
The authors start from the Schema-Guided Dialogue Dataset, or SGDD. Its 16,142 dialogues cover practical services, including hotel, flight, and restaurant bookings. That count refers to the parent dialogue corpus. The content-similarity benchmark uses pairs of utterances, a different unit. Originals come from SGDD and the paired rewrites come from a separate generation step.
SGDD supplies dialogue content. To obtain the stylistic counterpart for each original, the authors use base T5 and perform fine-tuning on the parallel formality examples in GYAFC. Fine-tuning here means taking an existing text generator and continuing its training on the data for the desired rewriting task. The paper gives 3 epochs, with an epoch being a pass through the training data. It specifies Adam as the optimizer and a learning rate of 1e⁻⁵, the setting governing the scale of parameter updates. The resulting system produces the formality rewrites that are paired with the dialogue utterances.
The two data sources have separate jobs. GYAFC provides examples from which the generator can learn formality rewriting. SGDD supplies the utterances used to see what happens when that rewriting is applied to task-oriented text. Human annotation comes after generation. The workers’ judgments describe the resulting pairs and support evaluation of the similarity measures.
An automatically generated rewrite can supply either a positive example of content preservation or a case where content changes. The authors retain these possibilities in the benchmark. A collection containing original and generated text alone could establish that the wording changed. Human judgments are needed to say whether the changes cross from an acceptable rephrasing into a different message.
Human judgments make the pairs comparable
The authors collect linguistic annotation through Yandex.Toloka. Workers compare the original and rewritten texts and select a content-similarity category. The categories cover three recognizable situations. A pair may convey substantially different messages. It may share some meaning while differing in a consequential respect. It may convey essentially the same meaning, with room for minor differences.
The paper links the choice of a compact scale to an earlier study that used more labels and reported lower agreement among annotators. A scale with fewer distinctions asks the worker to make a relatively broad judgment about severity. The middle category is particularly relevant to the paper’s question. It allows a pair to retain much of the same content and still receive a reduced judgment for a meaningful difference. A reservation that remains recognizable while changing the location has the kind of partial overlap that makes such a category useful.
Preparation combines training items with controls. Training items give pre-defined answers and explanations. Controls have pre-defined answers and omit the explanations. Workers first have to reach acceptable grades on these tasks to gain access to the real items. The authors also mix the preparatory and control material into the annotation stream, so the quality checks continue during the work. Workers who fail those checks are removed, and their annotations are discarded.
For aggregation, the authors assign 1 point to a judgment of entirely different content, 2 to a judgment of similarity with a substantial difference, and 3 to a judgment of equivalent meaning or minor differences. They average the votes for each pair. The result is an ordered numerical score. Pairs with broadly similar judgments can still occupy different positions if their workers distributed their votes differently across the categories.
Two kinds of agreement feature in the study. Agreement among workers describes how consistently they apply the judgment categories. Correlation between humans and an automatic measure describes how similarly the average scores and the measure rank pairs. The first informs how to read the annotations. The second evaluates the automatic scores against those annotations.
Entity overlap supplies a signal for each pair
The authors start the scoring intervention by running a spaCy entity tagger over the original sentences and the generated sentences. Detection takes place on the text that people and the automatic measures are judging. The method therefore depends on the tagger being able to identify relevant spans in both versions. If a rewritten utterance changes a name, the scorer can register that change when the tagger detects the two expressions and they remain distinct after normalization.
The extracted entities undergo lemmatization, which reduces inflected forms to their base forms for comparison. This makes it possible to discount certain changes of form when checking for overlap. The authors then compare the entities in the two texts using the Jaccard index. It measures how much of the set of distinct items appearing across either text is shared by both. An entity found in only one text contributes to the total set being compared and leaves the shared part unchanged.
This score expresses a narrow kind of resemblance. It is sensitive to whether the detected entities recur in the pair. A pair can match on its entities and still contain a changed action or a different relation between the entities. A general similarity measure supplies evidence from more of the text. The authors blend the entity comparison with that broader score according to how much of the pair consists of entity tokens.
Mweighted = Mstrong × (1 − p) + MNE × p
Here Mweighted is the combined score, Mstrong is the score from the original similarity measure, and MNE is the entity-overlap score. The symbol p is the share of all tokens in the original and the rewrite that belong to named entities. The 1 represents the whole weight, and the minus sign in 1 − p leaves the portion assigned to the original measure. The multiplication signs apply the two weights, the plus sign adds the weighted contributions, and the equals sign defines the combined score.
The token share is calculated for the pair as a whole. Tokens are the units into which each text is divided for counting. The proportion p concerns how much text the detected entities occupy, while the Jaccard comparison concerns which detected entities are shared. Thus the weight and the overlap score answer different questions. A pair can contain prominent entity spans and have low overlap because the references change. In that case the method makes the low overlap more influential. Where the pair has no detected entity tokens, the rule leaves the original score in effect.
The combination requires no further training of the generator. It sits after generation, at the point where a pair receives a content score. The authors apply the same rule across their chosen measures. That setup lets them ask which measures benefit from explicit entity overlap when the procedure for adding it stays fixed.
The scores are checked against people and inspected for errors
The paper evaluates automatic measures by Spearman rank correlation. The idea is to compare the ordering of pairs by automatic score with the ordering by averaged human judgment. Measures with different score scales can be examined using the same criterion. A measure that regularly puts pairs with changed meanings near the top, among near-equivalent rewrites, will disagree with the human ranking.
Rank correlation condenses performance over many pairs. The authors complement it with manual analysis at two points. They examine pairs people judged to have changed in meaning to characterize the generator’s failures. They separately look at pairs with large gaps between automatic and human rankings to characterize failures of evaluation. Named entities, consequential changes to other words, and changes of sentence type give the inspection a shared vocabulary for describing the errors.
Experiments and results
The benchmark and its annotation
The final SGDD-TST benchmark contains 10,287 original–rewrite pairs. The authors release it under the name Schema-Guided Dialogue Dataset for Text Style Transfer. The release is an evaluation resource for content similarity in a formality-transfer setting. Its scores concern whether the source and generated text preserve meaning, with the dialogue corpus supplying the service-related utterances on which that judgment is tested.
The paper situates SGDD-TST among earlier datasets with human judgments about retained content. Tox600 addresses detoxification, while Yam.Yelp addresses sentiment transfer. In formality transfer, the authors discuss xformal-FoST, STRAP, and Yam.GYAFC. They describe SGDD-TST as the largest such annotated style-transfer dataset to their knowledge and identify its task-oriented dialogue source as a first among formality benchmarks of this kind. The domain distinction matters independently of size. A collection of booking utterances puts names, places, and times into contexts where a small textual change can alter the practical details.
The authors report 1,214 workers, with 3 to 6 workers judging each pair in SGDD-TST. The mean annotation time for a task was 15.7 seconds. The reported average correctness on training and control items mixed into the real tasks was 0.65. That figure describes the embedded items that had predetermined answers. The separate agreement statistic, Krippendorff’s alpha, describes consistency among workers judging the benchmark pairs and is 0.64.
The paper uses an earlier study’s alpha of 0.34, obtained with 5 labels, to explain its interest in a more compact set of categories. The chart compares reported annotation settings across studies. The corpora and annotation procedures can differ, so the comparison leaves open how much of the agreement difference comes from the scale itself.
Krippendorff’s alpha for SGDD-TST and an earlier style-transfer annotation study
Annotators reached higher agreement in the SGDD-TST study.
The numbers
| System or setting | Krippendorff’s alpha |
|---|---|
| Earlier study with five labels | 0.34 |
| SGDD-TST with three labels (this paper) | 0.64 |
The distribution of human scores is concentrated towards preserved content in the authors’ account. Most generated rewrites keep the meaning. This matters for interpreting the manual error study, which deliberately samples from pairs judged to differ. A feature can be prominent among the failures even when successful rewrites are common across the full collection.
The automatic baselines
The authors compare measures based on local textual overlap, measures based on whole-utterance vector representations, and learned measures that read text in context. This spread makes the intervention informative. If an explicit entity score helps primarily where the scoring method relies on surface overlap or averaging, the benefit is conditional on how the baseline handles the wording of the pair.
One family uses n-grams, contiguous sequences of words or characters. BLEU, METEOR, and several versions of ROUGE give the paper overlap-based baselines. The ROUGE variants include comparisons built from unigrams, bigrams, and trigrams, as well as a variant based on a longest common sequence. The character-based comparison is chrF. Looking at characters allows the score to respond to partial similarities within words as well as to shared sequences across them. An entity replacement can still leave very high overlap elsewhere in the sentence.
Other baselines represent each utterance by an average of its word vectors and compare the averages with cosine similarity. Cosine similarity measures how closely two vectors point in the same direction. The paper uses Word2vec and FastText representations for these comparisons. The cited work on distributed word representations belongs to this part of the experimental background. Advances in Pre-Training Distributed Word Representations
The remaining baselines are BERTScore and BLEURT. The BERTScore comparisons use token representations based on BERT, RoBERTa, or DeBERTa. BERTScore summarizes the matching evidence in an F-score, which combines the quality of the correspondence in both directions between the two token sequences. BLEURT reads the pair together and produces a score through a system trained for the evaluation task. The paper describes its training background as including synthetic data. Both approaches offer a richer comparison than averaging all the word vectors in each sentence into a single point.
For a simple entity baseline, the authors use the Jaccard score on the lemmatized entities alone. They then compute a second score for each general similarity measure with the auxiliary entity component blended in. A comparison between the original and blended versions asks whether that component helps the same measure order the same pairs in a way that is closer to human judgments.
What the correlations show
The entity-only baseline reaches a Spearman correlation of 0.06 with the SGDD-TST human content scores. Its weak performance is compatible with the manual finding that entities frequently matter in failures. A pair’s meaning also depends on the actions expressed, the relations among details, and the way the utterance is framed. Human judgments make distinctions across all those dimensions. An entity-overlap score addresses one of them.
Adding the entity score significantly improves BLEU, ROUGE, and METEOR according to the authors. They also find significant gains for measures based on averaged word representations, including the cosine comparisons using Word2vec or FastText. Significance is assessed with the Williams test, which the authors use to judge whether the increase in correlation with human scores is statistically supported. The result is a comparison with each measure’s original score on the benchmark. It concerns the agreement of rankings and supplies no direct estimate of how many rewritten requests would be safe to send.
The score blend yields no improvement for BLEURT or BERTScore. The authors report that these stronger learned measures already have higher correlations with human judgments than the older baselines. They also consider the possibility that adding entity overlap can decrease performance in some cases. The central effect is therefore selective. Explicit entity overlap helps several less effective general measures. The same rule provides no observed increase for the stronger learned measures.
The authors interpret the gains for overlap and averaged-vector methods in terms of the special role played by specific references. Those methods can give a high similarity score to utterances that keep common wording or occupy nearby positions in a representation space. Entity overlap supplies direct evidence about whether the detected references survive. In the authors’ interpretation, the learned measures may already encode some of that information. The correlation experiment compares the behavior of scores with and without the extra term. The internal source of any sensitivity to entities remains an interpretation.
What human inspection found
The analysis of the generator uses 400 randomly selected SGDD-TST pairs from the subset that crowd workers judged to be semantically unequal. Entity loss or corruption appears in the vast majority of these cases. The analysis also identifies changes involving verbs and prepositions, and changes in sentence type. Dropping or altering a verb may change the action under discussion. A preposition can matter to the relation between a service and its details. A shift from an imperative to a declarative can change what the utterance is doing in the conversation.
The separate analysis of automatic measures examines the top 35 samples with large rank disagreements for a subset of measures using different scoring logic. Entity changes account for a significant part of the failures across all the measures examined in this way. Changes to other words occur less prominently. Sentence-type changes are almost absent in these particular samples, so the authors leave them out of the reported breakdown for the measure errors.
The authors also ask whether the metrics tend to overrate or underrate pairs where they perform poorly. To compare the direction of differences, they linearly rescale the automatic and human scores to lie between 0 and 1. In most of the poor-performing cases they examine, the automatic scores are higher than the human scores. This points to a recurring pattern within that selected sample. A pair looks similar enough for the automatic measure to give it a generous score, while people report a meaningful change.
A high score can therefore be misleading for several different reasons. A large amount of shared wording can mask a changed name. A sentence can preserve the names but change an action. A learned measure can generally rank pairs well and still show large discrepancies on specific entity-sensitive examples. These findings describe how the qualitative inspections and aggregate correlations fit together. Each reports a different property of the same evaluation problem.
What the ablations show
Adding the entity signal isolates its contribution to a score
The main controlled comparison keeps the original pair and its human judgment fixed while changing how the automatic score is computed. For each baseline, the authors compare its usual score with the blend of that score and the entity term. The rewrite itself stays fixed throughout the comparison. Any measured change is in the ordering produced by the evaluation procedure.
The entity-only score supplies an additional comparison. It represents what can be extracted from the detected references without the rest of the measure’s information. The paper’s findings make sense when the two contributions are considered together. Entity overlap alone is weak as a ranking of overall faithfulness. The general score captures a broader resemblance. For several baselines, their blend has a more useful ordering than either type of evidence would suggest when considered in isolation. The improved correlation is observed for the particular blend tested.
This contrast explains why the entity-only correlation cannot settle whether entities are important. Suppose a sentence keeps all of the detected entities while changing what the speaker wants done. Overlap can give that pair favorable evidence about its names, and the judgment can still be that the meaning has changed. Suppose instead that a rewrite keeps the wording of the request while replacing a destination. Then the entity term supplies an explicit reason to lower the similarity score. The same signal has limited coverage by itself and addresses a recognizable weakness when used in combination.
The weighting rule introduces a further dependency. A short detected span can have limited weight in a longer pair, even when the reference it contains is essential to the task. A pair with many entity tokens can give the auxiliary component more weight, even if only some of those references are decisive. The rule measures the amount of text occupied by detected entities and uses that amount as a proxy for their importance. The controlled comparison tests the effect of that rule as implemented. It leaves the merits of other ways of assigning importance open.
The generator analysis locates changes in the text
The inspection of the 400 semantically unequal pairs starts with a condition on the human judgment. The selected pairs already count as failures of content preservation in the eyes of the crowd workers. The manual inspection asks which part of the text gives rise to the difference. Its answer is that changed entities are common when the generated sentence loses meaning, alongside changes to other words and sentence types.
The authors’ categories make different mechanisms visible. Entity errors concern a missing or corrupted reference. The part-of-speech category deliberately looks outside these spans, focusing on other words whose loss or alteration affects the utterance. A sentence-type error concerns whether the utterance functions as a statement, command, question, or exclamation. Analyzing these as separate possibilities helps explain why a successful rewrite requires more than preserving the lexically distinctive pieces of a sentence.
The categories describe recognizable changes and are mostly mutually exclusive in the authors’ setup. Some cases combine entity errors with changes to words outside the entities. Such combinations matter for interpreting the reported prominence of entities. A pair can contain a lost reference and an altered action, with the judgment of changed content reflecting both. The analysis identifies where problems occur and does not assign a numerical share of a human judgment to each changed span.
The sampling decision is equally important. These are examples from a failed subset of the benchmark. The analysis characterizes the errors encountered after conditioning on substantial disagreement between the source and the rewrite. The distribution of all human scores, which the authors describe as favoring preserved content, answers a different question about the collection as a whole.
The evaluator analysis locates missed differences
For the automatic measures, the authors begin by ordering pairs according to their human scores and again according to the measure under inspection. The absolute difference in rank identifies pairs on which the two orders disagree most. Manual inspection of the highest-disagreement cases then asks what a person could see in the pair that the automatic score handles poorly. Checking the difference in ranks is useful because the original score and the human scale have different units.
In this analysis, entity changes appear repeatedly across measures built on different principles. Shared wording can keep an overlap-based score high. A change to one important expression can also be diluted when the utterance is summarized by an average of vector representations. The errors among the learned measures show that strong performance overall still leaves some pairs where a changed entity is given too little importance. The manual evidence describes a common form of disagreement across those scoring families.
The authors separately compare scaled values to see which direction these disagreements take. Absolute rank difference finds discrepancies in either direction. Rescaled scores help the authors distinguish overrating from underrating in the examples they inspect. Predominant overrating fits the observation that many of the problematic pairs look nearly identical. The manual analysis supplies the reason the resemblance can mislead, while the direction check indicates how the scores respond to that resemblance.
Sentence-type errors illustrate the effect of selecting examples in different ways. They appear in the study of rewrites that humans judged to lose content and are nearly absent from the highest-disagreement samples for the similarity measures. Those results come from different subsets. The first asks what goes wrong with generation when a meaning change occurs. The second asks what goes wrong with measurement when automatic and human rankings diverge sharply. A phenomenon’s prominence in one subset alone gives limited information about its prevalence in the other.
A recurring error can survive a reasonable correction
The learned measures furnish a revealing comparison. Their difficult examples often involve altered entities, yet adding the same overlap term that helps several simpler baselines gives them no aggregate improvement. A measure can already respond to many entity changes correctly and still fail in selected cases. A general adjustment applied to every pair can then change both good and bad rankings.
The article’s evidence supports the narrower finding that this particular correction works differently across baselines. Some contextual evidence available to a learned measure may duplicate the auxiliary signal. Other evidence may conflict with it when a valid rewrite uses a different form of reference or when the tagger identifies spans differently across the two texts. These are ways the observed result can arise, rather than separate effects measured in the experiment. The paper proposes that the learned measures may have acquired information about entities during training. The reported comparisons evaluate the scoring rule’s effect and leave the internal explanation untested.
Limitations
Limits acknowledged by the authors
The authors emphasize that their best measures remain some distance from perfect agreement with human content judgments. Relative improvement for a baseline and strong absolute performance are different standards. A baseline can gain from entity overlap while still agreeing less closely with the human ordering than BLEURT or BERTScore. The authors frame SGDD-TST as material for developing better measures because the remaining discrepancies are consequential even for the strongest approaches they evaluate.
They also acknowledge the limited reach of the adjustment. The auxiliary term improves several established metrics, but the same simple method gives no gain to the stronger learned measures. The manual error analysis still implicates entities in many of those measures’ failures. The authors therefore have evidence for an unresolved evaluation problem as well as for a partial improvement. Their explanation that learned measures may already have acquired some knowledge of entities is presented as a possibility.
The paper records failures involving more than entities. Verbs, prepositions, and sentence type can affect what a person understands from a rewrite. These examples place a direct limit on what the paper’s overlap signal can capture. The distinction also matters for the generator. Its output can preserve names and still fail to carry through the rest of the message. The manual categories offer concrete evidence for that broader view of content preservation.
Limits that follow from the study design
The dataset is diverse in service requests, with rewrites produced by a single formality-generation setup. Which errors arise depends in part on the generator and the formality data used to adapt it. A different generator could preserve place names more consistently, produce different substitutions, or change other parts of utterances more often. The current study establishes what the measures do with these generated pairs. Generalization to a new generator would require evidence about the pairs that generator produces.
The source domain also shapes the result. Task-oriented utterances make exact references especially visible because the point of a booking or reservation frequently depends on its details. Other style-transfer settings may place more weight on facts expressed without names or on maintaining relationships across longer stretches of text. The paper cites data from detoxification, sentiment, and other formality settings to position its benchmark. Its score-blending results concern SGDD-TST. Whether the same weighting transfers to those other settings remains open.
The study scores individual pairs of utterances. The formal task definition distinguishes content preservation, fluency, and successful style change. The reported human scores target the content component. A favorable content score alone cannot establish that a rewrite reached the intended level of formality or reads naturally. The study also leaves open how the rewritten utterances would affect the outcome of a live service interaction, where preceding turns and a service’s interpretation could matter.
The human rating categories compress several kinds of change into an overall judgment. A worker can give the same category to a different time, an omitted qualification, or a changed action. The average score retains severity information at the level requested by the task. It may also place a pair with mixed votes near a pair for which workers agreed on an intermediate category. The manual inspections restore some detail by identifying the sources of particular errors. They cover selected cases, so the benchmark still primarily supports comparisons against aggregate judgments.
Krippendorff’s alpha shows how consistently workers applied the scale in this collection. The comparison with the earlier study is observational across annotation settings. To attribute the higher agreement specifically to the smaller set of categories would require changing the scale while holding other relevant parts of the annotation procedure steady. Here the earlier result motivates the design, and the reported SGDD-TST alpha describes the outcome of that design as a whole.
Limits of overlap and rank correlation
The entity scorer inherits the behavior of the spaCy tagger. A reference that the tagger misses cannot contribute to the score in the intended way. A change in the boundaries of a detected span can also affect overlap. The method therefore tests automatic detection and overlap together. It gives no independent estimate of how much the enrichment would improve with perfectly identified entity spans.
Lemmatization reduces some surface differences. Matching references can still require knowing that different words refer to the same thing. An utterance could identify a service in one way and then describe it differently while keeping the reference recoverable. Conversely, a set comparison can reward shared entities when their roles change. The wording that identifies a departure point and a destination can change around identical place names. The overlap score contains evidence about which expressions survive, and the base measure has to supply evidence about how they are used.
The mixing rule gives no separate treatment to entity type or semantic role. Its weight comes from the proportion of detected entity tokens. That design gives a reproducible rule to apply across measures. It leaves open whether an entity’s role in the request would be a better guide than the number of tokens it covers. The paper’s experiments establish the effect of the chosen weighting in this dataset. They give no controlled comparison between alternative weighting rules.
Spearman correlation also sets the scope of the numerical result. It measures the overall order of pairs and can improve while serious mistakes remain at particular points in the ordering. A reliable cutoff for accepting an individual rewrite would require evidence about performance at that cutoff. The rescaling used to inspect whether bad cases are overrated or underrated is a way to compare their scores, and it supplies no separately validated decision threshold for accepting a rewrite.
Finally, the manual samples each answer a conditional question. The generator sample is drawn from pairs the crowd judged to differ. The evaluator samples emphasize large disagreements in ranking. This selection makes important failure types easier to see, while leaving their rates across all generated pairs or all scored pairs undetermined. The full-dataset correlations and the selected examples complement each other as long as those scopes stay clear.
What came after
The later study Don’t lose the message while paraphrasing (2023) cites this investigation and takes up the broader problem of keeping content intact while changing style. Its title frames the issue through paraphrasing. The connection to the entity study is the need to evaluate a change in expression against the message that the original utterance conveys. In a booking dialogue, that message can depend on an individual reference. Content preservation is the larger criterion under which that kind of detail matters. Don’t lose the message while paraphrasing
The citation establishes a connection between the studies at the level of that research question. Whether the later study adopts SGDD-TST, tests entity overlap, or changes the weighting rule remains unspecified. Its stated focus is content-preserving style transfer. The earlier paper supplies one concrete instance of the problem within that scope, where a rewrite’s similarity to its source can obscure a change to the information the user needs.
Cite
Cite as Nikolay Babakov, David Dale, Varvara Logacheva, Irina Krotova and Alexander Panchenko. 2022. Studying the role of named entities for content preservation in text style transfer. arXiv:2206.09676 · Natural Language Processing and Information Systems. NLDB 2022. Lecture Notes in Computer Science, vol 13,286. Springer, Cham, p.437–448.
@misc{babakov2022studying,
title = {{Studying the role of named entities for content preservation in text style transfer}},
author = {Nikolay Babakov, David Dale, Varvara Logacheva, Irina Krotova and Alexander Panchenko},
year = {2022},
doi = {10.1007/978-3-031-08473-7\_40},
eprint = {2206.09676},
archivePrefix = {arXiv},
url = {https://doi.org/10.1007/978-3-031-08473-7_40}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/babakov-2022-studying-role-named-entities-content/
References
- Banerjee, S., Lavie, A.: METEOR: An automatic metric for MT evaluation with improved correlation with human judgments. In: Proceedings of the ACL Workshop. pp. 65–72. Association for Computational Linguistics, Ann Arbor, Michigan (2005) our card
- Bojanowski, P., Grave, E., Joulin, A., Mikolov, T.: Enriching word vectors with subword information. Transactions of the Association for Computational Linguistics 5, 135–146 (2017) our card
- Briakou, E., Agrawal, S., Tetreault, J., Carpuat, M.: Evaluating the evaluation metrics for style transfer: A case study in multilingual formality transfer. In: Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. pp. 1321–1336. Association for Computational Linguistics, Online and Punta Cana, Dominican Republic (2021) our card
- Briakou, E., Agrawal, S., Zhang, K., Tetreault, J., Carpuat, M.: A review of human evaluation for style transfer. In: Proceedings of the 1st Workshop on Natural Language Generation, Evaluation, and Metrics (GEM 2021). pp. 58–67. Association for Computational Linguistics, Online (2021) OpenAlex ↗ · Scholar ↗
- Cao, Y., Shui, R., Pan, L., Kan, M.Y., Liu, Z., Chua, T.S.: Expertise style transfer: A new task towards better communication between experts and laymen. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. pp. 1061–1071. Association for Computational Linguistics, Online (2020) our card
- Dementieva, D., Ustyantsev, S., Dale, D., Kozlova, O., Semenov, N., Panchenko, A., Logacheva, V.: Crowdsourcing of parallel corpora: the case of style transfer for detoxification. In: Proceedings of the 2nd Crowd Science Workshop: Trust, Ethics, and Excellence in Crowdsourced Data Management at Scale co-located with 47th International Conference on Very Large Data Bases (VLDB 2021 (https://vldb.org/2021/)). pp. 35–49. CEUR Workshop Proceedings, Copenhagen, Denmark (2021) OpenAlex ↗ · Scholar ↗
- Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: 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). pp. 4171–4186. Association for Computational Linguistics, Minneapolis, Minnesota (2019) our card
- Graham, Y., Baldwin, T.: Testing for significance of increased correlation with human judgment. In: Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). pp. 172–176. Association for Computational Linguistics, Doha, Qatar (2014) our card
- He, P., Liu, X., Gao, J., Chen, W.: Deberta: Decoding-enhanced bert with disentangled attention. In: International Conference on Learning Representations (2021) our card
- Jaccard, P.: Etude de la distribution florale dans une portion des alpes et du jura. Bulletin de la Societe Vaudoise des Sciences Naturelles 37, 547–579 (1901) OpenAlex ↗ · Scholar ↗
- 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
- Krippendorff, K.: Content analysis: An introduction to its methodolog (1980) OpenAlex ↗ · Scholar ↗
- 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 (2020) our card
- Lai, H., Toral, A., Nissim, M.: Thank you BART! rewarding pre-trained models improves formality style transfer. In: Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers). pp. 484–494. Association for Computational Linguistics, Online (2021) OpenAlex ↗ · Scholar ↗
- Lee, D., Tian, Z., Xue, L., Zhang, N.L.: Enhancing content preservation in text style transfer using reverse attention and conditional layer normalization. In: Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). pp. 93–102. Association for Computational Linguistics, Online (2021) OpenAlex ↗ · Scholar ↗
- Lin, C.Y.: Rouge: A package for automatic evaluation of summaries. In: Text summarization branches out. pp. 74–81 (2004) our card
- 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 (2019) OpenAlex ↗ · Scholar ↗
- Mikolov, T., Grave, E., Bojanowski, P., Puhrsch, C., Joulin, A.: Advances in pre-training distributed word representations. arXiv preprint arXiv:1712.09405 (2017) our card
- Nema, P., Khapra, M.M.: Towards a better metric for evaluating question generation systems. In: Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing. pp. 3950–3959. Association for Computational Linguistics, Brussels, Belgium (2018) OpenAlex ↗ · Scholar ↗
- Pang, R.Y., Gimpel, K.: Unsupervised evaluation metrics and learning criteria for non-parallel textual transfer. In: Proceedings of the 3rd Workshop on Neural Generation and Translation. pp. 138–147. Association for Computational Linguistics, Hong Kong (2019) OpenAlex ↗ · Scholar ↗
- Papineni, K., Roukos, S., Ward, T., Zhu, W.J.: Bleu: a method for automatic evaluation of machine translation. In: Proceedings of the 40th annual meeting of the Association for Computational Linguistics. pp. 311–318 (2002) our card
- 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 (2015) our card
- 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, 140:1–140:67 (2020) our card
- Rane, C., Dias, G., Lechervy, A., Ekbal, A.: Improving neural text style transfer by introducing loss function sequentiality. In: Diaz, F., Shah, C., Suel, T., Castells, P., Jones, R., Sakai, T. (eds.) SIGIR '21: The 44th International ACM SIGIR Conference on Research and Development in Information Retrieval, Virtual Event, Canada, July 11-15, 2021. pp. 2197–2201. ACM (2021) OpenAlex ↗ · Scholar ↗
- 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 (2018) our card
- 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
- Riley, P., Constant, N., Guo, M., Kumar, G., Uthus, D., Parekh, Z.: TextSETTR: Few-shot text style extraction and tunable targeted restyling. In: Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). pp. 3786–3800. Association for Computational Linguistics, Online (2021) OpenAlex ↗ · Scholar ↗
- 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 (2020) our card
- Yamshchikov, I.P., Shibaev, V., Khlebnikov, N., Tikhonov, A.: Style-transfer and paraphrase: Looking for a sensible semantic similarity metric. Proceedings of the AAAI Conference on Artificial Intelligence 35(16), 14213–14220 (2021) OpenAlex ↗ · Scholar ↗
- Zhang, T., Kishore, V., Wu, F., Weinberger, K.Q., Artzi, Y.: Bertscore: Evaluating text generation with bert. arXiv preprint arXiv:1904.09675 (2019) OpenAlex ↗ · Scholar ↗
- 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 (2021) our card