---
title: 'EfficientDet-D0: Compact Object Detector'
url: https://www.emergentmind.com/topics/efficientdet-d0
type: topic
---

# EfficientDet-D0: Compact Object Detector

EfficientDet-D0 is the foundational variant of the EfficientDet family of object detectors, designed for optimal trade-off between model compactness and detection accuracy. It employs a compound scaling approach adapted from EfficientNet, a bi-directional feature pyramid network (BiFPN) architecture for multi-scale feature fusion, and lightweight prediction heads, resulting in a model that achieves strong detection performance with minimal computational overhead. EfficientDet-D0 processes $512 \times 512$ inputs, utilizes an EfficientNet-B0 backbone, a 3-layer 64-channel BiFPN, and achieves 34.6 AP on the COCO test-dev benchmark with only 3.9 million parameters and 2.5 billion multiply-adds [1911.09070].

## 1. Compound Scaling Approach

EfficientDet-D0 is configured using a compound scaling strategy that jointly scales three network dimensions—resolution ($r$), depth ($d$), and width ($w$)—in a principled manner. The scaling is controlled by a compound coefficient $\phi$, such that:
\[
r = \alpha^\phi,\quad d = \beta^\phi,\quad w = \gamma^\phi
\]
with the empirical constraint $\alpha \cdot \beta^2 \cdot \gamma^2 \approx 2$, ensuring that increments in $\phi$ double computational cost. For object detection, this compound scheme defines:

- Backbone scaling via EfficientNet-B$\phi$ multipliers
- BiFPN width and depth: $W_{\rm BiFPN} = 64 \times (1.35)^\phi$, $D_{\rm BiFPN} = 3 + \phi$
- Box/class head depth: $D_{\rm head} = 3 + \lfloor \phi/3 \rfloor$, width tied to BiFPN width
- Input resolution: $R_{\rm input} = 512 + 128\phi$

For EfficientDet-D0 $(\phi=0)$, this configuration yields:

| Parameter             | Value for D0 |
|-----------------------|--------------|
| $W_{\rm BiFPN}$       | 64           |
| $D_{\rm BiFPN}$       | 3            |
| $D_{\rm head}$        | 3            |
| $R_{\rm input}$       | 512          |

This scaling design is inherited directly from EfficientNet and tailored for the needs of multi-scale object detection [1911.09070].

## 2. Input Resolution and Backbone Network

EfficientDet-D0 processes input images of size $512 \times 512$ using an EfficientNet-B0 backbone. EfficientNet-B0 itself is structured as follows:

- Stem: $3 \times 3$ conv, 32 channels, stride 2
- MBConv1, $3 \times 3$, 1 block, 16 channels (stride 1)
- MBConv6, $3 \times 3$, 2 blocks, 24 channels (stride 2)
- MBConv6, $5 \times 5$, 2 blocks, 40 channels (stride 2)
- MBConv6, $3 \times 3$, 3 blocks, 80 channels (stride 2)
- MBConv6, $5 \times 5$, 3 blocks, 112 channels (stride 1)
- MBConv6, $5 \times 5$, 4 blocks, 192 channels (stride 2)
- MBConv6, $3 \times 3$, 1 block, 320 channels (stride 1)

Feature maps are extracted at pyramid levels $P_3$~$P_5$; $P_6$ and $P_7$ are derived by successive $3\times3$ stride-2 depthwise convolutions on $P_5$ and $P_6$, respectively. The respective feature map sizes with 512×512 input are:

| Level     | Spatial Size  |
|-----------|---------------|
| $P_3$     | $64 \times 64$|
| $P_4$     | $32 \times 32$|
| $P_5$     | $16 \times 16$|
| $P_6$     | $8 \times 8$  |
| $P_7$     | $4 \times 4$  |

These five feature maps are passed to the BiFPN for subsequent fusion and processing [1911.09070].

## 3. BiFPN Architecture for Multi-Scale Fusion

The BiFPN (Bi-directional Feature Pyramid Network) within EfficientDet-D0 comprises $D_{\rm BiFPN} = 3$ layers, with each layer performing multi-level bidirectional fusion. Each BiFPN node merges inputs via a learned, weighted sum:
\[
\hat{P}_i = \frac{\sum_j w_j P_j}{\sum_j w_j + \epsilon}, \quad w_j \geq 0
\]
where $w_j$ are non-negative trainable coefficients and $\epsilon=10^{-4}$. All input feature maps are rescaled to uniform resolution prior to fusion, employing nearest-neighbor up/downsampling. The BiFPN exploits $3\times3$ depthwise separable convolutions at every spatial operation, followed by BatchNorm and the SiLU activation.

All BiFPN layers operate on 64 channels in D0. The design supports efficient, trainable exploitation of both top-down and bottom-up pathways at minimal additional computation, enabling effective multi-scale representation learning [1911.09070].

## 4. Prediction Heads and Anchor Design

On top of the BiFPN output, EfficientDet-D0 includes parallel box and class prediction heads, each structured as $D_{\rm head}=3$ consecutive $3\times3$ depthwise-separable convolutions (with BN and SiLU), using 64 channels. Both heads share parameters spatially across levels $P_3$ to $P_7$. The prediction heads process every BiFPN output to estimate bounding box coordinates (4 values per anchor) or class logits ($C$ scores per anchor, $C$ = number of classes).

Anchoring per feature level is realized as 9 anchors (3 aspect ratios × 3 scales), resulting in 45 anchors per spatial location when aggregated over five levels. EfficientDet-D0 applies identical head architecture for both regression and classification, promoting parameter efficiency without loss of task specialization [1911.09070].

## 5. Model Size, Efficiency, and Detection Performance

EfficientDet-D0 prioritizes compact model size and reduced arithmetic requirements. The summary of major metrics:

| Metric                           | Value             |
|-----------------------------------|-------------------|
| Number of parameters              | 3.9 million       |
| Multiply-Adds (FLOPs)             | 2.5 billion       |
| COCO test-dev AP                  | 34.6              |
| COCO test-dev AP$_{50}$           | 53.0              |
| COCO test-dev AP$_{75}$           | 37.1              |
| COCO val split mAP                | 34.3              |

These performance results are achieved using a single model and single-scale evaluation, with no test-time augmentation other than Soft-NMS. The efficiency metrics highlight the emphasis on resource-constrained detection, making D0 the baseline configuration in the EfficientDet family [1911.09070].

## 6. Training Procedure and Implementation

EfficientDet-D0 is trained for 300 epochs using a global batch size of 128 on 32-core TPU v3 devices. Key hyperparameters and techniques include:

- Optimizer: SGD with 0.9 momentum, weight decay $4 \times 10^{-5}$
- Learning rate: Linear warmup (0 $\rightarrow$ 0.16 over 1 epoch), then cosine decay to zero
- BatchNorm: Synchronized across replicas, decay 0.99, $\epsilon=10^{-3}$
- Activation: SiLU (Swish)
- Losses: Focal loss ($\alpha=0.25$, $\gamma=1.5$) for classification; smooth-L1 for box regression
- Anchor configuration: 3 scales × 3 aspect ratios per level
- Data augmentation: Random horizontal flip and “scale jitter” in $[0.1, 2.0]$ (input rescaled randomly by a factor in this range, then cropped/downsampled to $512\times512$)
- Test-time: Only Soft-NMS is used for post-processing

These training settings ensure reproducibility of the reported metrics and robust convergence of the EfficientDet-D0 detector [1911.09070].

Source: https://www.emergentmind.com/topics/efficientdet-d0