Perturbed Masking: Parameter-free Probing for Analyzing and Interpreting BERT

Zhiyong Wu, Yun Chen, Ben Kao, Qun Liu
4/30/2020
cs.CL

Official code: LividWo/Perturbed-Masking (106 stars, Python, MIT, last commit 2023-06-12).

Abstract

By introducing a small set of additional parameters, a probe learns to solve specific linguistic tasks (e.g., dependency parsing) in a supervised manner using feature representations (e.g., contextualized embeddings). The effectiveness of such probing tasks is taken as evidence that the pre-trained model encodes linguistic knowledge.

Show full abstract

However, this approach of evaluating a language model is undermined by the uncertainty of the amount of knowledge that is learned by the probe itself. Complementary to those works, we propose a parameter-free probing technique for analyzing pre-trained language models (e.g., BERT). Our method does not require direct supervision from the probing tasks, nor do we introduce additional parameters to the probing process. Our experiments on BERT show that syntactic trees recovered from BERT using our method are significantly better than linguistically-uninformed baselines. We further feed the empirically induced dependency structures into a downstream sentiment classification task and find its improvement compatible with or even superior to a human-designed dependency schema.

View on arXivView PDF

Code Implementations(1)

MIT

Code for ACL 2020 paper "Perturbed Masking: Parameter-free Probing for Analyzing and Interpreting BERT"

10610PythonApr 26, 20203 years agoMIT

Similar Papers

Cite this paper

@article{wu2020perturbed,
  title  = {Perturbed Masking: Parameter-free Probing for Analyzing and Interpreting BERT},
  author = {Zhiyong Wu and Yun Chen and Ben Kao and Qun Liu},
  year   = {2020},
  eprint = {2004.14786},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.14786}
}

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/2004.14786.svg)](https://codeofpaper.com/paper/2004.14786)

Discussion