Elamur Research

Text Style Transfer Evaluation Using Large Language Models

Paper · 2024 · Phil Ostheimer, Mayank Nagda, Marius Kloft et al.

Summary

A rewrite can change the tone of a review while keeping its subject and details intact. It can also change the tone by dropping the very details that made the review worth reading. Evaluating text style transfer therefore requires several judgments about the same rewrite. Did the requested style change occur? Did the original information survive? Does the new sentence read naturally? Phil Ostheimer and colleagues investigate whether the same automated evaluator can answer each question separately. Their approach uses large language models.

The authors ask for numerical ratings through written instructions. For style change and content preservation, the evaluator reads the original sentence and its rewrite. For fluency, it reads the rewrite alone. It receives no examples of already scored rewrites, a setup known as zero-shot prompting. The authors try different phrasings and rating scales, extract scores from the replies, then normalize and average those scores separately for each aspect. They validate the method against existing human ratings of rewrites by different sentiment transfer systems on Yelp reviews.

In the pooled Yelp test results, InstructGPT’s averaged ratings reach a Spearman rank correlation of 0.574 with human judgments of style transfer accuracy, ahead of the best classifier baseline at 0.497. On content preservation, InstructGPT reaches 0.404, close to METEOR at 0.420. Fluency shows the clearest advantage over the conventional baselines. Llama2 chat at 70b reaches 0.599 and InstructGPT reaches 0.571, while the stronger of the tested perplexity baselines reaches 0.232. These coefficients measure how similarly the evaluators and people order the rewrites on each aspect.

The wording of the question can affect both the rating and whether the reply contains a usable score. Averaging prompts generally makes the results less dependent on a particular formulation, although individual prompts sometimes perform better. Forcing replies to use a numerical vocabulary makes them easier to parse and typically weakens their agreement with human ratings. The authors propose the method as a way to standardize automated assessment. The experiments establish its performance against an existing set of human judgments for short English sentiment rewrites, with formality, politeness, and multilingual transfer left for future study.

Deep dive: Text Style Transfer Evaluation Using Large Language Models

How large language models rate text style transfer, how closely their scores track human judgments, and what averaging prompts changes. · about 32 minutes to read

The problem and its context

What a successful rewrite has to preserve

Text style transfer changes how a text says something while trying to preserve what it says. The style might be the sentiment of a review, the politeness of a request, or the formality of a sentence. That distinction gives the task a clear purpose, but applying it demands judgment. In a review, a writer’s attitude is part of the message. Once the task designates that attitude as the feature to change, an evaluator needs to decide which remaining details belong to the content the rewrite should preserve. The paper draws on the account of the task in the survey of text style transfer.

Consider the example in the paper’s method diagram. The original describes an experience in strongly negative terms, while the rewrite gives a strongly positive assessment. Both sentences remain brief overall judgments about the experience. The pair makes the sentiment reversal easy to see. It also exposes a harder question about content. The topic and basic structure remain, while the speaker’s assessment changes substantially. A rubric concerned with topic continuity can award high preservation. A rubric that treats the assessment itself as information would have grounds for a different score. The authors identify this overlap between style and content as a problem for evaluating sentiment and emotion.

The conventional dimensions ask evaluators to look at the rewrite from different angles. Style transfer accuracy concerns how well the new wording realizes the requested style. Content preservation concerns how much of the source’s information the rewrite carries forward. Fluency concerns how natural the result reads. A rewrite can be fluent while expressing the wrong sentiment. It can convey the desired sentiment in grammatical prose and still drop an important detail. A sentence may also keep the relevant details and use awkward wording. Reporting the dimensions separately makes such failure patterns visible.

The difference matters when comparing whole rewriting systems. An evaluator interested mainly in sentiment may favor a system whose outputs make polarity especially obvious. A similarity measure may favor a system that preserves much of the source wording. Those preferences can lead to different rankings even when both measures are doing something useful. To interpret a claimed improvement, a reader needs to know which judgment the score represents and whether that judgment resembles what human readers were asked to assess.

Why use human ratings as a reference

The paper treats human evaluation as the usual reference for assessing generated text. Readers can compare the source and rewrite, interpret the intent of the task, and attend to details a fixed numerical proxy may miss. Their ratings give researchers a way to test an automatic measure against judgments of the qualities it is supposed to capture. The choice of reference is especially important when the target quality, such as naturalness, requires an evaluative judgment in the first place.

The authors also summarize earlier work documenting the difficulties of human evaluation. The instructions can leave too much open to interpretation. The pool of available evaluators may lack the expertise a task calls for. Studies can use different criteria and procedures, making reported results difficult to reproduce or compare. Collecting judgments also takes time and money. These concerns explain why automatic scoring remains common even in studies that regard human judgments as the benchmark.

An automatic measure introduces a separate issue of validation. It can be well defined, repeatable, and cheap to run while still tracking the target judgment only weakly. The paper situates this concern in earlier research on generated text, including work questioning the usefulness of common metrics when their agreement with people is low or uncertain. The distinction is between having a procedure that produces a score and having evidence about what that score measures. Why We Need New Evaluation Metrics for NLG

How earlier automatic measures divided the work

For style accuracy, a common approach is sentence-level text classification. A classifier trained for the relevant style reads the result and identifies its category. For sentiment transfer, the category can serve as evidence that the rewrite expresses the intended polarity. The paper identifies fastText, TextCNN, and a classifier based on BERT as familiar choices. This kind of measure concentrates on identifying the style expressed by a sentence. Its training objective gives it no reason to check whether the rewrite preserves a particular detail from the source. TextCNN · BERT

For content preservation, earlier studies often compare the original wording with the rewrite. One group of measures comes from machine translation evaluation. The BLEU score represents the overlap-based approach in this paper’s experiments, alongside METEOR. Applying such a measure to a source and its rewrite makes intuitive sense when successful transfer should retain much of the original material. A valid rewrite can also express the same information with different wording. Conversely, a sentence that shares much of the source’s wording can change a detail that matters to a reader.

Another group tries to capture similarity through word embeddings, numerical representations of words. The paper discusses methods that compare averages of these representations, match words across the texts, summarize embedding coordinates by their extremes, or use word mover’s distance. These measures give the content comparison ways to respond to relationships between words beyond exact matches. They still make different choices about how to turn relatedness into a sentence score. Earlier studies examined which methods best reflect human assessments of semantic similarity and content preservation.

For fluency, a common proxy is perplexity. A language model assigns probabilities to text, and perplexity expresses how surprising a sentence is under that model. A sentence that the model finds more predictable can receive a better fluency assessment by this method. The choice of model and training data affect what counts as predictable. As the authors note, earlier style-transfer studies reported differing levels of agreement between perplexity and human fluency judgments, even though both studies used a probability-based measure of the same broad kind.

Prior researchers had already tried to validate automatic measures against human ratings of style, content, and fluency. Some focused on a particular aspect, especially content, while others compared several dimensions or studied multilingual formality transfer. The paper characterizes this work as a collection of validation efforts that had yet to yield a standard procedure for a style-transfer subtask. Researchers could choose among many measures, and a result obtained under one choice could be difficult to compare with a result obtained under another. That is the paper’s point of departure in evaluation and benchmarks.

Why ask for a judgment directly

The proposed shift is to describe the desired judgment in ordinary language and ask for a score. A prompt can tell the evaluator which sentence is the source, which one is the rewrite, and what the endpoints of the rating scale mean. The same procedure can ask about sentiment change, factual continuity, or naturalness by changing the question and its inputs. This gives the authors a common experimental framework across the dimensions while leaving room for each dimension to have its own rubric.

The paper builds on research showing that large pretrained systems can respond to tasks specified through prompts, including tasks illustrated by a few examples. It also draws on work that adapts such systems to follow instructions through supervised fine-tuning and, in some cases, reinforcement learning from human feedback. For the style-transfer experiment, those are properties of the evaluators the authors select. The authors themselves use instructions without scored demonstrations. Few-shot learning · Fine-tuning

The closest precedent discussed by the paper uses these systems as evaluators of open-ended generation and finds that agreement with people varies by the aspect being judged. The authors also cite experiments on text annotation and explanations of implicit hate speech as reasons to investigate automated judgment through prompting. Those precedents motivate a direct test on style transfer, where the evaluator must consider a deliberate change in expression alongside the material the rewrite should retain. Can Large Language Models Be an Alternative to Human Evaluations?

The method, step by step

Give the evaluator a sentence and a specific question

The authors begin with rewrites that already exist. A style transfer system has taken a Yelp sentence and produced an output intended to reverse its sentiment. The evaluator’s job is to score that output. The original sentence remains available whenever the question requires a comparison. The human ratings are kept for the validation stage, where they provide a reference for judging the automatic scores. They are absent from the prompt itself.

For style transfer accuracy, the prompt includes the source and the rewrite. Many templates ask how different their styles are, while some explicitly name sentiment or positivity. The resulting score operationalizes style accuracy mainly through perceived change or intensity between sentences. In the paper’s diagram, the source is the unfavorable overall assessment and the rewrite is its favorable counterpart. The example reply is 5.0 on a continuous scale from 1 to 5, where the high endpoint means the sentences’ styles are maximally different. The number describes the relative style of that pair under that prompt.

For content preservation, the evaluator sees the same pair and receives a different criterion. A template may ask whether the sentences still concern the same topic, whether the content changed despite the sentiment reversal, or whether the rewrite keeps the information once differences of style and formatting are set aside. The illustrated reply is 1.0 on a continuous scale from 0 to 1 whose upper endpoint represents topic identity. In that example, high style difference and high content preservation can occur together. The prompts make the evaluator attend to different features of the pair.

For fluency, the evaluated sentence is the rewrite. A source comparison plays no role in the question of whether the output itself reads naturally. The paper’s templates express this criterion in several ways, including naturalness, coherence, grammatical quality, and comprehensibility. Some use a direct question with endpoint labels. Others describe several rating categories. The wording gives the evaluator a way to map its impression of the sentence onto the requested score.

These ratings are made through separate requests. The procedure does not ask for a combined grade covering all the virtues of a rewrite. A content score and a fluency score can therefore be compared with the corresponding human judgments independently. That matters for diagnosis. A fluent review with the target sentiment can still lose information, and averaging across dimensions would conceal how the evaluator treated that error.

How the authors turn prompts into rewrite ratings

The steps in order.

How the authors turn prompts into rewrite ratingsStep 1: Take a source sentence and its rewrite1. Take a source sentence and its rewriteStep 2: Choose the aspect to evaluate2. Choose the aspect to evaluateStep 3: Insert the relevant text into each template3. Insert the relevant text into each templateStep 4: Ask for a score on the specified scale4. Ask for a score on the specified scaleStep 5: Extract the first number and check its range5. Extract the first number and check its rangeStep 6: Normalize and average scores for that aspect6. Normalize and average scores for that aspectStep 7: Compare the resulting ranks with human ratings7. Compare the resulting ranks with human ratings

Vary the wording and the scale

The authors use 11 prompt templates for each aspect. They take inspiration from the design of human style-transfer questionnaires. Each template tells the evaluator how to rate the current item without demonstrating a previously rated item, which is what makes the method zero-shot. The source and rewrite embedded in the question are the material being judged. They function as the input to the task.

Templates vary in how much they say about the judgment. A short style prompt asks about the difference between the two sentences. A more specific version names the style in question. Some identify the source and rewrite with sentence labels, while others use letters. Several attach the expected answer immediately after a cue for the result. A prompt can also put the text before the full task description. These choices affect both what the evaluator is asked to infer and how it is encouraged to begin its reply.

Rating scales vary as well. The paper uses continuous scales from 0 to 1 and both continuous and discrete versions of scales from 1 to 5. The listed content prompts also include a scale from 1 to 3 with categories for the extent of preservation. A continuous scale invites ratings between the endpoints. A discrete rubric offers defined categories, sometimes with explanations of what intermediate choices mean. This gives the experiments more than a comparison of paraphrases. They also test different ways of eliciting a judgment.

The prompt inventory exposes a difficulty in treating the formulations as interchangeable. Some content questions judge topic continuity, while others ask about information or equivalence. Some assume opposite sentiment in the pair. Others simply ask the evaluator to compare the sentences while setting style aside. Topic continuity can survive even if a rewrite omits a detail. An instruction that assumes a reversal may frame a failed transfer differently from an open comparison. The ensemble combines the judgments these formulations elicit under the paper’s broad definition of content preservation.

The same issue appears in the fluency prompts. A sentence can be understandable while sounding awkward, and its grammar can be acceptable while its phrasing feels unnatural. A wording that asks mainly about grammar can elicit a narrower judgment than one that asks how the sentence reads overall. Coherence, grammar, and naturalness are related enough to be plausible prompts for the same dimension, but the differences give the prompt comparison a substantive interpretation.

Turn a completion into a rating

The paper describes prompting in terms of an input, a filled template, and a generated answer. In its notation, the stages can be written as follows.

x → x′ → x̂

Here x is the input text for the judgment, which can include a source and a rewrite. x′ is the prompt after inserting that text into the template. The prime marks the prompted version of the input. x̂ is the answer produced by the evaluator, with the hat marking the generated result. The first arrow represents construction of the prompt, and the second represents completion by the evaluator.

The distinction between types of prompts concerns where the generated answer goes. A cloze prompt leaves a slot somewhere in the text, potentially with words after it. A prefix prompt presents the instruction and input first, leaving the answer to follow them. The authors use prefix prompts because they want a numerical rating at a point where it is straightforward to extract. A short cue at the end of the instruction can encourage the reply to begin with the score.

The ordinary scoring runs use each evaluator’s default generation settings. Replies can contain prose in addition to the requested rating. The authors use a regular expression to look for the first integer or floating-point number in the completion. They then check that the extracted number falls within the scale allowed by the prompt. A reply with no extractable number yields no score through this procedure. The authors discard extracted scores that exceed the allowed bounds.

This makes the reply format part of the measurement process. An evaluator may be capable of giving a plausible assessment and still place it after an introductory discussion, where it is harder to extract. A completion can also contain a number that belongs to a list or identifies a sentence. Checking the numeric range catches some unsuitable outputs, including numbers outside the stated scale. An in-range number can still have a function other than expressing the intended rating. The paper examines examples of such replies separately from its main accuracy comparisons.

Average the prompt scores for each aspect

Raw scores come from different scales, so the authors normalize them before combining prompts. Normalization puts the scores onto a common numerical footing. A rubric that begins at 1 and ends at 5 produces raw values with a different interpretation from a rubric that begins at 0 and ends at 1. Endpoint descriptions also matter when a prompt places greater similarity at the lower end of the scale. The method describes normalization and equal weighting, leaving the exact normalization rule implicit.

The uniform averaging step described in the paper can be expressed as follows.

m = (∑ⱼ zⱼ) / n

Here m is the ensemble rating for a single item on a single aspect. zⱼ is the normalized score from the prompt indexed by j. The symbol ∑ⱼ means to add the indexed scores that enter the average. n is the number of scores being averaged, / denotes division, and = gives the resulting equality. The parentheses group the sum before division. This expresses the equal-weight combination once the scores to be combined have been determined.

Each ensemble combines different questions posed to the same evaluator about the same aspect. There is no learned weighting that rewards a prompt for matching human scores especially well. As a result, the human judgments are available for assessing the ensemble’s performance without serving as examples that teach it how to rate a review or how much to trust a particular template.

The practical reason for averaging is that a choice of wording can have an outsized effect when the evaluator receives only one formulation. If different phrasings produce errors on different items, a shared tendency can survive averaging while some of the idiosyncratic variation diminishes. If prompts tend to make the same mistake, equal weighting can preserve it. Whether averaging helps is therefore a question for the comparison with human ratings.

Use available evaluators and existing human annotations

The authors test both base pretrained versions and versions adapted to follow instructions. InstructGPT, Falcon instruct, and Llama2 chat are the focus of the main results. For Falcon and Llama2, the experiments also include base versions of the same families. OPT and BLOOM appear in the pretrained comparisons, and the base GPT3 version provides a counterpart to InstructGPT. The distinction lets the paper examine whether prior adaptation to instructions matters for assigning scores in this zero-shot setting.

The evaluators undergo no additional training for this experiment. The procedure uses sentiment rewrites for which ratings from Mir and colleagues are already available. The researchers score those rewrites, combine the automatic ratings where appropriate, and compare the resulting ranks with the human judgments for the same dimension. The key data requirement is thus a set of rewrites with comparable human assessments for validation. Running the prompts on a new sentence and establishing that the prompts give meaningful judgments on a new dataset are separate tasks.

Experiments and results

What the human scores cover

The experiments use the Yelp sentiment transfer test set and the human annotations reported by Mir and colleagues. Positive examples are just as numerous as negative ones in the source sentences. For each of the rewriting systems, the test material consists of 244 annotated sentences. The paper reports 732 sentences across their outputs. The maximum sentence length in the evaluation material is 15, and the mean length is 9.0. The evidence therefore concerns short review sentences with a deliberately balanced sentiment setup.

The outputs come from the Cross-Aligned Autoencoder, called CAAE, the Adversarially Regularized Autoencoder, called ARAE, and a delete-and-retrieve approach, called DAR. These are the systems producing the rewritten sentences. InstructGPT and the other prompted evaluators supply judgments about those sentences. The distinction explains the structure of the results. A coefficient labeled CAAE describes how an evaluator agrees with people when rating CAAE’s outputs. A pooled coefficient describes that evaluator’s agreement on the combined output collection. Style Transfer from Non-Parallel Text by Cross-Alignment · Delete, Retrieve, Generate

Looking at each output set separately helps reveal whether a method’s performance depends on the system whose writing it scores. The pooled result answers a broader ordering question within the same Yelp test set. It includes comparisons across the output collections, so it need not behave like an average of the separate correlations. The authors report both views for style accuracy, preservation, and fluency.

How agreement is measured

The main metric is Spearman’s rank correlation coefficient. It compares the ordering implied by automatic ratings with the ordering implied by human ratings. If human readers tend to give a better fluency judgment to sentences that the evaluator also rates more highly, the two orderings agree. A positive coefficient gives evidence of that tendency. Coefficients near zero show little consistent rank agreement, and negative coefficients indicate a tendency towards opposing rankings.

The rank comparison accommodates ratings made on different numerical scales. An evaluator can spread its scores over a wide interval while human readers use a smaller part of their scale, and their rank correlation can still be high if both order the rewrites similarly. The practical implication is that a strong coefficient establishes something about relative judgments on these examples. The absolute meaning of a given score, or its suitability as a threshold, requires different evidence.

The paper flags coefficients with p>0.05 in its result tables. It describes many correlations from smaller variants as weak or statistically uncertain. That qualification matters when a coefficient is close to zero or has a negative sign. A small negative result can be reported as observed in the test set without being treated as evidence of a stable tendency to reverse human judgments.

The main prompted comparisons include InstructGPT in its text-davinci-003 version, with 175 billion parameters, accessed through an API. Falcon instruct is tested at 7b and 40b parameters. Llama2 chat is tested at 7b, 13b, and 70b. The paper chooses instruction-following versions for the main comparisons after observing limited reliability from several pretrained evaluators on these prompts. InstructGPT · Llama2

Style transfer accuracy

The style baselines are fastText, TextCNN, and BERT fine-tuned to recognize style. BERT has the strongest pooled baseline correlation, 0.497. InstructGPT reaches 0.574 on the combined Yelp test outputs. The largest Falcon and Llama2 chat variants trail the discriminative baselines in this pooled comparison. The smaller prompted variants do worse still, with some pooled coefficients close to zero or below it.

Style transfer accuracy on pooled Yelp test outputs by Spearman correlation with human ratings

InstructGPT ranks the rewrites more like human evaluators than the tested classifiers do.

Style transfer accuracy on pooled Yelp test outputs by Spearman correlation with human ratingsfastText: 0.473fastText0.473TextCNN: 0.458TextCNN0.458BERT: 0.497BERT0.497InstructGPT ensemble (this paper): 0.574InstructGPT ensemble (this paper)0.574Falcon instruct 40b ensemble: 0.307Falcon instruct 40b ensemble0.307Llama2 chat 70b ensemble: 0.178Llama2 chat 70b ensemble0.178
The numbers
System or settingSpearman correlation
fastText0.473
TextCNN0.458
BERT0.497
InstructGPT ensemble (this paper)0.574
Falcon instruct 40b ensemble0.307
Llama2 chat 70b ensemble0.178

The advantage for InstructGPT varies by output set. On ARAE’s Yelp test outputs it scores 0.618, with BERT at 0.513. On DAR’s outputs it reaches 0.584, while BERT reaches 0.408. CAAE gives a different ordering. BERT records 0.559, fastText records 0.550, and InstructGPT records 0.543. An account based solely on the pooled comparison would miss the set of rewrites for which a classifier agrees more closely with human judgments.

Among the prompted alternatives, Falcon instruct at 40b reaches 0.389 on CAAE’s outputs. For Llama2 chat at 70b, the strongest of its individual output-set correlations for style is 0.347 on ARAE’s outputs. Its results on CAAE and DAR are 0.075 and 0.077, respectively. These cases show why the result belongs to a specific combination of evaluator, prompt ensemble, and output collection. The ability to follow the same rating instructions across a dataset need not produce consistent agreement across the rewriting systems in it.

Content preservation

The content comparison includes overlap-based and embedding-based measures. In this experiment, the authors apply BLEU directly between the original sentence and the transferred version, a use they call Self-BLEU. They also test METEOR. The embedding baselines use averaged embeddings, greedy word matching, vector extrema, and word mover’s distance. The alternatives thus cover different ways of giving credit for shared wording or related words.

Content preservation on pooled Yelp test outputs by Spearman correlation with human ratings

METEOR leads the pooled comparison, with InstructGPT close behind.

Content preservation on pooled Yelp test outputs by Spearman correlation with human ratingsSelf-BLEU: 0.339Self-BLEU0.339METEOR (this paper): 0.420METEOR (this paper)0.420Embedding average: 0.273Embedding average0.273Greedy matching: 0.358Greedy matching0.358Vector extrema: 0.328Vector extrema0.328Word mover’s distance: 0.377Word mover’s distance0.377InstructGPT ensemble: 0.404InstructGPT ensemble0.404Falcon instruct 40b ensemble: 0.262Falcon instruct 40b ensemble0.262Llama2 chat 70b ensemble: 0.271Llama2 chat 70b ensemble0.271
The numbers
System or settingSpearman correlation
Self-BLEU0.339
METEOR (this paper)0.420
Embedding average0.273
Greedy matching0.358
Vector extrema0.328
Word mover’s distance0.377
InstructGPT ensemble0.404
Falcon instruct 40b ensemble0.262
Llama2 chat 70b ensemble0.271

METEOR is the strongest pooled traditional baseline at 0.420, with InstructGPT at 0.404. That proximity is the basis for the authors’ conclusion that their strongest prompted evaluator can perform comparably to existing content measures. The ranking still favors METEOR on the combined test data. Self-BLEU’s 0.339 and word mover’s distance’s 0.377 show how the choice among conventional baselines also affects the comparison.

CAAE’s outputs give the strongest content coefficients for both METEOR and InstructGPT. METEOR reaches 0.659, and InstructGPT reaches 0.656. On DAR’s outputs, METEOR reaches 0.425 and InstructGPT reaches 0.345. The ARAE results also favor several conventional measures. METEOR is at 0.247, word mover’s distance at 0.240, and InstructGPT at 0.191. The near match for CAAE and the different gaps for DAR and ARAE put the pooled result in context.

The prompted alternatives are further behind in the pooled content comparison. Falcon instruct at 40b reaches 0.262 and Llama2 chat at 70b reaches 0.271. On CAAE’s outputs, Llama2 chat at 70b reaches 0.484, its highest content coefficient across the individual output sets. It reaches 0.104 on ARAE and 0.198 on DAR. Different score levels across the output sets appear for traditional baselines as well. The paper reports this variation without attributing it to a measured feature of the sentences produced by each system.

Fluency

For fluency, the conventional baselines use GPT2 perplexity. The authors evaluate a pretrained version and a version fine-tuned on Yelp. The fine-tuned version gives the stronger pooled correlation with human judgments, 0.232, compared with 0.171 for the pretrained one. Several prompted systems exceed both pooled values, with the largest Llama2 chat version producing the highest correlation.

Fluency on pooled Yelp test outputs by Spearman correlation with human ratings

The strongest prompted evaluators agree more closely with human fluency ratings than the perplexity baselines do.

Fluency on pooled Yelp test outputs by Spearman correlation with human ratingsPretrained GPT2 perplexity: 0.171Pretrained GPT2 perplexity0.171Yelp-fine-tuned GPT2 perplexity: 0.232Yelp-fine-tuned GPT2 perplexity0.232InstructGPT ensemble: 0.571InstructGPT ensemble0.571Falcon instruct 7b ensemble: -0.010Falcon instruct 7b ensemble-0.010Falcon instruct 40b ensemble: 0.476Falcon instruct 40b ensemble0.476Llama2 chat 7b ensemble: 0.216Llama2 chat 7b ensemble0.216Llama2 chat 13b ensemble: 0.290Llama2 chat 13b ensemble0.290Llama2 chat 70b ensemble (this paper): 0.599Llama2 chat 70b ensemble (this paper)0.599
The numbers
System or settingSpearman correlation
Pretrained GPT2 perplexity0.171
Yelp-fine-tuned GPT2 perplexity0.232
InstructGPT ensemble0.571
Falcon instruct 7b ensemble-0.010
Falcon instruct 40b ensemble0.476
Llama2 chat 7b ensemble0.216
Llama2 chat 13b ensemble0.290
Llama2 chat 70b ensemble (this paper)0.599

Llama2 chat at 70b leads on ARAE’s outputs with 0.539, while InstructGPT reaches 0.518. InstructGPT leads on CAAE’s outputs with 0.560, and Llama2 chat at 70b reaches 0.551. For DAR’s outputs, InstructGPT reaches 0.603 and the same Llama2 variant reaches 0.602. The model ordering changes across output sets even though both evaluators are consistently among the strongest on this dimension.

The perplexity results also vary substantially by output set. On DAR, the pretrained version reaches 0.418 and the fine-tuned version reaches 0.411. On CAAE, those versions reach 0.044 and 0.120, respectively. The prompted fluency results for the largest evaluators are comparatively strong on both output sets. This helps explain why the paper singles out fluency as the aspect for which alternatives to InstructGPT make the strongest case.

The smaller instruction-following systems are more uneven. For Llama2 chat at 13b, the fluency correlation is 0.459 on DAR, 0.200 on CAAE, and 0.184 on ARAE. Its pooled coefficient is 0.290. Falcon instruct at 7b reaches -0.010 on the pooled outputs, which the paper treats as statistically insignificant. Taken with the results for style and content, the fluency comparison shows that performance can vary markedly between members of the same family and between judgments made by a single evaluator.

What the ablations show

Averaging makes the choice of wording less decisive

The authors compare the individual prompt scores with the score obtained by averaging normalized ratings from the same evaluator. Their figure plots the human correlation for each formulation and shows the ensemble correlation alongside those values. This comparison directly addresses how much performance depends on which wording is chosen. It also reveals whether the average can compete with the best wording observed in the experiment.

For style transfer accuracy, the InstructGPT and Falcon instruct ensembles improve on the individual prompts in the comparison. Llama2 chat shows more variation across style prompts. The authors call attention to a formulation that uses letters for the two sentences instead of the usual sentence labels. Falcon produces few parsable replies under that formulation. The prompt also changes how it asks for the intensity judgment, so the observed behavior belongs to the complete formulation. The influence of the labels by themselves remains open.

The authors also point to a style prompt that explicitly requests a continuous rating. Such a request changes the expected answer even when its endpoints resemble those of another prompt. A weaker result can reflect the assessment the question elicited, the way the model represented it on the scale, or the way it expressed the score. The experiment keeps these possibilities in view by reporting both agreement and response usability.

For content preservation, InstructGPT leads across the individual prompts in the main comparison. The ensemble improves on individual formulations for InstructGPT and Falcon. Llama2 shows less variation than in the style judgment, and its combined score matches or exceeds most of its individual results. The authors associate some weaker prompt performance with changes in how a question frames preservation or orients its scale, alongside a low proportion of usable replies. The inventory includes questions about topic, retention of details, and equivalence, so the variation can also reflect what each prompt asks the evaluator to count as preserved.

On fluency, the InstructGPT ensemble is about as strong as or stronger than its individual prompts. Falcon’s ensemble has the highest correlation among its compared formulations, and Llama2’s ensemble exceeds most of its individual prompt correlations. The authors link weaker individual results to formulations that ask about coherence or grammar, as well as a template that puts the sentence before the task instruction. These are informative contrasts among complete templates. They leave the separate contributions of word choice, sentence placement, and expected answer format unresolved.

The relevant benchmark for the ensemble is broader than whether it wins against every individual prompt. Selecting a single prompt on the strength of its observed correlation requires human judgments with which to compare candidates. The uniform average gives a procedure that can be specified in advance and evaluated as a whole. Its strong performance against most individual formulations supports that use in the tested setup, even where an individual prompt happens to align better with human ratings.

Producing a number and producing a useful judgment

The authors report two stages of response validity. The first asks whether the parser can extract a number from the completion. The second asks whether the extracted number falls within the range specified by the template. The denominator for the second statistic is the set of replies from which a number was extracted. Its interpretation depends on keeping that denominator in view. An evaluator can deliver mostly in-range scores among its parsed replies while leaving many other replies without usable ratings.

InstructGPT is the strongest overall on these checks. Its table displays 100.0% parsable answers for style, content, and fluency, with the authors explaining that rounding obscures a few failures. Falcon instruct at 7b is similarly easy to parse on many prompts. Its replies for style accuracy are reported as 100.0% parsable, even though its pooled rank correlation for that aspect is -0.131. The combination is a particularly clear example of what the format check measures. Falcon can return a readable rating consistently while its ordering of the Yelp rewrites agrees poorly with the human ordering.

Llama2 chat at 70b illustrates how coverage varies by aspect even for a strong evaluator. Its parsable response rates are 69.1% for style transfer accuracy, 71.4% for content preservation, and 98.9% for fluency. Of the style ratings that can be parsed, 99.6% fall within the requested range. The corresponding in-range rate for its parsed content ratings is 99.0%. For style and content, the difficulty in obtaining a number is therefore central to understanding the coverage of the reported judgments.

The paper’s examples show what can go wrong in a completion. Some replies give a score immediately and then explain it. Others begin with a discussion of grammar, sentence structure, or tone and leave the rating until later. A numerical list can appear before the intended score. A long reply can reach its length limit during a discussion and omit the final rating altogether. These examples help explain why parsing performance can differ among evaluators given the same questionnaire, and why reply verbosity matters to a method that extracts the first number.

Restricting the reply improves formatting at a cost

The ordinary evaluation uses free generation under the evaluators’ default settings. In a separate experiment, the authors restrict the output vocabulary to decimals. This produces parsable replies in the tested settings. It directly addresses a source of missing data and makes the output pipeline simpler to apply mechanically.

The agreement results typically favor unrestricted generation. The paper reports that some prompts improve under restriction, generally in cases where both versions correlate weakly with human judgments. It also reports undefined correlations when a prompt assigns the same score to every input. An evaluator that treats every item alike gives Spearman’s coefficient no ranking to compare with the human judgments.

This comparison separates the benefit of a cleaner output format from the quality of the ratings carried in that format. The decimal restriction changes the possible completions and can change which numerical judgments the evaluator gives. The study establishes that this particular restriction often damages rank agreement. Other forms of structured output and their effects on scoring remain open.

Instruction tuning and size have different effects

The base and instruction-following comparisons help separate numerical compliance from rank agreement. The base GPT3 evaluator can produce numerical replies, yet its pooled Yelp correlations are 0.044 for style accuracy, 0.042 for content preservation, and 0.030 for fluency. The corresponding InstructGPT correlations are 0.574, 0.404, and 0.571. The gap supports the paper’s emphasis on instruction-following behavior in this setup. GPT3

The effect varies by family and dimension. On pooled Yelp fluency, base Llama2 at 70b reaches 0.521 and the chat version reaches 0.599. For content, the same comparison gives 0.212 for the base version and 0.271 for chat. For style accuracy, the base version reaches 0.393, above the chat version’s 0.178. The fine-tuned versions frequently produce judgments more aligned with the human ratings, as the authors emphasize, with this style result showing an important exception in their own data.

Hardware and parameter count also fail to explain the comparisons by themselves. The OPT size series extends from 125m to 175b parameters. Larger members of that family generally produce more extractable numbers and more scores on the requested scale, although the trends can level off or fluctuate. At 175b, the pooled OPT correlations are -0.039 for style, -0.067 for content, and -0.058 for fluency. The largest variant still has little rank agreement with people in this setup, in spite of the gains in response formatting observed across the family. OPT

Default generation behavior adds another difference between base and adapted versions. The paper reports that Llama2 chat has lower parsing rates than base Llama2 for style and content across the sizes tested, and higher parsing rates for fluency. The authors suggest the chat version’s tendency to explain its reasoning as a possible contributor. They also note Falcon’s training setup and size when discussing its performance relative to the strongest evaluators. Those comparisons involve several differences at once, leaving the individual effects of feedback-based training, size, and response style unresolved.

Consistency across prompts and differences in score distributions

For InstructGPT, the authors treat each of the 11 prompts for a given dimension as a separate rater. They report Cronbach’s alpha of 0.99 for style accuracy, 0.99 for content preservation, and 0.99 for fluency. In this use, alpha describes internal consistency among the ratings elicited through different formulations. The Spearman comparison answers the separate question of whether those ratings order rewrites as human evaluators do. The high alpha is evidence about the consistency of the InstructGPT prompt set.

The appendix also examines how different evaluators use the normalized scales. On style accuracy, InstructGPT tends to score towards the extremes, while Falcon instruct at 40b and Llama2 chat at 70b cluster around 0.5. On fluency, InstructGPT scores are spread relatively evenly between 0.1 and 1.0. Llama2 chat at 70b centers around 0.5, while Falcon instruct at 40b puts more weight towards 0.0. The distributions show that the same rating procedure can yield different patterns of absolute scores. Rank correlation can still be high when evaluators use the scale differently, provided their relative ordering agrees with the human judgments.

Limitations

Limits identified by the authors

The authors restrict the study to monolingual sentiment transfer on Yelp, using previously collected human evaluations. They describe the annotation collection as the largest publicly accessible one they knew of for this setting with outputs from several rewriting systems. Cost shaped both the choice of dataset and the choice to use zero-shot instructions. Including scored demonstrations would have made API calls longer and more expensive for InstructGPT and GPT3.

The paper identifies formality and politeness transfer as future settings for testing the approach. Those tasks can require a different understanding of which changes count as stylistic and which details the rewrite must retain. Multilingual formality transfer is another proposed extension. The authors mention an instruction-following version of BLOOM as a possibility for that work. The current validation concerns English sentiment rewrites. GYAFC · BLOOM

The authors also distinguish the absence of task-specific training from the cost of obtaining scores. An overlap measure can be cheap to run on ordinary hardware, while an embedding measure or classifier may require earlier training. Directly prompting the largest local evaluators used in the paper can occupy several GPUs for hours. An API can return scores quickly while charging for the submitted tokens. Ensembling adds more requests per item and can save some of the effort involved in finding a good individual prompt. The paper leaves the comparison of operating costs dependent on the evaluator and the scoring task.

Choice of evaluator affects the length of text that fits into the prompt. The authors identify the context window as a limit on the amount of text that can be rated. A style or content question has to carry the source and rewrite as well as the instruction. Longer documents can therefore run up against a constraint that the short Yelp sentences do little to test. The paper calls for more comparisons across evaluators and settings.

The paper also raises robustness to adversarial inputs as an open issue. Its main robustness evidence concerns ordinary changes in how a rating question is phrased. Prior work cited by the authors gives them reason to worry about learned evaluation measures under adversarial conditions, but resistance to such inputs remains a future question for the proposed style-transfer method. Explaining and Harnessing Adversarial Examples

Two further caveats concern how scoring is observed. Discarding an answer beyond the allowed range avoids having to normalize a number whose scale is unclear. The authors acknowledge that the remaining examples could give a biased picture if the discarded replies come from items that would otherwise be scored poorly. They also note that a written explanation can be hard to parse and can disagree with the rating it accompanies. The examples demonstrate that explanations are available as output. The reasoning behind the numerical judgment remains harder to validate.

The authors frame the contribution as a proposal to standardize automated evaluation while retaining human evaluation as a reference. Their study depends on people’s judgments for its empirical validation. The paper points to exact specification of weights, seeds, hyper-parameters, and prompts as a potential advantage for reproducibility when those details can be fixed. The proposed procedure shares a common format across dimensions, while the paper leaves the choice of evaluator and rubric consequential.

Limits visible in the experimental setup

The measurement target is agreement with one existing annotation collection. A higher rank correlation means that the automatic scores reproduce more of the ordering in those human judgments for the tested material. The experiment leaves open how well the same scores would match a different group of readers, a different questionnaire, or a criterion that assigns a different role to sentiment in the content. The paper’s discussion of human evaluation makes those distinctions relevant even when the automatic comparison is implemented consistently.

The short, balanced test material also limits what the study can reveal about broader evaluation. A reviewer of long texts may need to judge whether details introduced early are preserved later, or whether an apparently successful style change is consistent across the passage. The Yelp setup tests short sentence pairs and standalone rewrites. Its results give no direct estimate for those longer comparisons or for a collection with a markedly different mix of sentiment directions.

Pooling different generators’ outputs broadens the comparison within Yelp while changing the question asked by the coefficient. A high pooled correlation can reflect an ability to distinguish between outputs from different systems as well as an ability to rank rewrites within one system’s outputs. The paper offers both pooled and separate coefficients, and they sometimes point to different leaders. InstructGPT’s pooled style result, for example, needs to be read alongside the CAAE result, where the conventional classifiers perform strongly. Transfer to outputs from a new rewriting system remains a separate empirical question.

The style prompts also leave room for a distinction between the amount of change and the success of the requested change. Many ask how different the source and rewrite sound. In the Yelp task, substantial sentiment change is often relevant to the intended reversal, so that comparison can help rank outputs. A large perceived change still has to be interpreted under the task’s target. A system could change some other stylistic feature strongly. For a transfer task with several possible target styles, a rubric would need to make clear what counts as evidence that the desired style was reached.

An analogous issue affects content preservation. Topic similarity, overlap in details, and equivalence of information represent different standards. Averaging prompts can deliver a stable ranking while obscuring which standard drives a particular item’s score. The paper’s experiment tells readers how the ensemble aligns with the chosen human annotations. It gives less information about the particular kinds of omissions, substitutions, or added details that the evaluator notices consistently.

Parsing introduces a further selection issue. A missing rating may be associated with an awkward rewrite, an unclear prompt, or an evaluator’s tendency to add commentary. The reported coverage varies enough across variants and dimensions to matter when interpreting their correlations. The comparison would answer a different question if all evaluators were ranked only on an identical set of cases for which each supplied valid scores. It would also answer a different question if failure to return a usable rating were treated as part of the performance measure. The paper’s response statistics help readers see the issue, while the method description leaves some details of how prompt-level omissions enter the ensemble implicit.

The ensemble experiment uses the particular collection of formulations the authors designed. It shows the effect of combining those prompts on these data and provides evidence that equal averaging can be competitive with individual alternatives. It leaves open how quickly performance changes as prompts are added, how different subsets would fare on an independent test, and how much diversity among the prompts is helpful. These are questions about the generality of the method that the comparison between individual templates and the full tested ensemble does not resolve.

Finally, score calibration and internal consistency should be read according to what the statistics test. Cronbach’s alpha describes consistency among InstructGPT’s prompt ratings. Rank correlation measures ordering against human scores. Neither quantity supplies a validated threshold for declaring a rewrite acceptable, and the score distributions show that different evaluators use the normalized scale differently. The evidence is strongest for relative assessment on the reported benchmark, with absolute score interpretation left open.

What came after

Leveraging Large Language Models for NLG Evaluation: Advances and Challenges cites the paper in connection with the wider subject of evaluation for natural language generation. The style-transfer study supplies a concrete case for that broader topic. It asks an evaluator to apply written rubrics to generated text, checks whether the resulting scores track human judgments, and finds different levels of agreement depending on the quality being scored. The citation establishes the connection to the broader discussion. Whether the citing work uses the Yelp data, replicates the experiments, or adopts prompt averaging is unspecified.

Beyond the Surface: Measuring Self-Preference in LLM Judgments cites the paper in work concerned with measuring self-preference. That topic raises a question about how an automated judge responds to the relationship between the text it is rating and its own outputs. Ostheimer and colleagues evaluate agreement with people and sensitivity to prompt wording on rewrites produced by separate style-transfer systems. Their experiment leaves self-preference unmeasured. The citation connects that experiment to a later inquiry about the behavior of automated judges, with the use of any specific procedure from the style-transfer paper unspecified.

Cite

Cite as Phil Ostheimer, Mayank Nagda, Marius Kloft and Sophie Fellenz. 2024. Text Style Transfer Evaluation Using Large Language Models. Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{ostheimer2024text,
  title = {{Text Style Transfer Evaluation Using Large Language Models}},
  author = {Phil Ostheimer, Mayank Nagda, Marius Kloft and Sophie Fellenz},
  booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
  year = {2024},
  doi = {10.63317/56xihte7mqb8},
  url = {https://doi.org/10.63317/56xihte7mqb8}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/ostheimer-2024-text-style-transfer-evaluation-large/