What if This Modified That? Syntactic Interventions via Counterfactual Embeddings

Mycal Tucker, Peng Qian, Roger Levy
5/28/2021
cs.CL

Official code: mycal-tucker/causal-probe (4 stars, Python, MIT, last commit 2021-06-10).

Abstract

Neural language models exhibit impressive performance on a variety of tasks, but their internal reasoning may be difficult to understand. Prior art aims to uncover meaningful properties within model representations via probes, but it is unclear how faithfully such probes portray information that the models actually use.

Show full abstract

To overcome such limitations, we propose a technique, inspired by causal analysis, for generating counterfactual embeddings within models. In experiments testing our technique, we produce evidence that suggests some BERT-based models use a tree-distance-like representation of syntax in downstream prediction tasks.

View on arXivView PDF

Code Implementations(1)

MIT
40PythonJun 2, 20215 years agoMIT

Similar Papers

Cite this paper

@article{tucker2021what,
  title  = {What if This Modified That? Syntactic Interventions via Counterfactual Embeddings},
  author = {Mycal Tucker and Peng Qian and Roger Levy},
  year   = {2021},
  eprint = {2105.14002},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.14002}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.14002.svg)](https://codeofpaper.com/paper/2105.14002)

Discussion