Paper commentary
YOLOv3: An Incremental Improvement
Tweaks to YOLO make a faster detector nearly as accurate as RetinaNet
- Problem Accurate one-stage detectors like RetinaNet take 3.8× longer per image than YOLOv3. The authors wanted to keep YOLO fast while closing its accuracy gap.
- Method YOLOv3 updates YOLO with design changes and a new Darknet-53 backbone. It predicts box offsets from prior boxes at three scales, instead of raw coordinates.
- Results At 608 × 608, YOLOv3 scored 57.9 AP50, compared to 59.1 for RetinaNet with ResNet-101-FPN.
Where the speed-accuracy gap stood
This report starts from YOLO and YOLO9000, and the authors frame the work as keeping YOLO fast while closing its accuracy gap. Their speed-accuracy plot places YOLOv3 on the fast side of the chart, with comparable accuracy to other detectors.
RetinaNet is the accurate reference that matters here, and its ResNet-101-FPN model reaches 39.1 AP on COCO. The authors note that RetinaNet takes 3.8× longer than YOLOv3 to process an image, which is the speed cost they want to avoid.
How each box is parameterized
The key idea is that the network predicts offsets from a prior box and its grid cell rather than raw coordinates. For a cell offset by \(c_x, c_y\) from the top-left corner, with a prior of width \(p_w\) and height \(p_h\), the center is \(b_x = \sigma(t_x) + c_x\) and \(b_y = \sigma(t_y) + c_y\). The width and height follow \(b_w = p_w e^{t_w}\) and \(b_h = p_h e^{t_h}\), so the exponential keeps both sizes positive.
Training uses a sum of squared error on the coordinates, where the error is the ground-truth offset minus the prediction. Each box gets an objectness score from logistic regression, set to 1 for the prior that overlaps a ground truth object most.
Class scores use independent logistic classifiers trained with binary cross-entropy loss, instead of a softmax. The authors need this because labels overlap in Open Images, such as Woman and Person, and a softmax would force one class per box.
Three scales and how features merge
The key idea is to predict boxes at three scales, so coarse semantic features and finer early features both feed the output. The design is similar to feature pyramid networks, with several convolutional layers added after the backbone.
The feature map from two layers earlier is upsampled by 2×, then concatenated with an earlier map from the network. A few more convolutional layers then process this merged map and predict a tensor twice the size of the previous one. On COCO each scale predicts 3 boxes per cell, so the tensor is N × N × [3 ∗ (4 + 1 + 80)].
The 9 priors come from k-means clustering, and they are spread evenly across the three scales. Because the final scale draws on all earlier computation and early fine-grained features, it inherits both kinds of information.
Darknet-53 as the feature extractor
The backbone combines the 3 × 3 and 1 × 1 convolutions of Darknet-19 with residual shortcut connections. It has 53 convolutional layers and is considerably larger than the YOLOv2 backbone. Its layer table lists filter counts from 32 up to 1024 and outputs from 256 × 256 down to 8 × 8.
Training uses full images, multi-scale training and data augmentation, with batch normalization. The authors skip hard negative mining, and they train and test with the Darknet framework.
ImageNet backbone results
Darknet-53 scored 77.2 top-1 and 93.8 top-5 on ImageNet, compared to 77.1 and 93.7 for ResNet-101. It runs 1.5× faster than ResNet-101 on a Titan X, and it is close to ResNet-152 at 77.6 top-1 while being 2× faster.
The authors also report the highest measured floating point operations per second for Darknet-53. They attribute this to the layer structure using the GPU well, while ResNets have too many layers to run efficiently.
COCO results against RetinaNet and SSD
The 608 × 608 model reaches 33.0 AP and 57.9 AP50 on COCO. Its 57.9 AP50 sits close to the 59.1 that RetinaNet with ResNet-101-FPN reaches. Averaged over IOU thresholds, its AP is 33.0 for YOLOv3 and 39.1 for that RetinaNet. The authors read this split as YOLOv3 producing decent boxes that become less exact as the IOU threshold rises.
YOLOv3 scores 18.3 APS, while YOLOv2 scored 5.0 APS on the same table. On medium and large objects it trails RetinaNet, with APM of 35.4 and APL of 41.9 compared to 42.7 and 50.2.
Compared with the SSD variants, YOLOv3 is about 3× faster while staying on par on COCO's mean AP. Plotted on AP50 against speed, YOLOv3 is both faster and better than the other systems the authors compare.
Changes that did not help
The authors tried a linear activation for the x,y offsets, which led to a couple of points of mAP lost. Predicting x,y offsets as multiples of box size with a linear activation also reduced model stability. Focal loss dropped mAP by about 2 points in their trials.
The authors suggest YOLOv3 may already be robust to the imbalance that focal loss targets, because its objectness and class predictions are separate. They say they aren't totally sure, which leaves this explanation as a hypothesis.
A Faster R-CNN style split with .7 as the positive threshold and .3 as the negative threshold also gave no good results here. The authors think some of these ideas could work with tuning to stabilize training, but their current formulation seems to sit at a local optimum.
Limits and open questions
Accuracy falls sharply as the IOU threshold rises, so the boxes are not tightly aligned with objects. Medium and large objects are weaker than in RetinaNet, and the authors say more investigation is needed to explain it. The COCO table reports a single YOLOv3 input size, 608 × 608.
The authors argue that humans struggle to tell an IOU of .3 from .5, which weakens the case for the average-AP metric. They still note that COCO's averaged AP is harder to match, and YOLOv3 is not as strong on it.
Paper info
- Authors
- Joseph Redmon, Ali Farhadi
- Venue
- arXiv · Preprint
- First published
- 2018-4-8
- Added
- 2026-11-11
- Updated
- 2018-4-8
- Version
- v1
- arXiv
- 1804.02767
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
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
Joseph Redmon, Ali Farhadi (2018). YOLOv3: An Incremental Improvement. arXiv:1804.02767v1. https://arxiv.org/abs/1804.02767v1
BibTeX
@misc{redmon2018yolov3,
title = {{YOLOv3: An Incremental Improvement}},
author = {Joseph Redmon and Ali Farhadi},
year = {2018},
eprint = {1804.02767},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1804.02767v1}
}