A Geometric Notion of Causal Probing

Clément Guerner, Tianyu Liu, Anej Svete, Alexander Warstadt, Ryan Cotterell

Abstract

The linear subspace hypothesis (Bolukbasi et al., 2016) states that, in a language model's representation space, all information about a concept such as verbal number is encoded in a linear subspace. Prior work has relied on auxiliary classification tasks to identify and evaluate candidate subspaces that might give support for this hypothesis. We instead give a set of intrinsic criteria which characterize an ideal linear concept subspace and enable us to identify the subspace using only the language model distribution. Our information-theoretic framework accounts for spuriously correlated features in the representation space (Kumar et al., 2022) by reconciling the statistical notion of concept information and the geometric notion of how concepts are encoded in the representation space. As a byproduct of this analysis, we hypothesize a causal process for how a language model might leverage concepts during generation. Empirically, we find that linear concept erasure is successful in erasing most concept information under our framework for verbal number as well as some complex aspect-level sentiment concepts from a restaurant review dataset. Our causal intervention for controlled generation shows that, for at least one concept across two languages models, the concept subspace can be used to manipulate the concept value of the generated word with precision.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Partitioning of Concept Information; aggregate across all datasets and modelsLEACE (linear concept erasure)Erasure ratio0.64 ratioConcept Erasure
Source quote
L476: The mean erasure ratio across all datasets and models is 0.64 and the encapsulation ratio is 0.50.
Partitioning of Concept Information; aggregate across all datasets and modelsLEACE (linear concept erasure)Encapsulation ratio0.50 ratioConcept Erasure
Source quote
L476: The mean erasure ratio across all datasets and models is 0.64 and the encapsulation ratio is 0.50.
Partitioning of Concept Information; study meanLEACE (linear concept erasure)Containment ratio0.77 ratioConcept Erasure
Source quote
L482: A containment ratio less than 1 indicates that \rvHconcept generally contains some non-concept information, with a mean value of 0.77.
Partitioning of Concept Information; study meanLEACE (linear concept erasure)Stability ratio0.83 ratioConcept Erasure
Source quote
L485: The stability ratio has a mean of 0.83, confirming that LEACE does some damage to non-concept information in \rvHerase. We note, however, that for our simple linguistic concepts, this damage is minimal. \looseness=-1
BibTeX
@misc{guerner2023geometric,
  author = {Clément Guerner and Tianyu Liu and Anej Svete and Alexander Warstadt and Ryan Cotterell},
  title = {{A Geometric Notion of Causal Probing}},
  year = {2023},
  eprint = {2307.15054},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.15054},
}

Loading related content...

Figure