OSCaR: Orthogonal Subspace Correction and Rectification of Biases in Word Embeddings

Sunipa Dev, Tao Li, Jeff M. Phillips, Vivek Srikumar

Introduction

Word embeddings serve as the foundational layer for modern Natural Language Processing (NLP). However, these embeddings frequently inherit and amplify societal biases present in their training corpora. A common example is the stereotypical association of "doctor" with "man" and "nurse" with "woman." While various debiasing techniques have been developed, many suffer from "information erasure," where essential semantic distinctions are lost in the pursuit of fairness.

The Problem with Linear Projection

Traditional debiasing methods typically rely on linear projection. If we conceptualize the embedding space as a 3D volume where "gender" is a vertical axis, projection-based methods essentially "flatten" the space into a 2D plane to remove gendered information.

While this effectively decouples occupations from gender, it is often too aggressive. It erases valid linguistic associations—for instance, a model might lose the understanding that a "matriarch" is inherently "female" or that "pregnant" relates to "woman." This loss of information can severely degrade performance in downstream tasks like coreference resolution or natural language inference (NLI), where gendered context is linguistically necessary.

The OSCaR Method

To address these shortcomings, the authors introduce OSCaR (Orthogonal Subspace Correction and Rectification). Rather than deleting information through projection, OSCaR treats debiasing as a geometric re-orientation problem.

Geometric representation of OSCaR's orthogonal subspace correction via rotation.

The method follows a multi-step process:

  1. Subspace Identification: The algorithm identifies two specific subspaces: one representing a protected concept (e.g., gender, $V_1$) and another representing a biased category (e.g., occupations, $V_2$).
  2. Orthogonalization via Rotation: Instead of projecting $V_2$ away from $V_1$, OSCaR applies a graded rotation. This operation re-orients the space so that these two directions become orthogonal (independent), effectively "disentangling" the concepts.
  3. Graded Application: The rotation is not applied globally. A sub-differentiable function $f$ ensures that words deeply embedded in biased subspaces receive the most rotation, while neutral words (like "apple") remain largely unaffected.
  4. Information Preservation: By rotating rather than collapsing dimensions, the internal structure of concepts is maintained. The model retains its understanding of gender-specific terms while removing the "incorrect" correlation between those terms and unrelated categories.

Evaluation and Benchmarks

The researchers evaluated OSCaR using both static (GloVe) and contextualized (RoBERTa) embeddings across several benchmarks:

  • Bias Mitigation: Measured via the Word Embedding Association Test (WEAT) and the Embedding Coherence Test (ECT).
  • Information Retention:
    • WEAT*: A modified test designed to check if valid gendered associations (e.g., "king" and "man") are preserved.
  • SIRT (Sentence Inference Retention Test): A new NLI-based probe that tests if a model can still correctly identify entailment (e.g., "A lady bought a bagel" $\implies$ "A woman bought a bagel") after the debiasing process.

Key Results

OSCaR demonstrates that debiasing does not have to be a zero-sum game between fairness and utility.

Neutrality and F1 performance comparison across different debiasing methods.
  • Effective Mitigation: On GloVe, OSCaR reduced bias to levels comparable with state-of-the-art methods like Hard Debiasing (HD) and Iterative Null-space Projection (INLP).
  • Superior Retention: OSCaR significantly outperformed projection-based methods in preserving valid information. In the SIRT (NLI) task, projection methods often caused a massive performance collapse (e.g., confidence in "matriarch" as "woman" dropping from 97% to 16%), whereas OSCaR maintained these links.
  • Contextualized Success: When applied to RoBERTa, OSCaR achieved the highest neutrality scores (56.6 vs. the baseline 34.9) while maintaining superior F1 scores on standard NLI benchmarks.

Conclusion and Future Work

OSCaR offers a "gentler" approach to debiasing by prioritizing the preservation of semantic structure through rotation. While the current study focuses on binary gender in English, the geometric principles of OSCaR are extensible to other bias types (age, religion) and other languages. Future work will explore non-binary gender representations and the application of OSCaR to multi-modal embeddings.

Summary updated

BibTeX
@inproceedings{dev2021oscar,
  author = {Sunipa Dev and Tao Li and Jeff M. Phillips and Vivek Srikumar},
  title = {{OSCaR: Orthogonal Subspace Correction and Rectification of Biases in Word Embeddings}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.411},
}
Figure