Abstract
Evaluating Text Style Transfer (TST) is a complex task due to its multi-faceted nature. The quality of the generated text is measured based on challenging factors, such as style transfer accuracy, content preservation, and overall fluency. While human evaluation is considered to be the gold standard in TST assessment, it is costly and often hard to reproduce. Therefore, automated metrics are prevalent in these domains. Nonetheless, it is uncertain whether and to what extent these automated metrics correlate with human evaluations. Recent strides in Large Language Models (LLMs) have showcased their capacity to match and even exceed average human performance across diverse, unseen tasks. This suggests that LLMs could be a viable alternative to human evaluation and other automated metrics in TST evaluation. We compare the results of different LLMs in TST evaluation using multiple input prompts. Our findings highlight a strong correlation between (even zero-shot) prompting and human evaluation, showing that LLMs often outperform traditional automated metrics. Furthermore, we introduce the concept of prompt ensembling, demonstrating its ability to enhance the robustness of TST evaluation. This research contributes to the ongoing efforts for more robust and diverse evaluation methods by standardizing and validating TST evaluation with LLMs.
Introduction
Text Style Transfer (TST) is the task of altering a text's style (e.g., making a "rude" sentence "polite") while maintaining its original semantic meaning. Evaluating TST systems is notoriously difficult because it requires balancing three often-conflicting goals: Style Transfer Accuracy, Content Preservation, and Fluency.
While human evaluation remains the gold standard, its high cost and lack of reproducibility have led researchers to rely on a fragmented array of automated metrics like BLEU, METEOR, and BERT-based classifiers. However, these metrics often correlate poorly with human judgment and lack a standardized implementation. This paper proposes a unified framework using Large Language Models (LLMs) to provide a more robust and standardized evaluation for TST tasks.
Methodology
The authors propose a unified framework where a single instruction-tuned LLM evaluates all three TST aspects using zero-shot prompting. This approach aims to replace the current "plethora of methods" with a single, validated pipeline.
Key Components
- Zero-Shot Prompting: The LLM is provided with a prompt asking for a numerical score (e.g., 1 to 5) based on specific criteria for style, content, or fluency.
- Prompt Ensembling: To mitigate the sensitivity of LLMs to specific wording, the researchers used 11 different prompt formulations for each evaluation aspect and averaged the results.
- Instruction-Tuned Models: The study compared several models, including InstructGPT (text-davinci-003), Falcon, and Llama2. Instruction tuning (via RLHF or SFT) was found to be essential for reliable performance.
Experimental Setup
The framework was validated using the Yelp dataset, a popular benchmark for sentiment transfer. The researchers evaluated 732 sentences generated by three TST models (CAAE, ARAE, and DAR) and compared the LLM-generated scores against existing human annotations.
Results and Discussion
The quantitative results show a clear advantage for LLMs over traditional metrics, particularly when using prompt ensembling to boost robustness.
Key Insights
- Superior Correlation: In Style Accuracy, InstructGPT achieved a Spearman correlation of 0.574, outperforming traditional classifiers like fastText (0.473). In Fluency, the improvement was even more dramatic, with LLMs like Llama2-70b (0.599) far surpassing standard Perplexity metrics (0.171).
- The Power of Ensembling: As shown in the correlation analysis, the ensembled score (represented by dashed lines) almost always achieved a higher correlation with human scores than any single individual prompt.
- Conciseness vs. Verbosity: While larger models like Llama2-70b are highly capable, they are often more verbose, making automated score parsing difficult. In contrast, InstructGPT was more concise and easier to integrate into an automated pipeline.
- LLMs as Fluency Experts: Traditional fluency metrics showed very low correlation with humans. LLMs excelled here, likely due to their deeper understanding of linguistic nuances compared to simple n-gram models.
Conclusion and Future Work
This research demonstrates that LLMs offer a viable, standardized alternative to traditional TST evaluation metrics. By leveraging prompt ensembling and instruction-tuned models, researchers can achieve evaluations that correlate more closely with human judgment than previous automated benchmarks.
Future work will address current limitations, such as the cost of proprietary APIs and the challenges of automated parsing. The authors suggest that "constrained decoding" could improve score extraction and plan to extend this framework to other styles (like formality) and multilingual settings.
Summary updated