TL;DR
Inception-v3 is an image classifier from Google, described in a 2015 paper by Szegedy and colleagues. The paper asks how to make a convolutional network more accurate without making it much more expensive to run. Its answer is a set of design rules plus a few specific changes: large filters are split into smaller ones, the network shrinks its representation gently, and the classifier is regularized with label smoothing and batch-normalized auxiliary heads. With one image crop, the network reaches 21.2% top-1 and 5.6% top-5 error on the ImageNet validation set, at about 4.8 billion operations by the paper's count.
Builds on: Convolutional Neural Network, Inception Module, Factorized Convolution, Batch Normalization, Label Smoothing · Leads to: later efficient vision networks that factorize convolutions and regularize the classifier
Why it mattered
The paper shaped how people build efficient vision networks. Its factorized blocks and its grid-size reduction trick are the kind of design idea later architectures reuse, and it is the paper that introduced label smoothing as a regularizer for classifiers. Its ImageNet numbers were a state of the art in 2015 for a single crop, and the ensemble result, 3.58% top-5 error with 144 crops, showed that a modest-cost model could beat the 4.9% top-5 error the paper lists for six BN-Inception models. For anyone who wants a classifier to run on a phone or to process a very large image collection, the central lesson still applies: how computation is spent matters as much as how much is spent.
The problem
Between 2012 and 2014 the winning ImageNet entries grew deeper and larger. AlexNet had about 60 million parameters. VGGNet was simple but very expensive to evaluate, because its plain stack of 3×3 layers at high resolution costs a lot of multiply-adds. GoogLeNet was cheap to evaluate, but it was hard to change. The paper points out that if you simply double every filter count in an Inception-style network, the cost of each layer grows by about 4×, since both the number of inputs and the number of outputs double. Scaling up naively therefore throws away most of the efficiency gain, and the paper's goal is a way to scale that keeps the cost low while the accuracy rises.
Two terms are used throughout. ImageNet, in its ILSVRC 2012 form, is a benchmark of about 1,000 object classes; a model predicts one label per image. Top-1 error is the fraction of images where the single highest-scoring label is wrong, and top-5 error is the fraction where the correct label is not among the five highest-scoring labels.
How it works
The paper is organized as a set of rules, then the changes that follow from them. Here is the pipeline of ideas, in the order the paper builds them.
flowchart LR A[Design principles] --> B[Factorize large convolutions] B --> C[Cheap grid-size reduction] C --> D[Inception-v3 layout] D --> E[Label smoothing and batch-normalized auxiliary heads] E --> F[Training recipe] F --> G[Results]
-
Principle: avoid bottlenecks. A bottleneck is a layer that squeezes the representation to a small size too early. For example, a stage that maps a 10×10 grid with 20 channels down to a 5×5 grid with 4 channels throws away information that the next layers cannot recover. The rule is that the representation should shrink gently from input to output. The paper calls this the first of four principles; the others say to make representations higher-dimensional where they are processed locally, to do spatial mixing on lower-dimensional summaries, and to balance depth and width.
-
Factorize a 5×5 convolution. Take a 5×5 filter that maps 20 input channels to 20 output channels. Its cost is 25 weights per input-output pair. Replace it with two 3×3 convolutions stacked one after the other. Each 3×3 layer has 9 weights per pair, so the stack has 18 weights per pair. That is 18 out of 25, a saving of 28%. The two-layer version also sees the same 5×5 area, because the second 3×3 looks at a window of the first layer's outputs that already summarizes a 3×3 patch.
-
Factorize a 3×3 convolution into asymmetric pieces. A 3×3 filter can be replaced by a 1×3 filter followed by a 3×1 filter. The receptive field is still 3×3, but the cost is 3 + 3 = 6 weights per pair instead of 9, a saving of 33%. Splitting it into two 2×2 filters only saves 11%. The paper uses asymmetric factorizations like 1×7 followed by 7×1 on medium-sized grids, where feature maps are between 12 and 20 pixels across, and finds that they do not work well on the earliest layers.
-
Reduce the grid size without a bottleneck. To halve a d×d grid while doubling the channel count from k to 2k, the cheap naive option is to pool first and then convolve. That loses information, because the representation drops to (d/2)²·k values. The expensive option is to convolve first at full size, which costs 2d²k² operations. The paper's version runs a stride-2 convolution and a stride-2 pooling layer side by side and concatenates their outputs. The result has 2k channels, the cost is close to the cheap option, and no information is lost in one narrow stage.
-
Assemble the layout. Table 1 of the paper lists the full stack. A 299×299×3 image passes through a stem of plain convolutions and pooling. The grid then goes 35×35×288, then 17×17×768, then 8×8×1280, using the reduction step from item 4 between stages. The coarsest stage ends with 2048 channels, a global pooling over the 8×8 grid gives a 2048-vector, a linear layer produces 1000 logits, and a Softmax turns them into probabilities. The paper reports that the network costs about 2.5 times what BN-Inception costs.
-
Regularize the classifier with label smoothing. The training target for a correct class is normally 1 and every other class is 0. With label smoothing and ε = 0.1 over 1,000 classes, the target becomes 0.9001 for the correct class and 0.0001 for each other class. Step 6 in symbols, below, shows what the smoothed target does to the loss.
-
Add batch-normalized auxiliary heads. An auxiliary classifier is a small side branch attached to a middle layer, whose loss is added to the main loss during training. The paper finds that auxiliary heads do not speed up early training. They help near the end, and removing the lower one does not hurt. Its interpretation is that the heads act as a regularizer. Adding Batch Normalization to the side head gives about a 0.4% absolute gain in top-1 accuracy.
-
Train. The networks were trained with TensorFlow on 50 replicas, each on an NVIDIA Kepler GPU, with batch size 32 for 100 epochs. Earlier models used Momentum with decay 0.9. The best models used RMSProp with decay 0.9 and ε = 1.0, a learning rate of 0.045 decayed by 0.94 every two epochs, and Gradient Norm Clipping at threshold 2.0. Evaluation uses a running average of the parameters.
The math
The formulas below restate the steps above. Symbols are named in words the first time they appear.
For an example with probability vector p over K classes (the model's output after the softmax), and a target distribution q, the loss is H(q, p) = −Σₖ q(k) log p(k). The smoothed target is q′(k) = (1 − ε) δₖ,ᵧ + ε u(k), where y is the correct label, δₖ,ᵧ equals 1 when k is y and 0 otherwise, ε is the smoothing weight, and u is a fixed distribution over labels, uniform in the paper.
Step 2 in symbols: the 5×5 saving
A convolution with a k×k filter that maps c_in channels to c_out channels costs k²·c_in·c_out multiply-adds per output position. Compare one 5×5 layer with two 3×3 layers, using the same channel counts:
So the stack costs 72% of the single layer, a 28% reduction. For comparison, the paper puts one 5×5 layer at 25/9 ≈ 2.78 times one 3×3 layer.
Step 3 in symbols: asymmetric factorization
A 3×3 filter costs 9 weights per channel pair. A 1×3 followed by a 3×1 costs 3 + 3 = 6:
so the pair is 33% cheaper. Two 2×2 layers cost 4 + 4 = 8, giving 8/9 ≈ 0.89, an 11% saving.
Step 4 in symbols: grid-size reduction
Starting from a d×d grid with k channels and producing a d/2 × d/2 grid with 2k channels:
- Convolve first, then pool: cost 2 · d² · k² operations.
- Pool first, then convolve: cost 2 · (d/2)² · k² = (1/2) · d² · k², one quarter of the first option, but the representation has only (d/2)² · k values and is a bottleneck.
- The paper's parallel stride-2 blocks: a convolution branch and a pooling branch, concatenated along the channel axis. Their outputs together give 2k channels.
Step 6 in symbols: what smoothing does
With ε = 0.1 and K = 1,000, u(k) = 1/1,000 = 0.001:
Check: 0.9001 + 999 · 0.0001 = 0.9001 + 0.0999 = 1.0. The paper's gradient with respect to a logit is p(k) − q(k), which is bounded between −1 and 1. Because the smoothed target never reaches 0 for wrong classes, the loss keeps a positive floor, and the model is pushed away from putting all its mass on one logit.
Results
- Single crop, single model. Table 3 accumulates changes on top of BN-Inception. The final row, Inception-v2 with BN-auxiliary, reaches 21.2% top-1 and 5.6% top-5 error, with a cost of 4.8 billion operations. BN-Inception had 25.2% top-1 and 7.8% top-5 at 2.0 billion operations. Label smoothing alone moved the top-1 error from 23.1% to 22.8% in the cumulative table, a gain of 0.3% absolute on top-1 and 0.2% on top-5.
- Ensemble. Four Inception-v3 models with 144 crops reach 17.2% top-1 and 3.58% top-5 error on the validation set. The authors say they would verify the ensemble on the test set in a later version, so the validation figure is the one to quote.
- Lower resolution. Table 2 keeps computation constant and varies the first receptive field. A 79×79 input reaches 75.2% top-1, a 151×151 input 76.4%, and a 299×299 input 76.6%. The paper's point is that high-quality results are possible with a 79×79 receptive field, which it suggests may help with detecting relatively small objects.
- Limits. The paper calls its principles speculative, supported by large-scale experiments but not proven. Its results are on ImageNet classification, and the ensemble figure is starred because the test-set check was still to come.
Reading guide
- Abstract and Section 1. The motivation: computation and parameter count matter for mobile and big-data use. Needs Convolutional Neural Network and the idea of a Receptive Field.
- Section 2, General design principles. The four rules. Needs Max Pooling for the grid-size discussion.
- Section 3, Factorizing convolutions. The core technical contribution. Needs Factorized Convolution and Rectified Linear Unit (ReLU), because the paper's control experiment compares linear and ReLU factorizations (Figure 2).
- Section 4, Auxiliary classifiers. Needs Vanishing Gradient Problem, since the original motivation for auxiliary heads is to push gradients into the lower layers, and Dropout, since the paper argues the heads regularize the network.
- Section 5, Efficient grid-size reduction. Read with Figure 10 and Table 1. Needs the Inception Module structure.
- Section 6, Inception-v2 and Table 1. The full layout. Needs Global Average Pooling for the final pooling step.
- Section 7, Label smoothing. Needs Softmax and Cross-Entropy Loss.
- Section 8, Training. Needs Stochastic Gradient Descent, Momentum, RMSProp, and Learning Rate.
- Sections 9 to 11. Low-resolution inputs, results and conclusions. Read Section 10 after the rest.
Check yourself
QuestionRecall: what is the first of the paper's four design principles, and why does it matter?Show answer
Avoid representational bottlenecks, especially early in the network. A bottleneck squeezes the representation to a small size too early and loses information that later layers cannot recover, so the representation should shrink gently from input to output.
QuestionComputation: a 5×5 convolution with 20 input and 20 output channels is replaced by two stacked 3×3 convolutions with the same channel counts. What fraction of the multiply-adds remains?Show answer
The 5×5 layer costs 25 weights per channel pair; two 3×3 layers cost 9 + 9 = 18. The ratio is 18/25 = 0.72, so 72% remains, a 28% saving.
QuestionComputation: with label smoothing ε = 0.1 over K = 1,000 classes and a uniform u, what target does the correct class get, and what does a wrong class get?Show answer
The correct class gets q′(y) = 0.9 + 0.0001 = 0.9001, and each wrong class gets 0.0001. The targets sum to 1.0.
QuestionWhy does label smoothing stop the largest logit from growing without limit?Show answer
With a one-hot target, the loss keeps falling as the correct logit grows far above the others. With the smoothed target, every wrong class has a positive target, so the loss cannot be made small by pushing one logit to infinity. The model is kept from becoming overconfident.
QuestionApplied: a team wants a classifier that runs on a phone with a fixed compute budget. Name two changes from the paper you would try first, and what each one trades.Show answer
Factorize large convolutions into smaller ones, for example replacing 5×5 with two 3×3 layers. This cuts multiply-adds and parameters at a small cost in expressiveness, which the paper found acceptable. Use the stride-2 convolution and pooling pair for grid reduction instead of pooling first, which keeps the representation wide and avoids a bottleneck at a moderate cost. Both trade implementation complexity for efficiency.
Sources
- Szegedy, C., Vanhoucke, V., Ioffe, S., Shlens, J., and Wojna, Z. (2015). Rethinking the Inception Architecture for Computer Vision. https://arxiv.org/abs/1512.00567
- Szegedy, C., et al. (2014). Going deeper with convolutions. https://arxiv.org/abs/1409.4842
- Ioffe, S., and Szegedy, C. (2015). Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. https://arxiv.org/abs/1502.03167