Skip to main content
QUICK REVIEW

[Paper Review] Perturbed Masking: Parameter-free Probing for Analyzing and Interpreting BERT

Zhiyong Wu, Yun Chen|arXiv (Cornell University)|Apr 30, 2020
Topic ModelingComputer Science48 references7 citations
TL;DR

This paper proposes Perturbed Masking, a parameter-free probing method that analyzes BERT's linguistic representations by measuring the impact of word perturbations on masked token predictions. By computing inter-word influence via two-stage masking and distance metrics, the method recovers syntactic dependency trees that outperform baselines and even surpass human-designed schemas in downstream sentiment classification, revealing BERT's intrinsic syntactic knowledge without additional parameters.

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. 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.

Motivation & Objective

  • To address the ambiguity in probing methods that rely on additional model parameters, which may capture task-specific knowledge rather than pre-trained model representations.
  • To develop a parameter-free method that directly probes BERT's internal representations without introducing new parameters or supervised labels.
  • To extract global linguistic structures—particularly dependency trees—from BERT using only the model's masked language modeling behavior.
  • To evaluate whether the induced syntactic structures can improve downstream NLP tasks, comparing them to both baselines and human-designed schemas.
  • To provide a complementary, unsupervised validation of prior probing studies that rely on supervised classifiers with added parameters.

Proposed method

  • The method performs two-stage masking: first, mask a target token $x_i$ with [MASK], then mask a context word $x_j$ in the same sequence to observe changes in the representation of $x_i$.
  • The impact of $x_j$ on $x_i$ is quantified using a distance function $f(x_i, x_j) = d(H_{\theta}(\mathbf{x}\setminus\{x_i\})_i, H_{\theta}(\mathbf{x}\setminus\{x_i,x_j\})_i)$, where $d$ is either Euclidean distance or probability difference in token prediction.
  • Two distance metrics are evaluated: Dist (Euclidean distance between hidden representations) and Prob (difference in predicted probability of $x_i$).
  • The resulting impact matrix is used to infer dependency trees via a greedy algorithm that selects the strongest influence relationships.
  • The method is applied to syntactic parsing and discourse dependency parsing, with results compared against linguistically-uninformed baselines and human-designed schemas.
  • The induced dependency structures are further evaluated in a downstream sentiment classification task to assess their empirical utility.

Experimental results

Research questions

  • RQ1Can a parameter-free probing method extract meaningful syntactic structures from BERT without introducing additional model parameters or supervised labels?
  • RQ2How well do the dependency trees induced by Perturbed Masking align with linguist-defined syntactic structures compared to simple baselines?
  • RQ3Does the syntactic structure learned through Perturbed Masking improve performance in downstream NLP tasks compared to human-designed dependency schemas?
  • RQ4To what extent does the impact matrix derived from masked language modeling reflect the true syntactic dependencies encoded in BERT?
  • RQ5Can the method reveal global linguistic properties such as discourse structure, suggesting BERT's capacity for long-range sequence modeling?

Key findings

  • The syntactic trees recovered using Perturbed Masking significantly outperform linguistically-uninformed baselines such as right-branching and left-branching structures in dependency parsing.
  • The induced dependency structures achieve performance on par with or even superior to a human-designed dependency schema in a downstream sentiment classification task.
  • The method demonstrates that BERT encodes rich syntactic knowledge in an unsupervised, parameter-free manner, providing a lower-bound estimate of its syntactic capability.
  • The impact matrix derived from two-stage masking effectively captures inter-word correlations similar to attention mechanisms but emerges from the model’s output rather than intermediate representations.
  • The approach reveals that BERT’s self-supervised pre-training yields intrinsic syntactic structure that is empirically useful, even when not explicitly supervised for syntax.
  • The method successfully generalizes to discourse-level dependency parsing, suggesting BERT’s capacity to model long-range dependencies beyond sentence-level syntax.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.