Introduction
In the field of Natural Language Processing (NLP), models have become remarkably proficient at understanding what is being said (content), yet they still struggle to quantify how it is being said (style). Determining whether a sentence is formal or informal, or simple versus complex, is typically treated as a classification problem. However, these models often "cheat" by latching onto topic-specific keywords—such as legal jargon for formality—rather than identifying true stylistic markers.
To address this, Anna Wegmann and Dong Nguyen from Utrecht University introduced STEL (STyle EvaLuation) at EMNLP 2021. STEL is a modular framework designed to evaluate stylistic intelligence by using a similarity-based approach that strictly controls for content bias.
The Challenge of Content Bias
The primary obstacle in style evaluation is entanglement. If a classifier is trained on legal documents (formal) and tweets (informal), it may simply learn that words like "jurisdiction" indicate formality and "lol" indicates informality. In such cases, the model is learning the topic, not the style.
Furthermore, style is multi-faceted, encompassing broad dimensions like formality and specific characteristics like the use of contractions or "leetspeak." Existing benchmarks often fail to distinguish between these or lack a unified method to compare different model architectures, such as classifiers versus vector embedding models.
The STEL Framework: Similarity-Based Evaluation
STEL avoids direct classification in favor of a quadruple setup. Instead of asking if a sentence is formal, the framework asks if the stylistic "distance" between two sentences matches the distance between another pair.
This setup involves:
- Anchors (A1, A2): A pair of sentences with identical content but different styles (e.g., A1 is informal, A2 is formal).
- Alternatives (S1, S2): Another pair of sentences with different content from the anchors, but also differing in style.
- The Task: The model must determine if the stylistic ordering of S1 and S2 matches that of A1 and A2.
Because the sentences within each pair are paraphrases, the content remains constant. A model's success in this task demonstrates its ability to recognize stylistic shifts independently of subject matter.
Dataset and Task Design
The researchers curated a validated set of 1,830 task instances across four stylistic components: Formal/Informal, Simple/Complex, Contractions, and Number Substitution.
To ensure the tasks were unambiguous, 839 crowdworkers were employed to filter out instances where human agreement on stylistic ordering was low.
Results and Discussion
The study evaluated 18 different methods, including Large Language Models (LLMs), embedding techniques, and traditional linguistic tools.
The Dominance of BERT
The top-performing model was Cased BERT-base, which achieved an overall accuracy of 0.77. Interestingly, its successor, RoBERTa-base, performed significantly worse at 0.61. The authors hypothesize that BERT's "Next Sentence Prediction" (NSP) pre-training task is the differentiator. Since stylistic consistency is a key feature of natural discourse, the NSP task likely forced BERT to inadvertently learn to track stylistic signatures.
Modular Insights
STEL’s modularity highlights the strengths and weaknesses of different approaches. Traditional tools like LIWC (Linguistic Inquiry and Word Count) were nearly perfect (0.99) at identifying specific markers like contractions but performed near random (0.50-0.55) on broader dimensions like formality. This confirms that while rule-based tools are precise for explicit features, they lack the holistic stylistic understanding of neural models.
Conclusion
STEL provides a necessary "ruler" for measuring stylistic intelligence in AI. By isolating style from content through its similarity-based quadruple framework, it offers a more rigorous assessment of how models handle the nuances of human language. While currently focused on sentence-level analysis, future iterations of STEL aim to encompass longer texts and a broader range of stylistic dimensions, such as sarcasm and regional dialects.
Summary updated