EfficientNet

Machine Learning
Introduced by
Tan, M. & Le, Q. V.
Year
2019
Type
Compound-scaled convolutional neural network architecture

What does it do?

EfficientNet is a family of convolutional neural network architectures introduced by Mingxing Tan and Quoc V. Le at ICML 2019.

It scales network depth, width, and input resolution together under a single compound coefficient, rather than scaling one dimension at a time. The reported result is high ImageNet classification accuracy with fewer parameters and FLOPs than earlier networks such as ResNet and Inception.

The intuition behind the method

Earlier CNN designs were usually scaled in one direction at a time, by making them deeper, wider, or feeding them larger images, without a principled way to balance all three. Tan and Le observed that the three dimensions interact: a deeper network benefits from wider layers to capture richer patterns, and both benefit from higher-resolution inputs. EfficientNet encodes this with one scalar, the compound coefficient phi, which sets how much extra depth, width, and resolution each variant receives. A small baseline network (B0), found by neural architecture search, is scaled with this rule to produce the larger variants B1 through B7, each offering a different accuracy-efficiency trade-off. In the paper's comparisons, this joint scaling reached higher accuracy with fewer parameters than the single-dimension scaling alternatives it was tested against.

History

EfficientNet was presented by Mingxing Tan and Quoc V. Le at ICML 2019 in the paper 'EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks'. Its central claim is that depth, width, and resolution should be scaled jointly rather than in isolation. At publication, EfficientNet-B7 reached 84.4% ImageNet top-1 accuracy with 8.4x fewer parameters than GPipe. The compound scaling idea was later extended to object detection in EfficientDet and refined in EfficientNetV2 (Tan & Le, 2021), which targeted training speed through progressive learning and Fused-MBConv stages.

When to use it

EfficientNet is appropriate for image classification, feature extraction, and transfer learning tasks where accuracy per parameter or per FLOP is important — including deployments on resource-constrained devices. Choose a smaller variant (B0–B2) for mobile or embedded targets and a larger one (B5–B7) when GPU memory is abundant. It assumes the task is visual and benefits from pre-training on large image corpora. It is less suitable for non-image modalities, 1-D time series, or very small datasets where a simpler CNN may suffice.

Limitations and considerations

  • Training from scratch is demanding: the compound scaling and MBConv blocks make full ImageNet training require considerable compute and time, and it is generally more costly than for simpler architectures such as ResNet.
  • Memory-intensive at high resolution: B6 and B7 require large GPU memory, which usually forces smaller batch sizes.
  • Sensitivity to regularisation: the larger variants depend on strong regularisation and data augmentation (for example RandAugment, Mixup, and CutMix) and are prone to overfitting on small datasets without it.
  • Designed for 2-D image inputs: the MBConv backbone is specialised for spatial image data and does not transfer directly to text, tabular, or graph data.
  • Superseded in some settings: vision transformers may be preferable on very large datasets, and EfficientNetV2 (Tan & Le, 2021) improves on the original family's training speed and recipe.
  • Constants fixed on the baseline: alpha, beta, and gamma were searched only on the B0 baseline. Their transfer to other tasks, data scales, and training recipes is not guaranteed, and the phi-to-variant mapping is fixed in the original work.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Accuracy per parameter: the paper reports that EfficientNet-B7 reached 84.4% ImageNet top-1 accuracy with 8.4x fewer parameters than GPipe, the comparison model named in the page's history.
  • Principled scaling: the compound coefficient gives a single, documented rule for trading compute for accuracy, instead of ad hoc per-architecture changes to depth, width, and resolution.
  • Strong transfer learning backbone: pre-trained EfficientNet features can be fine-tuned on downstream vision tasks with modest amounts of labelled data.
  • Scalable family: one design rule covers the range from the compact B0 (5.3 M parameters) to the largest B7 (66 M parameters).
  • Pre-trained weights are distributed for several deep learning frameworks, which lowers the cost of adopting the architecture.

Applications

  • Image classification benchmarks, including ImageNet.
  • Transfer learning backbone for medical image classification.
  • Feature extractor for downstream object detection pipelines, such as EfficientDet.
  • On-device vision models on mobile and embedded hardware, typically using the B0–B2 variants.
  • Remote sensing and satellite image classification where parameter budgets are limited.

How it works

How it works

1

Depth, width, and resolution are each parameterised as a power of the compound coefficient phi: depth scales as alpha^phi, width as beta^phi, and resolution as gamma^phi. Resolution enters FLOP counts squared, so under the resource constraint below, total compute grows by roughly a factor of two for each unit increase in phi.

Formula
d = \alpha^{\phi},\quad w = \beta^{\phi},\quad r = \gamma^{\phi}
2

The constants alpha, beta, and gamma are chosen by a small grid search on the baseline model, subject to alpha * beta^2 * gamma^2 ≈ 2. This keeps each unit step in phi within roughly a 2x FLOP budget, so the practitioner chooses a variant to trade speed against accuracy.

Formula
\alpha \cdot \beta^{2} \cdot \gamma^{2} \approx 2
3

The baseline EfficientNet-B0 is built with neural architecture search (NAS) using an objective that balances accuracy and FLOPs. Its building blocks are mobile inverted bottleneck convolutions (MBConv) with squeeze-and-excitation blocks. The baseline is fixed, and the larger variants are obtained by changing only the scaling coefficient.

4

Increasing phi produces the larger variants B1 through B7. Each variant repeats the same MBConv-based stage structure, with more layers (depth), more channels (width), and a larger input resolution. The network can be written as the composition of per-stage block repetitions applied to an input tensor of shape r x r x c.

Formula
\mathcal{N}(\phi) = \mathcal{F}_{1}^{d_{1}} \odot \cdots \odot \mathcal{F}_{s}^{d_{s}}\bigl(X_{\langle r,r,c \rangle}\bigr)
5

EfficientNet weights pre-trained on ImageNet are commonly used as transfer learning backbones. The convolutional trunk is either frozen or fine-tuned, and a task-specific head replaces the original classification layer. Fine-tuning from pre-trained weights is generally preferred over training from scratch, especially when the downstream dataset is small.

Common pitfalls

  • Fine-tuning with the whole trunk frozen: this limits adaptation when the target images differ from ImageNet. Unfreezing later stages first, and then earlier ones if needed, is the usual way to adapt the model.
  • Mismatching input resolution: each variant is tied to a reference resolution (B0 at 224 px, B7 at 600 px in this page's examples). Feeding a different resolution without retraining or adjusting the model can reduce accuracy in ways that are not obvious from the training loss.
  • Ignoring pre-processing conventions: pre-trained EfficientNet weights expect the input normalisation used when they were trained. Applying different mean and standard deviation values to the input silently lowers accuracy.
  • Using B7 by default: larger variants need more data and GPU memory. Starting from B0 or B1 and moving up only when accuracy is insufficient is the more economical approach.
  • Evaluating only top-1 accuracy: on imbalanced downstream tasks, top-1 accuracy alone can hide poor performance on rare classes. Per-class metrics and a confusion matrix give a fuller picture.
  • Comparing variants unfairly: differences in input resolution, pre-training, or training budget can outweigh differences between variants. Hold these constant when comparing, and report parameters and FLOPs alongside accuracy, using a validation split matched to the downstream task.

Frequently asked questions

Which EfficientNet variant should I start with?

Begin with B0 or B1 to establish an accuracy-efficiency baseline. Move to larger variants if accuracy is insufficient and GPU memory permits. B6 and B7 are mainly relevant for top-end accuracy on large, diverse datasets, and they require high-resolution inputs (528 px and 600 px respectively).

What is the compound coefficient phi in practice?

Phi is a non-negative number that sets how strongly depth, width, and resolution are scaled relative to the baseline, through the powers alpha^phi, beta^phi, and gamma^phi. You do not normally set phi directly: each published variant label (B0–B7) corresponds to a specific phi value chosen in the original work, so selecting a variant is the practical choice.

Can EfficientNet be used without ImageNet pre-training?

Yes, but training from scratch requires a large dataset and careful regularisation. For most downstream tasks, fine-tuning from ImageNet weights converges faster and generalises better. When the labelled dataset is small, use pre-trained weights and freeze most of the trunk.

How does EfficientNet compare to Vision Transformers?

On standard ImageNet-scale benchmarks, EfficientNet variants are competitive with vision transformers of similar size. Transformers are often reported to gain an advantage at larger scales with large pre-training corpora, while EfficientNet remains a parameter-efficient choice at moderate scale. EfficientNetV2 narrows the gap through improved training methods.

Related methods

Sources

  1. Tan, M. & Le, Q. V. (2019). EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. Proceedings of the 36th International Conference on Machine Learning (ICML 2019), PMLR 97, 6105–6114.

    Open publication reference
  2. Goodfellow, I., Bengio, Y. & Courville, A. (2016). Deep Learning. MIT Press.

    ISBN: 978-0-262-03561-3