Elamur Research

FitNets: Hints for Thin Deep Nets

Paper · 2014 · Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou et al.

Summary

The architecture that gives a neural network good predictions can also make those predictions expensive. Wide layers contain many weights and can require substantial computation every time an image is classified. FitNets asks whether a student network can spend its resources differently from a larger, already trained teacher. The authors give the student more layers and make those layers thinner. The extra steps let it build up features through successive transformations, while the smaller layers can keep storage and computation down. This makes training central to the problem. A thin network with many nonlinear layers can be difficult to train from scratch, even when its architecture is capable of useful predictions. FitNets studies that difficulty as part of network compression.

The authors use the teacher at different points in training. They begin with the activity inside a chosen teacher layer. Given the same image, the student learns to produce a hidden representation from which an attached regressor can predict that activity. The regressor is a small network component that translates the student’s representation into the shape required for comparison. It lets the student have fewer channels than the teacher and lets the two layers occupy different positions in their respective networks. Once this exercise has prepared the student’s early layers, the authors train the complete student for classification. That stage uses knowledge distillation, which teaches the student from the correct labels and from the teacher’s probabilities over the possible classes.

Handwritten digit recognition offers a direct check on the training procedure. The authors train the same MNIST student from labels, with output distillation, and with the additional preparation from hidden activations. Its test misclassification errors under those procedures are 1.9%, 0.65%, and 0.51%, respectively. On CIFAR-10, the main FitNet reaches 91.61% test accuracy. The authors also report a CIFAR-10 student that outperforms its teacher with nearly 10.4 times fewer parameters. Their fixed-budget experiments compare ways of training narrow students when the number of multiplications available for an image is constrained. Teacher hints let them train deeper networks than they could with either conventional label training or output distillation by itself.

The CIFAR-100 and street-number experiments extend the evaluation to other image datasets. A face-versus-background experiment changes the network’s activation function as well as the task. There, the student designed for the greater reduction in multiplications records 4.58% validation error with output distillation and 2.55% after preparation with hints. The CIFAR-10 timing study also shows why the authors test several student sizes. The smallest gives up some accuracy for the largest reported speed advantage, while students with more capacity can surpass the teacher and still process the test images faster. The evidence ties these gains to particular convolutional networks and training conditions. It shows how access to a teacher’s internal activity can make a compact architecture practical to train.

Deep dive: FitNets: Hints for Thin Deep Nets

FitNets trains smaller, deeper image classifiers using a teacher’s hidden activations, improving accuracy and reducing the work of making predictions. · about 78 minutes to read

The problem and its context

An accurate classifier still has to run

The paper starts from the cost of using an image classifier after its training is complete. A trained network takes in an image and passes the result of each layer to the next until it can assign scores to classes. This forward pass has to happen for each prediction. The weights used at each step must also be stored. In the vision systems the authors discuss, large layers contribute to both costs. A network built to do well in an image recognition comparison can therefore have requirements that exceed the resources available where it will be used.

The costs invite different questions. If the weights take up too much space, the designer needs a network with a smaller parameter footprint. If the forward pass takes too long, the designer also has to care about the amount and arrangement of the computation. A parameter is a value the training procedure can adjust, such as a weight in a convolution. One convolutional weight can participate in computations at many image positions. Thus the number of weights and the number of times weights are multiplied by incoming values describe different aspects of running the network. The authors use both kinds of information to evaluate their students.

A classification network has several architectural choices that affect those costs. Its depth counts successive layers, according to the convention in use for that architecture. Its width describes how many outputs the layers produce. For a convolutional layer, it is useful to think of these outputs as channels, with each channel carrying a map of responses over a spatial grid. Width gives a layer many such maps to pass along. Depth gives the network more steps in which to combine and transform those maps. The assignment of a resource budget across those two dimensions is the design question behind FitNets.

A teacher and a student play different roles in that design. The teacher has already learned a task and makes its behavior available during training. The student is the network that will ultimately make predictions in its place. This arrangement permits the teacher to be comparatively expensive. Its role is to help produce the cheaper classifier, and the cost of running the resulting classifier is judged from the student's own sequence of layers. Training the student and using the student therefore belong to different parts of the cost calculation.

The research question becomes sharper when the intended student has a very different shape from the teacher. A student with many small layers may be economical when its weights are set well. That condition is crucial. A design can satisfy arithmetic and storage constraints while the learning procedure still struggles to find weights that give good predictions. FitNets addresses the combination of an inference requirement and a training obstacle. The architecture is designed for the former, and the teacher supplies information intended to address the latter.

From copying an ensemble to preserving its preferences

The paper traces the teacher–student approach back to work in which an ensemble assigns labels to data that originally lacked them. An ensemble combines predictions from several networks. Its decisions can then serve as training targets for a simpler network. The procedure makes use of the knowledge acquired during the ensemble’s training without requiring its whole collection of predictors at inference time. The student learns from the mapping between inputs and ensemble decisions even if its own layers have a different arrangement.

The authors describe an application of this approach to deep networks in which the resulting classifier is shallower and wider. This offers one way to organize the student’s computation. A large layer in the student can learn many responses in parallel, and the training targets come from a teacher that carries out its computation across more steps. FitNets takes that precedent as evidence that teacher and student can have different architectures. Its own design explores a different allocation of width and depth from the one in Do Deep Nets Really Need to Be Deep?.

Knowledge distillation, the paper’s immediate starting point, enriches what the student can learn from the teacher’s final answer. A hard classification label identifies the correct class and places the remaining classes on equal footing as alternatives. A probability distribution makes finer distinctions. For a particular input, the teacher may consider some incorrect classes much more plausible than others. A student trained to predict that distribution can learn those preferences as well as which class should come first. The distribution is most informative for this purpose when its lower probabilities are appreciable enough to give a training signal.

The paper describes a softening operation for bringing those preferences into view. Before the network turns its scores into probabilities, the scores are divided by a temperature. The resulting distribution spreads more probability across the alternatives than the network’s usual prediction does. A student prediction prepared in the same way can then be compared against it. At the same time, an ordinary student prediction still answers to the actual label. Distillation thus retains the conventional classification objective and adds a term that conveys the behavior of the trained teacher.

As characterized by the authors, the distillation framework had been used to train a student of approximately the same depth as its teacher, including when the teacher combined several deep networks. They also describe earlier convolutional compression work using comparable teacher and student shapes or using shallower, wide students. The question they bring to this line of research is whether the student can benefit from having a longer sequence of transformations, even as the parameter count and the cost of a prediction come down. The answer depends partly on whether the final-output training signal reaches the early student layers in a useful form.

A teacher’s final probabilities and its intermediate activity show different aspects of what it has learned. The probabilities describe how it ranks the possible class decisions for an input. Hidden activations record part of the computation that eventually produces those decisions. A student can receive instructions about either, and the instructions can be given at different points in its training. The authors take that distinction seriously because the lower portion of a deep student has a job well before the final class scores exist. It must retain and organize evidence that can be transformed by the layers still to come.

Why keep adding transformations?

The paper’s motivation for depth comes from how neural networks form representations. In this setting a representation is the collection of values a layer hands on about a particular input. Successive layers can use a pattern that an earlier layer has already learned and combine it with other patterns. A useful feature can participate in several later calculations. The authors associate this reuse with the ability of deeper layers to form features that are more abstract and less sensitive to variations that are incidental to the task. They draw on Representation Learning: A Review and New Perspectives.

The theoretical argument has a specific scope. The paper cites work showing that depth can yield a large advantage in expressiveness for certain families of functions. Expressiveness here concerns the functions an architecture can describe with its transformations. The qualification about function families matters to the compression question. It gives a reason to try spending some of the student’s resources on additional layers. Which allocation works for a given classification task remains an empirical question. The cited theoretical work studies the number of linear regions of deep neural networks.

The authors also point to deep networks that had performed well on the ImageNet recognition challenge. In their account, the leading systems they discuss use 19 and 22 layers, respectively. Those layer counts give the reader a sense of the depth already being used in high-performing vision systems. Large recognition networks offered a reason to take depth seriously as a source of useful computation. The design problem in FitNets is to put that computation inside a smaller student. One of the examples the authors cite is Very Deep Convolutional Networks for Large-Scale Image Recognition.

A thin deep network puts a limited collection of activations through a relatively long chain. It gives the designer repeated opportunities to process those activations. It also gives training a long series of dependent decisions to coordinate. A change near the input can alter what is available to every later layer. Conversely, a useful representation early in the network may initially produce an undistinguished classification result if the later layers have yet to learn how to use it. This relationship between early features and later decisions is part of what makes the starting point consequential.

The authors emphasize nonlinear transformations in explaining this difficulty. A nonlinear layer can change how it responds as the input changes, giving a composition of layers the capacity to express complicated functions. With many such transformations, the training objective viewed as a function of the weights can also become complicated. The gradient describes how to adjust parameters locally. Its usefulness depends on where training begins and what progress it can make through the resulting loss surface. The paper puts this discussion in the context of work on the saddle point problem in high-dimensional non-convex optimization.

That background separates the architecture’s capacity from the optimizer’s ability to use it. A network can in principle express a successful classifier and still be hard to train by propagating error from its final output into a randomly initialized stack. For compression this is a practical complication. The width of the network is deliberately restricted, so training must make good use of the channels that are available. The rationale for a teacher hint is to give the early computation a target whose usefulness already has some grounding in a trained classifier.

Guidance before the final task

The paper places its approach among several earlier responses to difficult deep training. In greedy layerwise pretraining, parts of a network are trained in succession with intermediate objectives. The paper discusses supervised and unsupervised versions. Their purpose is to prepare parameters that provide a promising place to start when the entire network is trained. Because part of the computation can be learned before the final objective is optimized across the full stack, the initialization itself becomes a design choice.

The authors also describe semisupervised embedding as a way of guiding an internal layer. Another example uses activations taken from a separate network while training a deep Boltzmann machine in an unsupervised setting. These precedents illustrate that an intermediate learning signal can come from several sources. The particular source in FitNets is an activation pattern from a teacher that has already learned the student’s classification task. The proposed procedure uses that pattern before training the entire student with the teacher’s class predictions.

Intermediate supervision can also take the form of an auxiliary classifier. A hidden layer feeds a smaller classifier that tries to predict the task label from that location in the network. This supplies a relatively direct error signal to the layers below it and encourages their features to support discrimination among classes. The authors describe this kind of supervision in earlier deep architectures. Its training target is a class decision, so it asks the intermediate representation to have already organized the evidence in a form useful for classifying the input.

An activation target gives the intermediate layer a different job. To see the distinction, consider two images with the same label. Their one-hot label targets are identical, but their appearances can lead the teacher’s hidden layer to respond differently to them. An objective based on those responses can reward the student for carrying some of that variation forward. Whether the variation ultimately helps classification depends on the teacher layer and what the student can learn from it. The question for FitNets is whether a representation useful partway through the teacher’s computation is also a productive target partway through the student’s.

Curriculum learning is another precedent the authors discuss. In its example-ordering form, a curriculum is meant to give a learner manageable material early and expose it to more difficult material as it improves. A curriculum can also involve intermediate concepts. The paper points out that defining example difficulty or specifying an intermediate concept may require task knowledge. A trained teacher offers two potential sources of that knowledge. Its hidden responses can define an initial task, and its confidence in an output can supply a working indication of how readily the input can be classified.

FitNets brings these threads together around a narrow question. The student is chosen with a desired inference cost in mind. Teacher activations give its lower layers a preparatory task. Distillation then gives the complete student a classification objective using the teacher’s final predictions and the actual labels. This puts a trained teacher in a position to help a student whose internal structure was chosen for a different distribution of computational resources.

The method, step by step

Give the two networks distinct jobs

Begin with a teacher that has learned to classify the images and a student whose architecture is already specified. The student has narrower layers and can have more of them. Choosing the architecture comes before training it with hints. The teacher’s weights give a fixed source of predictions for the procedure, and the student begins with randomly chosen weights. An input image can be passed into either network, so there is a common example to which both the output probabilities and the internal responses refer.

The teacher will supply a hidden activation array and a class prediction, each at its own point in training. For the hidden target, the authors pick a layer in each network. They call the teacher layer the hint layer because its activations are the training target. The corresponding student layer is the guided layer because the computation below it will be changed in response to that target. These names refer to a training relationship. A guided layer can be much farther into the student than the hint is into the teacher.

A regressor is attached to the guided layer. In this use, regression means predicting a collection of activation values. The regressor takes the student's guided representation as input and produces a prediction with the shape of the teacher’s hint. During preparation, the difference between this prediction and the actual teacher activation drives learning. The student layers that feed the regressor and the regressor itself receive the updates.

For the second part of training, the authors carry forward the prepared student weights and run the computation through the student’s own classification output. Now the whole network learns from class labels and teacher probabilities. The classification objective can change the early layers as well as the layers added to the training computation in this stage. The end product is the student with its own task output.

How teacher activations prepare the student for distillation

The steps in order.

How teacher activations prepare the student for distillationStep 1: Start with a trained teacher1. Start with a trained teacherStep 2: Initialize the compact student2. Initialize the compact studentStep 3: Choose a hidden layer in each network3. Choose a hidden layer in each networkStep 4: Attach a regressor to the guided layer4. Attach a regressor to the guided layerStep 5: Fit teacher activations using early student layers5. Fit teacher activations using early student layersStep 6: Train the entire student on class predictions6. Train the entire student on class predictions

Choose where the hint enters

The layer pairing determines how much of the student receives direct preparation. A guided layer early in the stack gives a relatively short path from the input to the regression target. A guided layer farther into the stack enlists more of the student in that task. It also leaves fewer layers after the guided representation for developing the final student computation. The paper describes the middle of the teacher and the middle of the student as the general choice. Its experiments specify particular pairs, selected within architectures that can differ substantially in depth.

The authors view a hint as a form of regularization. In this context, regularization is a restriction or preference introduced during training that can affect which solution the network learns. The student’s prefix is initially asked to support prediction of one particular teacher state. The authors suggest that moving the guided layer deeper can impose too strong a restriction. The part of the student asked to support the teacher prediction then grows, and the remaining part has less room to work with a representation organized on the student’s own terms.

The pairing has a spatial aspect in convolutional networks. A channel is arranged as a map, and each position in that map responds to a region of the original image. An internal teacher unit can depend on a larger region than a unit near the input because each new layer combines a neighborhood of earlier responses. According to the paper, the regressor should look at a part of the input image that roughly matches the area the teacher hint looks at. If it can combine nearby student positions, it can predict a teacher activation using information from the relevant area.

Shape and meaning are related here, with separate conditions. The predicted activation array has to have the same height, width, and number of channels as the target for the elementwise error to be defined as written. The selected layers and regressor should also make the correspondence between locations reasonable. A pair of arrays can share dimensions while depending on regions of quite different sizes in the original image. The design of the convolutional regressor attends to both the output dimensions and this approximate correspondence of image regions.

The paper also calls for a shared nonlinearity at the regressor output and the teacher hint output. A nonlinearity is the operation that transforms the incoming weighted response of a unit. It affects what values a unit can produce and how those values respond to a change in its inputs. Giving the regressor output the same type of operation as the teacher hint makes the values in its prediction comparable to the teacher’s activations under the squared error.

Learn to predict the teacher’s hidden response

For an image, the teacher is run as far as its hint layer. That activation is the target. The student is run as far as its guided layer, and the regressor converts the student activation into a prediction of the target. The error is obtained by subtracting the prediction from the target, squaring the discrepancies, and collecting them into a single loss. This procedure can use a different target for each image even if several images share a class label.

L_HT(W_Guided, W_r) = 1/2 ‖u_h(x; W_Hint) − r(v_g(x; W_Guided); W_r)‖²

L_HT is the loss for hint training, with HT identifying this part of the procedure. The image is x. The index h identifies the teacher’s hint layer and g identifies the student’s guided layer. The function u_h describes the teacher computation through layer h, with W_Hint the teacher parameters used in that computation. The function v_g describes the student computation through layer g, with W_Guided the associated student parameters. The function r is the regressor and W_r is its set of parameters. The paired norm signs denote the length of the difference between the target and the prediction when their entries are collected into vectors. Squaring that norm gives the sum of squared differences, and 1/2 scales the loss. The semicolons inside the functions distinguish an input from the parameters used to transform it.

The arguments of the loss identify the quantities being fitted. The teacher parameters W_Hint are already available and determine a stable target for each given image. The trainable part of the student in this stage is W_Guided. The procedure also fits W_r so that the interface can learn how the information carried by the student corresponds to the teacher activation. Gradients from the squared error go through the regressor and through the student layers that produced its input. The layers above the guided layer are outside that path.

The trained teacher’s full set of parameters is W_T in the paper’s algorithm, and W_Hint is the part needed to produce the hint. Likewise, W_S names all the student parameters, whereas W_Guided is the part used to produce the guided representation. This distinction matters at the handoff between stages. During hint training, a subset of the parameters that will eventually belong to the classifier is being initialized through an auxiliary task. During distillation, the weight updates apply to W_S.

The objective asks for predictability through the regressor. Suppose a student channel records evidence that helps reconstruct several teacher channels. The regressor can use that evidence in several ways, and the gradient can encourage the student to make it more useful. Student units are consequently free to organize information differently from individual teacher units. What the loss rewards is the quality of the reconstructed teacher response. This is what makes the hint usable when the widths of the selected layers differ.

The placement of this loss also changes which transformations a learning signal must pass through. At the beginning, a discrepancy with the teacher gives feedback through the regressor directly into the guided layer. The student’s classification head and the other layers above the guided layer can be learned later. The preparatory task is designed to give the lower layers productive work before the complete stack is asked to classify the input. Each image carries a whole pattern of target activations for that work.

Use spatial structure to keep the mapping small

A straightforward regressor could flatten both activation arrays and learn a fully connected transformation. Each outgoing activation would have its own weight for every incoming activation. The size of the resulting weight matrix grows with the spatial size and channel count on both sides. In a convolutional network, the spatial grid can make that temporary interface expensive even when the guided layer is narrow.

N_h,1 × N_h,2 × O_h × N_g,1 × N_g,2 × O_g

This product is the number of weights in the fully connected regressor’s matrix. N_h,1 and N_h,2 are the two spatial dimensions of the hint from teacher layer h. O_h counts the teacher hint channels. N_g,1 and N_g,2 are the spatial dimensions of the output of student layer g, and O_g counts the channels in that output. The numerals 1 and 2 in these subscripts designate the spatial axes. The multiplication signs join the factors for the total number of teacher activations and the total number of student activations.

The paper uses a convolution for the regressor. A convolution applies a set of learned weights to a local neighborhood and reuses those weights as it moves over the map. Here, the regressor has to produce as many output channels as the teacher hint has, using all the guided layer’s channels as input. Its spatial kernel is the local window over which it combines those inputs. The authors choose the window's dimensions to make the output grid fit the teacher hint.

N_g,i − k_i + 1 = N_h,i

The index i identifies spatial axis 1 or 2. N_g,i is the guided layer’s extent along that axis, and k_i is the convolutional regressor’s kernel extent along the same axis. N_h,i is the desired extent of the teacher hint. The subtraction and the added 1 count the positions at which a complete window fits in the guided grid when advancing by one position at a time. The equation sets that count equal to the corresponding hint dimension. The selected shape consequently fixes which guided positions are combined for each compared location.

k_1 × k_2 × O_h × O_g

This product counts the weights in the convolutional regressor’s weight matrix. The factors k_1 and k_2 give the height and width of the regressor’s kernel. O_h is the number of outputs per position, set by the teacher hint channels, and O_g is the number of inputs per position, set by the student guided channels. The multiplication counts weights for each kernel position and each pairing between an input and an output channel. The same weights recur across output positions.

The difference between the weight formulas follows from what is shared. In the fully connected mapping, separate positions on either side have their own sets of connections. In the convolutional mapping, a collection of weights that predicts a response at one place can also predict the corresponding response at another. The ratio of the designs’ spatial factors depends on the layer grids and the kernel shape. The authors’ motivation is that the kernel area can be much smaller than the product of the full grid areas. This controls the storage cost of the hint interface during training.

The regressor’s receptive field is the image region that can affect an output of that regressor. It includes the regions already seen by the guided layer and expands as the regressor combines neighboring responses. That is why the kernel can help bring the student’s prediction into correspondence with the teacher’s view of the image. The paper describes the match in terms of roughly the same input region and gives the size equation for the output maps. The mapping’s job is to make the hint a usable training target for the student's prefix.

During the final classification stage the regressor’s prediction is no longer the target. The information the student takes forward is the change to its own weights. A student can therefore benefit from access to a teacher-sized activation target during training while keeping its original layer sizes and its own classification path during inference. That distinction is central to understanding why the additional regressor is compatible with the intended compression.

Prepare the class probabilities for distillation

Once the hidden task has prepared part of the student, the complete network trains with knowledge distillation. To describe this stage, the paper first defines ordinary probabilities from the teacher and student. A pre-softmax activation, frequently called a logit, is a class score before the scores are converted into probabilities. Softmax transforms the vector of scores into non-negative probabilities that sum to one. Larger scores receive more probability.

P_T = softmax(a_T)

T identifies the teacher. P_T is its ordinary vector of class probabilities for the current example. The input to softmax is a_T, the vector of teacher scores immediately before the probability conversion. In the case of a single teacher network, the paper describes these as the weighted sums from its output layer. The expression applies softmax across the scores for the shared set of classes.

The paper also describes how an ensemble can supply a target for output distillation. The probabilities can be averaged across ensemble members, or the scores can be combined before conversion to probabilities. The discussion associates those choices with arithmetic and geometric averaging of outputs. This concerns how to obtain a teacher prediction over classes. In the hint stage, the target is explicitly the activation of the selected layer of a trained teacher used for that transfer.

P_S = softmax(a_S)

S identifies the student. P_S is the student’s ordinary probability vector for the same example, and a_S is the vector of scores produced at the end of the student’s computation. Softmax has the same role as for the teacher. The student’s scores depend on W_S, the collection of adjustable weights for the full student. The ordinary probability vector is the one used when training against a class label.

A class prediction can be extremely concentrated, with most of its probability assigned to one class and little distributed across the others. The teacher’s ordering of the less probable classes can still be useful. The authors soften the prediction to give the student a clearer signal about those relative preferences. They do so by dividing the scores by a temperature before softmax. This reduces the score differences that softmax uses to assign probabilities.

P_T^τ = softmax(a_T / τ)

P_T^τ is the teacher probability vector produced at temperature τ. The superscript indicates which temperature was used, and a_T is the teacher score vector. The division applies the same scalar τ to every entry before softmax converts the result to probabilities. With τ greater than 1, the distribution is softer than the ordinary teacher output. The highest score can still identify the same preferred class while the remaining probabilities carry more of its relative assessment of the alternatives.

P_S^τ = softmax(a_S / τ)

P_S^τ is the student’s probability vector at that temperature. The input a_S consists of student scores and τ is the same scalar used for the softened teacher output. Applying the same conversion to both sets of scores permits a comparison between probability vectors made under the same conditions. For the label comparison, the student continues to use P_S. These are two views of the scores from the same student output layer.

The information in a softened prediction differs from the information in a hidden activation target. Both can vary among examples belonging to the same class. A softened prediction is organized around the fixed list of possible answers, and its entries are relative probabilities over that list. A convolutional hint is organized by channel and position, and it reflects the state of the teacher before the rest of its computations have turned those responses into class scores. FitNets uses the two targets in different stages because they address different parts of learning the final classifier.

Fit the whole student to labels and teacher outputs

The final loss has one term for learning from the correct class and one for learning from the softened teacher distribution. Cross-entropy is used in both. It penalizes a prediction that gives little probability to outcomes to which the target assigns substantial probability. With a hard label, the target concentrates all its probability on the recorded class. With the teacher target, the loss can draw on a more distributed assignment to the classes.

L_KD(W_S) = H(y_true, P_S) + λ H(P_T^τ, P_S^τ)

L_KD is the knowledge distillation loss, and W_S is the set of all trainable student parameters. H is cross-entropy, written with the target as its first argument and the prediction as its second. The vector y_true encodes the true classification label, and P_S is the student's ordinary probability vector. In the second cross-entropy, P_T^τ is the teacher distribution at temperature τ, and P_S^τ is the student distribution at that same temperature. The scalar λ multiplies the teacher term to set its contribution relative to the hard-label term. The plus sign combines the two costs for optimization over W_S.

The label term gives the student a direct reason to assign probability to the right answer. The teacher term gives it a direct reason to reproduce the trained teacher’s pattern of probabilities. The targets can pull on the same student scores in different ways because the teacher distributes its probability according to what it has learned for each image. As λ changes, the optimizer balances that extra information differently against the task’s label.

At the start of this stage, the weights up to the guided layer already encode what the hint exercise taught them. The authors use those weights as the initialization for downstream classification training. The full student can then adapt as the classifier learns, including in the layers already prepared. The distillation loss includes the teacher’s probabilities and the true labels. The squared activation error belongs to the earlier stage. This allows the final representation to respond to the classification objective as a whole.

That sequence also defines a particularly revealing baseline. Output distillation can start from random student parameters and optimize the same classification loss. Hint-based training starts that final optimization with some student parameters already fitted to an internal target. If the architecture is held fixed, a difference in final performance shows what changing the training path can accomplish for those weights. This is the comparison the authors use to distinguish the assistance of a hidden target from the assistance already afforded by a soft output target.

Let the teacher’s influence change during training

The authors give the procedure a curriculum interpretation at two levels. The order of tasks supplies the first level. The student begins with a preparatory prediction about a teacher hidden layer, then learns the full classification task. The teacher’s own computation supplies the target for that preparatory job, so it gives the student a specific intermediate exercise derived from the task.

The second level concerns teacher confidence. In the authors’ account, an example that the teacher classifies with high confidence supplies a relatively decisive distillation target. An example with nearly uniform teacher probabilities supplies a less decisive preference among classes. The paper uses this contrast as a working notion of easier and harder examples. It is a statement about how the teacher assesses the input and about the class preferences it supplies, instead of a measurement of inherent difficulty shared by all classifiers.

The strength of the teacher cross-entropy is set by λ. The paper describes a linear decay for this coefficient so that teacher supervision contributes more strongly near the beginning of distillation. As the coefficient falls, the hard-label objective has more relative influence. Every input still has its class label, and a teacher with little confidence on an input can offer a soft target with rather flat probabilities. The intended progression gives the most decisive teacher preferences a relatively strong influence early and then gradually reduces the strength of the teacher term.

The schedule acts through the loss, so the curriculum depends on the treatment of examples when their predictions are compared. The coefficient is shared, and teacher predictions vary by example. The interplay of those quantities gives the paper's interpretation its practical meaning. The hidden target first changes the student's starting point, and the output teacher term then changes the way the student is taught as the final optimization proceeds.

How the training procedure was applied

For the CIFAR FitNets, the appendix gives the uniform random initialization interval as U(-0.005,0.005). A uniform draw gives equal density over that interval. The authors use stochastic gradient descent with RMSProp, which adjusts the scale of updates using recent gradient magnitudes. They give an initial learning rate of 0.005 and a mini-batch size of 128. The learning rate controls the scale of a step, and the mini-batch is the group of examples used for an update. The CIFAR procedure sets the temperature τ to 3. For the distillation term, λ starts at 4 and falls linearly to 1 across 500 epochs. An epoch is a pass through the training examples.

The CIFAR-10 training procedure uses 40K images to fit the student during validation-based selection and 10K images for validation. For the hint stage, the authors minimize the activation loss and monitor validation error. They stop once 100 epochs pass without an improvement, with a maximum of 500 epochs. They use the corresponding stopping rule for the distillation stage, along with the reported optimizer settings. For the final comparison that uses the full training set, the number of epochs is selected through the validation procedure and then used to retrain on the 50K training images. The depth study keeps the validation separation in place when producing the students evaluated on the test set.

On CIFAR-100, the authors take the epoch count determined in the CIFAR-10 procedure along with the same FitNet hyper-parameters. They train on the full training split for CIFAR-100. This is a concrete way the paper carries the recipe between related tasks. The teacher and student learn the new dataset’s class predictions, while the duration and several training choices come from the previous selection experiment.

For MNIST, the training images are split into 50K for fitting and 10K for validation. The appendix again gives U(-0.005,0.005) for initialization. The authors use batches of 128 and a learning rate of 0.0005. Their validation rule again uses 100 epochs without improvement and caps training at 500 epochs. The described schedule takes λ from 4 to 1 during the first 150 epochs, and the temperature for softening is 3. The coefficient belongs to the distillation loss. The preparation stage uses its own regression objective, and the paper gives the same batch size, step size, and stopping criterion for the subsequent training stage.

The SVHN procedure uses the CIFAR-10 hyper-parameters and a similar validation-based stopping arrangement. The appendix says the student parameters are initialized in U(-0.005,0.005) and that the stopping procedure is used without a final retraining on the combined training and validation images. The held-out test data then evaluate a network fitted with the validation-selected procedure. This detail also distinguishes the SVHN protocol from the final, full-training-set CIFAR-10 comparisons.

For the face patches, the students use a wider random initialization interval, U(-0.05,0.05), and stochastic gradient descent with momentum. Momentum makes updates depend on recent update directions as well as the current gradient. The reported mini-batch size is 128. The initial momentum is 0.1, reaching 0.9 at epoch 100. The authors describe selecting the best validation value over 500 epochs and using the same batch size and stopping procedure in both stages. They also give 3 for the temperature. In the hint stage of this experiment, the 5th layer of each student is prepared against the 3rd layer of the teacher.

The paper identifies a public FitNets code repository for reproducing the experiments. Its implementation acknowledgments name Pylearn2 and Theano.

Experiments and results

What the comparisons measure

The benchmark results address both prediction quality and the cost of the trained student. Test accuracy is the percentage of held-out test images on which the predicted class is correct. Misclassification error is the percentage classified incorrectly. The paper uses accuracy for the main CIFAR outcomes and error for the MNIST and face-patch comparisons. The face measurements are on a validation set. Keeping the split and metric attached to a number matters because they determine the conditions under which that number can be compared with another result.

There are also separate kinds of efficiency evidence. Parameter counts describe how many learned values have to be stored for a classifier. Multiplication counts describe the arithmetic used for a forward pass on an example. Measured inference time asks how long a network actually takes to process the evaluation inputs on the implementation and hardware used. A student can have a large advantage on one of these dimensions and a different advantage on another. In convolutional layers, the same learned weights are applied at many spatial positions, which is one reason parameter count and multiplication count have different meanings.

The authors use several baseline designs. Some comparisons ask whether a trained student can take the place of its teacher at lower cost. Others ask how a fixed student fares with label training, output distillation, or intermediate hint preparation. The earlier compression and recognition results provide a wider performance context. These comparisons answer questions at different scales. A teacher comparison includes changes in architecture as well as training. A fixed-student comparison more directly addresses whether the training procedure helps the architecture that is actually being proposed.

CIFAR-10: a deep student for small color images

CIFAR-10 contains 32x32 RGB images assigned to 10 classes. The dataset has 50K training images and 10K test images. The authors use contrast normalization and ZCA whitening, preprocessing steps that adjust image contrast and the relationships among input components. They also augment the training examples with random flips. Keeping the input task consistent permits the teacher and student to be compared on the same test images.

The teacher follows the maxout convolutional network described in the work cited by the paper. A maxout unit returns the largest of its candidate linear responses. As different candidates can give the largest response on different inputs, a maxout layer can implement nonlinear transformations. The CIFAR teacher has 3 convolutional hidden layers with widths given as 96-192-192. The convolutional layers use maxout with 2 linear pieces. Pooling aggregates nearby responses by keeping a maximum, reducing the dimensions of the spatial maps passed to later stages. The teacher uses pooling windows of 4x4, 4x4, and 2x2 pixels. The convolutional stack feeds a fully connected maxout layer of 500 units, followed by softmax.

The main CIFAR-10 student uses 17 maxout convolutional layers followed by a fully connected maxout layer and a softmax output. The appendix describes the student family as using zero padding around the input to its 3 × 3 convolutions, with pooling after selected layers. The pools reduce spatial resolution at several points. The final pool takes a maximum over the remaining spatial positions, producing a 1 × 1 output grid. The student design puts more transformations between these reductions in spatial size and uses smaller layers than the teacher.

The hint pairing for the main CIFAR-10 run maps the 11th student layer to the 2nd teacher layer. This makes a substantial portion of the student responsible for producing features that can predict the teacher’s intermediate response. The paired layers serve related functions in that training exercise in spite of their different indices. The front of the student learns to make the target predictable through the regressor. The remaining student layers then participate when the network is fitted with the classification objective.

The paper reports 91.61% test accuracy for this student with roughly 1/3 of the teacher’s parameters in the main CIFAR-10 comparison. The authors report that it outperforms the maxout teacher and matches the strongest results in the comparison they discuss. They also compare with the 85.8% accuracy reported for an earlier method that compresses deep networks into shallow, wide ones. Relative to that earlier result, the authors say their student has roughly 28 times fewer parameters. This comparison uses reported benchmark outcomes from separately designed compression systems. Its reference point is Do Deep Nets Really Need to Be Deep?.

The authors also train the deep CIFAR-10 student through Deeply Supervised Networks, using additional classification supervision inside the network. The student has 19 layers under the counting used for that comparison, which includes the layers after the convolutional stack. With the deeply supervised procedure, test accuracy is 88.2%. The teacher-hint result for the student architecture is 91.61%. Both procedures bring supervision into the interior of the student, and the comparison shows the outcomes of the two particular ways of doing so.

Intermediate supervision for the deep CIFAR-10 student, test accuracy

The student reaches higher test accuracy when prepared with teacher activations.

Intermediate supervision for the deep CIFAR-10 student, test accuracyDeeply Supervised Networks: 88.2Deeply Supervised Networks88.2FitNet with activation hints (this paper): 91.61FitNet with activation hints (thispaper)91.61
The numbers
System or settingaccuracy %
Deeply Supervised Networks88.2
FitNet with activation hints (this paper)91.61

The numerical comparison has a specific role in the benchmark evidence. The earlier compression result situates the student amid different designs, including a different allocation between depth and width. The deeply supervised comparison gives a result for the same deep student design under another way of teaching its inner layers. Alongside the teacher comparison, these results establish that a thin student can achieve competitive accuracy and that the form of training used to reach that accuracy matters.

CIFAR-100: the same student design on a finer class set

CIFAR-100 also contains 32x32 RGB images, with 50K for training and 10K for testing. It has 100 classes. The teacher uses the same maxout architecture as the CIFAR-10 teacher, fitted for this dataset. The authors use contrast normalization, ZCA whitening, and random flipping as in their CIFAR procedure. The student also carries over the architecture used for CIFAR-10, so the test extends the comparison to a different classification task while retaining the same approach to building the convolutional stack.

The reported student outcome exceeds its teacher’s performance and comes with a parameter reduction by a factor of 3. The paper describes its accuracy as near that of the best systems it compares against. This result extends the evidence that a student can give up width and still produce strong predictions when it is prepared with a teacher hint and then trained on the full task. The numerical comparison given in the benchmark discussion is the parameter reduction. The accuracy comparison there is given in terms of its direction relative to the teacher and its position among other reported methods.

The training setup makes the transfer concrete. The CIFAR-100 student uses the training duration previously selected on CIFAR-10 and fits the full CIFAR-100 training split. It uses teacher activations obtained for the CIFAR-100 examples and class distributions appropriate to the CIFAR-100 labels. Reusing the architecture and duration resembles reuse of a training recipe. The student and teacher still have to learn how to classify the images for the new set of categories.

MNIST: change the training, keep the student

MNIST supplies a more direct test of the value of the teacher signals. Its examples are handwritten digits from 0 to 9 in 28x28 grayscale images. It provides 60K training images and 10K test images. In addition to using a more compact network than the teacher, the authors run the same student with several training procedures. The prediction problem and architecture are shared across those runs, which makes the test errors informative about the procedure that produced the student weights.

The teacher’s convolutional maxout widths are 48-48-24. The student has 6 convolutional maxout hidden layers with widths of 16-16-16-16-12-12. The authors describe it as twice as deep as the teacher and as having approximately 8% of the teacher’s parameters. The student applies pooling every second layer, so it can perform additional convolutions between stages that combine spatial responses. The 4th student layer is the guided layer, and it receives its target through the regressor from the teacher’s 2nd layer. A fully connected softmax output follows the student’s final convolutional layer.

The conventional training run uses back-propagation from the student’s label loss. Back-propagation carries the output error derivatives through the network so that the earlier layers can update their weights. On the MNIST test split, this approach gives 1.9% misclassification error. Using teacher outputs through knowledge distillation yields 0.65% error for the same architecture. Preparing its internal layers with a teacher hint before distillation yields 0.51%. Each comparison concerns the classification output of the completed student.

Three training procedures for the same MNIST student, test misclassification error

Distillation lowers the student’s error, and preparation with teacher activations lowers it further.

Three training procedures for the same MNIST student, test misclassification errorLabel supervision: 1.9Label supervision1.9Knowledge distillation: 0.65Knowledge distillation0.65Hint preparation followed by distillation (this paper): 0.51Hint preparation followed bydistillation (this paper)0.51
The numbers
System or settingmisclassification error %
Label supervision1.9
Knowledge distillation0.65
Hint preparation followed by distillation (this paper)0.51

The paper reports that the hint-trained student performs slightly better than the teacher while using 12 times fewer parameters. The teacher comparison describes the quality and size of the resulting classifier. The test within the student isolates a different point. The student already attains useful accuracy under conventional training, and teacher output distributions improve that result. The hidden teacher target adds a further improvement even though both teacher-assisted variants can train the architecture to classify digits. Since the trained student uses the same sequence of layers in each case, that improvement comes with the same basic inference design.

SVHN: digits photographed in street scenes

SVHN contains color images of house numbers, with images of 32 × 32 pixels collected from Google Street View. The paper lists 73,257 training images, 26,032 test images, and 531,131 examples described as less difficult. The authors follow the evaluation procedure used for the maxout network they adopt as their teacher. That teacher has convolutional hidden widths of 64-128-128 and a fully connected maxout layer of 400 units before softmax.

The main benchmark description gives the SVHN student as a 13-layer network containing 11 maxout convolutional layers before its fully connected layer and softmax. The training carries over the CIFAR-10 settings described in the appendix, using validation-based stopping. The student is evaluated in the same house-number task as the teacher. Its output concerns digit classification, while the image source provides a different recognition setting from the handwritten digits of MNIST.

The paper reports accuracy comparable to the teacher using 32% of the teacher’s capacity. It also places the result alongside Maxout and Network in Network as comparable performers. The resource comparison is a capacity comparison in the authors’ account. The value of this experiment is that a thinner student can retain similar predictive performance in a second digit domain with a substantially different image source. The MNIST experiment offers the cleaner training-method comparison because it explicitly runs the same student with the different teacher signals.

AFLW: face patches and a different network family

The face experiment starts with AFLW, which contains 25K annotated images. The annotations give the authors regions from which to extract positive examples. They resize the regions to 16x16 image patches. For negatives, they take 25K patches of the same dimensions that contain no face from ImageNet. They allocate 90% of the extracted patches to training. The observed task is to decide whether a patch contains a face, with positives and negatives assembled from those two sources. The negative examples come from ImageNet Large Scale Visual Recognition Challenge.

This setup changes several aspects of the network. The teacher uses 3 convolutional layers with widths of 128-512-512 and a sigmoid output. A sigmoid transforms a score into a value between zero and one, which can be used as the predicted probability of the positive class. Hidden layers use rectified linear units, or ReLUs, which keep a positive input and return zero for a negative input. The teacher uses non-overlapping 2 × 2 max-pooling after its first convolution. The students also use ReLUs and a sigmoid output, and their convolutional stacks preserve spatial resolution without pooling. The authors connect this choice to the small size of the image patches.

The main account describes each student as having 7 ReLU convolutional layers, and the students differ in width and multiplication count. The less expensive, called FitNet 1 in this experiment, uses 15 times fewer multiplications than the teacher. FitNet 2 uses 2.5 times fewer. For both architectures, the authors compare training with output distillation against training that adds the hidden preparation stage. The comparison asks how useful the hint is when the degree of computational compression changes within this ReLU family.

The teacher’s validation misclassification error is 4.21%. With output distillation, the cheaper student has 4.58% validation error. Training it with a hint produces 2.55%. The student with a larger multiplication budget has a validation error of 1.95% with output distillation, and 1.85% with hint preparation. All of these rates concern classification of the validation patches under the reported preparation and selection procedure.

AFLW face-versus-background classifiers, validation misclassification error

Both students benefit from hints, with a larger improvement for the student using fewer multiplications.

AFLW face-versus-background classifiers, validation misclassification errorTeacher: 4.21Teacher4.21FitNet 1 with distillation: 4.58FitNet 1 with distillation4.58FitNet 1 with hint preparation: 2.55FitNet 1 with hint preparation2.55FitNet 2 with distillation: 1.95FitNet 2 with distillation1.95FitNet 2 with hint preparation (this paper): 1.85FitNet 2 with hint preparation (thispaper)1.85
The numbers
System or settingmisclassification error %
Teacher4.21
FitNet 1 with distillation4.58
FitNet 1 with hint preparation2.55
FitNet 2 with distillation1.95
FitNet 2 with hint preparation (this paper)1.85

For the cheaper student, the choice of training procedure changes its position relative to the teacher. Its validation error is higher with output distillation and lower after hint preparation. The more computationally expensive student already attains a lower validation error than the teacher with output distillation, and it improves further with hints. This gives the experiment two useful axes of comparison. Moving between the two students changes the available computation. Adding hints within either student changes the training procedure while leaving its architecture fixed.

The result also extends the setting in which the training scheme was demonstrated. In the earlier digit and CIFAR experiments, maxout hidden layers provide the intermediate activations. Here the teacher target and student guided representation are part of ReLU networks, and classification is binary. The paper therefore has evidence that the procedure can be constructed with both kinds of hidden activation and in a task whose output takes a different form. The measurement is specific to the patch classification setup and its validation split.

How much depth fits within a multiplication budget?

The CIFAR-10 depth study rearranges the architecture comparison around a fixed amount of arithmetic. The authors choose budgets of roughly 30M and 107M multiplications per image in a forward pass. As they increase the number of convolutional layers, they adjust the number of channels to stay within the selected budget. This makes the experiment a comparison of ways to allocate computation across the network. Deeper students use the arithmetic in more successive transformations, with fewer channels available for individual transformations.

The networks in this comparison use 3 × 3 convolutional kernels and maxout. They use non-overlapping 2 × 2 pooling, with the final pooling operation aggregating the remaining spatial positions to produce a 1 × 1 representation. The comparison includes stacks of 3, 5, 7, and 9 convolutional layers, followed in each case by a fully connected layer and softmax. The paper also describes the depth reached by training using its network layer counts. These are experimental architectures and reported training outcomes within the selected computation budgets.

In the approximately 30M multiplication setting, the authors report that standard back-propagation failed to train networks beyond 5 layers. With output distillation they successfully trained networks up through 7 layers. With hint preparation they report training a 13-layer network under the same multiplication budget. These results concern what succeeded under the paper’s procedures. They show that how the student is initialized can determine whether the design makes it through training at all.

The study also compares final test accuracy at fixed architecture. For the 7-layer network in the higher-budget comparison, the paper gives 89.45% test accuracy without hints and 90.1% when hints are included. The reported results use validation-based early stopping and evaluation on the CIFAR-10 test set. These runs retain the training and validation separation for fitting the versions of the networks evaluated in the experiment.

Among the hint-trained students, the authors report an absolute test accuracy advantage for an 11-layer network over a 5-layer network of 4.11% at 107M multiplications and 3.4% at 30M multiplications. The offsets are those reported in the paper. The architectural comparison includes narrower layers as depth increases. It therefore measures the outcome of reallocating computation in the student family, while the comparison of training procedures at fixed architecture separately shows the effect of teaching a selected student in different ways.

Speed, parameter count, and accuracy together

The CIFAR-10 efficiency study measures total time to process the test examples on a GPU. This is an aggregate inference measurement. The paper also reports parameter compression and discusses prediction accuracy for a succession of student sizes. The students in this study are retrained on the combined training and validation sets after the relevant training choices have been made. The protocol thus permits comparison with the teacher under the full-training-set arrangement used for these results. The hardware measurement belongs to GPU and parallel computing.

The smallest CIFAR-10 student in this study is called FitNet 1. The authors describe its capacity as 36× smaller than the teacher’s and its inference as an order of magnitude faster. They report a 1.3% performance decrease in the CIFAR-10 accuracy comparison. This operating point shows what the most aggressive reduction in the study buys and costs. It trades a reported accuracy decrease for the strongest speed advantage and the smallest parameter capacity in the group.

The next CIFAR-10 student, FitNet 2, retains more capacity. It exceeds the teacher’s CIFAR-10 accuracy by a reported 0.9% and processes the test examples faster by a factor of 4.64. With FitNets 3 and 4 the authors increase both size and depth further. They report accuracy gains over the teacher reaching 1.6%, while those students still run faster than the teacher. The abstract gives another expression of the compression result on this dataset, reporting a student that exceeds its teacher’s performance with nearly 10.4 times fewer parameters.

The CIFAR-10 timing comparison and multiplication-budget experiment complement each other. The budget experiment controls an architectural measure of forward computation so that students can be compared at similar arithmetic cost. The timing experiment measures the execution of particular trained networks on the test images and records how prediction quality changes as the student capacity changes. Taken together, the experiments show where the extra depth was affordable, which training procedures made the intended students usable, and what accuracy the resulting classifiers delivered at the measured inference costs.

What the ablations show

What changes when the student starts from a hint

The most informative comparison puts the same student through different training procedures. A comparison with a wider teacher can establish whether the resulting student is a viable replacement. The training comparisons ask a more specific question. Given the same student, how much does its performance depend on the guidance available while its weights are being learned? This distinction matters because a thin network that performs poorly after one kind of training could still express a much better classifier. Its result after another kind of training provides evidence about that possibility.

MNIST gives the clearest comparison because it includes a label-only run, a run with teacher output probabilities, and a run that also uses an internal teacher target. Going from label supervision to distillation changes the final objective. The student can now learn from the distribution of probabilities that the teacher assigns to each digit image. Going from distillation to hint-based training changes how the student enters that final objective. Its lower layers have already been fitted with the help of the teacher's internal response. These two comparisons address distinct contributions. One concerns supervision at the output. The other concerns preparation before optimizing that output.

The loss used for the final stage of the hint-trained run is the distillation loss. This matters when asking what the last comparison controls. Both runs use the same classification objective during whole-network training, and both use the same network to classify a test digit. The hint reaches the prefix before this shared stage begins. A held-out improvement under those conditions shows that an earlier objective can influence the end result even when its error has ceased to be part of the training criterion. Any effect has to be carried by the student weights that the regression stage prepares.

There is a practical reason to value that comparison. At prediction time, a narrower classifier has a limited set of features on which to base each decision. An inference measurement can show how costly it is to use those features, but it cannot tell how effectively they were acquired. The MNIST runs give different answers to the classification task at the same architectural cost. The best of those runs shows what the student can achieve with the available channels. Its poorer runs show what the tested procedures obtained from those same channels when given less guidance.

The MNIST result also helps distinguish two meanings of training assistance. A method can turn a run that fails to learn into one that produces a functioning classifier. It can also improve a classifier whose training already succeeds. The label-only MNIST student does learn to recognize digits. Distillation improves its test result, and the addition of hints improves it again. The CIFAR-10 depth experiment provides the sharper evidence about outright training difficulty. The digit experiment shows that the effect can persist in a setting where the alternatives all produce a classifier that can be evaluated.

A further implication concerns the timing of the guidance. The student is free to revise any prepared layer during the final stage. It could change its features in ways that would lower its ability to predict the original hint and still improve its classification objective. The reported error belongs to the finished classifier, so the improvement establishes that the preparation can transfer to the final task. The experiment does not require a claim about how closely the finished student's activations still resemble those of the teacher. That would call for another measurement after training.

When width is the price of adding depth

The fixed-budget CIFAR-10 comparison makes the training question more demanding. If a network can freely grow wider as layers are added, it has more opportunities to carry features forward and can also consume more computation. The authors deliberately narrow parts of the stack as they increase its depth. Each design has to make its classification decisions within an approximately fixed forward multiplication count. Under this constraint, a deeper design must do useful work through a longer succession of smaller transformations.

There are two comparisons inside this experiment. Across architectures, the authors alter the distribution of computation between channels and successive layers. Within an architecture, they compare the effect of different training methods. The first comparison answers a resource allocation question. The second answers a learning question. The combination lets the authors examine whether a promising use of arithmetic looks poor because the design itself is weak or because the chosen training procedure has trouble making use of it.

The lower-budget experiment makes that distinction particularly visible. Under the authors' label-only procedure, the trainable range ends earlier than it does when the student also receives teacher probabilities. Preparing the student with a hidden target takes it farther again. These outcomes concern attempts at deliberately restricted architectures. A failed run says that a particular route from initialization to classification did not succeed under the conditions tried. A successful hint-trained run can then show that a network in that constrained family had useful capacity available to a different route.

One plausible reason concerns how early layers receive an update. Under output training, a change to a lower layer is assessed through every transformation between it and the classifier. Early in training, how the later layers use the lower response can be an unreliable guide to which parts of that response will eventually help classification. During hint preparation, the regressand is available from the outset and is evaluated through a shorter computation. The early layers have a defined prediction job while the later student layers are still untrained. This is a mechanism suggested by the organization of the method. The depth comparison measures the outcome of using that organization, without tracing the quality of the gradient along the stack.

The continued challenge for output distillation is informative in its own right. Softening the teacher prediction adds information about the relation among classes, and it can make the classification objective easier to work with than label supervision alone. Yet the error still reaches the early layers through the student's complete classifier. The result at the lower budget suggests that improving the target at the end of the computation can help only so far under the tested conditions. The hint changes the initial problem assigned to the student as well as the information used to teach it.

The authors connect this pattern to the difficulty of finding a useful location in a highly nonlinear parameter space. A starting point is the entire configuration of weights when the final optimization begins. After hint preparation, the weights responsible for the guided response have already moved together in pursuit of a task defined by a functioning teacher. Distillation can begin from that configuration. The results show that the resulting starting point is useful in the cases reported. Identifying whether any particular run stalled at a saddle point, got trapped near a local minimum, or simply progressed too slowly would require observations about its optimization path that the comparison does not give.

The higher-budget comparison offers a less severe test of the same idea. A selected architecture learns with output distillation and scores better when its distillation run starts from hint-prepared weights. This makes the effect visible without relying on a boundary between runs that train and runs that fail. A usable classifier under the baseline is evidence that the architecture and final objective are viable together. A better held-out result after pretraining shows that there was still a consequential choice of how to arrive at that objective.

The other result from the budget experiment concerns the value of added depth once the students can be trained. The wider, shorter student has more channels at its disposal within individual layers. Its deeper counterpart has more transformations in which to combine the responses that survive each narrower layer. The reported test comparisons favor the deeper allocation at both budgets for the selected architectures trained with hints. This shows why the optimization intervention matters to the compression argument. A depth comparison based only on unsuccessfully trained networks could make the deeper allocation look worse than it is when the training method can exploit it.

The architecture comparison still changes width as well as depth. Width is adjusted for a reason. It is the means by which the experiment holds the arithmetic constraint approximately steady as the number of layers changes. As a consequence, the outcome supports a way of spending a budget. It cannot tell how the same increase in depth would behave if every width were left intact, or how narrowing would behave independently at a fixed depth. For the paper's engineering objective, the coupled change is the comparison of interest. For a claim about the independent effect of depth, the coupling sets a limit.

The authors also distinguish the validation and testing roles in this experiment. The validation set informs how long to train, and the test set evaluates the result after that choice. The versions compared in the depth experiment are fitted with the validation examples held out. Keeping that protocol in view matters when considering whether a method trained successfully. Each judgment comes from attempts run with a particular optimization and stopping arrangement. The budget sets the resources needed for a prediction by the resulting architecture. It places no corresponding limit on the computation spent finding its weights.

What happens when the intermediate target is a class label?

The CIFAR-10 alternatives test a different explanation for the success of hints. Perhaps what matters is having any direct supervision partway through the student. A class label is an obvious target for such supervision. It is already available and directly expresses the final task. If the lower student layers can be trained to classify images through an auxiliary head, they might give the complete network a better foundation. The authors try this idea with different arrangements of the intermediate and final objectives.

In one staged alternative, the lower portion is prepared to classify images and the complete stack is subsequently trained from labels. This retains the broad structure of giving the lower layers a preparatory task. It changes that task from predicting teacher responses to predicting a class. The first stage reaches a solution to its own supervised problem, but the authors report that this initialization was insufficient for the complete network to learn. Finding weights that work under the temporary classifier therefore gave limited assurance about what would happen when the rest of the student had to learn to use them.

A closer comparison with FitNets also prepares the lower portion using labels, then switches to distillation for whole-network training. Now the final training receives the teacher's softened probabilities as well as correct labels. The authors again report unsuccessful learning in the complete student. This comparison is especially relevant to the reason for choosing a hint from inside the teacher. The two procedures both prepare a student prefix and both give the full student an output-level teacher signal. They differ in the kind of problem assigned to the prefix. In these runs the teacher probabilities in the final stage did not compensate for the choice of a supervised intermediate target.

The joint-training alternatives ask whether the timing of the auxiliary classification loss could solve the problem. One keeps a classification loss at the guided layer while the full student simultaneously learns from labels. Both losses can affect layers that feed the auxiliary classifier. That gives those layers continuing feedback from a short path while the longer path is being trained. The authors say that they tried different starting weights and learning rates with RMSProp and found no combination that made this arrangement learn in the tested network.

Another joint objective keeps an intermediate label target and uses distillation to teach the final output. That brings the teacher's probabilities into the same training run as the middle classifier. Here too the authors report that the auxiliary signal was insufficient for the narrow stack to learn. Taken with the staged alternatives, this gives evidence from several ways of inserting final-task supervision into the selected interior layer. It is possible to supply feedback there and still give the student a preparatory problem that does a poor job of supporting its complete computation.

Deeply Supervised Networks provide an important qualified result. With auxiliary classification supervision placed more extensively, the deep architecture can be trained. Its reported test score is below the score under FitNets, but it does produce a measurable classifier. This distinguishes a failure to get the tested middle-layer arrangements to learn from the broader question of whether class targets can ever help train a thin stack. Placement, coverage, and the relative influence of the objectives are relevant to that broader question. The benchmark comparison establishes the accuracy of the particular deeply supervised procedure against the particular teacher-hint procedure.

The authors' explanation starts from the kind of information a target rewards. An auxiliary classifier judges an intermediate state by how well it supports an immediate class prediction. A variation in the input that is difficult for this classifier to exploit may yield little benefit to the intermediate loss. A later stack of nonlinear transformations could make use of that variation, but only if the guided representation still carries evidence about it. A teacher activation gives the regressor a different test. It can reward preserving a pattern that is useful somewhere inside a successful recognition computation, even when a class decision would be hard to read from that pattern at the guided layer.

Consider the difference for images that share a label and present the relevant object in different ways. The label target associates them with the same desired answer. The trained teacher may exhibit different spatial responses for the two images while eventually giving both the same answer. Predicting those responses can reward the student for representing where particular cues appear. The value of such a response is conditional on what the later student layers can do with it. This illustrates the paper's reasoning about the possible benefit of a hidden target. The authors do not identify particular variations that their auxiliary classifiers actually lose.

The experiment makes a relatively strong case about the choice of objective in this setting. The label-based alternatives are meaningful because the authors change the supervision in ways that might reasonably have supplied the needed assistance. The outcome for the more extensive auxiliary supervision also demonstrates that training can succeed with a different choice. Together these observations support the conclusion that the form of the intermediate signal mattered for the tested student. They leave open which properties of the activation target were decisive, such as its variation across examples, its spatial organization, or its relationship to the computation still to be performed.

The comparisons also set a boundary around the paper's staging claim. The unsuccessful joint objectives use supervised intermediate targets. They cannot settle what would happen if training kept the teacher-activation objective active alongside distillation. In that case both the target and the balance between losses during whole-network training would need to be specified. The paper shows that a teacher activation is effective in the preparatory stage and that several choices of label supervision perform worse. Its comparisons establish more about the tested package than about every possible combination of training target and timing.

What the two face students add to the diagnosis

The AFLW experiment repeats the comparison between distillation and hint preparation inside each of two student architectures. It is valuable because both students can be evaluated under either procedure. The authors can observe how much the added stage matters at different levels of computation without having to interpret missing results from runs that failed. The teacher also supplies the same type of target in both cases, with the corresponding layer selected in each student's ReLU stack.

The result for the less expensive student has a clear meaning under the paper's validation protocol. Output distillation produces a student with higher error than the teacher. Changing the preparation brings the same student below the teacher's error. Its saving in multiplications arises from its architecture, so this change in predictive quality is available at the same forward arithmetic cost. This is a concrete example of why the strength of a compression result can depend on the training baseline. A comparison that ended with distillation would give a different account of what that degree of compression could deliver.

The other student uses more computation and already performs well with output distillation. The added stage again improves its validation result, now by a smaller amount in the reported comparison. That is consistent with the authors' argument that guidance has particular value as the student becomes very thin. The experiment compares particular widths, a particular teacher, and a particular classification task. It shows how the benefit varies across these designs and gives a reason to take the degree of compression seriously when interpreting an average claim about hints.

The choice of task also helps expose which part of the method is general within the experiments. Here a face decision is learned from small patches, and the teacher's hidden responses come from ReLU layers. The output concerns a binary decision. The improvement is consequently evidence about intermediate guidance under a different hidden activation and output setup from that of CIFAR-10 and MNIST. What carries across is the use of a learned teacher response to prepare the narrow computation. The individual targets, layer positions, and task losses are supplied by each experiment's own design.

The result remains a pair of comparisons on a validation split. Because training choices use validation performance, the same values are less independent of the fitting procedure than scores on an untouched test split would be. This is important when comparing the strength of the evidence for the two students. Both show improvement under the reported procedure. The smaller reported change for the more expensive student is especially hard to assess for stability without repeated runs or a separate evaluation. The larger change for the cheaper one is an observed difference in the same setting, with the same scope.

How much of the gain can be attributed to the hint?

The comparisons support the paper's claim about initialization in a specific sense. With output distillation as the final objective, introducing a prior fit to the teacher's hidden response changes the weights at which that objective begins. An improvement relative to distillation alone can be assigned to the addition of that preparation procedure. It takes a further comparison to decide which elements of the procedure contributed most. The change includes a shorter training path, a particular target and regressor, and a period of parameter updates before whole-network training.

The label-based preparations address part of that question. Since they provide an initial exercise to approximately the same part of the student, their failures in the deep CIFAR-10 experiment give reason to attribute some importance to what is learned during preparation. Their objectives still differ from activation regression in several respects. Predicting a label has a different output structure, applies different constraints, and can create different update behavior. The study shows that the tested label alternatives do not reproduce the benefit. It does not rank every possible form of useful pretraining.

A related question is whether the hint helps a student reach a lower value of the training objective, favors weights with better test behavior at similar training loss, or does some of both. The failure and success comparisons give direct practical evidence about optimization. A procedure that trains a deeper architecture successfully has accomplished something the baseline attempts did not. The test improvements at a shared architecture support a possible effect on generalization. Isolating that effect from better fitting would require comparing training outcomes in more detail. The authors offer pretraining as a regularization explanation for the held-out gains.

The term regularization here has an indirect meaning. The preparation gives the student a preference for some starting representations. Afterward, the updates are driven by the output objective. A lasting effect on generalization can arise because alternative starts lead training towards different solutions. There is no need for the squared hint loss to act as an ongoing penalty. This helps explain why success is measured in the final classifier even though the pretraining stage concerns a different prediction task. The experiment allows the success of that earlier task to be judged by what it enables later.

The curriculum interpretation has a narrower experimental basis than the comparison with random initialization. The two-stage schedule can be viewed as a progression from an intermediate exercise to the complete job. The teacher confidence argument concerns a separate feature of the later loss. In the authors' account, a confident distribution supplies a more decisive preference early in distillation, and the reduction in the teacher coefficient changes its influence over time. There is no reported comparison that identifies how much performance comes from that decay. The stronger finding concerns the additional teacher target at the start of training.

The resulting evidence has a useful order. The fixed-architecture comparisons establish that the training procedure can change what a compact student delivers. The fixed-budget comparisons show why that change is valuable for a design that spends computation on additional layers. The alternative targets then narrow the explanation by showing that the tested ways of making the middle of the stack predict classes were less effective. How to select the best layer, map its output, and balance all of the available forms of supervision remains beyond what these experiments isolate.

Limitations

Constraints and open questions the authors identify

The authors qualify the placement of the guided layer because a hint can constrain the student too much. A late guided layer brings more of the student under the preparatory objective. A thin prefix may have to organize much of its computation around predicting the chosen teacher representation, leaving a shorter suffix for developing the student's own classifier. This is a concern even though the entire student can change during distillation. The preparation is intended to leave a lasting effect on the solution, and a poorly chosen target or point of application could make that effect unhelpful.

The suggested middle-layer placement is a design judgment. Its purpose is to put a meaningful task within reach of the student and retain room for further processing. The experiments implement that idea with different pairings for different networks. The judgment also has to be reconciled with the geometry of image features. A student layer that sits at an attractive place in the stack may produce responses at spatial scales that are awkward to compare with a particular teacher hint. Choosing a pair therefore involves both training considerations and the feasibility of constructing the mapping.

The paper also recognizes a tradeoff between efficiency and prediction quality. Strong compression removes channels and restricts the resources the student has to represent features. The smallest CIFAR-10 design in the timing study gives up some accuracy in exchange for its resource savings. Students that retain more capacity can achieve better accuracy while still processing the test images faster than the teacher in the reported tests. Thus the authors' evidence supports a range of design choices. The preferred point depends on how much accuracy the application requires and which resource it needs to conserve.

The authors explicitly leave filter redundancy open. Their comparison measures reductions achieved by training a different architecture. It does not measure how much information can be removed from the trained filters of that architecture. A teacher and a student may have different amounts of redundancy because they allocate their channels and layers differently. The parameter count alone cannot reveal how much their filters could be compressed before the classifier's predictions deteriorate. The paper treats that comparison as future work.

The suggestions about factorization and quantization are similarly conditional. Factoring a convolution can reduce the work required to apply its weights. Quantizing weights can reduce what is required to store them. The paper presents these as techniques that could complement the change in architecture achieved by FitNets. It does not evaluate what additional savings a particular student could realize after either transformation, or what effect the combination would have on its accuracy. The measured results concern students trained by the reported procedure and used in the reported implementation.

The authors also describe the stronger generalization of hint-trained students as an empirical finding in their experiments. Their proposed interpretation gives a role to regularization through pretraining. It leaves the choice of an appropriate hint tied to what the trained teacher can supply and what the student can learn. A target that makes sense for the teacher's own computation can still be demanding for a small student or poorly placed in its stack. The approach gives a way to build and test such a target. It offers no optimization guarantee for every pairing of architectures.

Scope of the evidence in the study

The experiments cover several image classification settings and include different nonlinearities. Much of the benchmark evaluation uses convolutional networks with maxout, and the face-patch experiment uses convolutions with ReLU. This diversity supports the method within those tested families. The central application remains spatial recognition from images, where an activation array can be understood as channels over a grid and a convolution makes a natural mapping between nearby responses. Claims about settings with a different organization of internal states require their own evidence.

The output distillation equations impose a practical condition. The teacher and student need comparable predictions over the task's outcomes so their distributions can enter the cross-entropy. In the reported benchmarks those outcomes come from shared labels. The hidden regression has a different condition. It needs a teacher response and a prediction of that response for the same input. An application could satisfy one condition while making the other difficult. Even within image recognition, a teacher that processes the evidence on a very different spatial grid could require more care in deciding which responses to compare.

The face experiment warrants particular precision about scope. A positive patch comes from an annotated face region, while negatives are patches with no faces drawn from ImageNet. The decision is whether a patch contains a face. The setup does not measure the ability to identify a person or the performance of a system that must find an unspecified face somewhere in a full image. Its reported numbers apply to the patch construction and the validation split. The opportunity to learn distinctions between the data sources is also a question the setup leaves open. A benchmark that deliberately matched the sources or varied them at evaluation could test how much that issue matters. The paper gives no evidence assigning any observed performance to such distinctions.

The results on CIFAR-100 and SVHN serve a different purpose from the most controlled MNIST and CIFAR-10 runs. They show what the complete procedure obtains in additional benchmarks, together with the reported resource comparisons. The benchmark accounts do not provide matching ablations of labels, output distillation, and hints for every dataset. Accordingly, the contribution of hints in those settings cannot be estimated separately from the changes in architecture and the rest of the training procedure. Their value is evidence about the outcome of the recipe as a whole on additional image tasks.

The study also has limited leverage on the choice of teacher. The reported teacher architectures give concrete examples of targets that work. A systematic teacher comparison would have to vary such properties as predictive quality, the shape of hidden responses, and the ease with which the student can recover those responses. Even a teacher with better final accuracy could offer a hint that is harder to predict using the available student channels. The experiments supply no basis for ranking teachers by the usefulness of their selected internal representations independently of the rest of the setup.

Outperforming a teacher on the test split has a straightforward meaning as a classification result. It shows that a student trained with teacher assistance can make more correct predictions on that split. The student's objective has access to actual labels, and its layers have a different allocation of resources. Its final decision can exceed the teacher's through an interaction of architecture and supervision. The score does not identify which parts of the teacher's behavior the student retains, or what either classifier has learned outside the measured task.

A related boundary concerns the meaning of a successful hint. The matched response is the output of the regressor, computed from the guided student layer. What the hint objective measures is whether that output approximates the teacher's selected activations. Its success permits different internal encodings that can be mapped into the same target. Once the regressor leaves the training calculation, later updates may change the encoding again. A claim that the completed student has the same internal organization as its teacher would need evidence about that organization independently of the test accuracy.

Choices of layer, mapping, and schedule that remain open

The paper motivates its layer pairings and reports specific instances, but it does not systematically vary the hint layer while fixing the guided layer, then vary the guided layer while fixing the hint. Those variations address different questions. Moving the hint changes which information the teacher supplies. Moving the guided layer changes how much student computation learns directly from it and how much comes after it. Doing both together can also alter the correspondence between positions and the size of the necessary regressor. Differences among the reported task setups cannot be assigned to layer choice alone.

This matters particularly when interpreting the warning about over-regularization. A guided layer farther down the stack can leave fewer later transformations available to turn its response into a useful classifier. Yet moving the layer may also give the prefix more transformations in which to approximate the teacher target. These are both consequences of changing its placement. The paper supplies a reason to exercise judgment and shows working pairings. It does not establish where the competing effects balance for every student or how accurately hint-regression performance predicts the eventual classification result.

The convolutional mapping has a clear economy in weight sharing. Its mathematical description also has geometrical assumptions. Under the kernel-size relation the authors give, the desired teacher extent must be attainable by sliding a complete window over the guided map. A guided map with smaller spatial extent than the target cannot produce the larger grid through that construction. Two maps with suitable extents can also have different spatial alignments relative to the input. An approximate receptive-field match is therefore a substantive part of the design. The equations explain the construction used, while alternative geometries may require a different mapping and evaluation.

The comparison with a fully connected regressor is primarily an argument about parameter count and structure. It explains why a spatially shared map is preferable for avoiding a potentially very large training interface. The paper does not give a series of accuracy comparisons that varies the mapping's complexity with all other choices fixed. Such a comparison would address how much freedom the regressor ought to have. If it has too little, the student may receive feedback from a poor fit to the desired target. If it can solve a large share of the auxiliary prediction by itself, success at the hint may tell less about what the guided representation supplies to later student layers. The design and results here do not find a general balance between those possibilities.

The choice of matching output nonlinearities similarly rests on comparability in the regression task. The specified nonlinearity helps place the regressor output in the same kind of response space as the teacher activation. The experiments show the overall procedure working with the choices made for the reported networks. They do not vary the nonlinearities on either side of the regression independently. It would take such evidence to determine whether the stated design rule is essential to a particular gain or one convenient way to obtain compatible outputs.

The curriculum account also depends on treating teacher confidence as a proxy for difficulty. Confidence describes the distribution the teacher produces. Difficulty, in the sense relevant to a curriculum, concerns what the student can productively learn at a given point. A teacher can be confident on inputs that are difficult for a student of different width and depth. Its output can also be sharply peaked on a wrong class. The true-label term provides a competing signal in that case. The experiments do not measure how well teacher confidence predicts student learning progress or how frequently these possibilities affect results.

A target that is near uniform favors less decisive student probabilities under the teacher term. Its effect on a particular update still depends on what the student predicts at that time. A student with a concentrated distribution can disagree substantially with a nearly uniform target. Thus the authors' language about easier examples having a stronger influence is best read as an account of how informative the teacher's class preferences are intended to be. The loss is not accompanied by a separate per-example weighting rule based on measured difficulty. The study reports the decay of the teacher coefficient and the performance of the full procedure.

The paper likewise gives a temperature setting without a controlled study of nearby choices. Temperature determines how prominently the teacher's lower-ranked alternatives enter the softened prediction. The coefficient on the distillation term determines how much that comparison contributes alongside the true label. Both can affect the final objective even for the same teacher and student. The main experiments give evidence for the settings they use. They do not identify the best joint setting for a different teacher, or establish how much of the improvement depends on the linear decay independently of hint preparation.

Training evidence and the strength of the comparisons

The report of a failed training attempt deserves a narrow reading. The comparison shows that the authors could train certain students with hints after their reference procedures failed at comparable depths. It does not give a general maximum depth that ordinary back-propagation or distillation can reach. The architectures, initializations, training duration, and optimization choices define the context of those attempts. Different choices could change whether learning succeeds. The relevant evidence for FitNets is that the hint procedure made those compact designs viable in the comparative study.

There is also no reported accounting that equalizes the total training resources across the compared methods. Hint preparation involves running the teacher's lower computation, training the regressor, and updating the student prefix. The shorter path used in this stage may make it an effective way to spend those updates. A direct comparison of total training cost would require information about the added stage and about how much work each alternative does before reaching a specified level of performance. The inference budget deliberately concerns a different time in the life of the network.

The tests of alternative supervision help qualify the concern about extra updates. Some alternatives prepare the lower layers with a label objective and still fail when training is extended to the whole stack. That gives evidence against the view that an initial stage of any kind suffices for the tested CIFAR-10 student. It remains possible for other preparatory objectives or longer optimization runs to perform well. The set of controls establishes a contribution from the tested form of preparation relative to several plausible alternatives. It cannot exhaust the possible ways of spending the extra training effort.

Variation across training runs is another consideration. Random initialization is part of the procedure, and early stopping responds to validation performance along an individual trajectory. The results give point comparisons without a reported distribution across repeated runs sufficient to assess the stability of each advantage. An improvement in test accuracy for a fixed architecture is evidence from that evaluation. The precision with which it is printed does not establish that the same gap would recur with other starts. This issue is especially relevant to small differences between procedures that already train successfully.

Selection and evaluation also differ across experiments. The CIFAR-10 depth study and the efficiency study both use the test set for reported outcomes, but the fitting arrangements differ in their use of validation data. The benchmark procedure for CIFAR-100 carries over training duration from CIFAR-10, which shows that a particular timing choice could be reused. The face results use validation performance. The different arrangements are appropriate to different questions in the paper, and each needs to stay attached to the reported result. Pooling those results into a uniform claim about independent test performance would lose information about how the classifiers were selected.

Resource claims and details needed for replication

The paper's compression and acceleration claims use measurements with different units. Inference time records the actual execution of the network on the test workload. The parameter count records how many learned values are part of the architecture. The forward multiplication budget records the main arithmetic considered in the depth analysis. An improvement in each measure is meaningful within its comparison. The ratio in one measure cannot stand in for a ratio in another. This becomes particularly important when layers differ in spatial size, since reusing weights across a large output grid can produce considerable arithmetic from relatively few stored values.

The GPU timing study records total inference time over test examples under the authors' setup. A system processing an individual request can face a different workload from one processing an entire test set. Depth and width can also affect the way hardware executes successive operations. The reported GPU speed advantages consequently establish that the proposed students ran faster in the measured setting. They do not specify the latency for a single prediction or establish which speed differences would persist under another implementation. The test timing and forward arithmetic comparisons answer complementary engineering questions.

The resource accounting is also restricted to what the paper measures. A count of parameters helps predict storage needs when values are represented similarly. It leaves out the space used by intermediate responses while computing a prediction, as well as temporary storage associated with a particular implementation. More layers can change the lifetime and arrangement of those responses. The paper's counts are enough to support the stated reductions in learned parameters. An account of maximum memory use on a specific deployment would require a separate measurement.

There are a few ambiguities in the written specification. The main SVHN account describes the student by its layer count and the number of convolutions, while the appendix identifies it by the FitNet 4 name also used for other benchmark results. This makes it difficult to infer a complete layer specification by combining those statements alone, particularly given the longer convolutional stack described for the main CIFAR-10 student. The supported comparison is the reported SVHN outcome under its evaluation procedure. Inferring an exact shared layer-by-layer design would call for corroborating implementation details.

A similar counting issue appears in AFLW. The prose gives 7 ReLU convolutional layers for each student, while the corresponding channel sequences do not line up cleanly with that description. The optimization account also calls the learning-rate change a decay and gives a move from 0.001 to 0.01 over the first 100 epochs. The written endpoints increase. This leaves the intended direction or value uncertain for a precise replication. Neither ambiguity warrants supplying a corrected number by inference.

The AFLW output also illustrates where the exposition is more general than the experimental specification. The main distillation equations are written for vectors of softmax class probabilities, whereas the face classifiers are described with sigmoid outputs. The appendix states the temperature used, and the benchmark reports the comparative errors. It does not lay out a separate binary distillation objective with the same level of detail as the main softmax equations. The results establish that the authors used distillation and hint training in the face experiment. The exact treatment of the scalar output is a detail to resolve when reproducing it.

Taken at its measured scope, the paper demonstrates that a particular preparation can improve learning in narrow convolutional students and make useful tradeoffs available at inference. The details that remain open concern how to predict those benefits in advance, how to reproduce every architecture from the written specification, and how far the observed gains extend beyond the reported training and deployment conditions.

What came after

New choices about what to transfer

FitNets makes the content of a teacher signal a question in its own right. Its answer is to select one hidden response, learn a mapping into the response's coordinates, and use the prediction error to prepare part of the student. Among the later works that cite it, several identify a different object of transfer in their titles. These works give a sense of how broad the design question became. Their stated contributions support comparisons of what each approach sets out to preserve, while the precise losses and training sequences require the individual papers.

Attention transfer takes attention as its stated source of supervision for improving convolutional networks. In the framework of the original problem, this is a choice about which part of the teacher's internal behavior deserves to guide the student. FitNets gives its regressor a target with activation values at specific channels and positions. An attention target raises the related question of where the teacher's response concentrates and whether conveying that emphasis can improve the student. The title identifies attention as the object being transferred. It does not specify that the transfer occurs only during initialization or uses the activation regressor designed for FitNets. Paying More Attention to Attention

Similarity-preserving distillation frames the transfer goal in terms of preserving similarity. Placed beside FitNets, that goal highlights a distinction between recovering a teacher response and retaining relationships expressed by the teacher's responses. In FitNets, the student can organize its features differently because the regressor carries them into a comparable form. A similarity-oriented criterion poses a question about what remains comparable when the features themselves have different coordinates. The stated subject supports that comparison of goals. It leaves the exact similarity measure and the choice of where to apply it to the later paper. Similarity-Preserving Knowledge Distillation

Channel-wise distillation singles out channels and takes dense prediction as its setting. Channels are important in FitNets because their number is one of the resources the student gives up. The hint regressor combines the available guided channels to predict a teacher response with its own channel count. Giving the transfer a channel-wise form places those components at the center of the distillation design. Dense prediction also changes the task setting from the whole-image or patch decisions evaluated in FitNets. The connection is a shared concern with how to use internal representations when a teacher can supply more information than a class decision alone. Channel-wise Knowledge Distillation for Dense Prediction

A related work addresses how neural network representations are compared. That question arises whenever predictability through a regressor is taken as evidence about the relationship between a teacher and student. FitNets has a particular operational definition of a useful relationship. The teacher response should be predictable through the chosen mapping, and the preparation should help the finished classifier. A study of representational similarity addresses a wider measurement problem. The link is an analytical one, because successful use of a hint leaves open which aspects of the corresponding representations are alike. Similarity of Neural Network Representations Revisited

Teacher-assistant distillation places an assistant in the teacher–student arrangement. FitNets makes a direct transfer possible despite differences in architecture by connecting a narrow guided layer to the wider teacher target. The assistant approach identifies another place to intervene in a difficult transfer, namely the set of participants through which guidance is supplied. This makes it pertinent to the unresolved question of how the relationship between teacher and student capabilities affects distillation. The title establishes the assistant as the proposed means of improving transfer. It gives no reason to assume that the assistant plays the same mathematical role as the FitNets regressor, which is fitted on a selected student representation during preparation. Improved Knowledge Distillation via Teacher Assistant

Compact language systems and their preparation

TinyBERT takes BERT distillation into natural language understanding. This carries the broad compression question into a task family absent from the original image experiments. In the vision study, the input shared by teacher and student is an image and the fit to the teacher's interior uses spatial maps. For a language system, the question becomes what structures in its own computation are suitable to transfer and how a compact student can learn them. The connection established by the title is distillation of BERT for language understanding. The title alone leaves open how its chosen targets relate to a FitNets hint. TinyBERT

Patient Knowledge Distillation gives BERT compression an explicitly distillation-centered approach. It belongs in the discussion of student preparation because the named intervention concerns how learning from a larger system is conducted. FitNets had already established a case in which an architecture's usefulness depended on that choice of training. The later work applies the compression question to BERT and characterizes its approach as patient distillation. The layer pairings and objectives of that approach cannot be derived from its name. The continuity is that the training relationship is a design variable in producing a compact language system. Patient Knowledge Distillation for BERT Compression

MiniLMv2 names multi-head self-attention relations as the content of distillation for compressing pretrained Transformers. This gives the comparison with FitNets more specificity. The original hint asks the student to support reconstruction of a selected activation map. The later title identifies relations in self-attention as the object the compact system should learn. The form of the teacher signal thus follows the kind of computation being compressed. The link is the decision to teach something about what happens inside the network, with the later work's technical choices beyond the stated transfer object left to its own account. MiniLMv2

Another language-system study puts the emphasis on pretraining compact students. This connects to the finding that initializing a student usefully can be as important as giving it a suitable final architecture. FitNets prepares the student for a particular classification task by predicting one teacher state. A study of the importance of pretraining compact systems places preparation at the center of the compression question in a broader form. Its title supports the emphasis on pretraining, without identifying that preparation with the supervised regression exercise used on the image tasks. Well-Read Students Learn Better

MobileBERT identifies resource-limited use as its intended setting and describes the system as compact and task-agnostic. The original FitNets experiments start with an analogous reason for seeking a student, because a classifier that requires more time or memory than is available cannot readily be deployed. FitNets establishes this point through task-specific image classifiers and GPU timing on test inputs. MobileBERT carries the resource question to a compact BERT intended for use across tasks. Its stated goal supports that comparison of design problems. The actual compression procedure and the hardware behavior follow from the later work's own evaluation. MobileBERT

FastBERT describes a combination of self-distillation and adaptive inference time. This broadens the efficiency question in a direction suggested by the fixed students in FitNets. The original experiments choose a student's architecture before training and compare several sizes as distinct classifiers. Adaptive inference time makes the computation used at prediction time part of the later work's stated method. The self-distilling description also changes the way the source of guidance is characterized. These contributions link choices made during learning with choices about prediction cost, while the title does not specify a correspondence to the original two-stage procedure. FastBERT

Other ways of reducing the cost of a prediction

The original authors leave low-precision storage and computation as possible complements to their way of compressing a network. The relationship is easiest to see through the units being changed. FitNets mainly reduces how many learned values and arithmetic operations a classifier needs at its chosen width and depth. Work on low numerical precision changes the values used in the operations or their representation. Success on either dimension can motivate asking what would happen if the two were combined. The FitNets experiments leave that joint outcome open.

Binarized Neural Networks studies training with weights and activations confined to the two values named in its title, +1 and -1. That is a change to the permissible values during network computation. It addresses a different part of making a classifier economical from FitNets' change to the arrangement of layers. Its relevance to the later history lies in pursuing the numerical restriction that the original paper treats as potentially complementary. The FitNets result under ordinary student training supplies no measured accuracy or acceleration for a binarized version of one of its architectures. Binarized Neural Networks

Quantized Neural Networks takes the broader stated problem of training with low-precision activations and weights. A parameter count treats each learned value as one entry regardless of the precision used to represent it. A method that changes precision therefore acts on a cost that cannot be read directly from that count. This connects the work to the open question about redundancy in teacher and student filters. FitNets shows that training a different architecture can reduce the count and retain strong accuracy. A quantization study asks what trained computation can be supported when the values themselves are restricted. Quantized Neural Networks

TernaryBERT expressly brings distillation together with very low precision in the BERT setting. That pairing gives a concrete later instance of an agenda the original paper treats as open. One design choice governs what guidance a compact student receives while learning. Another governs the numerical precision available to it. Such a combination raises a question akin to the one FitNets answered for narrow layers. If a constraint makes a student harder to train, can teacher supervision recover useful predictive behavior within that constraint? The title places both elements in the later work's approach, without establishing quantitative benefits or the use of the original hidden-target loss. TernaryBERT

An efficiency tutorial and survey connects these strands at the level of evaluation. Its stated subject is efficient processing of deep networks, a broader concern than any individual distillation procedure. FitNets provides an example of why such processing can be assessed at different levels. A redesigned student can carry fewer parameters, use fewer multiplications, and realize a measured speed advantage, with each result answering a distinct question about cost. The survey title establishes its larger scope. Its presence among the citing works situates FitNets within a continuing examination of how deep networks are executed as well as how they are trained. Efficient Processing of Deep Neural Networks

The common thread through these citing works is the relation between a constraint and the means of learning under it. FitNets demonstrates that the student architecture alone can give an incomplete picture of the predictions attainable at a given cost. Later work names other things a teacher might help preserve, other settings in which a compact learner must operate, and other resources that can be restricted. The evidence from FitNets remains specific to preparing a thin convolutional student through a teacher's hidden activations and then training its final classifier through distillation.

Cite

Cite as Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta and Yoshua Bengio. 2014. FitNets: Hints for Thin Deep Nets. arXiv:1412.6550.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1412.6550 · arXiv 1412.6550

@misc{romero2014fitnets,
  title = {{FitNets: Hints for Thin Deep Nets}},
  author = {Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta and Yoshua Bengio},
  year = {2014},
  doi = {10.48550/arxiv.1412.6550},
  eprint = {1412.6550},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1412.6550}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/romero-2014-fitnets-hints-thin-deep-nets/

References

31 references, from the paper's own bibliography.

  1. Ba, J. and Caruana, R. Do deep nets really need to be deep? In NIPS, pp. 2654–2662. 2014. our card
  2. Bastien, F., Lamblin, P., Pascanu, R., Bergstra, J., Goodfellow, I., Bergeron, A., Bouchard, N., Warde-Farley, D., and Bengio, Y. Theano: new features and speed improvements. Deep Learning & Unsupervised Feature Learning Workshop, NIPS, 2012. our card
  3. Bengio, Y. Learning deep architectures for AI. Foundations and trends in Machine Learning, 2009. OpenAlex ↗ · Scholar ↗
  4. Bengio, Y., Lamblin, P., Popovici, D., and Larochelle, H. Greedy layer-wise training of deep networks. In NIPS, pp. 153–160, 2007. OpenAlex ↗ · Scholar ↗
  5. Bengio, Y., Courville, A., and Vincent, P. Representation learning: A review and new perspectives. TPAMI, 2013. our card
  6. Bucila, C., Caruana, R., and Niculescu-Mizil, A. Model compression. In KDD, pp. 535–541, 2006. OpenAlex ↗ · Scholar ↗
  7. Chen, Yongjian, Guan, Tao, and Wang, Cheng. Approximate nearest neighbor search by residual vector quantization. Sensors, 100 (12):0 11259–11273, 2010. OpenAlex ↗ · Scholar ↗
  8. Chen-Yu, L., Saining, X., Patrick, G., Zhengyou, Z., and Zhuowen, T. Deeply-supervised nets. CoRR, abs/1409.5185, 2014. OpenAlex ↗ · Scholar ↗
  9. Cho, Kyunghyun, Raiko, Tapani, Ilin, Alexander, and Karhunen, Juha. A two-stage pretraining algorithm for deep Boltzmann machines. In NIPS Workshop on Deep Learning and Unsupervised Feature Learning, 2012. OpenAlex ↗ · Scholar ↗
  10. Dauphin, Y., Pascanu, R., Gulcehre, C., Cho, K., Ganguli, S., and Bengio, Y. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In NIPS, 2014. our card
  11. Denton, Emily L, Zaremba, Wojciech, Bruna, Joan, LeCun, Yann, and Fergus, Rob. Exploiting linear structure within convolutional networks for efficient evaluation. In NIPS, pp. 1269–1277. 2014. OpenAlex ↗ · Scholar ↗
  12. Erhan, D., Manzagol, P.A., Bengio, Y., Bengio, S., and Vincent, P. The difficulty of training deep architectures and the effect of unsupervised pre-training. In AISTATS, pp. 153–160, 2009. OpenAlex ↗ · Scholar ↗
  13. Gong, Yunchao, Liu, Liu, Yang, Min, and Bourdev, Lubomir. Compressing deep convolutional networks using vector quantization. CoRR, abs/1412.6115, 2014. OpenAlex ↗ · Scholar ↗
  14. Goodfellow, I. J., Warde-Farley, D., Lamblin, P., Dumoulin, V., Mirza, M., Pascanu, R., Bergstra, J., Bastien, F., and Bengio, Y. Pylearn2: a machine learning research library. arXiv preprint arXiv:1308.4214, 2013a. OpenAlex ↗ · Scholar ↗
  15. Goodfellow, I.J., Warde-Farley, D., Mirza, M., Courville, A., and Bengio, Y. Maxout networks. In ICML, 2013b. OpenAlex ↗ · Scholar ↗
  16. Gulcehre, C. and Bengio, Y. Knowledge matters: Importance of prior information for optimization. In ICLR, 2013. OpenAlex ↗ · Scholar ↗
  17. Hinton, G. E., Osindero, S., and Teh, Y.-W. A fast learning algorithm for deep belief nets. Neural Computation, 180 (7):0 1527–1554, 2006. OpenAlex ↗ · Scholar ↗
  18. Hinton, G. Vinyals, O. and Dean, J. Distilling knowledge in a neural network. In Deep Learning and Representation Learning Workshop, NIPS, 2014. OpenAlex ↗ · Scholar ↗
  19. Jaderberg, M., Vedaldi, A., and Zisserman, A. Speeding up convolutional neural networks with low rank expansions. In BMVC, 2014. OpenAlex ↗ · Scholar ↗
  20. Jégou, Hervé, Douze, Matthijs, and Schmid, Cordelia. Product quantization for nearest neighbor search. IEEE TPAMI, 330 (1):0 117–128, 2011. OpenAlex ↗ · Scholar ↗
  21. Koestinger, M., Wohlhart, P., Roth, P.M., and Bischof, H. Annotated facial landmarks in the wild: A large-scale, real-world database for facial landmark localization. In First IEEE International Workshop on Benchmarking Facial Image Analysis Technologies, 2011. OpenAlex ↗ · Scholar ↗
  22. Krizhevsky, A. and Hinton, G. Learning multiple layers of features from tiny images. Master's thesis, Department of Computer Science, University of Toronto, 2009. OpenAlex ↗ · Scholar ↗
  23. Larochelle, H., Erhan, D., Courville, A., Bergstra, J., and Bengio, Y. An empirical evaluation of deep architectures on problems with many factors of variation. In ICML, pp. 473–480, 2007. OpenAlex ↗ · Scholar ↗
  24. LeCun, Y., Bottou, L., Bengio, Y., and Haffner, P. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 860 (11):0 2278–2324, November 1998. OpenAlex ↗ · Scholar ↗
  25. Montufar, G.F., Pascanu, R., Cho, K., and Bengio, Y. On the number of linear regions of deep neural networks. In NIPS. 2014. our card
  26. Netzer, Y., Wang, T., Coates, A., Bissacco, A., Wu, B., and Ng, A. Reading digits in natural images with unsupervised feature learning. In Deep Learning & Unsupervised Feature Learning Workshop, NIPS, 2011. OpenAlex ↗ · Scholar ↗
  27. Russakovsky, O., Deng, J., Su, H., Krause, J., Satheesh, S., Ma, S., Huang, Z., Karpathy, A., Khosla, A., Bernstein, M., Berg, A. C., and Fei-Fei, L. ImageNet Large Scale Visual Recognition Challenge, 2014. our card
  28. Simonyan, K. and Zisserman, A. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014. our card
  29. Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S., D.A., Erhan, D., Vanhoucke, V., and Rabinovich, A. Going deeper with convolutions. CoRR, abs/1409.4842, 2014. OpenAlex ↗ · Scholar ↗
  30. Tieleman, T. and Hinton, G. Lecture 6.5—RmsProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012. OpenAlex ↗ · Scholar ↗
  31. Weston, J., Ratle, F., and Collobert, R. Deep learning via semi-supervised embedding. In ICML, 2008. OpenAlex ↗ · Scholar ↗