Measuring Spurious Correlation in Classification: "Clever Hans" in Translationese

Angana Borah, Daria Pylypenko, Cristina España-Bonet, Josef van Genabith

Measuring Spurious Correlation in Classification: "Clever Hans" in Translationese

In machine learning, the "Clever Hans" effect occurs when a model achieves high accuracy by exploiting spurious correlations in the data rather than learning the actual task. In the context of translationese classification—distinguishing between original text and translated text in the same language—this is a major concern. Translated text often carries subtle linguistic signals: it might be simpler, more explicit, or show interference from the source language. However, datasets often contain "shortcuts." For example, a dataset of German translations from Spanish might frequently mention Spanish cities, while German originals mention German cities. A BERT-based classifier might achieve high accuracy simply by looking for the word "Madrid," completely ignoring the actual linguistic nuances of translation.

This paper investigates whether high-performance NLP models are truly identifying "translationese"—the subtle linguistic fingerprint of translated text—or if they are simply exploiting these topic biases. The authors introduce the concept of a "topic floor" and demonstrate that while models do exhibit some "Clever Hans" behavior, they still retain significant accuracy even when all lexical information is stripped away.

Quantifying the Topic Floor

To establish a baseline for spurious correlation, the authors use unsupervised topic modeling (LDA and BERTopic) to cluster data into $n$ topics. They then measure the alignment between these topics and the target labels (Original vs. Translated). This alignment score represents the "topic floor"—the baseline accuracy a model could achieve just by picking up on topical distribution without learning any translationese.

Average alignment of unsupervised topics with classification labels, establishing the 'topic floor' baseline.

As shown in Figure 1, the authors found that unsupervised topics align with labels at a level of approximately 0.62. This suggests that in this specific dataset, a model can be 12% better than random chance just by "cheating" via topic recognition. They argue that 0.62, not 0.50, should be the real baseline for evaluating these classifiers.

Masking and Robustness

To mitigate and quantify the impact of specific spurious signals, the researchers employed two types of masking:

  1. Named Entity (NE) Masking: Replacing specific names (e.g., "Berlin") with generic tags like [LOC]. This dropped accuracy from 0.92 to 0.89, suggesting that while BERT uses location names as shortcuts, its performance is robust and not entirely dependent on them.
  2. Part-of-Speech (POS) Masking: Replacing all words with their grammatical tags (e.g., "ART NN VBD"). This removes all lexical content, forcing the model to rely solely on morpho-syntactic patterns. Remarkably, a model trained only on POS tags reached 0.78 accuracy, proving that translationese leaves a distinct structural footprint that neural models can identify even without semantic context.

Explainability: What is the Model Seeing?

The authors used Integrated Gradients (IG) to attribute model predictions to specific input tokens. This allowed them to see if the model's "attention" shifts from spurious topics to genuine linguistic features after masking.

Top tokens ranked by Average Attribution Score (AAS) for Translationese and Original classes.

In unmasked settings, the model focused heavily on nouns and locations. However, as seen in Figure 4, the model also identifies specific verbs (e.g., besuchte, entdeckte) and function words as strong indicators of translationese. While some "Original" markers like "alpen" (Alps) suggest minor remaining topic leakage, the shift toward verbs and structural tokens indicates the model is capturing legitimate stylistic differences.

Conclusion

The study concludes that while BERT is a "partial" Clever Hans, it is far from a total one. The existence of a 0.78 accuracy rate on POS-only data confirms that deep learning models are indeed capturing the subtle, non-topical essence of translationese. However, the 0.62 "topic floor" serves as a vital reminder that standard accuracy metrics can be misleading when spurious correlations are present in the training data.

Summary updated

BibTeX
@inproceedings{borah2023measuring,
  author = {Angana Borah and Daria Pylypenko and Cristina España-Bonet and Josef van Genabith},
  title = {{Measuring Spurious Correlation in Classification: "Clever Hans" in Translationese}},
  booktitle = {Ranlp},
  year = {2023},
}
Figure