---
title: "Do Deep Nets Really Need to be Deep? — Ba 2013"
description: "Do Deep Nets Really Need to be Deep? tests whether shallow neural networks can learn from deep teachers and match their accuracy in…"
canonical: "https://research.elamur.ai/free/en/papers/ba-2013-do-deep-nets-really-need/"
---
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/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/ba-2013-do-deep-nets-really-need/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2013](https://md.research.elamur.ai/free/en/papers/2013/) / Do Deep Nets Really Need to be Deep?

# Do Deep Nets Really Need to be Deep?

Paper · 2013 · Jimmy Lei Ba and Rich Caruana

**Authors:** [Jimmy Lei Ba](https://md.research.elamur.ai/free/en/authors/jimmy-lei-ba/) and [Rich Caruana](https://md.research.elamur.ai/free/en/authors/rich-caruana/) · **Year:** 2013 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**1,335** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2134797427|W2952881492) · [Cited by **174** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/ba-2013-do-deep-nets-really-need/cited-by/) · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1312.6184)
- [arXiv 1312.6184](https://arxiv.org/abs/1312.6184)
- [OpenAlex](https://openalex.org/W2134797427)

Citations: OpenAlex, 2026-10-14.

## Summary

A deep neural network can make better predictions than a shallow one trained on the same examples. Does that mean the task itself requires a deep network? The authors test a different explanation. Perhaps depth helps the training procedure find a good prediction rule, even when a shallower network could learn to reproduce that rule once someone has found it. To separate those possibilities, they train deep networks on labeled examples and then use the outputs of the trained networks to teach shallower ones. They compare the resulting students with networks trained directly on the original labels.

The targets for the student are the teacher’s *logits*, the scores it assigns to possible answers before converting them to probabilities. An ordinary label tells the student which answer was recorded for an example. A vector of scores also shows how the teacher treats the alternatives. The student learns by minimizing the squared differences between its own scores and the teacher’s. Where several deep networks serve as the teacher, their scores can be combined to give the student a single target vector per input.

On TIMIT phoneme recognition, a student with 8000 nonlinear hidden units performs about as well as a deep, fully connected network with a similar number of parameters. A student with 400,000 nonlinear hidden units reaches performance comparable to a single deep convolutional network, while the ensemble that teaches it still has a lower phone error rate. Both students learn from the original 1.1M training inputs scored by the ensemble. On CIFAR-10 image recognition, the students retain a convolution and pooling stage, and their transfer set includes additional images. The shallow student taught by an ensemble improves on the corresponding student taught by a single convolutional network by a reported 0.9% in classification performance. The deep image networks use fewer parameters than the shallow students because they share weights across locations.

The results separate the architecture that helps discover a prediction rule from the architecture that can carry it out. Depth has practical value in the paper because the strong teachers are obtained through deep architectures. Once their behavior is available as a training signal, some of the shallow students reach benchmarks that direct training had left out of reach. How closely they can follow their teachers depends on the task, the training inputs available for transfer, and the size and structure of the student.

## Deep dive: Do Deep Nets Really Need to be Deep?

Do Deep Nets Really Need to be Deep? tests whether shallow neural networks can learn from deep teachers and match their accuracy in speech and vision. · about 36 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

#### Finding a prediction rule and representing it

The paper starts with a familiar kind of result in [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/). Train a shallow network and a deeper network on the same labeled dataset, evaluate both on held-out examples, and the deeper network can come out ahead. That result compares two complete learning procedures. Each procedure includes an architecture, the way its parameters are adjusted, and the way training is kept from fitting the peculiarities of the training data too closely. The comparison leaves open which of those ingredients is responsible for the advantage.

Depth is the extent to which a network builds its computation out of successive layers. A shallow feed-forward network in the paper’s simplest formulation has a single hidden layer that applies a nonlinear transformation. A deeper feed-forward network passes its input through several such transformations before producing its scores. Width describes how many units a layer contains. The shallow network can therefore be very wide, and the number of adjustable weights can be large even when the sequence of transformations is short. Comparing depth requires keeping both the number of transformations and the number of parameters in view.

The authors also distinguish depth from convolution. A convolutional layer applies a learned operation at different positions using shared weights. Pooling can then summarize nearby responses. These choices give the network a built-in way to handle certain kinds of structure in the input. In a comparison between a fully connected shallow network and a deep convolutional one, changes in depth come bundled with changes in connectivity and weight sharing. The better result could reflect the usefulness of any of these features for the task.

The authors lay out several candidate explanations for a deep network’s advantage. It may have more parameters, or it may use a given parameter budget more effectively. The arrangement of its layers may favor useful functions, including ones built from intermediate representations. Convolution may give it an advantage over a network that starts with unrestricted connections. The training and regularization methods may also work better for the deep architecture. Several explanations could apply together. For example, an architecture can favor useful representations while also making its weights easier to learn.

The central distinction is between a network’s *representational capacity* and what training can actually find. A function belongs to a network’s representational capacity if some setting of the weights can realize or approximate it. A learning procedure has a harder practical job. It must find suitable weights from a particular dataset using a particular objective and sequence of updates. Even with ample capacity, the procedure may find a rule that fits the training examples and performs poorly on new ones. Conversely, a recipe that works well for learning a function can involve machinery that becomes dispensable once the function has been learned.

#### Why previous results left the question open

Early theoretical work cited by the authors showed that a sufficiently large hidden layer of sigmoid units can approximate a decision boundary. This gives a reason to take shallow architectures seriously. It leaves the required width, the parameter budget, and the training procedure open for a particular empirical problem. A theorem that allows a very large layer offers a different kind of assurance from demonstrating that a finite network can be trained on speech or images and then evaluated on held-out data.

Prior work on deep learning offered reasons to expect depth and training to work together. The paper describes successful unsupervised pretraining in which layers are prepared in sequence before the full network is trained for the supervised task. It also discusses work interpreting this procedure as a way to give the weights a favorable starting bias, with improved generalization. In that account, the eventual score depends on where training starts and on which solutions it tends to reach, as well as on the functions the architecture could express.

The empirical comparisons reviewed in the paper leaned towards depth. Work on convolutional vision architectures suggested an advantage for deeper arrangements under a parameter budget. Another study found that large shallow networks had difficulty learning a large-scale image classification task even with SIFT features as inputs. The paper also cites evidence in favor of deeper networks for acoustic prediction. These results made the question practical. Giving a shallow network considerable width, or preparing its input to make patterns easier to recognize, had already proved insufficient in settings the authors considered relevant.

Earlier work on compression supplied a different experimental strategy. A comparatively small network had been trained to imitate a much larger ensemble, a collection of predictors whose outputs are combined. In the example the authors cite, the compressed networks used 1,000 times fewer parameters than the ensembles and often attained similar accuracy. That demonstrated the value of using a trained system to generate supervision. This paper applies the approach to a different question about [efficient networks and compression](https://md.research.elamur.ai/free/en/topics/efficient-models/). It uses imitation to ask how much depth a student needs to express useful behavior originally acquired by a deeper teacher, including cases where the relevant comparison is between networks with similar parameter counts.

This reframes the comparison. Start with a prediction rule that already works well on unseen data. Then ask whether a shallow network can learn a function that performs similarly when trained to reproduce the rule’s outputs. A successful student provides a concrete instance of a trainable shallow solution. The experiment can then be read alongside direct training on the labels. If the same kind of shallow architecture fares better with the teacher’s scores, some of the gap is attributable to how it is taught. The experiments use this approach in speech and image recognition, with different input representations and different access to data for imitation.

### The method, step by step

#### Train the teacher, then collect its scores

Training begins with labeled data and a deep network. The authors train the teacher to predict the recorded class. For each input, the network generates a score for every output class. A *softmax* transforms those scores into probabilities that sum to one. The training criterion is cross-entropy, which rewards assigning high probability to the recorded answer. Once the teacher is trained, its weights stay fixed while it prepares targets for the student.

The student’s examples consist of inputs paired with the teacher’s score vectors. A transfer input can be an example from the original training set, with its recorded class set aside. It can also come from a separate pool of images for which the student needs no human labels. Every input passed through the teacher becomes a supervised example for the student because the teacher supplies the target. This is the compression stage. The aim is to learn a substitute for the teacher’s prediction function in a single, shallower network.

An ensemble can provide the targets rather than a single teacher. On TIMIT the authors train several convolutional networks and average their logits for each input. This produces one vector with the same set of output coordinates as the vector from an individual network. Averaging happens at the level of scores, before the probability transformation. The student learns the combined score function. At evaluation time, its own weights produce the prediction, so running the student requires only its own forward computation.

How a shallow student learns from a deep teacher The steps in order.

The method uses two kinds of measurement. During imitation, score error says how closely the student’s outputs follow the targets on the inputs being used for training. In the task evaluation, the result depends on how frequently the system gets the image class or phone sequence wrong on held-out data. The distinction matters because the same error in a score can have different consequences. It can change which class wins when the scores are close, or leave the decision intact when one class leads by a wide margin. Several different score vectors can therefore be equally successful on a single example under a classification metric.

#### Why fit logits?

The paper writes the teacher’s conversion from logits to probabilities as follows.

```
pₖ = eᶻᵏ / ∑ⱼ eᶻʲ
```

Here `pₖ` is the probability assigned to output class `k`. The notation `eᶻᵏ` means the exponential of `zₖ`, the logit for that class, with `e` as the base of the exponential. The denominator sums the exponentials of `zⱼ`, the logits indexed by `j`, over every output class. The division gives each class its share of the total. In this notation, `k` is a class index. The paper also uses `k` later for the width of a linear layer.

A recorded class supplies the clearest possible preference for the labeled answer, but the other output coordinates all have the same target. A trained teacher may respond with different scores for those alternatives. On a difficult case, it might keep several classes close. On an easy case, it might give the leading class a large advantage. A student fitted to the vector is asked to reproduce these distinctions across examples, including distinctions among classes that lose.

The authors illustrate the point with a teacher probability vector of `[2e-9, 4e-5, 0.9999]`. In this example the largest probability dominates, and the authors argue that trying to fit the probabilities by cross-entropy can give the student little incentive to distinguish the two smaller entries. They illustrate a score-space target with `[10, 20, 30]`. Under squared error, the student must attend to the discrepancies in the lower scores as well as to the discrepancy in the highest score. It is learning a relation among the alternatives even on an example where the winner is easy to identify.

The difference between logit matching and probability matching also concerns the overall level of the vector. The paper compares `[10, 20, 30]` with `[-10, 0, 10]`. Softmax gives these vectors the same probabilities because adding the same amount to every logit leaves its share of the sum unchanged. Direct regression treats them as different targets. The student is consequently asked to reproduce variations in the teacher’s raw scores that would disappear if the targets were stored only as probabilities. Whether a common shift is useful information for the task remains a separate question from whether the regression objective can see it.

The authors also try matching probabilities. One alternative criterion is the following divergence.

```
KL(p_teacher ∥ p_student)
```

`KL` denotes Kullback–Leibler divergence, a measure of discrepancy between probability distributions. `p_teacher` is the distribution produced by the teacher for an input, and `p_student` is the student’s distribution for that same input. The symbol `∥` separates the two distributions in order. The other alternative described is squared error applied to the probabilities. The paper’s preferred procedure applies squared error before the softmax.

#### The shallow network and its objective

In the basic student, the input first passes through a matrix of weights connecting it to the hidden units. Each of those units then applies a nonlinear activation to its weighted input. A final matrix combines the hidden outputs into the vector of predicted logits. The authors express this forward calculation as follows.

```
g(x⁽ᵗ⁾; W, β) = β f(Wx⁽ᵗ⁾)
```

`x⁽ᵗ⁾` is the input feature vector in training example `t`. The superscript in parentheses labels the example. `W` is the weight matrix connecting input features to the hidden layer, and `f` is the activation applied to the hidden units. In the speech students, the nonlinear units are rectified linear units, or ReLUs. A ReLU passes through a positive input and returns zero for a negative one. `β` contains the weights connecting the hidden units to the outputs. `g` names the student’s prediction function, with arguments giving the input and its trainable parameters.

The transfer set pairs each input `x⁽ᵗ⁾` with a vector of teacher logits `z⁽ᵗ⁾`. The student’s loss is the following.

```
ℒ(W, β) = (1 / 2T) ∑ₜ ‖g(x⁽ᵗ⁾; W, β) − z⁽ᵗ⁾‖₂²
```

`ℒ` is the loss to minimize. `T` is the number of examples in the transfer set, and `∑ₜ` adds the contributions from those examples. The term inside the norm is the vector of prediction errors for example `t`, obtained by subtracting the teacher’s scores `z⁽ᵗ⁾` from the student’s scores. The squared Euclidean norm `‖·‖₂²` sums the squared errors across the output coordinates. The factor `1 / 2T` scales the total by the size of the transfer set and includes the conventional factor of one half for a squared loss.

The authors adjust the weights with back-propagation and stochastic gradient descent with momentum. Back-propagation carries information about the output error back through the network so that the contribution of each weight can be estimated. Gradient descent uses those estimates to move the weights in a direction that reduces the loss. The stochastic procedure bases its updates on portions of the training data. Momentum carries some of the preceding update direction into the next step.

There is also an optional target normalization. For each output coordinate, the authors can subtract its mean across the transfer examples and divide by its standard deviation. This changes the scale on which the student fits each coordinate. Coordinates that vary over different ranges then enter the objective on a more comparable scale. The authors describe a slight improvement in training loss from this step and regard it as dispensable for obtaining a good student. This normalization of teacher scores is separate from the preprocessing of speech features or images before they reach either network.

#### Make the wide layer feasible to train

A wide hidden layer gives the shallow network many units with which to construct its prediction function. It also creates a large input weight matrix. If the input has many features, every additional hidden unit in a fully connected layer requires a corresponding set of incoming weights. The authors report difficulty both in updating this large set of weights efficiently and in reaching convergence. They identify multiplication by the input weight matrix as the dominant computation during learning for the large, unfactorized shallow networks.

The paper describes the scale of that matrix as follows.

```
W ∈ ℝᴴˣᴰ
```

`W` is the input-to-hidden matrix, `ℝ` indicates real-valued weights, and `∈` denotes membership in the space of matrices of the indicated size. `H` is the number of nonlinear hidden units and therefore the number of rows. `D` is the number of input features and therefore the number of columns. The superscript `ᴴˣᴰ` gives the matrix dimensions.

The authors replace this single matrix with the product of two smaller ones.

```
W = UV,   U ∈ ℝᴴˣᵏ,   V ∈ ℝᵏˣᴰ
```

`V` maps the `D` input features into `k` intermediate values. `U` maps those `k` values into the `H` inputs to the nonlinear hidden units. `UV` denotes matrix multiplication. The multiplication represents the same sequence of linear operations as first applying `V` and then applying `U`. Here `k` is chosen to be small compared with both `D` and `H`, making the intermediate layer a bottleneck. In the speech experiments, it has 250 linear units.

The loss then takes the following form.

```
ℒ(U, V, β) = (1 / 2T) ∑ₜ ‖β f(UVx⁽ᵗ⁾) − z⁽ᵗ⁾‖₂²
```

`ℒ` is the student’s squared score loss, now expressed in terms of the factor matrices `U` and `V` and the output weights `β`. For example `t`, the vector `x⁽ᵗ⁾` passes through `V` and then `U`. The nonlinear activation `f` acts after those linear transformations, and `β` converts the resulting activations into predicted scores. `z⁽ᵗ⁾` is the teacher’s score vector for the same example. The norm, summation over `t`, and scaling by `1 / 2T` have the same roles as in the original loss, with `T` counting transfer examples. Back-propagation now calculates updates for both factors.

The original input matrix has the following storage order.

```
O(HD)
```

`O` gives the order of growth of the storage requirement. `H` is the hidden width, `D` is the input dimension, and `HD` is their product. This expression concerns the weight matrix between the input and the nonlinear layer.

For the factorized input weights, the paper gives this storage order.

```
O(k(H + D))
```

Here `O` again describes growth in storage, `k` is the intermediate width, `H` is the nonlinear hidden width, and `D` is the input dimension. One factor connects the intermediate units to the hidden units and the other connects the input features to the intermediate units. The sum accounts for storing both factors.

Because the intermediate stage is linear, the two matrices can be folded together as a single effective input matrix. The student still has one fully connected nonlinear hidden layer in this formulation. The small intermediate width constrains the rank of the effective matrix, meaning that the transformation can use only as many independent directions as the bottleneck permits. The factorization can reduce the set of functions the student can represent. Its advantage is practical: the student that the authors can fit within their memory and training constraints can have a much wider nonlinear layer.

The paper places this choice alongside earlier work on factoring neural-network weights. The distinction is where the factors are used. The examples it cites applied factorization at the output end. Here the especially large matrix is the one connecting the input to the wide hidden layer, so that is where the authors make the change. The technique addresses a cost introduced by the decision to make the network shallow and wide.

#### Adapt the construction to the data

On TIMIT, the network works with a numerical representation designed for [speech and spoken language](https://md.research.elamur.ai/free/en/topics/speech/). The input combines measurements from a frame with measurements from nearby frames. A frame is a short window into the waveform. By including information on both sides of the frame being classified, the representation supplies some local temporal context before the shallow network begins its learned transformation. The student can therefore start with fully connected layers after the input features.

On CIFAR-10, the input starts with pixel intensities. The authors’ preliminary experience with fully connected networks on these inputs leads them to keep one stage of convolution and max pooling in the shallow image student. Convolution extracts features with the same weights at different locations, and max pooling summarizes nearby responses by keeping the strongest. This gives the network some tolerance to small changes in where an image feature appears. The fully connected part then uses 1200 linear units and 30k nonlinear units. The linear units serve the same purpose as the bottleneck in the speech students.

These designs give the depth comparison a task-specific meaning. In speech, the student has a single nonlinear hidden layer after the engineered input representation. In vision, the student has a shortened hierarchy and retains a learned local feature extractor. In both cases, the paper asks how far a shallower prediction system can go with supervision supplied by a deeper one. The evidence for dispensing with convolution belongs specifically to the speech setup with its prepared inputs.

### Experiments and results

#### TIMIT data, teachers, and evaluation

TIMIT is used for phoneme recognition. The training split contains 462 speakers, the development split contains 50 speakers, and the final test split contains 24 speakers. The development split serves for cross-validation, while the final split serves for reporting performance on held-out speakers. Speaker counts describe the split at the level of people. The transfer examples are the much more numerous frame-based input vectors obtained from the training recordings.

Starting from the raw waveform, the authors apply a 25ms Hamming window with a shift of 10ms between successive windows. The window weights the waveform samples within each short interval. They extract Fourier-based filter-bank features with 40 coefficients distributed on a mel scale, together with energy. The filter-bank features summarize signal content in different frequency regions. First and second temporal derivatives describe how the features change in time and how that change itself varies. The authors include +/- 7 nearby frames, forming an input vector of 1845 dimensions. Each feature dimension is standardized by subtracting its mean and dividing by its standard deviation.

The training output distinguishes 61 phonemes, with 3 states for each phoneme. This gives the network 183 output coordinates for state prediction. At decoding time, the phones are mapped to 39 classes for scoring. The paper reports phone error rate, abbreviated PER, on the TIMIT core test set. A lower PER indicates better recognition. The training target and the evaluation metric thus describe different parts of the procedure. Teachers and students work with frame-level scores for states, and the evaluation concerns the phone sequence produced from those scores.

The deep fully connected baseline, DNN, has three hidden layers of 2000 ReLUs per layer. The CNN baseline adds convolution and max pooling before three hidden layers of 2000 ReLUs. The ensemble, ECNN, contains 9 convolutional networks. Its members are trained with somewhat different training sets and use different convolutional kernel sizes. A kernel is the group of weights applied to a local part of the input. Variation among the members gives the ensemble several learned responses to combine for each example.

The comparison also includes shallow networks trained directly on the original labels, with 8000, 50,000, and 400,000 hidden units. The mimic students use widths of 8k and 400k in their names, and both have the same 250-unit linear bottleneck. The point of reporting direct-training baselines at several widths is to see whether increased width by itself closes the gap. The point of reporting students of different widths is to see what increased width does once the target signal comes from the ensemble.

TIMIT supplies no separate pool of unlabeled inputs from the distribution for this experiment. The authors use the original 1.1M training points as transfer inputs and discard their recorded labels for this stage. The ensemble generates score vectors on those inputs, and its member scores are averaged for the student. The deep teacher and the shallow students therefore encounter the same underlying input examples. What the student receives from each input changes substantially, because its target now summarizes the predictions of trained convolutional networks.

#### Direct training and imitation on TIMIT

Among the individually trained deep networks, the CNN outperforms the fully connected DNN. The paper describes the CNN’s phone error rate on the final test set as about 2.1% better than the DNN’s. The ensemble is stronger still. The directly trained shallow networks trail the DNN by a reported 1.4% to 2%, the CNN by 3.5% to 4.1%, and the ECNN by 4.5% to 5.1% on the test comparison. Some of these shallow networks have up to 10X as many parameters as the deep alternatives in the comparison.

The chart uses the lower endpoint of each reported range. Each row answers how small the reported shortfall gets for the directly trained shallow networks when measured against the named reference. The starred DNN is the reference against which that shortfall is smallest. The values are gaps expressed in the paper’s percentage notation for the test comparison.

Smallest reported shallow-network shortfall by deep reference on the TIMIT core test set The directly trained shallow networks come closest to the fully connected deep reference and fall furthest behind the convolutional ensemble.

**The numbers**

| System or setting | reported test PER shortfall % |
| --- | --- |
| Fully connected DNN reference (this paper) | 1.4 |
| Single convolutional CNN reference | 3.5 |
| Convolutional ensemble ECNN reference | 4.5 |

Changing the supervision changes the result. The shallow student named SNN-MIMIC-8k, with 8000 ReLUs, performs about as well as the fully connected DNN at a similar parameter count. The shallow student with 400,000 ReLUs performs comparably to the single CNN even though its computation after the input features is fully connected. The teacher for both students is the ECNN. Matching the DNN or approaching the CNN is therefore a comparison against an independently trained deep baseline. The ensemble still performs better than either student.

The distinction between those reference points is important. The smaller student shows that the deep fully connected baseline’s performance can be reached with a comparable number of weights and a single nonlinear layer. The larger student answers a different question. It shows that the error rate of a carefully structured convolutional predictor is within reach of a much wider fully connected student on these speech features. The similar-budget claim belongs to the comparison with the DNN. The strong result against the single CNN comes from the much larger shallow architecture.

The paper also compares development and test performance as parameter count varies. At about 1 million parameters, the directly trained shallow and deep networks and the shallow mimics perform similarly. At larger sizes the directly trained shallow networks start to lag. The mimics track the fully connected DNN to about 4 million parameters, around the point where they begin to move ahead. The DNN curve levels off around 10M parameters. The mimic curve continues to improve and eventually levels off around 100M parameters, at a level comparable to the CNN. These are approximate sizes used by the authors to describe the curves.

The curves show that width and supervision interact. A shallow network can have extra units without making effective use of them when fitted to the original labels. With teacher scores as targets, increasing the size remains helpful over a wider range. At the largest scale the authors report, the mimic has made up enough ground to approach the single CNN, while a gap to the ECNN remains. The authors attribute the remaining gap in part to the limited transfer inputs available for TIMIT.

#### CIFAR-10 data and experimental design

CIFAR-10 tests recognition of natural images belonging to 10 object classes. The labeled split has 10,000 images for testing and 50,000 for training. Each image is 32x32 pixels with 3 color channels, giving an input vector of 3072 dimensions. To normalize contrast globally, the authors center each image vector by subtracting its mean, then scale it by dividing by its standard deviation. They then apply ZCA whitening, a transformation that reduces correlations among the input coordinates. These steps follow the image preprocessing used in the cited work on maxout networks.

The image data give the authors a transfer option that was unavailable in the speech experiment. CIFAR-10 is drawn from the larger 80 million tiny images collection. The first 1 million images of that collection are added to the original training images to create a 1.05M transfer set. The additional images come from a related source. The teacher assigns the scores used in the student’s regression objective, so the examples can be useful even when no human class label is available for them.

The paper trains a shallow image student against a single deep CNN and also trains a counterpart against an ensemble of CNNs. The students use a convolution and max pooling front end followed by the linear bottleneck and wide nonlinear layer described above. Sharing that shallow design across the comparison matters because it lets the authors observe a change in classification performance when the source of targets changes. The deeper systems used for comparison contain more convolution and pooling stages.

Classification error on the CIFAR-10 test set is the metric. It measures incorrect image-class decisions, whereas the speech evaluation concerns phone sequences after decoding. The student taught by the single deep CNN reaches performance comparable to the deeper convolutional systems in the paper’s comparison. Using the ensemble teacher improves the performance of the shallow student by a reported additional 0.9%. The result establishes the direction and reported size of the improvement from the change of teacher. The comparison with the deeper systems is described in terms of similar performance.

The image experiment also changes the parameter comparison. The deep convolutional systems have more hidden units, yet use fewer parameters than the shallow students. A convolutional weight is reused at different positions. A connection in a large fully connected layer has its own weight. Thus a network with fewer layers and fewer units can still have a larger parameter count if a greater share of its computation occurs in fully connected layers. On CIFAR-10, the empirical result is about attaining competitive classification performance with a shorter architecture.

The two domains therefore support different readings of the same transfer procedure. TIMIT shows that substituting teacher scores for original labels can help a shallow network trained on the same input examples reach stronger deep baselines. CIFAR-10 shows that a shorter convolutional architecture can be trained to compete with deeper ones when imitation also has access to additional related inputs. Taken together, they show the method working under different data conditions. The amount of transfer data, the role of convolution, and the parameter budget differ between the experiments.

#### Training time and sequential computation

The paper also reports timings for the reported speech and image experiments. Reaching the performance the authors describe usually requires 8–12 hours of training for deep networks on Nvidia GTX 580 GPUs. Some shallow mimics attain similar accuracy in 1–2 hours of student training, even when they have more weights. This comparison is between training runs for the individual networks. The imitation procedure starts from a trained teacher, so acquiring that teacher and scoring the transfer inputs are additional stages when accounting for the complete process.

The potential inference advantage concerns the order in which computations have to occur. Given parallel resources, many units within a wide layer can be evaluated at the same time. The output of one layer must still be available before the next layer can use it. The authors suggest that a shallow network can complete a single prediction in 2 or 3 cycles under their parallel computation account. Extra layers add successive stages. The argument applies particularly to individual incoming examples, where there may be less opportunity to do parallel work by grouping many inputs together. The reported training times and the argument about inference cycles describe different properties of the architectures.

### What the ablations show

#### A stronger teacher helps at a fixed student size

A separate TIMIT experiment varies the teacher’s accuracy and measures how the student responds. The authors use two student widths, SNN-MIMIC-8k and SNN-MIMIC-160k. Both students receive an equal number of data points during training. Their hidden layer sizes differ, and the paper describes the larger student as having 10 times more parameters. The plot puts teacher accuracy on the horizontal axis and student accuracy on the vertical axis. An increase along both axes indicates that a stronger teacher continues to provide targets the student can use.

Both students improve as their teachers improve across the tested range. For a given set of targets, the larger student consistently does better. The smaller student eventually reaches a performance level comparable to that obtained by the larger one when the smaller network is given a better teacher. The same-teacher comparison exposes a benefit from student width. The comparison across teachers shows that target quality can also move the results considerably while student width stays fixed.

The authors use the diagonal in the plot as a way to think about how quickly improvements are passed on. If a sequence of points lies along a direction parallel to the diagonal, an improvement for the teacher corresponds to a similar improvement for the student. The observed points follow the general upward trend with some variation. The result is evidence that neither tested student has reached a clear performance ceiling across the teacher qualities tried. The experiment still leaves the location of such a ceiling open.

Teacher accuracy is the variable used to order the plotted results. The target vectors change when the teacher changes. As a consequence, the comparison captures the practical effect of getting supervision from a stronger predictor, including its altered handling of difficult examples and alternatives. A test designed to isolate one property of those outputs would need to vary that property independently. The CIFAR-10 comparison between a single CNN and an ensemble supports the same directional conclusion under a different setup. A stronger teacher again yields a stronger student with the reported shallow architecture.

#### The loss changes which errors matter

The authors compare logit regression with KL divergence between the output probability distributions and with squared error on the probabilities. They report that regression on the logits performs best among these choices and use it for the main imitation results. This is a qualitative ranking of the tried objectives. Detailed held-out scores for each alternative remain unreported, so the size of the advantage and its variation across tasks or student widths are open.

The comparison matters because a student can receive the same inputs and the same teacher predictions while facing a different learning problem. In probability space, a confident prediction gives much of the numerical weight to the leading class. In logit space, the vector has a separate score for every class and squared error charges for missing any of them. That decision can change where the student spends capacity while fitting the data. It can place more emphasis on alternatives that the teacher almost always ranks below the winning answer.

There are two related changes in the objective. Direct regression makes differences among low-probability classes more visible, and it preserves variations in the common level of the logits for an example. The paper gives arguments for both and evaluates their combination. Separating their individual contributions would require an additional comparison, such as varying the common level of the vectors while preserving relative scores. The reported comparison supports the choice of logit regression as a whole in these experiments.

The optional normalization provides a more limited comparison. Standardizing individual target coordinates improves the training loss slightly, according to the authors. They describe good students as attainable with the original scores as well. This supports treating the squared error objective on logits as the central methodological choice and the coordinate normalization as a secondary adjustment. The result reported for normalization concerns fitting during training, a different measurement from the held-out comparisons for the main systems.

#### The overfitting analysis suggests why supervision matters

The paper’s discussion compares the training behavior of shallow networks fitted to original targets with that of shallow networks fitted to teacher scores. In the authors’ account of the overfitting figure, direct training starts to overfit before the shallow network reaches the stronger performance of deep networks. The problem occurs even with dropout, a technique intended to reduce reliance on particular patterns of co-activation during training. The cited work introduces it as a way of preventing feature detectors from becoming overly dependent on one another. [Improving neural networks by preventing co-adaptation of feature detectors](https://md.research.elamur.ai/free/en/papers/hinton-2012-improving-neural-networks-preventing-co/)

The authors interpret the teacher as a source of regularization. Regularization helps turn a good fit on the training set into a useful rule for unseen inputs. Teacher-based regularization can operate through the targets themselves. The teacher has already estimated a rule from many examples, and its output for a specific input reflects that learned rule. When the student fits those outputs, the teacher’s patterns of confidence and uncertainty can constrain the student differently from a set of isolated class labels.

One possible mechanism is the handling of label errors. The paper notes that TIMIT frame labels can contain mistakes introduced by forced alignment with a hidden Markov approach. Forced alignment is used to assign speech states to positions in the recording. A teacher that learns recurring acoustic patterns may give some mislabeled frames scores that are easier for a student to learn consistently. This is an explanation proposed for the effect. The amount of the improvement attributable to corrected alignment errors remains undetermined.

Another proposed mechanism involves parts of the target distribution that are difficult to estimate from the available features and examples. The authors refer to the following conditional distribution.

```
p(y | X)
```

`p` denotes a probability distribution, `y` denotes the output label, and `X` denotes the available input features. The vertical bar reads as “given.” The expression thus refers to the distribution over answers for a given input representation. When examples are sparse or the relation between features and labels is complicated, a teacher may produce a smoother target over nearby inputs than the direct labels provide. The student can then approximate this fitted behavior.

Finally, teacher outputs can convey uncertainty even where the recorded label is accurate. In TIMIT, the ordinary target has a single active coordinate among 183 possible outputs. The mimic sees target values across the vector. The teacher can distinguish an input for which several answers are plausible from one for which the alternatives are far behind. The authors point to this richer supervision as another possible reason for improved generalization. The training curves support the broad regularization interpretation, while the proposed contributions of label correction, smoothing, and uncertainty remain intertwined.

#### The architecture comparisons give narrower answers

The authors report preliminary experiments on the linear bottleneck. On TIMIT, they see little benefit from giving it more than 250 units. The main reported students therefore use that width. The analysis identifies a setting that made very wide shallow networks practical to train in this experiment. How far the same width can be reduced while preserving accuracy, and how the best width changes with inputs or hidden layer size, remain separate empirical questions.

The image experiments supply a different architectural observation. The authors report poor results in preliminary attempts with fully connected networks on the CIFAR-10 input, even when those networks vary in depth. Their successful shallow configuration includes convolution and pooling. This supports treating the convolutional front end as a consequential design choice in the reported image setup. The preliminary comparison has a qualitative outcome, and the paper leaves the quantitative effect of removing the front end unspecified.

A final comparison concerns the relation between size and results. The TIMIT parameter curves compare shallow architectures trained in two ways with deep architectures trained on labels. The differences that emerge as parameter counts grow are evidence against the idea that simply supplying more weights solves the direct-training problem in this setting. The teacher experiment then gives a more focused view by varying the source of targets at fixed student sizes. Together, the comparisons show both that capacity matters and that the supervision determines how much benefit the learning procedure can obtain from the available capacity.

### Limitations

#### Limits stated by the authors

The authors regard dependence on a strong teacher as a practical drawback. The procedure requires someone to obtain a deep network or ensemble that has already learned a good prediction rule. The student can then benefit from the behavior captured in its outputs. Training a shallow network to comparable accuracy directly from the original labels remains an open problem in their account. The paper therefore gives a way to demonstrate that a shallow architecture can learn a competitive function under imitation, while leaving the direct learning procedure unresolved.

A second stated limit is the availability of inputs for transfer. The authors expect compression to work best with a large unlabeled pool that covers the domain and provides examples away from the teacher’s own training points. This matters because the teacher may fit training examples unusually closely. If imitation is restricted to those same points, the student sees less of how the teacher behaves on other inputs. On TIMIT, the paper reuses the original training examples and relies on a strong ensemble to obtain a useful target signal. The remaining phone error gap between the ensemble and the students is part of the reported result.

On CIFAR-10, the availability of the tiny images collection relieves the data constraint to some degree. At the same time, the successful shallow student retains convolution and pooling. The authors describe fully connected image students trained with much broader teacher labeling as future work. Their proposed investigation would use the 80M images to test whether a shallow student without convolution or pooling could imitate the deeper image system. That proposal identifies the condition under which they want to revisit the architectural question.

The authors also see a practical tradeoff between accuracy and computation. The experiment deliberately emphasizes very shallow students as a way of probing depth. For a deployed predictor, the paper suggests that a student could have some depth and a small or medium size, with the design chosen to suit the desired balance of cost and accuracy. The evidence given for the shallowest configurations is tied to the workloads, sizes, and equipment studied. The hardware argument concerns the potential benefit of reducing successive computation stages.

#### Limits apparent from the comparisons

The benchmark evidence concerns performance on held-out recognition tasks. Comparable phone error rates or image classification error rates can occur even when two systems make different mistakes. The paper’s imitation objective aims to align scores on the transfer inputs, and the benchmark checks task performance on a test set. A claim of high-fidelity agreement across the entire input space would require evidence measuring that agreement. The reported recognition metrics establish a narrower outcome, namely that a shallow student can approach specified deep reference systems on the tasks evaluated.

Parameter efficiency is also specific to the comparison. The small TIMIT mimic provides evidence for similar performance at a similar parameter count relative to the fully connected DNN. The larger TIMIT mimic gives evidence for reaching the performance range of the single CNN with a wide fully connected student. The CIFAR-10 comparison favors the deeper convolutional systems on parameter count. The number of layers, number of stored weights, operations required for an input, and elapsed inference time are distinct quantities. A shorter sequence of layers can be useful even if it comes with a wider layer and more stored weights.

The input construction narrows the architectural interpretation. The speech student receives filter-bank features, temporal derivatives, and nearby frames. Useful structure is thus present in the representation supplied to the network. The image student derives local features through convolution and pooling. The paper compares ways of learning from these representations and inputs. Generalizing from those comparisons to raw speech or to an image system with entirely fully connected processing would need corresponding experiments.

The optional presence of extra data changes the question answered by each task. TIMIT holds the underlying examples fixed when the inputs used by the teacher are reused for the student, which helps expose the effect of changed targets. CIFAR-10 adds an outside pool drawn from a related collection. The student in that setting benefits from both the teacher’s scoring rule and the chance to observe it on more inputs. The paper’s CIFAR-10 comparison between a single teacher and an ensemble tests a change of teacher within the reported transfer setup. Independently estimating the contribution of the added images would require varying the transfer set while controlling the other conditions.

The overfitting and teacher-quality analyses also leave causal details open. Better performance with a better teacher supports a role for improved supervision. A teacher’s overall accuracy is an outcome of how it handles many examples, and two teachers can vary in many properties of their predictions. The experiments therefore leave room for several mechanisms, including improved treatment of uncertain cases and correction of some target errors. Likewise, the fact that both student sizes keep improving across the observed teacher range says how they behave in that range. A broader claim about the limits of shallow capacity would depend on other teachers, functions, and datasets.

The time comparison is best read as a property of the reported runs. The factorized shallow student receives a prepared target for each input, whereas the deep system trains against the original labels. The complete imitation pipeline includes teacher training, transfer scoring, and student fitting. Estimating its cost for a new application depends on whether the teacher already exists, how often the resulting student will be used, and how cheaply the available hardware can execute each architecture. Similarly, the discussion of inference cycles gives a reason why depth can affect the time for a single prediction. Realized latency would require timing the complete inference computation under the conditions of interest.

### What came after

The later work develops several choices that the paper placed inside a single teacher–student experiment. One is the student’s shape. The early speech experiment uses a very wide shallow network to test how much computation can be expressed with one nonlinear hidden layer. FitNets turns to *thin deep nets* and uses hints as part of their training. The change in architectural goal matters. Once a teacher can help train a separate student, the student can be designed around an objective other than minimum depth. The use of hints also brings the question of what information to pass beyond the original emphasis on final scores. [FitNets](https://md.research.elamur.ai/free/en/papers/romero-2014-fitnets-hints-thin-deep-nets/)

Attention transfer takes up the question of what a convolutional teacher can convey. The speech and image students in the original paper receive a vector describing the teacher’s responses for the output classes. The attention-transfer work uses attention as the signal to transfer in order to improve convolutional networks. This changes the kind of behavior the student is asked to learn from. Output scores describe the teacher’s eventual choice and its alternatives. Attention offers supervision about where the teacher directs its processing. [Paying More Attention to Attention](https://md.research.elamur.ai/free/en/papers/zagoruyko-2016-paying-more-attention-attention-improving/)

Variational information distillation puts the information shared between teacher and student at the center of the transfer method. In the original paper, that shared quantity is fixed by the experimenter as the vector of pre-softmax scores, and the objective penalizes squared discrepancies in those coordinates. The later work approaches knowledge transfer through variational information distillation. The continuity lies in using a trained system as a source of supervision. The change lies in how the transfer objective describes the information the student is meant to acquire. [Variational Information Distillation for Knowledge Transfer](https://md.research.elamur.ai/free/en/papers/ahn-2019-variational-information-distillation-knowledge-transfer/)

Teacher Assistant asks a different question about the path by which supervision reaches the student. The original paper uses a direct connection from a strong teacher, sometimes a whole ensemble, to a shallower student. It measures how student accuracy changes with teacher accuracy and student size. The teacher-assistant work introduces an intermediary into that relationship. It treats the sequence of transfers as a design choice. This extends the original question from what a student can acquire from a given teacher to how the supervision can be passed along when the teacher and student differ in capacity. [Improved Knowledge Distillation via Teacher Assistant](https://md.research.elamur.ai/free/en/papers/mirzadeh-2019-improved-knowledge-distillation-teacher-assistant/)

The same framework also moves into tasks where depth is only one of several questions. BAM applies the born-again training idea to multitask [natural language understanding](https://md.research.elamur.ai/free/en/concepts/natural-language-understanding/). The original experiments use a teacher’s predictions to improve a student on a recognition task. The later work brings that training relationship into a setting with multiple language-understanding tasks. Its focus is the use of previously trained supervision in multitask learning, where the organization of learning across tasks becomes part of the problem. [BAM! Born-Again Multi-Task Networks for Natural Language Understanding](https://md.research.elamur.ai/free/en/papers/clark-2019-bam-born-again-multi-task/)

The DocBERT study brings the question of student simplicity to document classification. Its stated concern is the limits of simple learners under knowledge distillation. That is close to the distinction drawn in the original speech and image experiments between what a simple learner might represent and what it discovers under ordinary supervision. The change of domain makes the transferable question clear. One can start with a strong classifier, change where the student’s training signal comes from, and examine how far that signal allows a simple learner to go on [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). [Exploring the Limits of Simple Learners in Knowledge Distillation for Document Classification with DocBERT](https://md.research.elamur.ai/free/en/papers/adhikari-2020-exploring-limits-simple-learners-knowledge/)

Later work on distilling reasoning capabilities into smaller systems shifts the target behavior again. The original paper transfers class scores in tasks with specified sets of output categories. The later work makes reasoning capability itself the subject of distillation. The common experimental premise is that a trained system can provide information that ordinary task supervision leaves implicit. Which representation carries that information, and how a learner is evaluated after receiving it, depend on the behavior being transferred. [Distilling Reasoning Capabilities into Smaller Language Systems](https://md.research.elamur.ai/free/en/papers/shridhar-2023-distilling-reasoning-capabilities-into-smaller/)

These developments carry forward different parts of the original result. Some redesign the student, some change the signals it learns from, and some change the sequence of teachers or the task. The original comparison makes these choices intelligible because it demonstrates what happens when the architecture of the final predictor and the procedure used to find a good rule are allowed to differ. The later work explores how much further that freedom extends when the targets, the learner, or the task changes.

## Cite

Cite as Jimmy Lei Ba and Rich Caruana. 2013. Do Deep Nets Really Need to be Deep?. arXiv (Cornell University).

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

```bibtex
@misc{ba2013do,
  title = {{Do Deep Nets Really Need to be Deep?}},
  author = {Jimmy Lei Ba and Rich Caruana},
  year = {2013},
  doi = {10.48550/arxiv.1312.6184},
  eprint = {1312.6184},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1312.6184}
}
```

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