# YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications

YOLOv6 redesigns the YOLO framework for fast detection on low-power industrial GPUs

Chuyi Li, Lulu Li, Hongliang Jiang, Kaiheng Weng, Yifei Geng, Liang Li and 12 more · arXiv · 2022-9-7

- **Problem** Detectors are usually benchmarked for speed on high-end GPUs, but industrial serving often runs on low-power hardware like the Tesla T4. Models tuned for the former can be too slow on the latter.
- **Method** YOLOv6 uses a size-dependent family of networks. Small models use RepBlock backbones that become plain 3×3 RepConv stacks at inference, while larger models use CSPStackRep Block instead.
- **Results** YOLOv6-N reaches 35.9% AP at 1234 FPS and YOLOv6-S reaches 43.5% AP at 495 FPS, both on a Tesla T4 at 640 input.

## Why the target hardware matters

Detectors are often benchmarked for latency on high-cost machines such as the V100, while serving systems frequently run on low-power GPUs like the Tesla T4. The YOLO family is the usual starting point for industrial detection because it balances speed and accuracy, and YOLOv5, YOLOX, PPYOLOE and YOLOv7 compete as efficient detectors to deploy.

Several gaps motivate the work. Re-parameterization is a strong technique that detection has barely used, and simply scaling a RepVGG-style network becomes impractical as the model grows. Quantizing re-parameterized detectors is also hard, because training and inference use different configurations, and label assignment and loss choices need rechecking for each architecture.

Training-time changes that improve accuracy without raising inference cost, such as knowledge distillation, are acceptable for deployment.

## Size-dependent backbones and neck

The backbone carries most of the computation, so the design starts there. Small models use RepBlock during training, a stack of RepVGG blocks with ReLU activations. At inference each RepBlock becomes a plain stack of 3×3 RepConv layers with ReLU.

The single-path form is chosen for hardware reasons. A 3×3 convolution is highly optimized on mainstream GPUs and CPUs, so the plain inference network runs efficiently while training keeps the richer multi-branch form.

As the model capacity grows, the parameters and computation of a single-path network grow quickly, so medium and large models use CSPStackRep Block instead. It has three 1×1 convolution layers, a stack of sub-blocks made of two RepVGG blocks during training or two RepConv layers at inference, a residual connection, and a cross stage partial connection.

The width and depth of the neck are adjusted to match each model size.

The head uses a hybrid-channel strategy: the middle 3×3 convolutions of each decoupled branch are reduced to one, and the head width scales together with the backbone and neck.

## Label assignment and loss choices

SimOTA treats label assignment as a global optimal transport problem and was used in an earlier YOLOv6 version. The authors found that it slowed training and sometimes became unstable, so they looked for a replacement.

Task Alignment Learning, taken from TOOD, replaces the IoU in the assignment with a unified metric that combines classification score and predicted box quality. On YOLOv6-N, TAL reaches 35.0% AP, against 34.5% for SimOTA and 32.5% for ATSS.

For classification, Focal Loss, Poly Loss, QFL and VariFocal Loss were compared on YOLOv6-N, S and M. VariFocal Loss gives 35.2%, 43.2% and 48.1% AP, against 35.0%, 42.9% and 48.0% for Focal Loss, so the gains are between 0.1 and 0.3 points and VFL was selected.

SIoU is used for YOLOv6-N and YOLOv6-T, while the other sizes use GIoU, although CIoU is 0.1 points above GIoU on YOLOv6-M.

Distribution Focal Loss models box locations as a discretized probability distribution, but it outputs 17× more regression values than standard box regression. On YOLOv6-N, DFL raises AP from 35.0% to 35.2% while FPS at batch size 32 falls from 1226 to 1022, so DFL is kept only for YOLOv6-M and YOLOv6-L.

Object loss lowers AP on all three sizes, from 35.0% to 33.9% on YOLOv6-N, from 42.9% to 41.4% on YOLOv6-S and from 48.0% to 46.5% on YOLOv6-M. The authors attribute this to the object branch turning the alignment in TAL from two tasks into three, and the object loss was discarded.

## Single-path versus multi-branch blocks by size

On YOLOv6-S the two blocks give close accuracy, 43.2% for RepBlock and 43.4% for CSPStackRep Block at channel coefficient 1/2. On YOLOv6-M the CSPStackRep Block at channel coefficient 2/3 reaches 48.1% AP against 47.9% for RepBlock, and on YOLOv6-L it reaches 50.1% AP in this ablation, which uses ReLU.

On YOLOv6-N and YOLOv6-M, Conv with SiLU gives the highest accuracy, at 36.6% and 48.9%, while RepConv with ReLU gives 35.2% and 48.1% at 1233 and 236 FPS. The chosen setting therefore trades a small accuracy loss for speed on the smaller models, while YOLOv6-L keeps Conv with SiLU.

On YOLOv6-L, a narrower and deeper neck gives 51.0% AP at 122 FPS, against 50.8% AP at 123 FPS for the wider and shallower neck. These ablation runs are separate from the main Table 1 runs, so their AP values are not directly interchangeable with the main-table entries.

## Stepwise effect of the network changes

The text gives the anchor-free paradigm as 51% faster than the anchor-based one, which the authors link to having 3× fewer predefined anchors.

## Self-distillation and longer training

The teacher is the same network in pretrained form, and the student matches the teacher's class predictions with KL divergence. Because DFL is used for box regression, the same divergence term is also applied to the box predictions. \\\[ L\_{KD} = KL(p\_{cls}^{t} \\\| p\_{cls}^{s}) + KL(p\_{reg}^{t} \\\| p\_{reg}^{s}) \\\]

The overall objective adds this term to the detection loss, \\\[ L\_{total} = L\_{det} + \\alpha L\_{KD} \\\], where \\( \\alpha \\) balances the two losses. The weight \\( \\alpha \\) follows a cosine decay, so soft labels from the teacher matter more early in training and hard labels matter more later.

On YOLOv6-L, AP rises from 51.0% without self-distillation to 51.4% with classification distillation only. Adding box-regression distillation gives 51.7%, and adding the weight decay gives 52.3%.

Extending training from 300 to 400 epochs raises AP from 35.9% to 36.3% on YOLOv6-N, from 40.3% to 40.9% on YOLOv6-T and from 43.4% to 43.9% on YOLOv6-S. In the main comparison, the self-distillation mark is applied to YOLOv6-M, YOLOv6-L-ReLU and YOLOv6-L, not to the N and S rows.

## Evaluation border and Mosaic fading

A half-stride gray border around each image helps detect objects near the edge, and removing it lowers the accuracy of YOLOv6. The authors link the problem to the gray padding used in Mosaic augmentation and tested switching Mosaic off in the last epochs, a schedule called fade.

At 640 input without Mosaic fading, YOLOv6-N reaches 36.0% AP with a 16-pixel border and 35.6% with no border. With Mosaic fading and no border, the same size reaches 36.0%, and a 634 input with a 3-pixel border and fading reaches 36.2%.

These gray-border runs use YOLOv6-N and YOLOv6-S trained for 400 epochs and YOLOv6-M trained for 300 epochs. With the 634 input and 3-pixel border with fading, YOLOv6-S reaches 43.7% AP, below 43.9% for the 640 input with a 16-pixel border and fading.

Appendix C varies the image size and border size, and the authors find each model has a different best border size. Inputs between 632 and 638 give about 0.3% higher AP on average than 640 input.

## Speed and accuracy against YOLO-series detectors

The YOLOv6 speed figures use FP16 TensorRT on a Tesla T4 at 640×640 input, with throughput at batch size 1 and batch size 32 and latency at batch size 1. Rows marked with an asterisk are re-evaluations of released models with the official code.

Against YOLOv5-N and YOLOv7-Tiny at 416 input, the authors report 7.9 and 2.6 AP points higher for YOLOv6-N.

YOLOv6-L reaches 52.5% AP at 10.2 ms latency, and the ReLU variant reaches 51.7% AP at 8.8 ms. The authors state that the ReLU variant is ahead of YOLOX-L, PPYOLOE-L and YOLOv7 in both accuracy and speed, which the table values support at 640 input.

## Quantization path for re-parameterized detectors

PTQ quantizes a trained model with a small calibration set and no further training, while QAT uses the training set to improve the quantized model. Re-parameterized blocks make PTQ fail, so the blocks are rebuilt and trained with RepOptimizer, which re-parameterizes gradients at each optimization step. This narrows the feature-map distribution and yields PTQ-friendly weights.

On the v1.0 YOLOv6-S, INT8 PTQ falls from 42.4 FP32 AP to 35.0, and training with RepOptimizer raises the INT8 result to 40.9. On v2.0, the FP32 model with RepOptimizer scores 43.1 and its INT8 PTQ result is 42.6, against 41.3 for INT8 PTQ of the model without it.

For v1.0, the sensitivity analysis uses MSE, SNR and cosine similarity on layer outputs, and the top-6 sensitive layers are kept in float. Partial QAT on the v1.0 model gives 42.3 AP at 503 FPS, against 42.1 at 528 FPS for full QAT.

Because the v2.0 release removes quantization-sensitive layers, full QAT is applied with channel-wise distillation from an FP32 teacher of the same network. Graph optimization then removes the inserted quantizers to recover accuracy and speed.

In Table 17, the authors' QAT strategy on YOLOv6-S gives 43.3 AP at 596 FPS at batch size 1 and 869 FPS at batch size 32, measured with TensorRT 8 on a Tesla T4. Among the quantized rows of that table, it has the highest AP and the fastest batch-size-1 throughput, while the FP16 YOLOv6-S row gives 43.4 AP. The method summary gives 42.3% AP for the same quantized model at 869 FPS, so the paper gives two AP values for this model.

## Limits of the evidence

DFL outputs 17× more regression values, which the authors say substantially slows training of small models, so DFL is used only for YOLOv6-M and YOLOv6-L. DFLv2 adds a further sub-network and computation burden, and it gives similar gains to DFL on these models.

In the authors' experience, SimOTA slowed training and sometimes fell into unstable training. This is a training observation from their runs, and it is not a separate measurement table.

Quantization results are given only for YOLOv6-S.

The main speeds are measured on a Tesla T4 with TensorRT 7.2, and the appendix repeats them with TensorRT 8.2, where YOLOv6-N reaches 1323 FPS at batch size 32. Absolute throughput therefore depends on the software version and hardware, so the numbers in different settings are not interchangeable.

The gray-border result for the 634 input is a single configuration, and the paper's input-size sweep covers the listed models rather than a broader set.

## Paper info

- **Authors**: Chuyi Li, Lulu Li, Hongliang Jiang, Kaiheng Weng, Yifei Geng, Liang Li, Zaidan Ke, Qingyuan Li, Meng Cheng, Weiqiang Nie, Yiduo Li, Bo Zhang, Yufei Liang, Linyuan Zhou, Xiaoming Xu, Xiangxiang Chu, Xiaoming Wei, Xiaolin Wei
- **Venue**: arXiv · Preprint
- **First published**: 2022-9-7
- **Added**: 2026-11-12
- **Updated**: 2022-9-7
- **Version**: v1
- **arXiv**: 2209.02976
- **Category**: cs.CV
- **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/2209.02976v1) · [PDF ↗](https://arxiv.org/pdf/2209.02976v1)

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

Chuyi Li, Lulu Li, Hongliang Jiang, Kaiheng Weng, Yifei Geng, Liang Li, Zaidan Ke, Qingyuan Li, Meng Cheng, Weiqiang Nie, Yiduo Li, Bo Zhang, Yufei Liang, Linyuan Zhou, Xiaoming Xu, Xiangxiang Chu, Xiaoming Wei, Xiaolin Wei (2022). YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications. arXiv:2209.02976v1. https://arxiv.org/abs/2209.02976v1

**BibTeX**

```
@misc{li2022yolov6,
  title = {{YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications}},
  author = {Chuyi Li and Lulu Li and Hongliang Jiang and Kaiheng Weng and Yifei Geng and Liang Li and Zaidan Ke and Qingyuan Li and Meng Cheng and Weiqiang Nie and Yiduo Li and Bo Zhang and Yufei Liang and Linyuan Zhou and Xiaoming Xu and Xiangxiang Chu and Xiaoming Wei and Xiaolin Wei},
  year = {2022},
  eprint = {2209.02976},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.02976v1}
}
```

## Other paper commentary

- [Empirical Evaluation of Rectified Activations in Convolutional Network](https://refivu.com/en/papers/05562fa8-4d7f-4a6f-abed-8f1989035781-empirical-evaluation-of-rectified-activations-in.md)
- [Recurrent Models of Visual Attention](https://refivu.com/en/papers/e3081a53-9c07-4905-a2ea-84f5e0eae03f-recurrent-models-of-visual-attention.md)
- [Brain Tumor Segmentation with Deep Neural Networks](https://refivu.com/en/papers/f8979d44-9f07-47e9-978e-db57b4a732e6-brain-tumor-segmentation-with-deep-neural-networks.md)
- [Wan: Open and Advanced Large-Scale Video Generative Models](https://refivu.com/en/papers/5df65928-6c5d-44a1-8dc4-c6ec40ae23b4-wan-open-and-advanced-large-scale-video-generative.md)
- [Colorful Image Colorization](https://refivu.com/en/papers/15523601-cc75-4645-8e4f-8d58aa39d74f-colorful-image-colorization.md)
- [Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Images](https://refivu.com/en/papers/f4c978c2-8ce0-412c-af24-4039197ac185-deep-neural-networks-are-easily-fooled-high-confidence.md)
- [A systematic study of the class imbalance problem in convolutional neural networks](https://refivu.com/en/papers/68d2ae65-6b32-4762-8915-c1b74804b262-a-systematic-study-of-the-class-imbalance-problem.md)
- [DeepFM: A Factorization-Machine based Neural Network for CTR Prediction](https://refivu.com/en/papers/d46f0084-9d39-4160-9e16-7e698dbfde00-deepfm-a-factorization-machine-based-neural-network-for.md)
- [A Survey of the Recent Architectures of Deep Convolutional Neural Networks](https://refivu.com/en/papers/108c5acb-7c6f-4ccb-b4c9-7174cc472551-a-survey-of-the-recent-architectures-of-deep.md)
- [Gated Graph Sequence Neural Networks](https://refivu.com/en/papers/9c16dbd2-8244-4b37-889b-5bd5ba9a31da-gated-graph-sequence-neural-networks.md)

## Terms in this paper

- [AP](https://refivu.com/en/terms/476f7c8deadf-ap)
- [focal loss](https://refivu.com/en/terms/55a77da0ac9c-focal-loss)
- [Latency](https://refivu.com/en/terms/884c3275b80a-latency)
- [self-distillation](https://refivu.com/en/terms/674370ad51c9-self-distillation)
- [post-training quantization](https://refivu.com/en/terms/7a204ed53df1-post-training-quantization)
- [Quantization-Aware Training](https://refivu.com/en/terms/de119edf0c80-quantization-aware-training)
- [Mosaic](https://refivu.com/en/terms/70c104f634b4-mosaic)
- [TensorRT](https://refivu.com/en/terms/3b72c3b211c1-tensorrt)
- [YOLOv5](https://refivu.com/en/terms/15742c2405fd-yolov5)
- [RepConv](https://refivu.com/en/terms/9c17eebf17fb-repconv)
- [SimOTA](https://refivu.com/en/terms/95bc27d167f7-simota)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/bc6c3631-b9ce-46cf-ba36-5bfffaf011ac-yolov6-a-single-stage-object-detection-framework-for)
