Low-Complexity Probing via Finding Subnetworks

Steven Cao, Victor Sanh, Alexander M. Rush
4/8/2021
82 citations
cs.CL

Official code: stevenxcao/subnetwork-probing (14 stars, Python, last commit 2021-04-08).

Abstract

The dominant approach in probing neural networks for linguistic properties is to train a new shallow multi-layer perceptron (MLP) on top of the model's internal representations. This approach can detect properties encoded in the model, but at the cost of adding new parameters that may learn the task directly.

Show full abstract

We instead propose a subtractive pruning-based probe, where we find an existing subnetwork that performs the linguistic task of interest. Compared to an MLP, the subnetwork probe achieves both higher accuracy on pre-trained models and lower accuracy on random models, so it is both better at finding properties of interest and worse at learning on its own. Next, by varying the complexity of each probe, we show that subnetwork probing Pareto-dominates MLP probing in that it achieves higher accuracy given any budget of probe complexity. Finally, we analyze the resulting subnetworks across various tasks to locate where each task is encoded, and we find that lower-level tasks are captured in lower layers, reproducing similar findings in past work.

View on arXivView PDF

Code Implementations(1)

142PythonApr 8, 20215 years ago

Similar Papers

Cite this paper

@article{cao2021lowcomplexity,
  title  = {Low-Complexity Probing via Finding Subnetworks},
  author = {Steven Cao and Victor Sanh and Alexander M. Rush},
  year   = {2021},
  eprint = {2104.03514},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.03514}
}

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

Discussion