Low-Complexity Probing via Finding Subnetworks

Victor Sanh, Alexander M. Rush

Abstract

Traditional probing methods for large language models often face a trade-off between probe complexity and faithfulness to the original model. This paper introduces subnetwork probing, a subtractive approach that identifies existing subnetworks within a pre-trained model capable of performing specific linguistic tasks. Our results demonstrate that subnetwork probing Pareto-dominates standard additive probes, achieving higher accuracy with significantly lower complexity while naturally localizing information across model layers.

The Problem: The Complexity-Accuracy Tradeoff

To understand the internal representations of models like BERT, researchers typically use "probes"—classifiers trained on the model's hidden states. However, this approach is limited by a fundamental tension: simple linear probes may fail to capture complex patterns, while deep Multi-Layer Perceptron (MLP) probes might learn the task themselves rather than reflecting the model's inherent knowledge. This makes it difficult to distinguish between what the model "knows" and what the probe has learned from training labels.

Methods: Subnetwork Probing

The authors propose shifting from additive probing (adding new parameters) to subtractive probing. Instead of training a new head, they search for a subnetwork—a version of the original model where a subset of weights is masked (set to zero)—that can perform a specific linguistic task.

Key technical details include:

  • Continuous Relaxation: Using the Hard Concrete distribution to parameterize masks, allowing the use of gradient descent to "learn" which parts of the model to keep.
  • Complexity Measurement: Probe complexity is measured using the number of bits required to transmit the parameters (Minimum Description Length). For a subnetwork, this is essentially one bit per mask parameter.
  • Baselines: The method is compared against standard MLP probes with varying hidden layer ranks.

Key Results and Pareto Dominance

Subnetwork probing consistently outperforms standard MLP probes across various complexity budgets. As shown in the performance plots below, the subnetwork approach "Pareto-dominates" the baseline, meaning it achieves higher accuracy for any given number of bits.

Performance comparison across POS tagging, Dependency Parsing, and NER: Subnetwork probing consistently achieves higher accuracy with lower complexity than MLP probes.

On Dependency Parsing, the subnetwork probe achieved 86.86% LAS compared to 76.65% for a standard MLP-1 probe. Furthermore, subnetwork probes are more "faithful": when tested on a random, untrained model (the "Reset All" test), the subnetwork probe for NER dropped to 30.83% F1, while the MLP probe stayed relatively high at 53.25%. This suggests that MLP probes often "cheat" by learning the task on their own, whereas subnetwork probes rely on pre-trained features.

Insights: Localization and the "NLP Pipeline"

A major advantage of subnetwork probing is its ability to localize information without training separate probes for every layer. The pruning process naturally "found" the relevant layers for different tasks, confirming the "classical pipeline" theory of transformer models:

  • POS Tagging: Localized to layers 1-4.
  • Dependency Parsing: Localized to layers 4-9.
  • NER: Localized to layers 9-12.

This localization demonstrates that BERT processes linguistic information in a hierarchical manner, moving from low-level syntax to higher-level semantics.

Conclusion

Subnetwork probing provides a more faithful and efficient lens into the internal workings of LLMs. By focusing on what the model already contains rather than what a probe can learn, this method offers a clearer picture of the linguistic knowledge stored within pre-trained representations. Future work may extend this approach to investigate social biases or combine it with neuron-level explainability to further decode the model's internal logic.

Summary updated

BibTeX
@inproceedings{sanh2021low,
  author = {Victor Sanh and Alexander M. Rush},
  title = {{Low-Complexity Probing via Finding Subnetworks}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.74},
}
Figure