# EfficientDet: Scalable and Efficient Object Detection

EfficientDet scales object detectors across a wide range of compute budgets

Tan, Mingxing, Pang, Ruoming, Le, Quoc V. · arXiv · 2019-11-20

- **Problem** Accurate object detectors have become too costly to run on robots, cars and phones. Earlier efficient designs cut cost but usually lose accuracy.
- **Method** EfficientDet learns a weight per input for feature fusion instead of summing equally, and scales backbone, feature network and heads together with one coefficient.
- **Results** EfficientDet-D7x scores 55.1 AP on COCO test-dev with 410B FLOPs, state-of-the-art for its single-model setting.

## Why accurate detectors are hard to deploy

Object detectors have become more accurate, but the best ones have also become much more expensive to run. The AmoebaNet-based NAS-FPN detector reaches its accuracy with 167M parameters and 3045B FLOPs, which is 30x the cost of RetinaNet. Robotics and self-driving cars set tight limits on model size and latency, so detectors of this scale are hard to deploy there.

Earlier efficient designs, such as one-stage and anchor-free detectors or compressed models, cut cost but usually lose accuracy. Deployment targets also vary, from mobile devices to datacenters, so one operating point rarely fits all of them. The authors therefore ask whether one detector design can stay accurate and efficient across roughly 3B to 300B FLOPs.

They split the difficulty into two challenges: fusing features from several scales efficiently, and scaling the model in a balanced way.

## Weighted bidirectional feature fusion

The core idea is that features taken from different resolutions should not all be summed with equal weight. The authors instead learn one weight per input, so the network decides how much each input contributes to the fused output. This matters because inputs at different resolutions contribute unequally to the fused feature.

The starting point is the top-down FPN, which passes information in one direction only. PANet adds a bottom-up path and gains accuracy, but at the cost of more parameters and computation. The authors remove nodes that have only one input edge. They add an extra edge from an input to an output at the same level, and they treat each top-down and bottom-up pass as one layer that is repeated.

The authors compare three ways to weight the inputs. The unbounded version multiplies each input by a learnable scalar, vector or tensor, but it can destabilize training. A softmax version normalizes the weights, but the authors found it slowed GPU execution. Their fast normalized version keeps the normalization without softmax, clips the weights to be nonnegative with ReLU, and adds a small epsilon of 0.0001 to avoid numerical instability.

The fused output is \\\[ O = \\sum\_i \\frac{w\_i}{\\epsilon + \\sum\_j w\_j}\\, I\_i \\\], where I\_i is an input feature and w\_i is its learnable weight. The authors report that fast fusion behaves much like softmax fusion and runs up to 30% faster on GPUs.

As a concrete case, the level 6 top-down node first fuses the level 6 input with a resized level 7 input. It does so with the normalized weights, as \\\[ P^{td}\_6 = \\text{Conv}\\left(\\frac{w\_1 \\cdot P^{in}\_6 + w\_2 \\cdot \\text{Resize}(P^{in}\_7)}{w\_1 + w\_2 + \\epsilon}\\right) \\\]. Each fusion step uses a depthwise separable convolution followed by batch normalization and activation, which the authors chose for efficiency.

## Compound scaling of the whole detector

The authors scale the backbone, BiFPN, box/class network and input resolution with one compound coefficient φ. Earlier work usually scaled one dimension, such as the backbone or the input size, and the authors judge that approach ineffective. Detectors have more scaling dimensions than classifiers, so a grid search over all of them is too expensive, and the authors use a heuristic instead.

The backbone reuses the width and depth coefficients of EfficientNet-B0 to B6, so the ImageNet checkpoints can be reused. BiFPN depth grows linearly with φ, while BiFPN width grows exponentially, using the base 1.35 that a grid search over values from 1.2 to 1.45 selected. Both quantities follow the equations \\\[ W\_{bifpn} = 64 \\cdot 1.35^{\\phi}, \\qquad D\_{bifpn} = 3 + \\phi \\\].

The box/class prediction network keeps the BiFPN width, and its depth grows with \\\[ D\_{box} = D\_{class} = 3 + \\lfloor \\phi / 3 \\rfloor \\\]. Input resolution must be divisible by 128 because levels 3 to 7 are used, so it grows as \\\[ R\_{input} = 512 + \\phi \\cdot 128 \\\]. The coefficient selects a fixed configuration, so each model from D0 to D7x is a separately trained network rather than one model that adapts to any budget at run time.

Table 1 lists the resulting configurations, from D0 at φ = 0 up to D7 at φ = 7. D7 and D7x share the same BiFPN and head, but D7 uses a higher resolution, while D7x uses the larger B7 backbone and adds one feature level, P8.

## COCO detection results

The models train on COCO 2017 with SGD, momentum 0.9 and weight decay 4e-5, and the learning rate rises linearly to 0.16 before cosine decay. D0 to D6 train for 300 epochs with batch size 128 on 32 TPUv3 cores, while D7 and D7x train for 600 epochs on 128 cores. All results are single-model, single-scale, without test-time augmentation.

EfficientDet-D0 scored 34.6 AP on test-dev with 2.5B FLOPs, compared to 33.0 AP with 71B FLOPs for YOLOv3. The authors state that D0 matches YOLOv3 accuracy with 28x fewer FLOPs. At the mid-range, EfficientDet-D1 scored 40.5 AP with 6.1B FLOPs, compared to 39.2 AP with 97B FLOPs for RetinaNet-R50, which is 16x more compute.

EfficientDet-D7x scored 55.1 AP on test-dev with 77M parameters and 410B FLOPs, and the introduction calls this model EfficientDet-D7. The authors report +4 AP with 7x fewer FLOPs, so the gap compares a test-dev score with a val score.

The authors measured latency on Titan V FP32, V100 FP16 and a single-thread CPU, and they report EfficientDet up to 4.1x faster on GPU and 10.8x faster on CPU. Only results measured on the same machine and settings enter those speed comparisons.

## Semantic segmentation transfer

The authors adapt EfficientDet to Pascal VOC 2012 by keeping levels P2 to P7 in BiFPN and classifying from P2 alone. This variant uses an EfficientNet-B4 backbone, 128 channels in BiFPN, 256 channels in the head, and repeats both three times.

DeepLabV3+ with an Xception backbone scores 80.02% with 177B FLOPs, so the gain is 1.7% with 9.8x fewer FLOPs. The comparison excludes ensembles, test-time augmentation and COCO pretraining, and only one modified D4-based configuration was evaluated.

## Which part of the design drives the gain

The authors report that the backbone adds about 3 AP and BiFPN a further 4 AP, both under RetinaNet training settings.

The authors compare feature networks with the same backbone, head and training settings, repeating each design where needed. Repeated top-down FPN scores 42.29 AP, and repeated FPN+PANet scores 44.08 AP. NAS-FPN scores 43.16 AP with 0.71x parameters and 0.72x FLOPs in the table's ratio columns. BiFPN with weighted fusion scores 44.39 AP with 0.88x parameters and 0.68x FLOPs, while the unweighted BiFPN scores 43.94 AP.

BiFPN therefore reaches about the accuracy of repeated FPN+PANet at lower cost, and the weights add a further gain.

## Fast fusion speed and scaling comparison

Table 6 compares softmax and fast fusion on three detector sizes. For Model1, softmax fusion scores 33.96 AP and fast fusion scores 33.85 AP, a difference listed as -0.11. In these tests the softmax normalization buys almost no accuracy and costs GPU time.

Figure 6 compares compound scaling with scaling image size, channel count, BiFPN layers or box/class layers alone, all from the same baseline detector. The authors report that compound scaling reaches better accuracy and efficiency than each single-dimension alternative. The authors attribute the gain to balancing the dimensions jointly rather than pushing one of them hard.

The figure's values are not given as numbers in the text, so the size of the gap isn't stated here.

## Limits of the evidence

The compound scaling is heuristic, and the authors state it might not be optimal. A full grid search over all scaling dimensions was not run, because the authors judged it too expensive. Training D7 and D7x takes 600 epochs on 128 TPUv3 cores, a heavy budget for the largest models.

Most competitor accuracies come from the original papers, and only RetinaNet was reproduced with the authors' trainer. The +4 AP claim compares D7x on test-dev with an AmoebaNet number from the val column, so the splits don't match. Latency was measured on Titan V, V100 and a single-thread CPU, so other hardware isn't covered. FLOPs here count multiply-adds, so they are not direct measures of runtime.

Segmentation was tested with one modified D4-based model, and results with COCO pretraining were excluded.

## Paper info

- **Authors**: Tan, Mingxing, Pang, Ruoming, Le, Quoc V.
- **Venue**: arXiv · Preprint
- **First published**: 2019-11-20
- **Added**: 2026-11-11
- **Updated**: 2020-7-27
- **Version**: v7
- **arXiv**: 1911.09070
- **Category**: cs.CV · cs.LG · eess.IV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1911.09070v7) · [PDF ↗](https://arxiv.org/pdf/1911.09070v7)

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

Tan, Mingxing, Pang, Ruoming, Le, Quoc V. (2019). EfficientDet: Scalable and Efficient Object Detection. arXiv:1911.09070v7. https://arxiv.org/abs/1911.09070v7

**BibTeX**

```
@misc{mingxing2019efficientdet,
  title = {{EfficientDet: Scalable and Efficient Object Detection}},
  author = {Tan, Mingxing and Pang, Ruoming and Le, Quoc V.},
  year = {2019},
  eprint = {1911.09070},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.09070v7}
}
```

## Other paper commentary

- [Rethinking Atrous Convolution for Semantic Image Segmentation](https://refivu.com/en/papers/d417603b-a8c0-438a-8aaf-2a2da3403f74-rethinking-atrous-convolution-for-semantic-image.md)
- [Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms](https://refivu.com/en/papers/a95484f1-3372-4671-ab1c-c9d084962641-fashion-mnist-a-novel-image-dataset-for-benchmarking.md)
- [Searching for MobileNetV3](https://refivu.com/en/papers/0831f87e-094f-403b-b55b-27cf192fd9c4-searching-for-mobilenetv3.md)
- [UNet++: A Nested U-Net Architecture for Medical Image Segmentation](https://refivu.com/en/papers/156db9ed-e303-494d-af9e-c37b8715a287-unet-a-nested-u-net-architecture-for-medical.md)
- [Identity Mappings in Deep Residual Networks](https://refivu.com/en/papers/4dcb24a4-8fe8-4b2a-b957-a69e3f0212b0-identity-mappings-in-deep-residual-networks.md)
- [Perceptual Losses for Real-Time Style Transfer and Super-Resolution](https://refivu.com/en/papers/780825d2-51b4-4426-9340-0f1859a637a2-perceptual-losses-for-real-time-style-transfer-and.md)
- [DeepWalk: Online Learning of Social Representations](https://refivu.com/en/papers/dd05ed66-43b8-4f25-93ca-264ea076a439-deepwalk-online-learning-of-social-representations.md)
- [Gemini: A Family of Highly Capable Multimodal Models](https://refivu.com/en/papers/210f7673-6e80-4763-9ef2-d58f1a878648-gemini-a-family-of-highly-capable-multimodal-models.md)
- [Enriching Word Vectors with Subword Information](https://refivu.com/en/papers/c9e8d8e6-e24f-4128-8771-cadeb8b6c17e-enriching-word-vectors-with-subword-information.md)
- [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://refivu.com/en/papers/1de65a84-2d26-40df-8104-656807b7a166-deepseekmath-pushing-the-limits-of-mathematical-reasoning-in.md)

## Terms in this paper

- [FLOPs](https://refivu.com/en/terms/14c405888d5b-flops)
- [FPN](https://refivu.com/en/terms/ad78e3a6bd84-fpn)
- [Compound scaling](https://refivu.com/en/terms/717e2185385e-compound-scaling)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/bea70d85-5dca-48dc-8e51-707923164b9b-efficientdet-scalable-and-efficient-object-detection)
