We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

cs

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computation and Language

Title: Counterfactual Interventions Reveal the Causal Effect of Relative Clause Representations on Agreement Prediction

Abstract: When language models process syntactically complex sentences, do they use their representations of syntax in a manner that is consistent with the grammar of the language? We propose AlterRep, an intervention-based method to address this question. For any linguistic feature of a given sentence, AlterRep generates counterfactual representations by altering how the feature is encoded, while leaving intact all other aspects of the original representation. By measuring the change in a model's word prediction behavior when these counterfactual representations are substituted for the original ones, we can draw conclusions about the causal effect of the linguistic feature in question on the model's behavior. We apply this method to study how BERT models of different sizes process relative clauses (RCs). We find that BERT variants use RC boundary information during word prediction in a manner that is consistent with the rules of English grammar; this RC boundary information generalizes to a considerable extent across different RC types, suggesting that BERT represents RCs as an abstract linguistic category.
Comments: Equal contribution by SR and GP. Accepted in CoNLL 2021
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2105.06965 [cs.CL]
  (or arXiv:2105.06965v3 [cs.CL] for this version)

Submission history

From: Shauli Ravfogel [view email]
[v1] Fri, 14 May 2021 17:11:55 GMT (9853kb,D)
[v2] Wed, 19 May 2021 22:17:56 GMT (9850kb,D)
[v3] Wed, 15 Sep 2021 11:28:26 GMT (9809kb,D)

Link back to: arXiv, form interface, contact.