The Authors Matter: Understanding and Mitigating Implicit Bias in Deep Text Classification

Haochen Liu, Wei Jin, Hamid Karimi, Zitao Liu, Jiliang Tang

Introduction

Deep text classifiers are increasingly used to automate decisions in sensitive areas like sentiment analysis, hate speech detection, and recruitment. However, these models often learn from more than just what is being said; they learn from how it is written. This phenomenon, termed "implicit bias," occurs when a model picks up on an author's "linguistic fingerprint"—the subtle word choices, tone, and dialectal markers that correlate with demographic attributes like race, gender, or age.

Unlike explicit bias, which involves specific identity terms (e.g., "Muslim" or "gay"), implicit bias is woven into the structural style of the text. When training data is imbalanced—for instance, if a specific dialect is overrepresented in negative sentiment examples—deep learning models often take a "shortcut." Instead of learning the nuances of sentiment, they learn to associate that dialect with a negative label, leading to unfair outcomes for specific demographic groups.

Figure 6: An example of implicit bias where identical sentiment expressed in different dialects (White American vs. African American) leads to divergent model predictions.

The Shortcut Hypothesis

The researchers posit that models are "lazy" learners. If a demographic's dialect is statistically correlated with a certain class in the training set, the model will use that dialect as a proxy for the class. To prove this, the authors used learning-based interpretation methods (L2X) to identify "salient" words. They discovered that in biased models, the words used to predict the task (e.g., sentiment) overlap heavily with the words that reveal the author's demographic. This confirms that the model is relying on stylistic cues rather than task-relevant semantic features.

The Debiased-TC Framework

To address this, the paper introduces Debiased-TC, a framework designed to filter out stylistic demographic cues while preserving task-relevant information. The core of this framework is the Corrector Layer ($C$), which is inserted between the input text and the classifier.

How the Corrector Works

The Corrector learns to assign weights (saliency scores) to individual words, effectively acting as a filter. The system is trained using an adversarial approach:

  1. The Main Classifier: Tries to predict the target label (e.g., Hate Speech).
  2. The Adversarial Classifier: Tries to guess the author's demographic from the filtered text produced by the Corrector.
  3. Gradient Reversal: Through a gradient reversal layer, the Corrector is penalized if the adversary successfully identifies the demographic. This forces the Corrector to suppress stylistic cues that reveal "who" the author is, leaving only the features necessary for "what" the task is.
Figure 3: The Debiased-TC architecture featuring the Corrector layer, which filters input features to prevent the model from relying on demographic-linked stylistic shortcuts.

To manage the complex bi-level optimization required to train the corrector and classifiers simultaneously, the authors utilize Differentiable Architecture Search (DARTS).

Experimental Evaluation

The framework was evaluated on three real-world Twitter-based datasets covering race (DIAL and MTC), age, and gender (PAN16). The results demonstrated that Debiased-TC significantly improves fairness without the traditional "fairness-performance trade-off."

  • Bias Reduction: On the DIAL sentiment task, the Demographic Parity Difference (DPD)—a measure of the gap in prediction rates between groups—dropped from 32.52% in a standard CNN to just 0.73%.
  • Accuracy Preservation: Interestingly, Debiased-TC often maintained or slightly improved accuracy. By forcing the model to ignore "noisy" demographic features, it was compelled to focus on the more robust linguistic features actually relevant to the task.
  • Stability: Unlike standard data augmentation, which requires expensive manual labeling of new, counterfactual data, Debiased-TC works with the original training set and provides stable results across various tasks.

Conclusion and Future Work

Debiased-TC represents a significant step forward in addressing the insidious nature of implicit bias in NLP. By treating demographic style as a distractor to be filtered out, the framework ensures that models remain focused on the intended task.

While the current study focused on binary demographic splits in social media text, future work will need to address intersectional identities and test the framework on more formal domains, such as legal or medical documentation, where implicit bias may be more subtle but equally damaging.

Summary updated

BibTeX
@inproceedings{liu2021authors,
  author = {Haochen Liu and Wei Jin and Hamid Karimi and Zitao Liu and Jiliang Tang},
  title = {{The Authors Matter: Understanding and Mitigating Implicit Bias in Deep Text Classification}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.7},
}
Figure