Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

FitNets: Hints for Thin Deep Nets

Thin deep student networks learn better from teacher hint layers

  • Problem Knowledge distillation works for students of similar depth, but it struggles when the student is deeper and thinner than its teacher. Such a student needs another source of guidance during training.
  • Method FitNets first match a middle layer to the teacher's hint, then distill.
  • Results On CIFAR-10, a deep FitNet with 10.44 times fewer parameters performs as well as the larger teacher network.

Why deeper students are hard to train

Extra depth tends to give better representations, because higher layers reuse lower-level features and become more abstract, yet stacking non-linear layers makes the training objective harder to optimise. Knowledge Distillation transfers the function of a large teacher to a smaller student by training the student on the teacher's softened outputs together with the true labels.

That recipe assumes a student of similar depth, and the authors found that KD still struggles as the student gets deeper.

The authors aim at the opposite trade-off: a student that is deeper and thinner than its teacher, so that it can be cheaper at inference time. The open question is whether intermediate representations of the teacher can give the thin student guidance that output targets alone do not provide.

Hint-based training and the convolutional regressor

A hint is the output of a middle hidden layer of the teacher, and the FitNet's guided layer is the middle layer of the student, which is trained to predict that output. Choosing the middle layers is also a regularisation decision: a guided layer placed deeper leaves the network less freedom, so a deeper guided layer raises the risk of over-regularisation.

The teacher is usually wider than the FitNet, so the hint layer can have more outputs than the guided layer, and a regressor on top of the guided layer maps its output to the size of the hint.

A fully connected regressor would multiply the spatial sizes and channel counts of both layers, which makes its parameter count large when the layers are convolutional. The convolutional regressor uses a kernel of size k1 by k2 chosen so that the guided layer output shrinks to the hint's spatial size, which is the relation \(N_{g,i}-k_i+1=N_{h,i}\) for i in {1, 2}.

Its weight matrix has k1 times k2 times Oh times Og parameters, and the authors note that k1 times k2 is much smaller than the product of the hint and guided spatial sizes.

The outputs of \(u_h\) and \(r\) must be comparable, so the two use the same non-linearity. The minimisation is over \(W_{Guided}\) only, so the teacher parameters up to the hint layer are not updated in this stage.

Two-stage training: hints first, then distillation

Training starts from a trained teacher and a randomly initialised FitNet, with a regressor on top of the guided layer. The first stage fits the student's parameters up to the guided layer with the hint loss, with the regressor initialised to small random values. The second stage starts from those pre-trained parameters and trains the whole FitNet with the knowledge distillation loss.

The distillation loss combines the cross-entropy between the student output and the true labels with a weighted cross-entropy between the softened teacher and student outputs, \(L_{KD}(W_S)=H(y_{true},P_S)+\lambda H(P^{\tau}_T,P^{\tau}_S)\). Both softened outputs use a relaxation \(\tau > 1\), which makes the teacher's probabilities carry more information about the similarity between classes.

The authors argue that the hint stage gives the student a better starting point in parameter space, which the distillation stage then refines.

How hint training relates to curriculum learning

Curriculum learning presents easier examples before harder ones, and the authors note that it can speed up convergence and improve generalisation. Earlier curriculum methods rely on problem-specific choices: Bengio (2009) uses hand-defined heuristics to rate example simplicity, and the guidance hints of Gulcehre and Bengio (2013) need prior knowledge of the task.

In the FitNet setting the teacher's confidence on each example plays the role of that simplicity measure, because examples with high teacher confidence have a stronger effect through the teacher cross-entropy term. The weight λ decays linearly during training, so examples the teacher is confident about dominate early, and the remaining examples gain relative weight later.

The authors conclude that hint-based training is a generic curriculum approach in which the task prior is taken from the teacher model alone.

CIFAR-10 and CIFAR-100 accuracy

The CIFAR-10 teacher is a maxout convolutional network, and the FitNet has 17 maxout convolutional layers, a maxout fully connected layer and a softmax, with roughly 1/3 of the teacher parameters. The 11th layer of the FitNet is trained to mimic the 2nd layer of the teacher, and random flipping is used as data augmentation.

The authors read this as evidence that depth matters for the quality of the learned representation, and not only for capacity. Against compression methods, the authors compare the FitNet with the 85.8% of Ba and Caruana (2014) and state that the FitNet uses roughly 28 times fewer parameters. Among the listed state-of-the-art entries, Maxout reached 90.65%, Network in Network 91.2% and Deeply-Supervised Networks 91.78%, so the FitNet sits close to the top of that table rather than above all of its entries.

On CIFAR-100 the same FitNet architecture reached 64.96% accuracy against 63.54% for the teacher, and the authors report that the parameter count is reduced by a factor of 3. Network in Network reached 64.32% and Deeply-Supervised Networks 65.43%, so the authors describe the FitNet as near state-of-the-art on that dataset.

Alternatives to teacher hints that did not train

The authors asked whether the teacher is needed at all, and tested hinting the inner layers with the desired classification output instead. A stage-wise scheme that first trains the first half of the network on classification targets and then continues with either classification targets or the distillation loss did not train the stage-two network, although the first stage reached a reasonable starting point.

Joint optimisation of a supervised hint on the guided layer with the classification loss did not learn under the initialisations and RMSprop learning rates the authors tried.

Deeply Supervised Networks add hints to every layer, and the authors built a 19-layer architecture and trained it that way, reaching 88.2%, which is lower than the 91.61% of the hint-trained FitNet. The authors suggest that a very discriminative target at intermediate layers may be too aggressive, while a smoother guide such as a teacher representation generalises better.

Adding a supervised hint to the middle layer of the thin and deep network also did not ease training, and that network failed to learn.

Depth at fixed multiplication budgets

The comparison uses networks with 3, 5, 7 and 9 convolutional layers at about 30M and about 107M multiplications, with the channel count reduced as depth grows so that the budget stays fixed. Each network uses 3x3 convolutions followed by a maxout non-linearity and 2x2 max-pooling, and models are evaluated with early stopping on the validation set without retraining on training plus validation.

At about 30M multiplications, standard backpropagation could not train networks with more than 5 layers, and knowledge distillation trained networks up to 7 layers. Hint-based training trained 13-layer networks at that budget. The authors attribute the difference to the starting point: random initialisation for KD, and a point guided by the teacher hint for hint-based training.

Within the hint-trained networks, an 11-layer network beats a 5-layer network by 4.11% at 107M multiplications and by 3.4% at 30M multiplications, which the authors take as support for gaining depth at fixed computation.

Accuracy against inference cost on CIFAR-10

Table 5 reports the speed-up, which is measured on a GPU over the CIFAR-10 test examples relative to the teacher, along with the compression rate, the parameter count and the multiplication count of each FitNet. The FitNets in this table are retrained on training plus validation, which the authors say makes the comparison with the teacher fair.

FitNet 1 has 11 layers, about 250K parameters and about 30M multiplications, and reaches 89.01% against 90.18% for the teacher, with a speed-up of 13.36 and a compression rate of 36. The text describes FitNet 1 as having 36 times less capacity than the teacher and a minor performance decrease of 1.3%. FitNet 2 has 11 layers, about 862K parameters and about 108M multiplications, and reaches 91.06% with a speed-up of 4.64 and a compression rate of 10.44, which the text states as a 0.9% gain over the teacher.

The abstract's figure of almost 10.4 times fewer parameters is close to the compression rate of 10.44 listed for FitNet 2 in Table 5.

MNIST, SVHN and AFLW results

The MNIST teacher has about 361K parameters and the FitNet about 30K; the FitNet is twice as deep as the teacher with roughly 8% of its parameters, and its 4th layer is trained to mimic the teacher's 2nd layer. Standard backpropagation gives the FitNet a 1.9% error, knowledge distillation 0.65%, and hint-based training 0.51%, against 0.55% for the teacher.

The authors state that the hint-trained student is slightly better than the teacher while using 12 times less parameters.

For AFLW, 16x16 patches are built from annotated face regions as positives and from ImageNet as negatives, with 90% of the patches used for training. The authors note that the benefit of hints is largest for the thinner architecture, FitNet 1.

Limitations

The evaluated benchmarks are MNIST, CIFAR-10, CIFAR-100, SVHN and AFLW. Each reported result links one teacher layer to one student layer, for example the 11th student layer to the 2nd teacher layer on CIFAR-10 and the 4th to the 2nd on MNIST, and no search over other layer pairings is reported.

Supervised hints and stage-wise schemes with classification targets did not train the thin and deep student in the authors' runs. The speed-up was measured only on a GPU, and only for CIFAR-10 test examples. The depth experiment uses early stopping on the validation set without retraining, while Table 5 retrains on training plus validation, so the two sets of numbers are not directly comparable.

The authors expect matrix factorisation and quantisation methods to be complementary to FitNets and to speed up or compress them further, but they did not test this.

Paper info

Authors
Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, Yoshua Bengio
Venue
arXiv · Preprint
First published
2014-12-19
Added
2026-11-12
Updated
2015-3-27
Version
v4
arXiv
1412.6550
Category
cs.LG · cs.NE
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, Yoshua Bengio (2014). FitNets: Hints for Thin Deep Nets. arXiv:1412.6550v4. https://arxiv.org/abs/1412.6550v4

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

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up