Paper commentary
YOLOv10: Real-Time End-to-End Object Detection
YOLOv10 drops NMS by training a second one-to-one detection head
- Problem YOLO detectors need non-maximum suppression at inference because one-to-many training gives several positive predictions per object. NMS adds latency and its hyperparameters change accuracy, which blocks clean end-to-end deployment.
- Method YOLOv10 trains a one-to-one head beside the one-to-many head on a shared backbone. At inference it keeps only the one-to-one head, so no NMS step is needed.
- Results On COCO, YOLOv10-S runs 1.8 times faster than RT-DETR-R18 at similar AP.
Where NMS holds YOLO back
A YOLO detector runs in two stages: the network forward pass, then NMS to remove duplicate boxes. During training, YOLOs usually assign one-to-many labels, so each object is matched to several positive predictions. That supervision is rich, but at inference NMS has to pick the best of those positives. The NMS step adds latency, and its hyperparameters change the final accuracy, which blocks clean end-to-end deployment.
DETR-style detectors skip NMS by matching one prediction to each object, and RT-DETR moved that design toward real-time speeds. Even so, when only the model forward pass is timed, RT-DETR still has room to improve against YOLOs. CNN detectors with one-to-one assignment also drop NMS, but they add inference overhead or lose accuracy on YOLOs.
So the open question is how to keep the strong one-to-many training signal without paying for NMS at run time.
Dual heads that keep NMS out of inference
The idea is to train with two heads, one for one-to-many and one for one-to-one, and to predict with only the second. The one-to-one head keeps the structure and optimization objectives of the original branch, but its labels come from one-to-one matching. Both heads train together on a shared backbone and neck, so those shared layers receive the one-to-many supervision.
At inference the one-to-many head is discarded, so the deployed model adds no cost and needs no NMS.
For the one-to-one head the authors pick the top-one prediction, which they say matches Hungarian matching with less extra training time. Both heads rank candidates with one metric, \( m(\alpha,\beta) = s \cdot p^{\alpha} \cdot \mathrm{IoU}(\hat{b}, b)^{\beta} \). Here p is the classification score, IoU compares the predicted box with the instance box, and s is a spatial prior that checks whether the anchor point lies inside the instance.
Each head gets its own α and β, written α_o2m, β_o2m and α_o2o, β_o2o, and these settings shape the supervision each head receives.
Why the two heads should agree
Regression targets don't conflict, since matched predictions share targets and unmatched ones are ignored. So the remaining supervision gap sits in the classification targets, which the authors measure with the 1-Wasserstein distance. The gap shrinks as the one-to-one pick ranks higher among the one-to-many positives, and it is smallest when that pick is the best positive.
They take r = 1 by default. After training, counting one-to-one pairs within the top-1, 5 and 10 one-to-many results shows better alignment under the consistent metric. On YOLOv8-S, the consistent setting with α_o2o = 0.5 and β_o2o = 6.0 scored 44.3 AP, while β_o2o = 2.0 scored 42.7. The authors also claim the consistent metric removes the need for hyperparameter tuning.
Cutting cost in the baseline design
So the classification head uses about 2.5 times the FLOPs and 2.4 times the parameters of the regression head. Since regression matters more to accuracy, the design swaps the classification head for two 3×3 depthwise separable convolutions and a 1×1 convolution.
A standard 3×3 stride-2 convolution does spatial reduction and channel increase in one step, which the authors consider costly. The decoupled version runs a pointwise convolution to change channels first, then a depthwise convolution to reduce resolution. This keeps more information through the downsampling and lowers the computational cost and parameter count.
The compact inverted block uses cheap depthwise convolutions for spatial mixing and pointwise convolutions for channel mixing. Stage redundancy is measured by intrinsic rank, the count of singular values of each stage's last convolution above a threshold. A lower rank means more redundancy, and in YOLOv8 deep stages and large models show lower ranks.
Instead of one block for every stage, stages are sorted by ascending rank and the bottleneck is swapped for the compact block in that order. The process stops as soon as a swap costs accuracy.
Large kernels and partial attention for accuracy
Large depthwise kernels widen the receptive field, but applied to every stage they add I/O overhead and latency in high-resolution stages. They can also contaminate the shallow features that small objects rely on. So the second 3×3 depthwise convolution in the CIB becomes 7×7, but only in deep stages. A parallel 3×3 depthwise branch is added through structural reparameterization to ease optimization, and it adds no inference cost.
Larger models already have a wide receptive field, so the large kernel is used only for the small scales.
Self-attention models global context well, but its computational complexity and memory footprint are high. PSA splits the channels into two halves after a 1×1 convolution and sends only one half through MHSA and FFN blocks. The two halves are then concatenated and fused by another 1×1 convolution. BatchNorm replaces LayerNorm for fast inference, and the query and key dimensions are halved relative to the value.
PSA sits only after Stage 4, the lowest-resolution stage, which keeps its cost low.
NMS-free training against YOLOv8 and RT-DETR
Against its baseline, YOLOv10-S scored 46.3 AP at 2.49 ms, compared to 44.9 AP and 7.07 ms for YOLOv8-S. The latency here is the end-to-end figure, measured on a T4 GPU with TensorRT FP16.
YOLOv10-S runs 1.8 times faster than RT-DETR-R18 at similar AP, with 2.8 times fewer parameters and FLOPs. RT-DETR-R18 scores 46.5 AP at 4.58 ms, so the speed comparison holds at similar accuracy. Against YOLOv9-C, YOLOv10-B matches the AP at 46% lower latency.
These numbers suggest the redesign improves the trade-off across scales, with the clearest gains at the small end.
Which design steps earn their cost
NMS-free training lowers the end-to-end latency of YOLOv10-S by 4.63 ms, while AP moves from 44.9 to 44.3. Training with only the one-to-many branch scores 44.9 AP at 7.07 ms, one-to-one alone scores 43.4 at 2.44 ms, and both heads together score 44.3 at 2.44 ms. The dual setup recovers most of the one-to-many accuracy at one-to-one latency.
On YOLOv10-S the efficiency steps take parameters from 11.2 M to 6.2 M and latency from 2.44 ms to 2.31 ms, with AP rising from 44.3 to 44.5.
To see which head limits accuracy, the authors swap predicted labels or boxes for ground truth. Replacing the predicted locations lifts AP to 64.5, compared to 59.9 when the labels are replaced. The authors read this as regression being the bigger bottleneck, which is why the classification head can be lightened.
Decoupled downsampling reaches 44.4 AP at 2.36 ms, compared to 43.7 AP at 2.33 ms for the baseline downsampling. With the compact block, AP goes from 43.7 for the inverted residual block to 44.5, and IRB-DW reaches 44.2. Replacing blocks in Stage 8 or Stage 4 keeps AP at 44.5, while adding Stage 7 drops it to 44.3.
On YOLOv10-S, large kernels raise AP from 44.5 to 44.9 and PSA raises it to 46.3, with latency rising from 2.31 ms to 2.34 ms and then to 2.49 ms. Against a transformer block, PSA scores 46.3 at 2.49 ms, compared to 46.0 at 2.54 ms. Removing the reparameterization branch costs 0.1 AP.
Limits of the NMS-free result
The NMS-free model still trails one-to-many training: YOLOv10-N is 1.0% AP behind, and YOLOv10-X shows no gap. The authors attribute the gap to capacity, since NMS-free matching needs more discriminative features. Average cosine similarity between anchor-point features falls as models grow, which the authors link to easier one-to-one matching.
The reported latencies come from a T4 GPU with TensorRT FP16, so other hardware is not covered. The main comparisons use training from scratch, without knowledge distillation or PGI. Large-kernel convolution is used only for small scales, so the M model gets no kernel gain. The experiments in these sections are on COCO. The authors say they will work on closing the gap in future work.
Paper info
- Authors
- Ao Wang, Hui Chen, Lihao Liu, Kai Chen, Zijia Lin, Jungong Han, Guiguang Ding
- Venue
- arXiv · Preprint
- First published
- 2024-5-23
- Added
- 2026-11-12
- Updated
- 2024-10-30
- Version
- v2
- arXiv
- 2405.14458
- Category
- cs.CV
- Original paper terms
- CC BY 4.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
Ao Wang, Hui Chen, Lihao Liu, Kai Chen, Zijia Lin, Jungong Han, Guiguang Ding (2024). YOLOv10: Real-Time End-to-End Object Detection. arXiv:2405.14458v2. https://arxiv.org/abs/2405.14458v2
BibTeX
@misc{wang2024yolov10,
title = {{YOLOv10: Real-Time End-to-End Object Detection}},
author = {Ao Wang and Hui Chen and Lihao Liu and Kai Chen and Zijia Lin and Jungong Han and Guiguang Ding},
year = {2024},
eprint = {2405.14458},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2405.14458v2}
}