YOLOv12: Attention-Centric Real-Time Object Detectors

Yunjie Tian, Qixiang Ye, David Doermann
2/18/2025
cs.CVcs.AI

No official code found. Best implementation: sunsmarterjie/yolov12 (2,954 stars, AGPL-3.0, last commit 2026-02-18). 1 more below.

Abstract

Enhancing the network architecture of the YOLO framework has been crucial for a long time, but has focused on CNN-based improvements despite the proven superiority of attention mechanisms in modeling capabilities. This is because attention-based models cannot match the speed of CNN-based models. This paper proposes an attention-centric YOLO framework, namely YOLOv12, that matches the speed of previous CNN-based ones while harnessing the performance benefits of attention mechanisms. YOLOv12 surpasses all popular real-time object detectors in accuracy with competitive speed. For example, YOLOv12-N achieves 40.6% mAP with an inference latency of 1.64 ms on a T4 GPU, outperforming advanced YOLOv10-N / YOLOv11-N by 2.1%/1.2% mAP with a comparable speed. This advantage extends to other model scales. YOLOv12 also surpasses end-to-end real-time detectors that improve DETR, such as RT-DETR / RT-DETRv2: YOLOv12-S beats RT-DETR-R18 / RT-DETRv2-R18 while running 42% faster, using only 36% of the computation and 45% of the parameters. More comparisons are shown in Figure 1.

View on arXivView PDF

Code Implementations(2)

AGPL-3.0

[NeurIPS 2025] YOLOv12: Attention-Centric Real-Time Object Detectors

2,954432Shell, PythonFeb 6, 20258 months agoAGPL-3.0

YOLOv12 from scratch in PyTorch — reimplementation of the official paper: https://arxiv.org/abs/2502.12524

10PythonJul 23, 20251 years ago

Similar Papers

Cite this paper

@article{tian2025yolov,
  title  = {YOLOv12: Attention-Centric Real-Time Object Detectors},
  author = {Yunjie Tian and Qixiang Ye and David Doermann},
  year   = {2025},
  eprint = {2502.12524},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12524v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.12524.svg)](https://codeofpaper.com/paper/2502.12524)

Discussion