Linear Guardedness and its Implications

Shauli Ravfogel, Yoav Goldberg, Ryan Cotterell

Abstract

Concept erasure is a common technique used to remove sensitive attributes from neural representations to ensure fairness. This paper investigates whether "linear guardedness"—the inability of a linear probe to recover information—is sufficient to prevent information leakage in downstream tasks. We prove that while guardedness holds for binary classification, it fails in multiclass scenarios. Through the geometry of Voronoi regions, we demonstrate how multiclass softmax classifiers can reconstruct "erased" information, rendering simple linear erasure ineffective for complex downstream applications.

Introduction

Neural networks often learn internal representations that capture sensitive "concepts" such as gender, race, or age. To mitigate bias, researchers employ concept erasure, modifying representations so that a linear probe can no longer predict the sensitive attribute. This state is known as guardedness. The prevailing assumption has been that if a linear model cannot find the information, a downstream linear classifier will be unable to use it. This paper challenges that assumption, revealing a "softmax trap" where multiclass models bypass linear protections.

Theoretical Framework: $\mathcal{V}$-Information

The authors utilize the framework of $\mathcal{V}$-information, a generalization of mutual information that quantifies how much a specific family of models $\mathcal{V}$ (e.g., log-linear models) can learn about a variable $Z$ from a representation $X$.

  • Log-linear Guardedness: Defined as the state where no log-linear model can predict a protected attribute $Z$ from $X$ better than a random guess.
  • The Binary Case: The authors prove that if both the protected attribute and the downstream task are binary, guardedness effectively prevents leakage.

The Geometry of Leakage

The core insight of the paper is that multiclass softmax classifiers are "closet non-linear" models. While each individual logit is a linear transformation, the final decision is determined by the intersection of multiple linear boundaries.

Voronoi regions formed by multiclass linear boundaries.

These intersections create Voronoi regions (as seen in the figure above) that can pinpoint "hidden" concepts in the representation space. Even if no single line can separate the data (binary guardedness), a combination of lines in a multiclass setting can "carve out" the erased information. This is analogous to a "multiple sensors" problem: one sensor might be blind, but a network of sensors can triangulate the hidden data.

Empirical Validation

To test these theories, the authors used the Bias in Bios dataset, consisting of professional biographies annotated for gender (the protected attribute $Z$) and profession (the downstream task $Y$). They applied RLACE, a state-of-the-art linear erasure technique, to BERT [CLS] token representations.

Key Results

The experiments confirmed a stark disconnect between binary and multiclass scenarios:

  • Binary Success: For binary profession pairs, erasing gender information successfully prevented downstream recovery.
  • Multiclass Failure: As the number of classes in the downstream task increased, information leakage rose sharply.
Information leakage as a function of the number of softmax entries.

As shown in the figure above, with just 4 to 8 classes, a downstream model could reconstruct the "erased" gender information almost perfectly. This demonstrates that a representation can appear "fair" internally (low intrinsic bias) while the model's final behavior remains biased (high extrinsic bias).

Conclusion and Future Work

The "softmax trap" reveals that linear concept erasure is insufficient for protecting sensitive information in complex downstream tasks. Future work must move beyond simple linear guarding to address more expressive, non-linear adversaries. Developing bias mitigation techniques robust to multiclass leakage is essential for creating truly fair AI systems.

Summary updated

BibTeX
@inproceedings{ravfogel2023linear,
  author = {Shauli Ravfogel and Yoav Goldberg and Ryan Cotterell},
  title = {{Linear Guardedness and its Implications}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.523},
}
Figure