Low-Complexity Probing via Finding Subnetworks
Paper · 2021 · Steven Cao, Victor Sanh and Alexander Rush
Summary
A classifier can learn to identify grammatical categories from the internal signals of a pretrained network. Its success is harder to interpret than it first appears. The signals may already make the categories easy to distinguish, or the classifier may have learned much of the distinction from its own training examples. Steven Cao, Victor Sanh, and Alexander Rush investigate this problem by changing what a probe is allowed to learn. Their probe starts with a pretrained BERT encoder and searches for a subnetwork that can perform a linguistic task. A learned mask switches off selected parts of the encoder, keeping the values of the surviving weights fixed. A separate classification head learns to turn the resulting representations into task predictions.
The authors compare neuron-level masks with a conventional probe that adds a small neural network above the encoder. On pretrained BERT, the mask reaches 93.39 accuracy against 90.25 for part-of-speech tagging on English Universal Dependencies development data. On the same development split, it reaches 86.86 against 76.65 in macro-averaged labeled attachment score for dependency parsing. On the CoNLL 2003 named entity recognition test split, it reaches 87.94 F1 against 84.80. When both the encoder and the embeddings are randomly reset, the mask scores lower than the conventional probe on parsing and especially on entity recognition. Tagging is an exception. The mask remains slightly ahead of the conventional probe in both reset conditions.
The authors also vary the capacity of each probe and estimate its complexity by the bits needed to specify the learned mask or the added neural network. Over the range they compare, the mask gives the stronger score at a given bit budget, even under a favorable encoding assumption for the conventional probe. For tagging and parsing, useful predictions survive with as little as 72 bits in the mask. The authors then inspect where task-specific masks retain weights. In pretrained BERT, the retained weights concentrate in different parts of the encoder, with tagging earliest, dependencies next, and entity recognition later. Masks learned after resetting the encoder show a more uniform distribution across layers.
The experiments give a practical meaning to finding a linguistic property in a pretrained network. Existing weights can be selected so that a relatively small learned intervention and a task head recover the property. The reset comparisons help show when that result depends on pretraining. The layer comparisons then show where the search found useful weights, while leaving open how those weights perform the task and whether the full encoder uses them in the same way.
Deep dive: Low-Complexity Probing via Finding Subnetworks
Low-complexity probing finds subnetworks in BERT and tests how much linguistic information they recover with a small mask. · about 32 minutes to read
The problem and its context
A prediction has more than one source
Pretraining gives an encoder a way to turn a sequence of words into internal representations. Those representations can support tasks that require different kinds of linguistic judgments. For a grammatical task, a researcher may want to know whether the representations already distinguish nouns from verbs, indicate which words depend on each other, or help identify a span that names an entity. Such questions are part of the study of interpretability.
A conventional probe takes those internal representations as input and learns a prediction rule from labeled examples. Freezing the encoder prevents that training from changing the representations the probe receives. The classifier still gets its own adjustable parameters. If a probe predicts the correct label, the frozen representation and the learned rule have worked together. To understand the encoder, a researcher needs some account of what each contributed.
Consider part-of-speech tagging. A representation can help identify a word's grammatical category by conveying something about the word itself, its surrounding words, or both. A classifier that has seen many labeled examples also has an opportunity to associate a recurring word representation with its usual tag. That association can support successful prediction even when the encoder contributes little information about the particular sentence. For a word such as record, the noun and verb readings illustrate why useful word identity and useful contextual information are different things. A score that pools across many tagging decisions can reflect both.
In the paper's account of earlier probing, researchers had already used classifiers to look for properties of sentences and for source-language syntax in translation networks. Later studies used related methods to investigate the structure accessible in BERT. The common design was to keep the network supplying the representation fixed and train an auxiliary predictor as a measurement instrument. That design appears in work on fine-grained analysis of sentence embeddings and on source syntax in neural machine translation.
The authors cite studies that find several kinds of syntax in BERT and a study that probes across its layers. The latter observes a progression resembling the order of tasks in a classical language-processing pipeline. Grammatical categories appear relatively early, followed by relationships among words and by tasks such as entity recognition, semantic roles, and coreference. In that approach, the location of a property is inferred from which layer supplies useful inputs to a classifier. The paper takes that result as a point of comparison with BERT Rediscovers the Classical NLP Pipeline.
Accuracy and complexity answer different questions
A simple classifier places a restriction on what can happen between the representation and the answer. A linear probe can recover a distinction that has a suitable linear form in its input. A distinction expressed through nonlinear relationships may elude it. Low accuracy under that restriction can therefore mean that the trained probe had trouble reading the signal. Increasing the classifier's capacity gives it more ways to recover the distinction. It also gives it more ways to learn a useful rule from the labels.
This tension matters because the purpose of the experiment is to draw an inference about pretraining. If the goal were simply to make the best predictor for a new task, the source of the successful decision rule would be less important. In a probe, the opportunity to learn from the task examples is part of the measurement. The question is whether a high score can be obtained with a small enough learned contribution that the frozen network deserves much of the credit.
Prior work described in the paper offers several ways to put a score in context. A probe can be trained on a network with randomly initialized weights. Performance under that condition estimates how much the probe can extract without the trained encoder. A researcher can also construct a random control task and see how readily the probe learns its labels. These controls act on different sides of the experiment. One changes the source of the representations. The other changes what the probe is asked to predict.
Another approach is to charge the probe for what must be communicated to specify it. A large collection of finely specified numerical parameters provides more freedom than a small collection of choices. The paper connects this view to earlier work on minimum description length and the transmission cost of a probe's parameters. A related information-theoretic line asks how much information about the property is shared with the representation. These approaches motivate different readings of a probing result, as discussed in Information-Theoretic Probing with Minimum Description Length and Information-Theoretic Probing for Linguistic Structure.
Cao and colleagues use the earlier Pareto approach to connect accuracy and complexity. A complexity budget specifies how much freedom a probe is allowed. Within that budget, the desirable probe is the one that best recovers the target property. Varying the budget gives a curve that can reveal whether a method's advantage is concentrated at one setting or persists across inexpensive and expensive probes. Comparison then depends on how complexity is defined and on which budgets the experiment covers.
Pruning changes what the probe learns
The starting point for the authors' alternative is pruning, the practice of disabling part of a network. The paper describes earlier work that used pruning for compression or as a way to adapt a pretrained network to another task. A binary mask can select weights while leaving their values intact. Earlier studies found this useful for adapting an image classifier and reported an analogous possibility for pretrained encoders in language processing. In those studies, the selected network could serve as a task-specific predictor.
The probing question gives the mask a different purpose. A classifier above the encoder learns new weights for a new computation. A mask learns which existing weights to let through. The surviving encoder can still perform nonlinear operations because it retains the architecture and numerical values supplied by the original network. The probe can thus draw on complex computations while limiting what it learns about how to assemble them. Its learned choices affect the entire encoder, including the construction of the representations presented to the classification head.
This change also affects what a probe can show about location. A classifier trained on representations from a particular layer tells the researcher that information arriving at that layer can be used to make predictions. The information could have been constructed earlier and carried forward. A mask instead specifies which parts of the encoder were retained in a task-performing computation. Reading the mask gives a different observation about layers, with its own dependence on the search procedure and the choice of what can be removed.
The method, step by step
From a frozen encoder to a task prediction
The starting point is bert-base-uncased, the BERT encoder used throughout the study. An encoder reads the input sequence and builds representations that can be used for prediction. A classification head is the task-specific component that reads those representations. A tagger's head turns a word representation into scores for grammatical tags. A parsing head uses representations to score relationships among words. The authors use the implementation described in Transformers: State-of-the-Art Natural Language Processing.
Before the encoder processes the input, a mask scales its eligible weights. A mask entry that closes a group makes its weights zero for that computation. An open entry passes through the original values. The mask position identifies what can be switched together. A position might control a single weight, a group corresponding to a neuron, or a larger block in a weight matrix. The authors also frame pruning at the level of layers as a possible granularity. Their reported complexity sweep is specified in terms of blocks within matrices.
The head and the mask learn jointly from the task labels. A training example gives the head a reason to favor the correct output and gives the mask a reason to retain or suppress parts of the encoder. The encoder's original weight values stay fixed throughout this search. Learning can therefore change which computation is available and how its result is read. It has no direct way to assign a different surviving value to an individual encoder weight.
A mask made up entirely of discrete switches would make this search awkward for gradient descent. A small change to a parameter would either leave a hard switch as it was or flip it abruptly. The paper uses a continuous relaxation that allows a switch to take an intermediate value during optimization. The resulting stochastic gate can close completely, open completely, or fall between those states. This design supports gradient-based search and gives the authors a direct way to penalize gates that remain active.
How the subnetwork probe learns
The steps in order.
Turning a switch into a trainable gate
The paper starts with a gate for each weight and then shares gates when it wants coarser control. Let φ be the vector of eligible encoder weights and let d be its number of entries. Index i identifies a position in the vector. The position has a fixed weight φᵢ and a learned real-valued location parameter θᵢ. The location parameter controls the distribution of Zᵢ, the gate applied to that position. The authors use hard-concrete gates, based on the continuous relaxation described in The Concrete Distribution.
Uᵢ ∼ Uniform[0, 1]
Uᵢ is the random draw for gate i. The symbol ∼ says that the draw follows the distribution to its right. Uniform[0, 1] denotes a uniform distribution on the stated interval. When the authors sample the full mask, U collects the draws used for its gates.
Sᵢ = σ((log(Uᵢ / (1 − Uᵢ)) + θᵢ) / β)
Sᵢ is the relaxed gate before stretching and clipping. The function σ is the sigmoid, which maps a real input to the interval between 0 and 1. The log transforms the odds formed from Uᵢ and its complement. The location θᵢ shifts the resulting value inside the sigmoid, and β is the temperature that scales the input to the sigmoid. Increasing θᵢ for the same draw and temperature pushes Sᵢ toward the open end. Temperature controls how sharply the gate moves between low and high values as this input changes.
Zᵢ = min(1, max(0, Sᵢ(ζ − γ) + γ))
Zᵢ is the multiplier actually applied to the encoder weight. The constants γ and ζ are −0.1 and 1.1, respectively. Their difference stretches the interval for Sᵢ and the addition of γ shifts it. The max operation replaces negative values with 0. The min operation replaces values above 1 with 1. Values between the boundaries pass through. The combination produces exact zeros and ones with non-zero probability, while leaving an intermediate region where the sampled gate changes continuously.
The exact zeros matter because they remove weights from the forward computation. Exact ones preserve weights at their original values. For an intermediate draw, the weight makes a scaled contribution on that pass. This is how the relaxation allows supervised gradients to guide a search whose intended output is a choice about which parts of the encoder to keep. The paper denotes the complete mapping from a draw and location to its gate by z. Applied to vectors U and θ, z produces all the mask entries for a forward pass.
Learning from labels while charging for active gates
Write f for the prediction function built from the encoder and its classification head. Its input x is an example, and y is that example's task label or labeled structure. The paper writes the prediction as a function of the masked encoder weights, with the head's own parameters implicit. The objective first asks how well the prediction would match the labels on average over gate samples.
ℒ(x, y, θ) = Eᵤ[ L(f(x; φ ⊙ z(U, θ)), y) ]
ℒ is the expected loss for example x with target y and gate parameters θ. Eᵤ averages over U, the uniform draws for the mask. The function L measures the task loss between the prediction and y. In f, the argument after the semicolon gives the encoder weights used for the prediction. The operator ⊙ applies the mask by elementwise multiplication of φ with z(U, θ). Where a gate is shared, its value is applied to each weight in its group.
The optimizer estimates this expectation with a single sampled U for a gradient calculation. The samples provide the randomness, while the formula carrying U and θ into Z lets the loss gradient reach θ. The head also receives a gradient from the prediction loss. Its adjustable parameters learn to use the representations produced during the mask search. Thus the loss rewards masks that leave the head with enough information to make good predictions.
Prediction loss alone supplies little incentive to close a gate that the task can tolerate. The objective therefore also charges for the expected number of active mask entries, normalized over the entries. The authors use the probability that a gate is above zero, so a partially open gate is included in the notion of activity. In the weightwise notation, the resulting regularizer is as follows.
R(θ) = (1 / d) ∑ᵢ σ(θᵢ − β log(−γ / ζ))
R is the normalized expected activity penalty. The sum runs over the d gate positions, with i indexing one gate. The sigmoid expression inside the sum is that gate's probability of taking a non-zero value. θᵢ is its learned location, β is the temperature, and γ and ζ are the stretching constants. The log takes the positive quantity given by −γ divided by ζ. Dividing by d makes the sum an average. With a coarser grouping, the mask has a trainable gate for each chosen group of weights.
J = (1 / |D|) ∑₍ₓ,ᵧ₎∈D ℒ(x, y, θ) + λR(θ)
J denotes the training objective. D is the labeled training set, |D| is its size, and the sum includes the example and target pairs in D. The first term averages the expected task loss ℒ. The second weights the penalty R by λ, the regularization strength. Although only θ is shown as a learned argument of ℒ here, the head parameters are optimized through the prediction term as well. The original weights φ remain fixed.
The authors change λ over the course of training. It is 0 for the first 25% of training. It then rises linearly to λₘₐₓ over the next 50% and stays there for the rest. The default evaluation uses λₘₐₓ of 1. The schedule gives the search time to find configurations that predict the task before requiring them to withstand the full cost of leaving gates active. The stronger settings explored in the appendix and the layer analysis use the same idea of an eventual maximum.
Choosing what each gate controls
Grouping weights controls how many independent choices the mask can make. If a single gate covers a matrix, the search can retain or suppress that matrix as a whole. A gate for each neuron offers more detailed control. A gate for each weight offers the finest control in the reported sweep. When weights share a gate, no setting of that gate can preserve part of the group while suppressing the rest. That restriction is the source of the reduction in mask complexity.
The paper describes 72 pretrained matrices of size 768 × 768 for this sweep. Each matrix is divided into blocks specified by the number of rows nᵣ and columns n꜀ per mask entry. The coarse end uses (768, 768). The intermediate settings use (768, 192), (768, 24), (768, 6), and (768, 1). Finer settings use (192, 1), (24, 1), (6, 1), and (1, 1). The paper identifies (768, 1) as the neuron setting and (1, 1) as the individual-weight setting. The default subnetwork probe uses the neuron setting.
The granularity of the mask and the strength of the activity penalty change different properties. Granularity sets the number of independently selectable groups. The penalty influences how many of those groups are active. A fine-grained mask may leave very few weights in place, yet it took a mask with many possible positions to identify them under the paper's uniform encoding. A coarse mask may keep a large matrix intact while requiring just one switch to describe that choice. Hence the number of surviving weights and the number of bits allotted to the mask answer different questions.
Giving the comparison probe a variable budget
The conventional baseline is MLP-1, a multilayer perceptron with one hidden layer. It receives representations from the unmodified frozen encoder. The learned operation above the encoder uses a factorized linear map followed by normalization and a nonlinear activation. Restricting the rank of the map limits the adjustable transformation the baseline can apply.
MLP-1(h) = ReLU(LayerNorm(U Vᵀ h))
Here h is an encoder representation. U and V are the learned factor matrices for the baseline. Their shape is d × r, where d is the representation width in this formula and r is the rank setting. These capital letters denote matrices in the baseline, independently of the earlier notation for mask samples. The superscript ᵀ transposes V, and matrix multiplication applies the resulting factorized map to h. LayerNorm normalizes the mapped representation, after which ReLU passes positive values and maps negative values to zero. The result is the input to the task head.
f_Subnetwork(x) = cls(g(x; φ ⊙ Z))
The symbol f_Subnetwork denotes the subnetwork predictor. The encoder g takes x and runs with the masked weights φ ⊙ Z, where φ holds the original values and Z is the gate vector. The classification head cls reads the resulting representation. The effect of the mask is therefore seen throughout the encoder computation that produces the head's input.
f_MLP-1(x) = cls(MLP-1(g(x; φ)))
The symbol f_MLP-1 denotes the comparison predictor. Here g processes the same kind of input x with the original weights φ. MLP-1 transforms the encoder output, and cls predicts from that transformed representation. The formulas show the point of intervention in each system. The subnetwork probe alters which weights participate inside g. The conventional probe carries out its learned transformation after g has produced its output.
The rank values in the complexity sweep are 1, 2, 5, 10, 25, 50, 125, 250, and 768. Outside that sweep, the paper uses the full-rank baseline. Both probes have the task head specified for the relevant dataset. They differ in what is learned beyond that head and in how that learned component interacts with the encoder.
Counting the bits used to specify a probe
A mask entry is a binary choice in the complexity comparison, so the authors charge 1 bit per entry under uniform encoding. That is a description cost for the learned selection. Training used real-valued location parameters and sampled gates, which are part of the search procedure. The bit budget represents the resulting choices about the existing encoder. The encoder itself supplies the architecture and original weight values needed to interpret those choices.
A real-valued parameter in the MLP needs a precision convention. The paper illustrates the cost by considering values confined to an interval with a chosen resolution.
C = log((b − a) / ε)
C is the illustrative bit cost per parameter. The endpoints a and b define its range, and ε is the required precision. The quotient represents the number of resolution intervals across that range. The logarithm expresses the number of binary choices needed to identify a value at that resolution. For the actual comparison, the authors plot costs under assumptions of 1 and 32 bits per MLP parameter so that the comparison can be read under a favorable as well as a more expensive encoding. The plot displays overall complexity in ln(bits), the natural logarithm of the bit count.
The bit count concerns the mask or the added MLP parameters. Both designs have a task head, and both are interpreted in the setting of a known encoder. A small point on the axis therefore means that the distinctive part of the probe has a small description under the chosen convention. It says little by itself about the size of the encoder, the cost of fitting the probe, or the amount of computation required for a prediction.
Training the probes and controls
For tagging, the head applies dropout with probability p = 0.1, then a linear projection to the available tags and a softmax to form a distribution over them. Named entity recognition uses the same head design with its own labels. The dependency experiment uses a biaffine head. It learns to score potential relationships using information from the two positions involved in a possible dependency. This head is part of the supervised prediction machinery in the parsing comparison.
The authors train for 30 epochs in each task. They use Adam with coefficients (0.9, 0.999) and a numerical stability constant of 1 × 10⁻⁸. The mask location parameters use a learning rate of 0.2. The classification head uses 5 × 10⁻⁵. The MLP-1 and full fine-tuning baselines also use 5 × 10⁻⁵. The paper reports linear learning-rate warmup over the first 10% of the data. This warmup governs the optimizer step size, while the separate λ schedule governs the pressure to close gates.
The pretrained encoder has 12 layers, a hidden dimension of 768, 12 heads, and 110M parameters. These are properties of the network within which the search takes place. They explain how a short mask can refer to an extensive computation already available from the starting checkpoint. The authors released code for their subnetwork probing experiments.
Experiments and results
What is measured on each task
The authors use the English Universal Dependencies training split, with 12,541 examples, and development split, with 2002 examples, for tagging and parsing. The tagging experiment predicts a grammatical category for a word and reports accuracy. The labels come from the dataset used in the CoNLL 2017 multilingual parsing shared task.
In dependency parsing, a prediction gives a word's syntactic head and the label of their relationship. A labeled attachment is correct when both agree with the annotation. The paper reports macro-averaged labeled attachment score on the English Universal Dependencies development split. The measure concerns structural relations, so it tests a different use of the sentence representations from assigning a tag to each word.
For named entity recognition, the authors use the CoNLL 2003 training split of 13,862 examples and test split of 3235 examples. Entity recognition requires identifying spans that refer to named entities and assigning their types. The paper uses F1 from the shared task's scoring script, so the score reflects both correct predictions among proposed entities and recovery of the annotated entities. The evaluation follows the CoNLL 2003 named entity recognition shared task.
What the resets control
The main comparison evaluates the default neuron mask against full-rank MLP-1 under three starting conditions. The pretrained condition keeps the learned embeddings and encoder. The reset-encoder condition keeps the learned word embeddings and randomly resets the encoder. The reset-all condition resets both. Each probe is trained for its task in the condition being tested.
The reset-encoder setting preserves pretrained information about word types in the embedding table. The randomized encoder has no learned contextual computation from pretraining. This distinction matters most where a word's identity is already a useful clue to the label. With both components reset, any predictive success has to come from what the randomized representations make accessible, the architecture, and what the supervised probe and head can learn.
The experiments also report fine-tuning. That condition trains all network parameters on the task. Its scores give a reference for task performance under an unrestricted training procedure, including training after a reset. In the probing comparisons, high scores on the pretrained network and low scores after a reset work together as evidence that the measurement is sensitive to pretraining. Fine-tuning answers the related question of how well the same starting condition supports a task when all parameters can adapt.
Part-of-speech tagging
Pretrained BERT on English Universal Dependencies development tagging accuracy
The neuron subnetwork leads the conventional probe while full fine-tuning gives the highest accuracy.
The numbers
| System or setting | accuracy % |
|---|---|
| MLP-1 | 90.25 |
| Neuron subnetwork (this paper) | 93.39 |
| Fine-tuning | 95.69 |
The neuron mask is ahead of MLP-1 on the pretrained encoder. This shows that the restricted masking procedure can recover more of the tagging behavior than the conventional probe at its default setting. It also leaves a gap to full fine-tuning, whose additional freedom can be used to fit the task.
In the reset-encoder condition on the same development split, the tagging accuracies are 87.53 for the subnetwork, 86.53 for MLP-1, and 86.47 for fine-tuning. After resetting the embeddings and encoder together, the accuracies are 71.53 for the subnetwork, 69.16 for MLP-1, and 84.42 for fine-tuning. The subnetwork therefore keeps its advantage over MLP-1 after both resets. The authors' expectation that lexical information helps tagging makes the relatively high reset-encoder scores understandable. The fully reset comparison also shows that word representations and supervised learning leave room for a high tagging score even without pretrained encoder weights. On this task, higher accuracy on pretrained BERT is the clear benefit of the mask. Lower performance than MLP-1 under the controls is absent.
Dependency parsing
Pretrained BERT on English Universal Dependencies development parsing score
The neuron subnetwork comes closer to fine-tuning than the conventional probe does.
The numbers
| System or setting | macro-averaged labeled attachment score |
|---|---|
| MLP-1 | 76.65 |
| Neuron subnetwork (this paper) | 86.86 |
| Fine-tuning | 89.93 |
The pretrained result for parsing is the clearest separation between the two probes in the main comparison. A mask inside the encoder reaches 86.86 macro-averaged labeled attachment score on the development split. The baseline's learned transformation above the encoder reaches 76.65. Since both approaches use the parsing head, their difference concerns what that head can learn to read from the representations supplied to it.
With the encoder reset and the embeddings preserved, the development scores are 54.31 for the subnetwork, 54.09 for MLP-1, and 79.10 for fine-tuning. The two probes are close, with the subnetwork slightly ahead. With the encoder and embeddings both reset, the subnetwork reaches 39.84 and MLP-1 reaches 42.81. Fine-tuning reaches 74.48. The direction of the probe comparison now favors the subnetwork as a measurement instrument. It recovers more parsing performance from the pretrained network and less from the fully randomized starting point.
The two reset comparisons give distinct evidence. When pretrained embeddings remain, both probes can draw on a source of learned lexical information. Once those embeddings are reset, the masked encoder gives up its small advantage over MLP-1. Thus the strongest parsing contrast is between the pretrained and fully reset conditions. The encoder-only reset shows how much the interpretation depends on specifying exactly what was randomized.
Named entity recognition
On the CoNLL 2003 test split, the pretrained results are 87.94 F1 for the neuron subnetwork, 84.80 for MLP-1, and 93.68 for fine-tuning. When the encoder is reset and pretrained embeddings are preserved, the scores are 68.09, 69.35, and 81.80, respectively. The neuron mask leads the conventional probe on the pretrained encoder and falls below it when the encoder is reset.
CoNLL 2003 named entity recognition test F1 after resetting the encoder and embeddings
The neuron subnetwork recovers the least entity recognition performance from the fully reset network.
The numbers
| System or setting | F1 |
|---|---|
| Neuron subnetwork (this paper) | 30.83 |
| MLP-1 | 53.25 |
| Fine-tuning | 70.08 |
For this chart, lower is the desired direction for a probing control. In a system built to recognize entities, higher F1 would be preferable. Here a low score shows that the probe has difficulty recovering the annotation task after the pretrained components have been removed. The large separation between 30.83 for the mask and 53.25 for MLP-1 on the test split is the strongest instance of this result. The fine-tuning reference further shows that the reset architecture can still learn the task when it is allowed to adjust all of its parameters.
Performance at comparable bit budgets
The authors next vary the gate grouping and the MLP rank on pretrained BERT. They plot a separate curve for each task with performance on the vertical axis and probe complexity on the horizontal axis. The performance measure is the corresponding benchmark metric, even when the paper discusses the curves collectively in terms of accuracy. The relevant comparison is how much tagging accuracy, parsing score, or entity F1 a researcher can obtain for a specified cost.
Across the curves, the authors report a Pareto advantage for the subnetwork probe. At comparable budgets, the masked encoder gives better task performance. The result holds when each MLP parameter is charged only 1 bit, the cheaper of the plotted assumptions, as well as under the 32-bit assumption. This matters because the result is visible even when the baseline's adjustable numerical parameters are assigned the same cost per entry as a binary mask choice.
The most striking low-budget cases in the paper are tagging and dependency parsing on the English Universal Dependencies development data. The authors report high performance with 72 bits for the mask, the budget corresponding to whole-matrix choices in their sweep. They describe a steep decline for the MLP baseline around ∼20K bits. These are statements about the comparison along the complexity axis. The scores of the default neuron masks belong to a different setting and should be read at that setting's larger mask granularity.
The whole-matrix case clarifies what the low-budget result establishes. The probe can make comparatively few decisions about which existing transformations to keep. Each selected transformation can still contain many pretrained weights. The observed performance is evidence about the usefulness of the computation already present in those weights and accessible to the task head. It also gives the bit budget its intended meaning as a charge for the newly specified choices.
What the ablations show
Randomization exposes different sources of success
The reset experiments are controlled comparisons of what the probes can get from pretrained weights. Keeping the embeddings while resetting the encoder leaves a source of learned word information. Resetting both removes that source as well. Across the tasks, both probes lose performance as more pretrained components are removed. This recurring pattern gives the pretrained scores more context than a single comparison between probe architectures could supply.
The crucial test of the authors' selectivity claim is whether the mask's stronger performance on pretrained BERT comes with weaker performance on the reset conditions. Entity recognition displays that pattern in both reset settings. Dependency parsing displays it in the fully reset setting, while the encoder-only reset leaves the default probes nearly tied. Tagging maintains the subnetwork's lead throughout. The strength of the result thus depends on how much the task can be supported by remaining word information and on how much the trained probe can do with the available representation.
The controls also qualify the phrase “learns the task on its own.” The head and the mask have real supervised learning capacity. Even with random weights, a fixed architecture can yield distinguishable inputs for the head, and supervised mask choices can improve what the head receives. A low reset score is evidence that this capacity makes less progress in a particular condition. The result is comparative, set against an MLP probe trained on the same task and starting network.
Granularity distinguishes a small mask from a sparse network
The complexity sweep changes the allowed units of selection. A matrix-level gate tests whether entire transformations can be kept or dropped together while maintaining performance. Neuron-level and weight-level masks allow more detailed choices. The corresponding change in MLP rank tests how much adjustable readout the baseline needs. These manipulations let the paper compare access to the task as each method's permitted learned component grows.
The sweep shows that several linguistic tasks are accessible even when the masking search has very little freedom to specify internal changes. It also shows that changing the precision assumption for the MLP leaves the reported ordering intact. That second observation is useful because a comparison based on one chosen precision could otherwise reflect a bookkeeping preference. In this experiment, assigning the baseline the cheaper cost leaves its curve behind the mask curve.
Tightening sparsity through λₘₐₓ is a separate check. This intervention asks how a given masking scheme behaves when active choices become more expensive during training. The appendix reports results for λₘₐₓ of 1, 5, 25, and 125 on all three tasks and in all three starting conditions. Increasing λₘₐₓ generally reduces performance when the encoder is pretrained. The effect is especially pronounced for entity recognition. Across the four settings, CoNLL 2003 test F1 for pretrained subnetworks is 87.94, 84.48, 72.26, and 50.67. The fully reset entity F1 scores are 30.83, 22.92, 3.41, and 2.04.
Those numbers illustrate two effects of a stronger penalty. Suppressing activity can remove paths through the random encoder that the probe could otherwise use. It can also remove paths needed to recover linguistic predictions from pretrained weights. At the strongest setting, the mask has very low entity F1 after a full reset and loses much of its useful pretrained performance. The authors interpret λₘₐₓ of 125 as imposing too much sparsity for the general selectivity advantage they seek.
The development scores for dependency parsing add a qualification. On pretrained BERT the sequence is 86.86, 85.99, 83.12, and 74.49 in macro-averaged labeled attachment score as λₘₐₓ increases. After fully resetting the network, the sequence is 39.84, 43.36, 41.43, and 43.07. Greater penalty strength does not produce a steady decline in the latter sequence. The regularizer limits activity, and the labeled objective still searches for a good arrangement among the allowed gates. A different arrangement can change the score in either direction.
English Universal Dependencies tagging shows a further variation. At λₘₐₓ of 25, pretrained development accuracy is 90.66, with 86.23 after the encoder reset and 68.65 after the full reset. The corresponding MLP-1 results are 90.25, 86.53, and 69.16. This setting gives the mask a small lead on pretrained tagging alongside lower scores on both resets, a pattern absent at the default strength. At λₘₐₓ of 125, pretrained tagging accuracy falls to 84.86. The comparison depends on what strength gives a usable pretrained probe for the task.
Retained weights give a layer-level view
To analyze location, the authors search for sparser task-performing masks. They choose the largest λₘₐₓ from 1, 5, 25, and 125 for which the score is within 10% of the fine-tuning score. This selection rule uses the relevant task metric. It gives the search room to remove weights while retaining a specified level of task performance. The authors then examine the share of non-zero weights across layers, including sparsity in the attention components.
When the encoder is pretrained, the retained weights are unevenly distributed over layers. The concentration for part-of-speech tagging occurs earlier than for dependency parsing, and the concentration for entity recognition comes later. After the encoder is randomly reset, the corresponding masks are distributed more uniformly. Because the reset retains the embeddings, the comparison changes the learned transformations in the encoder while retaining the starting lexical representations. The more pronounced layer organization is associated with pretraining those transformations.
The earlier layer-probing study found a comparable ordering by training classifiers on representations from particular layers. Agreement between the approaches gives the ordering a second basis. One experiment asks where a property can be read from a layer output. The other asks where a search that must retain a working computation keeps more weights. The paper reports this as a reproduction of the relative ordering for the tasks it examines, in the sense established by BERT Rediscovers the Classical NLP Pipeline.
A layer's large share of retained weights describes a property of the selected mask. That share can guide a researcher towards parts of the encoder worth examining more closely. The figure itself is a count of retained parameters, so contributions made by individual weights, the computations they perform together, and the precise role of a layer in ordinary predictions remain open. The localization result is informative at the level of the distribution measured.
Limitations
Limits and open directions identified by the authors
The authors frame the central difficulty as separating what is already accessible in the encoder from what the probe learns through supervision. Their results address that difficulty by restricting the learned intervention, comparing it with an MLP, resetting pretrained components, and measuring the cost of the learned description. The probe still fits a head and a mask from labeled data. Its success therefore means that the existing encoder can support the task under the specified supervised search, with the reset results providing evidence about the role of learned weights.
The paper acknowledges that reset conditions preserve different kinds of information. In particular, the encoder-only reset leaves pretrained word embeddings, which may help tagging. A reader assessing the authors' broader claim about lower scores on random networks needs to look at the individual entries. The default mask's reset results for entity recognition offer strong support, while the tagging results show that the direction of the comparison can vary. The appendix also identifies excessive sparsity as a problem at λₘₐₓ of 125.
The authors describe their analysis as focused on performance and location. They suggest that neuron explainability techniques could extend it. They also discuss the possibility of using masks to study social biases in pretrained networks, citing work on bias and proposing potential tasks such as CrowS-Pairs. Those examples describe future applications. The reported benchmarks concern grammatical categories, syntactic dependencies, and entities, and the layer analysis measures task-related retention on those benchmarks.
Limits visible in the experimental setup
The evaluation is tied to bert-base-uncased, English Universal Dependencies, and CoNLL 2003 entity recognition. Its results support a comparison among the probes on those tasks and splits. Whether the curves maintain the same ordering for other architectures, languages, or target properties remains an empirical question. The tasks also differ in what counts as success. A tagging accuracy, a macro-averaged attachment score, and an entity F1 each measure a different prediction problem. The paper's main comparisons are within tasks and across probe settings.
The bit budgets depend on the encoding convention. The paper measures an uncomplicated description of a mask and brackets the cost of the MLP by charging different amounts for each numerical parameter. A different coding scheme could exploit patterns across parameters or charge for the choice of grouping. The reported conclusion concerns the encoding used in the curves. The common head and the available pretrained weights matter to interpreting that axis, as does the distinction between describing a selected mask and training it.
The complexity sweep samples particular layer-matrix groupings and rank settings. The reported Pareto advantage describes their performance curves under the stated assumptions. The space of possible MLP architectures, mask parameterizations, and training procedures is much broader. In particular, a curve for MLP-1 gives direct evidence about that family of readouts and the ranks tested. A general claim about all conceivable probes would need a different kind of argument.
There is also a search problem behind every mask. Supervised gradient descent finds a solution under a stochastic relaxation and a penalty schedule. A strong result supplies an example of a successful selection. A weak result can reflect what the labels demand, the granularity allowed, the penalties used, or which solution the search reaches. The experiment gives no guarantee that the selected mask is the sparsest possible solution or that different searches would retain the same weights. This distinction is especially important when reading the figures as maps of the encoder.
Finally, the complete encoder and a pruned encoder perform different forward computations. Removing weights can change which information remains available and how the surviving parts interact. A high-performing pruned network shows that a selection of existing weights, together with the trained head, suffices for the measured task. Whether those weights are necessary for the behavior of the intact encoder, whether other selections can substitute for them, and how the original network uses the same computation are further questions. The retained-weight plots give evidence about where this search finds a solution. They leave the detailed mechanism unresolved.
What came after
The works that cite Cao and colleagues place the experiment in several distinct research programs. The recorded titles and citation relationship establish the topics of those connections. They give a basis for comparing the questions each work pursues, while leaving direct reuse of this paper's masks, training procedure, and bit budgets unestablished.
Work on parameter selection can have a different goal from probing. Parameter-Efficient Transfer Learning with Diff Pruning concerns the cost of adapting a network to another task. Cao and colleagues restrict the learned component to support an inference about pretraining. In the transfer setting, a restriction on learned changes serves the adaptation objective itself. The papers are connected by their focus on how much task-specific change is required, with efficiency and measurement motivating different uses of that restriction. Parameter-Efficient Transfer Learning with Diff Pruning
Emergent World Representations studies representations in a sequence system trained on a synthetic task. Its subject is close to the probing question of what training has made available internally, while its target shifts from linguistic labels to a representation of the world behind the sequence. Finding Neurons in a Haystack applies sparse probing to case studies centered on neurons. Its subject is close to the localization question in Cao and colleagues' work. A sparse readout that points to particular units and a mask that preserves a task-performing subnetwork offer different objects to inspect. Emergent World Representations and Finding Neurons in a Haystack
The circuit studies take the question of selecting parts of a network towards the organization of computation. Towards Automated Circuit Discovery for Mechanistic Interpretability makes the discovery procedure itself the subject. Does Circuit Analysis Interpretability Scale? examines the scope of circuit analysis in connection with multiple-choice performance in Chinchilla. Circuit Compositions considers modular structure in transformer-based systems. Cao and colleagues' mask supplies an earlier example of searching over parts while requiring a behavioral result. The titles of these citing works point to further questions about automating that search, applying circuit analysis to another setting, and understanding relationships among selected parts. Towards Automated Circuit Discovery for Mechanistic Interpretability, Does Circuit Analysis Interpretability Scale?, and Circuit Compositions
Another connection concerns the conclusions that an experiment can support. The Dangers of Underclaiming addresses caution in reporting failures of language-processing systems. The probing study gives a concrete case of why the instrument matters. An MLP and a subnetwork search recover different levels of task performance from the same pretrained encoder, so failure under a single readout can support only a claim about that readout and its conditions. Causal Abstraction takes up the theoretical grounding of mechanistic interpretation, while The Quest for the Right Mediator surveys the field through causal mediation. Both topics connect to the gap between identifying useful parts and explaining the role of those parts in a larger computation. The Dangers of Underclaiming, Causal Abstraction, and The Quest for the Right Mediator
The safety-related citations put interventions on existing computation to a different test. Assessing the Brittleness of Safety Alignment uses pruning and low-rank modifications to study how safety behavior withstands changes to a network. This shares the use of targeted modifications with subnetwork probing, while shifting the measured outcome from access to linguistic annotations to the stability of alignment. Mechanistic Interpretability for AI Safety places the citation in a review of the wider field. These connections illustrate how the interpretation of a pruning experiment depends on the behavior being measured and on what the intervention is designed to preserve. Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications and Mechanistic Interpretability for AI Safety
Cite
Cite as Steven Cao, Victor Sanh and Alexander Rush. 2021. Low-Complexity Probing via Finding Subnetworks. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.
@inproceedings{cao2021low,
title = {{Low-Complexity Probing via Finding Subnetworks}},
author = {Steven Cao, Victor Sanh and Alexander Rush},
booktitle = {Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies},
year = {2021},
doi = {10.18653/v1/2021.naacl-main.74},
url = {https://doi.org/10.18653/v1/2021.naacl-main.74}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cao-2021-low-complexity-probing-finding-subnetworks/