# CenterNet: Keypoint Triplets for Object Detection

Center keypoints reject incorrect boxes in corner-pair detectors

Kaiwen Duan, Song Bai, Lingxi Xie, Honggang Qi, Qingming Huang, Qi Tian · arXiv · 2019-4-17

- **Problem** CornerNet pairs two corner keypoints into a box without looking inside it, so many returned boxes match no object. Its FD rate stays high even at low IoU thresholds.
- **Method** CenterNet adds a center keypoint heatmap and keeps a corner-pair box only when a same-class center keypoint falls in a scale-aware central region. Center pooling and cascade corner pooling make the heatmaps more informative.
- **Results** With Hourglass-52, CenterNet reaches 41.6 AP single-scale and 43.5 AP multi-scale on MS-COCO, against 37.8 and 39.4 for CornerNet.

## Why corner pairs need a check

CornerNet represents each object by a top-left and a bottom-right keypoint, which removes the need for anchor boxes and gives accurate boundaries. The same pairing is the weak point: a corner pair says little about what lies between the two corners, so the grouping step cannot tell whether a pair belongs to a real object.

CornerNet reaches a 32.7 FD rate at IoU 0.05, so about a third of its boxes overlap the ground truth by less than 0.05, and the FD rate for small boxes is 60.3. The authors note that the fix of turning CornerNet into a two-stage detector with RoI pooling would let it look inside each box, but they consider that paradigm computationally expensive.

## A third keypoint as a verifier

CenterNet keeps the CornerNet corner-pair proposals and adds a center keypoint heatmap, so each object is a center keypoint plus a top-left and a bottom-right corner. The filter takes the top k center keypoints by score, remaps them to the input image with their offsets, and then checks each proposal.

For each box, the check builds a central region and keeps the box only if a center keypoint with the same class label falls inside that region. The box score is then replaced by the average of the top-left, bottom-right and center scores, and a box with no matching center keypoint is removed.

The region is built from the box corners through the following relations, where n is odd and sets the scale of the region: The y coordinates follow the same pattern, with ctl\_y and cbr\_y built from tl\_y and br\_y. Larger n gives a smaller central region, and the paper uses n equal to 3 for boxes below 150 in scale and n equal to 5 for larger boxes.

The authors choose a scale-aware region because a small central region loses recall on small boxes, while a large one loses precision on large boxes.

## Center pooling and cascade corner pooling

The authors argue that the geometric center of an object often lacks a distinctive visual pattern, since the middle of a body is rarely recognizable on its own. Center pooling therefore scores each pixel of the feature map by summing the maximum response along its horizontal direction and the maximum along its vertical direction.

Corner pooling in CornerNet takes maxima only along the boundary directions, which makes corners sensitive to edges. Cascade corner pooling first takes the maximum along a boundary, then searches inward from the location of that maximum and adds the two values, so corner features also see the object's interior. The inward direction depends on which side of the object the corner lies on, following the four boundary cases the authors describe.

Both operations are assembled from directional corner poolings: center pooling connects the left and right poolings in series and the top and bottom poolings in series. The cascade top corner pooling module places a left corner pooling before the top corner pooling, which is the change from the top corner pooling of CornerNet.

## Training objective and test-time assembly

The network is trained from scratch on 511 × 511 input images, which produce 128×128 heatmaps, with the data augmentation of CornerNet and the Adam optimizer. The total loss has the form below, where the first two terms are focal losses for the corner and center heatmaps. \\\[ L = L\_{codet} + L\_{cedet} + \\alpha L\_{copull} + \\beta L\_{copush} + \\gamma (L\_{cooff} + L\_{ceoff}) \\\]

The pull and push terms act on the corner embeddings, pulling together embeddings from the same object and pushing apart those from different objects. The offset terms are l1 losses for corner and center offsets, and the weights alpha, beta and gamma are set to 0.1, 0.1 and 1.

The model uses a batch size of 48 on 8 Tesla V100 (32GB) GPUs, with a maximum of 480K iterations. The learning rate is 2.5 × 10−4 for the first 450K iterations and 2.5 × 10−5 for the following 30K iterations.

At test time, the single-scale setting feeds the original and horizontally flipped images at their original resolution, while the multi-scale setting uses the scales 0.6, 1, 1.2, 1.5 and 1.8.

## MS-COCO test-dev results

With Hourglass-52 at 511 × 511 input, CenterNet511-52 reaches 41.6 AP single-scale and 43.5 AP multi-scale, against 37.8 and 39.4 for CornerNet under the same setting. Those gains are 3.8 AP points single-scale and 4.1 AP points multi-scale.

With Hourglass-104, single-scale AP rises from 40.5 to 44.9 and multi-scale AP from 42.1 to 47.0 over CornerNet. The abstract states that the 47.0 AP puts CenterNet at least 4.9% above all existing one-stage detectors.

The single-scale AP of CenterNet511-52 is 41.6, against 41.8 for Fitness R-CNN, which is a two-stage detector at 512 × 512 input. The single-scale CenterNet511-104 result of 44.9 is set against the 45.7 of D-RFCN + SNIP, but that two-stage entry is a multi-scale result, so the two numbers do not share a test protocol.

The 47.0 multi-scale AP of CenterNet511-104 is close to the 47.4 of PANet, which is also multi-scale. The authors point out that the two-stage entries use larger input images, which mainly helps small objects, so the match is not on equal input resolution.

The gains are largest for small objects: CenterNet511-52 raises small-object AP by 5.5 single-scale and 6.4 multi-scale, and CenterNet511-104 raises it by 6.2 single-scale and 8.1 multi-scale. The authors attribute this to the center keypoints, since a small incorrect box is less likely to contain a detected center keypoint.

For CenterNet511-104 at single scale, medium-object AP rises from 42.7 to 47.4 and large-object AP from 53.9 to 57.4. AR also rises, which the authors connect to the removal of incorrect boxes that had been pushing lower-scoring correct boxes down the ranking.

## Fewer incorrect boxes on validation

On the MS-COCO validation set, the overall FD rate of CornerNet511-52 is 40.4 and that of CenterNet511-52 is 35.1.

Those drops are 9.5 points and 9.6 points, which the authors link to the larger AP gain for small objects.

FD5 falls by 4.5 points for both CenterNet511-52 and CenterNet511-104 against their CornerNet counterparts, and the authors report decreases at every criterion they measure.

## Inference cost on one GPU

On an NVIDIA Tesla P100 GPU, CornerNet511-104 takes 300 ms per image and CenterNet511-104 takes 340 ms. CenterNet511-52 takes 270 ms per image on the same GPU, and the authors describe this as faster than CornerNet511-104 while still more accurate.

## Ablation of the three components

The ablation starts from CornerNet511-52 at 37.6 AP on the validation split and adds central region exploration, center pooling and cascade corner pooling one at a time. Central region exploration uses a conventional center heatmap branch and raises AP to 39.9, with small-object AP moving from 18.5 to 23.1. Large-object AP stays almost flat at 52.2 to 52.3, which the authors explain by the center keypoint being easier to locate for small objects.

Center pooling added on top raises AP from 39.9 to 40.8 and large-object AP from 52.2 to 53.6. A conventional-convolution branch changed large-object AP by only 0.1, so the authors credit center pooling for the larger large-object gain.

On the CornerNet511-52 baseline, cascade corner pooling alone raises AP from 37.6 to 38.3 and AR100 from 74.0 to 75.8. On the CenterNet511-52 configuration it raises AP by 0.5, from 40.8 to 41.3. The authors suggest that the richer interior patterns let corners see more objects, but may also cause some inaccurate boxes, and large-object AP barely changes on the baseline.

With all three components, large-object AP reaches 55.8, which the authors attribute to the central region suppressing inaccurate boxes.

## Ground-truth center keypoints as an oracle

AP rises from 41.3 to 56.5 for CenterNet511-52 and from 44.8 to 58.1 for CenterNet511-104.

The authors conclude that center keypoint detection is far from the bottleneck, which is a reading of an oracle run rather than a deployable setting. The method depends on the center keypoints, so a missed center keypoint means the box's interior is never checked.

## Limitations

The two-stage entries in the test-dev table use larger input images, so the comparison with them is not on matched resolution. Speed is compared only with CornerNet, and CenterNet511-104 takes 340 ms against 300 ms for CornerNet511-104 on the P100 measurement.

The component ablations use only the Hourglass-52 backbone on the validation split of 5K images. The region rule uses one threshold of 150 and two values of n, and the paper reports no sweep over either choice.

The authors expect the center branch to transfer to other one-stage detectors such as SSD, and they leave this and advanced training strategies for future work, so no such experiment is reported.

## Paper info

- **Authors**: Kaiwen Duan, Song Bai, Lingxi Xie, Honggang Qi, Qingming Huang, Qi Tian
- **Venue**: arXiv · Preprint
- **First published**: 2019-4-17
- **Added**: 2026-11-12
- **Updated**: 2019-4-19
- **Version**: v3
- **arXiv**: 1904.08189
- **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/1904.08189v3) · [PDF ↗](https://arxiv.org/pdf/1904.08189v3)

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

Kaiwen Duan, Song Bai, Lingxi Xie, Honggang Qi, Qingming Huang, Qi Tian (2019). CenterNet: Keypoint Triplets for Object Detection. arXiv:1904.08189v3. https://arxiv.org/abs/1904.08189v3

**BibTeX**

```
@misc{duan2019centernet,
  title = {{CenterNet: Keypoint Triplets for Object Detection}},
  author = {Kaiwen Duan and Song Bai and Lingxi Xie and Honggang Qi and Qingming Huang and Qi Tian},
  year = {2019},
  eprint = {1904.08189},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.08189v3}
}
```

## Other paper commentary

- [SlowFast Networks for Video Recognition](https://refivu.com/en/papers/f84c7c1a-0798-4d78-bcc9-020ba5b4e4b1-slowfast-networks-for-video-recognition.md)
- [Temporal Segment Networks: Towards Good Practices for Deep Action Recognition](https://refivu.com/en/papers/4ab41218-ea1b-4152-8de5-9a1821a733af-temporal-segment-networks-towards-good-practices-for-deep.md)
- [Ward's Hierarchical Clustering Method: Clustering Criterion and Agglomerative Algorithm](https://refivu.com/en/papers/f6ffd1cf-34b4-43fb-8682-2d02bbee1019-ward-s-hierarchical-clustering-method-clustering-criterion.md)
- [DARTS: Differentiable Architecture Search](https://refivu.com/en/papers/e93ed790-8383-46f1-928b-765de23e1c42-darts-differentiable-architecture-search.md)
- [Residual Dense Network for Image Super-Resolution](https://refivu.com/en/papers/01bf3f14-f3f5-49d6-9844-02a897713390-residual-dense-network-for-image-super-resolution.md)
- [AutoAugment: Learning Augmentation Policies from Data](https://refivu.com/en/papers/4b6d74c6-1851-4ea4-8417-b325823c633e-autoaugment-learning-augmentation-policies-from-data.md)
- [Relational inductive biases, deep learning, and graph networks](https://refivu.com/en/papers/0c3b2fdd-4cb0-4de6-974a-86a02b5eb284-relational-inductive-biases-deep-learning-and-graph-networks.md)
- [Variational Quantum Algorithms](https://refivu.com/en/papers/6d58f3e0-2a35-428c-950f-93a8daccb221-variational-quantum-algorithms.md)
- [Improved Regularization of Convolutional Neural Networks with Cutout](https://refivu.com/en/papers/d80e705e-3fc6-493a-8930-a9a747173bb7-improved-regularization-of-convolutional-neural-networks.md)
- [iCaRL: Incremental Classifier and Representation Learning](https://refivu.com/en/papers/1de3af5b-26d7-4577-82d5-dabe37a7e63a-icarl-incremental-classifier-and-representation-learning.md)

## Terms in this paper

- [Object detection](https://refivu.com/en/terms/113bfdb14049-object-detection)
- [AP](https://refivu.com/en/terms/476f7c8deadf-ap)
- [MS-COCO](https://refivu.com/en/terms/3c7d75a4a2eb-ms-coco)
- [Inference time](https://refivu.com/en/terms/e758873451fd-inference-time)
- [heatmap](https://refivu.com/en/terms/db912df5b4bc-heatmap)
- [Soft-NMS](https://refivu.com/en/terms/2394dbd2b1ba-soft-nms)
- [CenterNet](https://refivu.com/en/terms/98011a89a2d1-centernet)
- [CornerNet](https://refivu.com/en/terms/58a6465e45b6-cornernet)
- [AR](https://refivu.com/en/terms/832c13f205cb-ar)
- [central region](https://refivu.com/en/terms/35bdfe2af8c5-central-region)
- [corner pooling](https://refivu.com/en/terms/c2990c769b4b-corner-pooling)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/f08ac102-1d96-4756-a172-5c1d6ab4ebfb-centernet-keypoint-triplets-for-object-detection)
