---
title: "Understanding intermediate layers using linear classifier probes"
description: "Linear classifier probes show how image categories become easier to predict across a neural network’s layers and what that change reveals…"
canonical: "https://research.elamur.ai/free/en/papers/alain-2016-understanding-intermediate-layers-using-linear/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/alain-2016-understanding-intermediate-layers-using-linear/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2016](https://md.research.elamur.ai/free/en/papers/2016/) / Understanding intermediate layers using linear classifier probes

# Understanding intermediate layers using linear classifier probes

Paper · 2016 · Guillaume Alain and Yoshua Bengio

**Authors:** [Guillaume Alain](https://md.research.elamur.ai/free/en/authors/guillaume-alain/) and [Yoshua Bengio](https://md.research.elamur.ai/free/en/authors/yoshua-bengio/) · **Year:** 2016 · **Venue:** arXiv:1610.01644 · **Licence:** [arXiv — non-exclusive licence to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[Cited by **268** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/alain-2016-understanding-intermediate-layers-using-linear/cited-by/) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1610.01644)
- [arXiv 1610.01644](https://arxiv.org/abs/1610.01644)

## Summary

An image classifier can get an answer right without giving much away about how it arrived there. Its final prediction shows what the network can do after all its layers have worked on an image. Alain and Bengio ask how much progress is already visible partway through that computation. They give a small, separately trained classifier the features from an intermediate layer and ask it to predict the original image category. Repeating the test at several points shows where the categories become easier to distinguish with a simple readout. The paper turns an otherwise hidden part of the computation into something that can be measured for [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/).

Each of these classifiers, called a probe, uses a linear rule. It assigns a score to a class by weighting the values it receives from a layer. The weights of the probe can change during fitting, while the gradients from its prediction errors stop at the connection to the network. This lets the authors observe features as they develop during training or study the representations of an already trained network. The same labels provide a common test across layers, even though the network may represent the image very differently at each point.

The paper reports that class labels generally become easier to recover with depth in Inception v3 and ResNet-50. In the Inception v3 experiment on [ImageNet](https://md.research.elamur.ai/free/en/papers/russakovsky-2014-imagenet-large-scale-visual-recognition/), probes reveal how the usefulness of intermediate features changes during training as well as how it varies across the trained network. At one of the observed stages, the auxiliary prediction head had slightly lower error than the main head. The comparison illustrates the value of looking inside a branched network over time, where an intermediate branch and the final output can develop at different rates.

The authors explain the depth trend by distinguishing how much information a representation contains from how readily a reader can use it. An image file contains the data needed to see a lion, but someone looking at the file’s hexadecimal bytes faces a harder task than someone looking at the rendered picture. Similarly, successive layers can make category information easier for a linear classifier to use, even while transformations can discard information from the input. A probe measures the ease of recovering a particular target under a particular restriction. That is what makes it a diagnostic of representation quality, and what sets the bounds of the interpretation.

## Deep dive: Understanding intermediate layers using linear classifier probes

Linear classifier probes show how image categories become easier to predict across a neural network’s layers and what that change reveals about training. · about 35 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What an output leaves unresolved

When a network predicts an image category, the prediction arrives at the end of a sequence of transformations. Each transformation produces features, the numerical values handed on for further processing. A final error rate compresses all this activity into a measure of how frequently the complete system fails. It is easy to read and useful when comparing finished systems. It leaves open where along the way the computation started to resemble a solution. A layer close to the input might already expose distinctions relevant to the correct answer. A later part of the network might do most of the work of arranging those distinctions into categories. Either situation can produce the same final score.

There are two directions in which to ask about this hidden computation. One is across depth. For a network at a given stage of training, how does the usefulness of its features vary from one location to the next? The other is across time. At a given location, how does the usefulness of those features change as the network learns? It matters which comparison is being made. Comparing an early layer to a late layer at the same stage concerns the organization of the computation. Comparing a layer to itself later in training concerns how its representation develops. A diagnostic suitable for both can show whether changes first become visible at particular locations or appear across much of the network.

Branches make the question less straightforward. In a chain, the output of a layer passes to the next layer along a single route. In a network with several routes, an internal feature can feed a local computation, a later combination of paths, or a prediction made by an auxiliary head. An auxiliary head produces a prediction from a point inside the architecture and can have its own training objective. It creates a second place to examine how the network is doing, but it also raises a question about the role of its supervision. A researcher needs a way to ask about representations at locations that have no head of their own and compare them with the representations feeding a prediction head.

A useful measurement needs a sufficiently specific meaning. Asking whether a layer has an understanding of the image leaves too many possibilities open. The authors ask whether an ordinary, constrained classification rule can recover the image category from that layer. This gives the investigator a task with known answers. The same target can be used at an early layer, at a branch, and farther along the main route. The network’s original training may place special demands on particular heads. The probe imposes the same type of diagnostic question at each selected location.

#### Earlier ways of looking at learned features

The paper’s references situate this question among several approaches to studying hidden representations. One line of work sought to visualize what convolutional computations had learned, as in [Visualizing and Understanding Convolutional Networks](https://md.research.elamur.ai/free/en/papers/zeiler-2013-visualizing-understanding-convolutional-networks/). Related work considered inversion. An inversion asks what input, such as an image a person can inspect, can be reconstructed from a representation. In that setting, the ability to recover properties of an image is itself revealing. A useful reconstruction can retain visual structure even when it is unclear how easily the representation supports a decision about the image’s category.

Other work considered how activations from a trained convolutional network could serve as features for visual recognition. That framing treats an intermediate representation as something a separate predictor can use. The idea naturally leads to questions about which task the second predictor should perform and what success would say about the feature source. Work on features for generic visual recognition illustrates the reuse question in [DeCAF](https://md.research.elamur.ai/free/en/papers/donahue-2013-decaf-deep-convolutional-activation-feature/). The question of how well features carry over also appears directly in [How transferable are features in deep neural networks?](https://md.research.elamur.ai/free/en/papers/yosinski-2014-how-transferable-are-features-deep/).

The probe experiment uses this general possibility of reading out activations for a specific purpose. The prediction target remains the original task, so the investigator can look at progress on that task inside the network. The fitted classifier is an instrument for the comparison. It does not become the next component in the route that makes the network’s predictions. The investigator can therefore use a feature as an input to a supervised task without adding supervision to the layer that produced it. That distinction is essential when the purpose of the experiment is to observe how the existing training objective shapes the intermediate layers.

The bibliography also places the work alongside research on deep architectures with several computational paths. Residual connections provide a route by which a representation can reach a later computation without passing through every intervening transformation on the other route. The relevance of such an arrangement here is that a list of layers need not tell the whole story of what feeds what. When investigating a branched architecture, the location of a probe has to be understood in relation to the paths that furnish its input. The architectural reference for the residual network in the paper is [Deep Residual Learning for Image Recognition](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/).

#### Information and the work needed to use it

The authors’ conceptual starting point is that a change of representation can dramatically change the difficulty of a task. Consider looking for a lion in a photograph. The paper imagines showing the image file as a hexadecimal dump, a rendering of its bytes as strings of digits and letters. The picture can be reconstructed from those bytes. A person who needs to recognize the lion quickly has a much easier job with the visible image. The difference is in the work needed to get from the available representation to the answer. The raw file can contain details that the rendered view does not preserve, so ease of recognition and retention of information can even move in different directions.

Image classification makes this distinction concrete. A picture supplies the original evidence about its category, together with details such as where things sit in the frame. The task asks for the category. A later representation could discard details that matter to a reconstruction and still leave evidence for the category readily accessible. To say that the later representation makes the task easier, an experiment needs to specify who or what is trying to read it. The linear probe supplies that specification. A category boundary that requires considerable work in one representation can be much easier to express after the input has passed through several transformations.

The paper uses the word information in discussing both of these questions, with different meanings. Information theory compares variables through their distributions and statistical dependencies. The probe experiment judges an input by the performance of a restricted kind of computation applied to it. The theoretical quantity concerns what the representation retains about the target. The experimental one concerns what the chosen reader can recover. Keeping them distinct makes it possible to interpret an improvement in prediction error without attributing newly acquired information to a deterministic layer.

### The method, step by step

#### Turning a hidden layer into a classification task

Start with a labeled image and run it through the network. Along the way, each selected point produces values for that image. A probe receives those values and makes its own prediction from them. The correct class of the image tells the probe whether its prediction was successful. Repeating this across labeled examples lets a probe learn which combinations of feature values tend to favor each category. The experiment repeats that procedure at several points so that every probe answers the same question with a different view of the image.

The word *linear* describes the way the probe combines its inputs. To score a class, it multiplies feature values by learned weights and adds the contributions. A feature can support a category when its value grows or count against it, depending on its weight. What the rule can express is limited by the features it receives. If recognizing a class depends on an interaction that has already been captured in an activation, the probe can make use of that activation. If the interaction still has to be computed from other features, the probe does not have another stack of layers with which to compute it.

This places most of the burden of representing the task on the network. A good probe score means the features allow a simple rule to do well at the designated classification task. The investigator does not have to read every activation or assign every feature a meaning. Instead, fitting the probe asks whether a suitable weighted combination exists and can be learned from the data. That changes the unit of analysis. A useful answer can be distributed over a group of activations, even if looking at any one of them gives little indication of the class.

A probe works at a specified point in the computation. An Inception module, for example, can have several sub-branches. Reading a representation on a branch and reading the features after pathways have joined are different experiments. So are reading the features supplied to the auxiliary head and evaluating the head itself. The former asks what a newly fitted linear rule can do with a particular input. The latter concerns a predictor already present in the architecture. The attachment point and the prediction rule both matter to the meaning of any reported error.

Measuring class prediction from intermediate features The steps in order.

#### Keeping the measurement separate from training

A gradient describes how a change in a parameter affects the quantity being optimized. When a network is trained by back-propagation, the computation works backward from a loss to determine updates for parameters that helped produce it. If the loss of an intermediate classifier were allowed to send gradients into the layers that feed it, those layers could learn features specifically to help that classifier. Such a procedure would be a way to train a different network. It would change the answer to the observational question, which concerns the usefulness of features formed under the network’s own training arrangement.

The probe therefore receives features on the forward pass, when the network processes the image, while the backward signal from the probe stops where it attaches. The probe can learn because its own parameters still receive gradients. The layers that produced its inputs receive their training signals through the original network. The authors’ diagram conveys this by drawing a diode symbol at the connection to the probe. A diode suggests one-way passage. In this diagram the permitted passage is the flow of activations to the observer and the blocked passage is the flow of the observer’s gradients back to the feature producer.

For a fixed body of features, linear classification also gives a comparatively simple fitting problem. In standard convex fitting for linear classification, there is no separate set of hidden transformations that has to be learned jointly with the readout. Convexity concerns the objective as a function of the fitted parameters. Its relevance to the probe is that a weak score is less readily explained by the additional optimization difficulties of fitting a deep decoder. This reasoning applies to fitting the readout on a given set of inputs. During network training, those inputs can change because the original training objective continues to update the feature producer.

The time dimension consequently introduces a practical distinction. A diagnostic run during training follows representations that are developing. Its successive scores describe prediction on the features available around the stages being inspected. With an already trained network, the feature producer can be held fixed while the probes are fitted. The experiment can then focus on differences among locations without following the learning trajectory of the network. In both settings, the probe and the network have separate roles. What differs is whether the features themselves are evolving over the period of interest.

#### Controlling the size of the probe input

A spatial layer in a convolutional network can have many activation values per image. Giving every one of those values to every probe makes the feature input wide and increases the amount of material that has to be processed repeatedly. The authors address that issue in the Inception v3 experiment by choosing a random subset of features for each probe. Their preferred setting in that experiment uses 1000 features. Each probe learns its class prediction rule using the selected values at its point in the network.

A feature budget is a rule about what the probe gets to see. It has consequences for comparisons. A layer with a smaller full representation gives up less of its feature set under a common budget than a layer with a very large one. Conversely, a layer might express a category across many partially redundant activations, in which case even a small sample could be useful. The strength of a sampled probe therefore reflects both what the layer expresses and what the draw makes available. The authors report that a common budget worked for the experiment while acknowledging that it does not settle the fairness of the comparison.

Feature extraction presents a separate practical problem with a trained network. On each pass through a training set, a probe can use the activations obtained by running the network again. Alternatively, the investigator can compute features first and store them on local disk. The probe then reads the stored features along with the corresponding training labels when it fits or makes another pass. With fixed network parameters, this makes it possible to reuse feature computations. The paper discusses this procedure in connection with its pretrained ResNet-50 experiment.

Storage changes the way inputs reach the probe. Feature sampling changes which inputs reach it. The two choices address different costs and have different implications for interpretation. A repeated pass over stored features avoids repeating the feature-generating computation. A repeated pass over a sampled representation still uses only the chosen portion of the activations. A disk read can therefore improve throughput while the random budget continues to define what the probe’s classification result means.

#### The information-theoretic argument

The paper uses the data processing inequality to explain why improving classification with depth need not indicate an increase in information. It starts with a dependency of the following form.

```
X → Y → Z
```

The capital letters denote random variables. An arrow expresses the direction of dependence in the chain. In particular, the route from X to Z goes through Y. Once Y is known, the chain gives Z no further dependence on X. Here Y is simply the middle variable in a general statement. The paper also uses Y for a label in a separate notation.

The inequality for that chain is as follows.

```
I(X; Z) ≤ I(X; Y)
```

The symbol I denotes mutual information, a measure of statistical dependence between the variables within the parentheses. The semicolon separates the two arguments. On the left are the first and last variables in the chain. On the right are the first and middle variables. The inequality sign says that the quantity on the left is at most the quantity on the right. If a representation is produced from an earlier one, the later variable cannot become more informative about the original variable by that route alone.

In the lion example, the target variable has the following form.

```
Y ∈ {0, 1}
```

Here Y is an indicator of whether the image contains a lion. The membership symbol says that Y takes a value in the set inside the braces. The values 0 and 1 encode absence and presence, respectively. The image, described by X in the example, supplies the information about that label. Representing the picture in a form a reader can use more readily changes the difficulty of recognizing the animal.

The appendix expresses the chain argument for a label and successive activations in terms of conditional entropy.

```
ℍ[Y | A₁] ≤ ℍ[Y | A₂] ≤ … ≤ ℍ[Y | Aₖ]
```

The symbol ℍ denotes entropy. Y is the target variable in this formula. A denotes an activation variable, and the subscripts index successive points in the chain. A₁ and A₂ are the first and next points, and Aₖ is the last point considered, indexed here by ₖ. The vertical bar means *given*. Each term describes the uncertainty about Y conditional on the indicated activation. The ellipsis covers the intermediate terms. The inequality signs say that the conditional uncertainty stays the same or grows along the chain, under the stated dependency assumptions.

This ordering concerns the full variables in the chain and their relation to the target. For an individual branch, the chain assumption requires care. If a later representation receives another input carrying information about the example, an arbitrarily chosen probe on the first branch may not observe the full state needed to treat that later representation as its transformation. To use the theoretical argument, the relevant earlier state has to include the inputs on which the later state depends. The probes themselves can still be fitted on either branch. Their measured errors are comparisons of particular readouts, with the architecture supplying the context for those comparisons.

The paper’s empirical question addresses a different quantity. The lowest error achievable by a linear classifier on a feature set depends on the arrangement of those features. Consecutive layers can map complicated class regions into regions that are easier for a linear rule to distinguish. The label can then become more accessible to the linear readout even if the conditional entropy stays the same or increases. The formal inequalities set the interpretation of the result. The fitted classifiers provide the observations about ease of prediction.

### Experiments and results

#### Image classification across depth and training

The Inception v3 experiment studies image classification on ImageNet. There are 1000 classes in the task described by the paper. The authors attach probes to points in a network containing Inception modules and an auxiliary prediction head. The architecture sketch shows modules with a recurring arrangement of 3 or 4 sub-branches. The sketch is useful because a probe location can be characterized by the computation it follows as well as by its position in a drawing of the full network. The main and auxiliary heads also provide identifiable prediction points within that layout.

Prediction error is the classification metric reported for the probes. A lower value says that the readout makes fewer mistakes on the labels being evaluated. The principal comparison is internal to the network. A probe at an earlier point and a probe at a later point address the same image categories. Their inputs come from different points in the same computation. Because the classifiers are fitted separately, the comparison allows each point to have a suitable weighting of its own features. It is not necessary for a particular class to be represented by the same features or with the same sign at different depths.

The authors show the last training step and also display probe measurements at 4 moments over 2 weeks of Inception v3 training. In the appendix display each probe uses a random subset of 1000 features. The authors report 100% prediction error for all probes at the beginning of the displayed progression. They use 50% prediction error as an illustration of a result much better than a random guess in a problem with 1000 classes. That illustrative figure helps explain the difficulty of the task. It is a point of reference given in the caption instead of an error attributed to a named layer, time, or competing classifier.

As the training snapshots progress, useful class prediction becomes visible at more points in the computation. The final pattern supports the paper’s main observation that linear separability improves with depth. In this context, that description concerns the observed direction of probe prediction error. A probe can improve relative to its predecessors while errors persist. The result characterizes how readily the network represents a classification problem for a simple reader. It does not require that every image belong to a category that can be perfectly isolated by a linear decision rule at the end of the sequence.

The authors also report a stage at which the auxiliary head had slightly lower prediction error than the main head. A network diagram orders these two heads by position and role. The training snapshots show that their relative errors can have a different ordering at a particular time. This observation matters because it gives a concrete case in which reading the final prediction alone would omit an informative feature of the training trajectory. The paper treats the advantage as an observation from training and gives no endpoint claim for it.

The amount of available input varies considerably across locations. The appendix contrasts a point starting with 4000 features with one having 426,320 available features. Each probe retains 1000. According to the paper, before sampling, 13 of the 17 probes each have over 100,000 features available, with 11 exceeding 200,000. The fixed budget consequently makes many of the probes comparable in the width of the input they receive, while the degree of sub-sampling still varies. The depth trend is an empirical trend under this measurement arrangement.

ResNet-50 provides another setting for the approach. The paper applies the method to this residual architecture alongside Inception v3 and reports the overall depth-wise improvement in linear separability. The explicitly quantified ResNet-50 comparison is about the practical cost of preparing probe inputs on a pretrained network. The Inception v3 snapshots and the ResNet-50 throughput measurements answer different questions. The first show changes in prediction behavior across locations and training stages. The second measure how quickly the experiment can revisit training features.

#### The cost of revisiting training features

For ResNet-50, the paper reports processing approximately 100 training samples per second when the features are computed by forward propagation. When the authors read the extracted features from local disk, they report 6000 training samples per second. Each figure describes the rate of processing training samples under its respective feature acquisition procedure. Reading the stored features is the faster setting in this experiment. It relies on a prior extraction pass, so the comparison is most directly relevant when probes need to make repeated passes over the same training features.

Training-feature throughput with pretrained ResNet-50 Reading extracted features from local disk processes training samples faster than recomputing them.

**The numbers**

| System or setting | training samples per second |
| --- | --- |
| Forward propagation | 100 |
| Read extracted features from local disk (this paper) | 6000 |

This comparison has a straightforward baseline. The feature-generating network processes the image whenever its activations are needed, as it would if the probe were attached and trained in the same pass. The alternate procedure performs that computation ahead of time and supplies the results from storage. In discussing the broader problem, the authors give an example of a network processing only 150 images per second. That example motivates feature storage. The roughly 100 figure belongs to the measured ResNet-50 forward pass, and the 6000 figure belongs to reading the stored training features for that experiment.

There is no implication that a probe trained using stored features predicts classes more accurately. The advantage recorded here is how quickly the training samples can be visited once feature extraction has taken place. The distinction matters in an experiment with many readouts. Fitting and revisiting the readouts can consume time even though they leave the original network’s training untouched. A way to avoid repeated forward passes makes studying a finished network more manageable. It is an implementation result about running the diagnostic.

The experiments consequently use comparisons at different scales. The ImageNet measurements ask about errors at individual diagnostic positions, the depth of a representation, and the progress of training. The timing measurement asks about the cost of repeatedly bringing the corresponding data to a classifier. There is no shared unit between these results. Error supports the interpretation about the increasing accessibility of categories. Throughput supports the practical argument for reusing extracted features when the network has already been trained.

### What the ablations show

#### The evidence from changing the observation point

The paper offers comparisons across layers, training stages, prediction heads, and feature-processing settings, without a formal ablation that removes a component and retrains the resulting architecture. Its central evidence comes from measuring existing computations from several points of view. This is well suited to the descriptive question about where the original class becomes easy to predict. A removal experiment would address a separate question about what the trained network can do after losing a component, or what it can learn without that component in the first place.

The comparison across depth holds the classification target and the family of readout fixed. It changes the representation available to the readout. This is the most direct evidence for the paper’s argument that the form of the representation matters. When an otherwise comparable probe does better at a later point, the later feature set supports a more successful linear decision on the examples being evaluated. Since the network is a sequence of computations between those points, those computations together have changed the difficulty of the classification problem as seen by this reader.

Depth comparisons are particularly informative when read in light of the network’s training objectives. The architecture has prediction heads at specified locations. A probe adds a prediction to other locations for inspection, while its blocked gradient keeps that prediction from becoming another obligation the network must satisfy. When a representation at an uninstrumented stage of the original computation turns out to be useful for the task, the experiment reveals a property formed through the existing training signals. The probe was fitted to exploit the property once present.

The comparison across training stages changes a different variable. In the Inception v3 sequence, the reader can follow the development of the feature producer over the 4 displayed moments. An intermediate point that later supports a better readout has changed in a way that matters for classification. The snapshots make it possible to see such changes away from the terminal prediction. Because the stages are separated in time, they show selected states of the process. The plots do not provide a continuous account of when a particular change took place between observations.

The auxiliary and main heads sharpen that interpretation. The head closer to an internal branch can briefly be the stronger predictor on the measured criterion. This shows that progress can differ along the two prediction routes. It leaves open whether the auxiliary objective caused later improvement elsewhere in the network. Finding that the head learns at a distinctive rate and showing that its presence makes the main head learn better would require different comparisons. The paper’s observation establishes a relative performance at an observed stage.

#### What the feature budget and timing comparison contribute

The random-feature experiment makes the cost of observation visible. A shared count of 1000 features means the readouts receive the same number of activation values at the sampled points. That satisfies one straightforward notion of equal access. The starting feature counts show why another notion of equal access, preserving comparable portions of each representation, would lead to a different setup. There is also a third issue in any random sample. The importance of the features included may differ from their importance in another draw, even when the counts match. The paper presents its choice as the one that worked best for this Inception v3 experiment.

The feature-budget analysis thus qualifies the meaning of comparing nearby probes. A layer that looks weak under the sampled input may spread its relevant features across a wider set. A layer that looks strong may make those features available in many sampled coordinates. Both possibilities are consistent with a measured difference in error. Distinguishing them would require evidence about how results vary with the budget or the draw. The paper gives the feature counts and reports the depth pattern for the selected procedure. The counts let the reader understand the conditions under which the comparison was made.

The throughput result has the clearest change of procedure. The source network is pretrained in both settings. The comparison switches from computing training activations on a forward pass to reading extracted activations from local storage. In those conditions, a repeated visit to the training set can be much cheaper in time. The result explains how the authors can make multiple passes more practical when the feature producer itself is expensive. It gives no information about where categories are represented or whether a given representation is linearly accessible.

Together, these analyses answer several different diagnostic questions. The layer comparison identifies where label prediction has become easier for an independent linear reader. The temporal comparison shows that this property develops over training. The comparison of heads shows that distinct branches can be at different stages of that development. The feature-budget analysis makes explicit what the reader was allowed to see. The timing comparison shows how the cost of supplying fixed features can affect the feasibility of an analysis. Each result is tied to the aspect of the experiment that actually varies.

### Limitations

#### Limits the authors identify

The authors draw attention to the unequal starting sizes of the representations sampled in Inception v3. A single input budget is practical, but a probe that starts from a smaller feature set retains a different portion of its inputs from one that starts from a very large set. They note that many of the probe locations have similarly large feature sets and that there was no simple way to make the sampling fair. Their own discussion therefore qualifies a comparison that might otherwise be described as holding probe input constant. The count was held constant in the selected setting. The relationship between the retained features and the original representation was not.

They also qualify the comparison of the prediction heads. The auxiliary head’s slight advantage describes a moment in training. An account of the final ranking would need the two errors at the specified endpoint. More generally, a selected set of snapshots helps trace development and still leaves much of the training trajectory between them unobserved. The paper gives evidence at the points it displays. The distinction is consequential whenever an observation about which head is ahead becomes a claim about which one ultimately learns the task better.

A further limit is built into the authors’ definition of what the probe measures. They are interested in the availability of task information to a computationally simple reader. The information-theoretic discussion explicitly distinguishes that availability from the information content of the representation. A gain in linear classification gives no numerical estimate of mutual information or conditional entropy. The lion example is meant to explain why improvement on the practical recognition task can coexist with losing some of the details present in the original record. This is a limit on what the measurement can be taken to mean.

#### Limits that follow from the design

A fitted readout can reveal how a label is recoverable while leaving open how the network’s own later computation arrives at a prediction. The probe has its own parameters, learned under its own classification objective. If it can find a successful weighted combination of activations, that establishes accessibility given the probe’s inputs. The trained network may use some of those features, use them in a different combination, or arrive at the answer along another route. The experimental separation that makes the probe observational also prevents its success from serving as evidence that the original prediction depends on the same readout.

Probe error also has to be interpreted as error from a fitted classifier. The ideal question about a representation asks what the best linear classifier could do. In an experiment, the score comes from a particular feature selection, set of examples, and fit. A weak probe at a point could reflect the limited family of decision rules. It could also reflect that the features most relevant to the task were absent from its inputs. A favorable result is evidence that the target is recoverable in the tested setup. An unfavorable result puts pressure on the tested readout and input combination, with a wider question about recoverability still open.

The original labels confine the scope of the analysis. A layer might help recover the image category while losing visual details used to answer another question about the same image. A probe trained only for the category cannot show whether those details are preserved. Conversely, a layer can preserve much of what a person would want to know about the image while offering a linear classifier a difficult problem. The analysis becomes more definite by fixing a prediction target. Its conclusions about representation quality inherit that target.

There are several different readings of the claim about depth. One is that the reported architectures exhibit a general improving pattern in the paper’s tests. A stronger claim would require the error at every consecutive probe location to improve for every relevant selection of features and stage of training. A stronger claim still would require the relationship to transfer to architectures and tasks outside the experiments. The authors’ depth observation supports the first reading. The data processing inequality supplies no implication about the ordering of linear-probe errors. It is compatible with a later representation that makes the target harder for the chosen reader.

Architecture also affects comparisons of individual probe sites. Once features arrive at a merge from several routes, a probe after the merge sees a representation with a different dependency structure from a probe on an individual input branch. The later score cannot determine which branch supplied the decisive evidence, whether the branches carry redundant signals, or how the downstream network would behave if one branch were unavailable. Those are questions about the computation behind the observed result. Prediction error at the chosen points gives a description of their outputs under normal operation.

Finally, the numerical results have different degrees of detail. The paper gives feature counts, a number of training snapshots, and a measured throughput comparison. The main accuracy finding is expressed as a pattern across locations, with an observed relative result for the two heads and an initial prediction-error value described in the appendix. Without a sequence of exact errors by location, an account of the main result can specify its direction and measurement conditions while leaving the sizes of individual changes open. Similarly, the timing comparison is specific to a pretrained network and a local storage setup. Total runtime for a different experiment would also depend on producing and storing the activations in the first place.

### What came after

#### What a readable feature establishes

Later research citing Alain and Bengio takes the question of readable intermediate features in several directions. The connection is most direct for papers that study probing classifiers themselves. Others cite the work in the course of investigating individual units, representation geometry, or methods that change internal computations. The shared starting point is that a network’s intermediate activations can be studied as data. The difference lies in what a study asks that data to explain.

A probe’s success depends on both its input and the ability of the fitted readout to learn the target. That creates a problem of interpretation. When a test produces a good score, how much credit should go to the representation that supplied the features, and how much should go to what the classifier could learn during fitting? One follow-on study brings control tasks into the design of probes. This shifts attention from the raw score to the evidence needed to interpret that score. The methodological focus is explicit in [Designing and Interpreting Probes with Control Tasks](https://md.research.elamur.ai/free/en/papers/hewitt-2019-designing-interpreting-probes-control-tasks/).

The original paper’s distinction between accessible information and information content also provides a point of contact with work on linguistic structure. The image-classification study fixes a kind of reader and asks how usable an intermediate representation is for that reader. The later paper approaches probing through information theory with linguistic structure as the target. The connection is the attempt to make the meaning of recoverability precise, especially when a researcher wants a result to support a claim about a representation. That different formulation is the subject of [Information-Theoretic Probing for Linguistic Structure](https://md.research.elamur.ai/free/en/papers/pimentel-2020-information-theoretic-probing-linguistic-structure/).

Once probing becomes a method used across several tasks, the questions raised by a given experiment can themselves become the subject of a review. What can a classifier reveal about a representation? What limits what can be inferred from the result? Where have changes to the experimental design extended the approach? These questions develop the distinction between the performance of an instrument and the claim for which it supplies evidence. They are the organizing subject of [Probing Classifiers: Promises, Shortcomings, and Advances](https://md.research.elamur.ai/free/en/papers/belinkov-2022-probing-classifiers-promises-shortcomings-advances/).

#### Layers, units, and the organization of features

In visual interpretation, a layer-level prediction test can be placed next to an analysis that dissects the representation. The linear probe lets many features contribute to the prediction together. A dissection directs attention to parts of the representation and what can be interpreted about them more specifically. These questions can be asked of the same intermediate computation while producing different evidence. The related visual work pursues a quantitative account of interpretability in [Network Dissection](https://md.research.elamur.ai/free/en/papers/bau-2017-network-dissection-quantifying-interpretability-deep/).

The distinction between a successful readout and a localized property also matters in language. A question about which units have a relationship to grammatical number or syntax is narrower than a question about whether the representation as a whole supports a prediction. It asks where in the representation a relevant feature is expressed. A citing study puts that question in the setting of LSTM networks in [The emergence of number and syntax units](https://md.research.elamur.ai/free/en/papers/lakretz-2019-emergence-number-syntax-units-lstm/).

Sparse probing addresses a related localization question by making the number of contributing features part of the inquiry. An unrestricted weighting over the available activations can be useful for measuring class accessibility. Searching for a smaller collection asks whether that accessibility can be attributed to a more limited set of neurons. The emphasis is on where to look in a representation that contains many possible inputs for a readout. That scope is clear in [Finding Neurons in a Haystack](https://md.research.elamur.ai/free/en/papers/gurnee-2023-finding-neurons-haystack-case-studies/).

Separate work focuses on using sparse autoencoders to extract features. That places a feature extraction stage at the center of the analysis. Alain and Bengio give the probe activations already produced by the network and, for Inception v3, sample among them. A sparse autoencoder supplies a different way to obtain features for inspection. The relevant extension is the question of what form the internal variables should take before a researcher studies them, as in [Llama Scope](https://md.research.elamur.ai/free/en/papers/he-2024-llama-scope-extracting-millions-features/).

Cross-lingual ability offers a different target for layer-wise explanation. There, the question of how a representation develops towards a useful prediction can be posed in terms of alignment across languages and the eventual prediction. The original probe paper supplies an example of studying intermediate progress by relating hidden representations to a task. The citing paper’s stated focus is the order of alignment and prediction in [First Align, then Predict](https://md.research.elamur.ai/free/en/papers/muller-2021-first-align-then-predict-understanding/).

Two later titles return explicitly to depth as a subject of study. One investigates hidden representations layer by layer. The other asks at what depths knowledge and concepts are acquired. Both continue the practice of making location in the network a variable of interest. The questions they name give the layer analysis targets beyond the original image category. They appear in [Layer by Layer](https://md.research.elamur.ai/free/en/papers/skean-2025-layer-layer-uncovering-hidden-representations/) and [Exploring Concept Depth](https://md.research.elamur.ai/free/en/papers/jin-2025-exploring-concept-depth-how-large/).

#### Linear structure and predictions inside the network

The original probe tests whether class distinctions can be accessed through a linear rule. A geometric interpretation takes that linear structure as an object of study. It can ask how a distinction is arranged in the space of activations, or how useful linear directions relate to other features of that space. This makes it possible for later work to retain the interest in a simple readout while asking a more specific question about the representation it acts on.

One such question concerns representations associated with truth and falsity. This changes the target from an image label to the distinction defined by true and false examples. That target gives a concrete setting for asking about emergent linear structure. The citing paper names it directly in [The Geometry of Truth](https://md.research.elamur.ai/free/en/papers/marks-2023-geometry-truth-emergent-linear-structure/).

Spatial and temporal properties provide another subject for studying what a network represents. In this setting the target is about where or when something belongs, making the content of the representation central to the inquiry. It shares with the image-classification experiment the idea that inspecting hidden states can reveal organization that is not visible from a single final prediction. The later work studies the [representation of space and time](https://md.research.elamur.ai/free/en/papers/gurnee-2023-language-models-represent-space-time/).

Work on the linear representation hypothesis puts the relationship between linearity and geometry at the center. An empirical depth comparison asks how easily a fixed target can be recovered at different sites. A study framed around the hypothesis asks how to characterize linear representation itself. The paper on [The Linear Representation Hypothesis](https://md.research.elamur.ai/free/en/papers/park-2023-linear-representation-hypothesis-geometry-large/) takes up that broader question about the structure of the space in which readouts operate.

The target of a readout can also be the network’s own developing prediction. That changes what the observer is trying to recover. The original probes ask each location to predict an externally supplied class label. Work on latent predictions asks what prediction can be elicited from an internal state before the computation has reached its ordinary output. Both approaches make an intermediate stage accessible through an auxiliary reader. The later method is presented in [Eliciting Latent Predictions from Transformers with the Tuned Lens](https://md.research.elamur.ai/free/en/papers/belrose-2023-eliciting-latent-predictions-transformers-tuned/).

A broader framework for inspecting hidden representations also cites the work. The original experimental design specifies the location, the reader, and the prediction target. A framework for inspection addresses the larger question of how to construct and compare ways of looking at such representations. The scope of that contribution is set out in [Patchscopes](https://md.research.elamur.ai/free/en/papers/ghandeharioun-2024-patchscopes-unifying-framework-inspecting-hidden/).

#### From observation to intervention

Blocking the probe’s gradients is central to the original experiment because Alain and Bengio want to observe training without adding another training objective. Later citing work also studies what happens when researchers intervene. Those experiments have a different evidential aim. If an internal change leads to a change in behavior, the result bears on how that intervention interacts with the network’s computation. A successful probe gives a measurement under observation. An intervention provides a way to ask what a particular change does.

For linguistic structure this leads to a causal question. A readout may recover a property of word form or sentence structure from activations. The next issue is whether changes involving that property matter to the computation that produces the network’s answer. The citing study identifies naturalistic causal probing as its approach to this problem for [morpho-syntax](https://md.research.elamur.ai/free/en/papers/amini-2023-naturalistic-causal-probing-morpho-syntax/).

Another direction uses interventions at inference time, when a trained system produces answers. The paper on truthful answers centers on an intervention with a behavioral goal. Its connection to the original work is the usefulness of hidden representations as places to investigate. Its outcome of interest is how a change to the computation affects the answer. That shift in purpose appears in [Inference-Time Intervention](https://md.research.elamur.ai/free/en/papers/li-2023-inference-time-intervention-eliciting-truthful/).

Steering work likewise makes activation changes part of the procedure. In the original experiment an activation is an input to the observer’s classifier. In steering, activations are also a place where an investigator can act to try to alter behavior. The cited titles make that practical aim explicit in [Activation Engineering](https://md.research.elamur.ai/free/en/papers/turner-2023-steering-language-models-activation-engineering/) and put it in a broader transparency agenda in [Representation Engineering](https://md.research.elamur.ai/free/en/papers/zou-2023-representation-engineering-top-down-approach/).

Work on hallucinations illustrates two different uses of internal signals. One can study an edit in a space associated with truthfulness. One can also look for features that indicate a hallucination, treating those features as evidence for a detection decision. The former makes changing behavior the goal. The latter makes diagnosis the goal, closer in spirit to the original probe’s role as a separate observer. These scopes are named in [TruthX](https://md.research.elamur.ai/free/en/papers/zhang-2024-truthx-alleviating-hallucinations-editing-large/) and [Hallucination Detection Using Spectral Features of Attention Maps](https://md.research.elamur.ai/free/en/papers/binkowski-2025-hallucination-detection-llms-spectral-features/).

Other citing research asks how internal computations respond when pathways or mechanisms interact. Work on self-repair concerns how a computation responds to disruption. Work on facts and counterfactuals studies competition among mechanisms when a system handles those cases. Both take up questions that a depth-wise error profile leaves open. A profile can indicate that the output of a region remains readable. A study of interacting mechanisms asks how that behavior comes about. The two subjects are developed in [The Hydra Effect](https://md.research.elamur.ai/free/en/papers/mcgrath-2023-hydra-effect-emergent-self-repair/) and [Competition of Mechanisms](https://md.research.elamur.ai/free/en/papers/ortu-2024-competition-mechanisms-tracing-how-language/).

#### Probing in a wider research agenda

Other citations come from studies with a different primary question. Research on masked pretraining and word order is concerned with what kinds of input structure matter during learning. Investigations of in-context learning ask what learning algorithm the behavior resembles, using linear settings as a way to pose that question. These are studies of training conditions or computations inferred from behavior. Their citation of layer probing locates it among methods for understanding what a trained network has acquired. The respective questions are stated in [Masked Language Modeling and the Distributional Hypothesis](https://md.research.elamur.ai/free/en/papers/sinha-2021-masked-language-modeling-distributional-hypothesis/) and [What learning algorithm is in-context learning?](https://md.research.elamur.ai/free/en/papers/akyurek-2022-learning-algorithm-context-learning-investigations/).

Broader works cite the probe paper within discussions of opportunities, risks, internal computation, and safety. A broad survey of foundation systems puts access to intermediate representations within a larger account of their uses and risks. A primer on Transformer computation places it among ways to study what happens inside the architecture. Reviews of interpretability and alignment situate the same family of questions in the effort to connect internal evidence with claims about behavior. These wider contexts are represented by [On the Opportunities and Risks of Foundation Models](https://md.research.elamur.ai/free/en/papers/bommasani-2021-opportunities-risks-foundation-models/), [A Primer on the Inner Workings of Transformer-based Language Models](https://md.research.elamur.ai/free/en/papers/ferrando-2024-primer-inner-workings-transformer-based/), [Mechanistic Interpretability for AI Safety](https://md.research.elamur.ai/free/en/papers/bereska-2024-mechanistic-interpretability-ai-safety-review/), and [Foundational Challenges in Assuring Alignment and Safety](https://md.research.elamur.ai/free/en/papers/anwar-2024-foundational-challenges-assuring-alignment-safety/).

A classifier can also be part of a deployed defense, where its decisions serve a protective purpose. That is a different role from measuring what an intermediate representation makes accessible. One citing paper takes that defensive role as its subject in [Constitutional Classifiers](https://md.research.elamur.ai/free/en/papers/sharma-2025-constitutional-classifiers-defending-against-universal/).

Across these connections, the paper’s experimental design supplies a precise starting question. At a chosen point in a computation, can a simple separately fitted reader recover a target of interest? Later work can tighten the interpretation with controls, specify a different target, search for a smaller source of the signal, or intervene to study consequences for behavior. Each changes what the resulting experiment can establish. Alain and Bengio’s contribution is to make the original question answerable without changing the training that produced the representation being examined.

## Cite

Cite as Guillaume Alain and Yoshua Bengio. 2016. Understanding intermediate layers using linear classifier probes. arXiv:1610.01644.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1610.01644](https://doi.org/10.48550/arxiv.1610.01644) · [arXiv 1610.01644](https://arxiv.org/abs/1610.01644)

```bibtex
@misc{alain2016understanding,
  title = {{Understanding intermediate layers using linear classifier probes}},
  author = {Guillaume Alain and Yoshua Bengio},
  year = {2016},
  doi = {10.48550/arxiv.1610.01644},
  eprint = {1610.01644},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1610.01644}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
