EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks

Mingxing Tan, Quoc V. Le

TL;DR

EfficientNet introduces a principled "compound scaling" method that balances a network's depth, width, and resolution to maximize performance. By applying this to a new baseline architecture (EfficientNet-B0) discovered via neural architecture search, the authors achieved state-of-the-art accuracy on ImageNet while being up to 8.4x smaller and 6.1x faster than previous heavyweights.

What Problem Does This Paper Address?

In the world of Convolutional Neural Networks (ConvNets), the standard path to better accuracy has been "go bigger." However, "bigger" usually meant scaling only one dimension at a time: adding more layers (depth), increasing the number of channels (width), or using higher-resolution input images (resolution).

While these methods work, they are often done arbitrarily or through tedious manual tuning. Previous research showed that scaling any single dimension eventually leads to diminishing returns. The authors of EfficientNet identified a critical gap: there was no principled way to scale all three dimensions together to achieve the best possible efficiency and accuracy for a given resource budget.

Methods

The paper introduces two major contributions: Compound Scaling and the EfficientNet Architecture family.

1. Compound Scaling

The core idea is that if you increase the input resolution, the network needs more layers to increase its receptive field and more channels to capture more fine-grained patterns. Instead of picking these numbers at random, the authors propose a compound coefficient ($\phi$) to scale depth ($d$), width ($w$), and resolution ($r$) uniformly.

Model Scaling Methods

They use a small grid search on a baseline model to find the optimal constants ($\alpha, \beta, \gamma$) under the constraint that $\alpha \cdot \beta^2 \cdot \gamma^2 \approx 2$. Once these constants are found, they can simply increase $\phi$ to scale the model up to any desired size.

2. EfficientNet-B0 to B7

Scaling only works if your starting point is good. The authors used Multi-objective Neural Architecture Search (NAS) to design a baseline model, EfficientNet-B0, that optimizes both accuracy and FLOPS (Floating Point Operations per Second). This baseline uses mobile inverted bottleneck (MBConv) blocks, similar to MobileNetV2, but slightly more complex. They then applied their compound scaling to B0 to produce a family of models from B1 (small) to B7 (state-of-the-art).

Datasets

The models were primarily trained and evaluated on ImageNet, the gold standard for image classification (1,000 classes). To demonstrate versatility, they also tested transfer learning performance on several datasets, including CIFAR-10 & CIFAR-100, Birdsnap, Stanford Cars, Flowers, FGVC Aircraft, Oxford-IIIT Pets, and Food-101.

Key Insights and Ideas

  • Balance is Everything: The "aha moment" is that depth, width, and resolution are not independent. Scaling them in a fixed, calculated ratio is far more effective than scaling them individually.
  • The Power of a Good Baseline: By starting with a NAS-optimized baseline (B0), the scaled-up versions (B1-B7) inherited a highly efficient structural foundation that traditional architectures like ResNet lacked.
  • Visualizing Success: Using Class Activation Maps (CAM), the authors showed that compound-scaled models focus more accurately on relevant object details compared to models scaled in only one dimension, which often struggled with object localization.

Key Results

EfficientNet redefined the efficiency frontier for computer vision.

Model Size vs. Accuracy Comparison
  • State-of-the-Art Accuracy: EfficientNet-B7 achieved 84.4% top-1 accuracy on ImageNet, surpassing the previous best model (GPipe).
  • Massive Efficiency Gains: EfficientNet-B7 is 8.4x smaller (66M vs 557M parameters) and 6.1x faster on inference than GPipe.
  • Better than the Classics: EfficientNet-B4 achieved better accuracy than ResNet-50 while using similar FLOPS, effectively making the older "standard" models obsolete for many use cases.
  • Transfer Learning: EfficientNets achieved state-of-the-art accuracy on 5 out of 8 transfer learning datasets while using up to 21x fewer parameters than existing models.

Limitations and Future Work

  • Search Cost: While the scaling itself is simple, the initial grid search to find the $\alpha, \beta, \gamma$ coefficients still requires some computational overhead on the baseline model.
  • Assumption of Uniformity: The method assumes that the optimal scaling ratios found for a small model (B0) remain optimal as the model grows very large. While this worked for B1-B7, it might eventually drift for even larger "super-models."
  • Hardware Specifics: The NAS optimized for FLOPS, which is a general proxy for complexity. Future work could involve optimizing directly for specific hardware latencies (e.g., mobile CPUs vs. high-end GPUs).

Summary updated

BibTeX
@inproceedings{tan2019efficientnet,
  author = {Mingxing Tan and Quoc V. Le},
  title = {{EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=rkNdvobdZr},
}
Figure