Location-Sensitive Visual Recognition with Cross-IOU Loss

Kaiwen Duan, Lingxi Xie, Honggang Qi, Song Bai, Qingming Huang, Qi TianarXiv 2021

Abstract

This paper introduces LSNet, a unified framework that tackles object detection, instance segmentation, and human pose estimation by treating them as "location-sensitive visual recognition" tasks. By predicting an anchor point and a set of defining landmarks optimized with a novel Cross-IOU loss, LSNet achieves state-of-the-art results among anchor-free methods without needing highly specialized, task-specific network heads.

Introduction

Fine-grained visual recognition tasks—object detection, instance segmentation, and pose estimation—have traditionally been treated as distinct sub-fields due to their divergent output formats. Object detection typically requires rectangular bounding boxes, instance segmentation demands pixel-level masks, and pose estimation focuses on discrete skeletal keypoints. Consequently, researchers often design specialized network heads and loss functions for each specific task.

The primary challenge in unifying these tasks lies in the limitations of standard loss functions. Distance losses (e.g., smooth-$\ell_1$) are highly sensitive to object scale, while standard Intersection-over-Union (IOU) loss is mathematically undefined for discrete keypoints or complex, non-rectangular polygons. LSNet aims to overcome these hurdles with a single, elegant framework.

The LSNet Framework

LSNet is an anchor-free, two-stage architecture that abstracts any object into a central anchor point and a set of landmarks. For a bounding box, these landmarks are four extreme points; for a segmentation mask, they are 36 contour points; and for human pose, they are 17 joint keypoints.

LSNet unifies various visual recognition tasks by representing objects as a central anchor point and a set of task-specific landmarks.

By using this universal geometric representation, LSNet escapes the need for task-specific architectures. The network explicitly "looks" at these predicted boundaries or joints to extract rich, multi-scale visual features before making its final classification and refinement.

Key Technical Innovations

The success of LSNet rests on two major technical contributions: the Cross-IOU loss and Pyramid Deformable Convolutional Networks (DCN).

Cross-IOU Loss

Instead of trying to compute the area overlap of complex shapes, Cross-IOU evaluates the offset vectors from the anchor point to each landmark. It calculates an IOU-like ratio based on the length and direction of the predicted versus ground-truth vectors. This approach provides a global approximation of IOU that is mathematically valid for discrete points and inherently scale-invariant. Because it focuses on the ratio of overlapping vector components rather than absolute pixel distances, it naturally balances the loss across objects of varying sizes.

Architecture and Pyramid DCN

LSNet utilizes a Feature Pyramid Network (FPN) backbone. Once initial landmarks are predicted in the first stage, the model uses them to guide deformable convolutions. This "Pyramid DCN" allows the network to gather highly discriminative contextual clues from the exact edges or joints of an object, significantly improving classification and refinement accuracy.

The LSNet architecture features a backbone and FPN with two-stage locating heads that integrate Cross-IOU loss and DCN sampling.

Results and Discussion

Evaluated on the MS-COCO 2017 benchmark, LSNet demonstrated strong performance across all three target tasks:

  • Object Detection: Achieved a 53.5% box AP, setting a new state-of-the-art for anchor-free detectors and outperforming models like CenterNet and FCOS.
  • Instance Segmentation: Reached a 40.2% mask AP, outperforming previous contour-based methods by better handling complex, concave shapes.
  • Human Pose Estimation: Achieved a 59.0% AP. While slightly behind top-tier heatmap-based methods in pixel-perfect accuracy, it showed a remarkable ability to detect small, multi-scale poses often missed in ground-truth annotations.

Conclusion

LSNet demonstrates that geometry is a universal language for visual recognition. By abstracting diverse tasks into landmark prediction and introducing the scale-invariant Cross-IOU loss, the authors provide a powerful, unified alternative to specialized architectures. Future work may focus on closing the accuracy gap with heatmap-based methods for pose estimation and extending this unified approach to broader visual recognition challenges.

Summary updated

Abstract

Object detection, instance segmentation, and pose estimation are popular visual recognition tasks which require localizing the object by internal or boundary landmarks. This paper summarizes these tasks as location-sensitive visual recognition and proposes a unified solution named location-sensitive network (LSNet). Based on a deep neural network as the backbone, LSNet predicts an anchor point and a set of landmarks which together define the shape of the target object. The key to optimizing the LSNet lies in the ability of fitting various scales, for which we design a novel loss function named cross-IOU loss that computes the cross-IOU of each anchor point-landmark pair to approximate the global IOU between the prediction and ground-truth. The flexibly located and accurately predicted landmarks also enable LSNet to incorporate richer contextual information for visual recognition. Evaluated on the MS-COCO dataset, LSNet set the new state-of-the-art accuracy for anchor-free object detection (a 53.5% box AP) and instance segmentation (a 40.2% mask AP), and shows promising performance in detecting multi-scale human poses. Code is available at https://github.com/Duankaiwen/LSNet

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
COCO · MS-COCO test-devLSNet-CPVbox AP53.5%split: test-dev · testing=multi-scale · backbone=R2-101-DCN · verification=corner point verification
Source quote
L151: Comparisons to SOTA. We evaluate the detection accuracy of LSNet on the MS-COCO test-dev set, the results are shown in Table~\ref{tab:detection}. As Table~\ref{tab:detection} shows, our method is an anchor-free detector, with a backbone of ResNet-50, LSNet achieves a box AP of 44.8 % with 12.7 FPS, which has been competitive with other detectors that equipped with deeper backbones. When equipped with stronger backbones, LSNet performs even better. This benefits from our proposed cross-IOU loss. It helps the LSNet to locate the landmarks with high accuracy, the rich global information contained in the landmarks further promote the cross-IOU loss to regress the landmarks more accurately. With the additional corner point verification (CPV)~\cite{chen2020reppoints} and multi-scale testing~\cite{zhang2020bridging}, LSNet achieves a box AP of 53.5 %, which outperforms all the anchor-free detectors as we know.
COCO · MS-COCO test-devLSNetbox AP44.8%split: test-dev · backbone=ResNet-50
Source quote
L151: Comparisons to SOTA. We evaluate the detection accuracy of LSNet on the MS-COCO test-dev set, the results are shown in Table~\ref{tab:detection}. As Table~\ref{tab:detection} shows, our method is an anchor-free detector, with a backbone of ResNet-50, LSNet achieves a box AP of 44.8 % with 12.7 FPS, which has been competitive with other detectors that equipped with deeper backbones. When equipped with stronger backbones, LSNet performs even better. This benefits from our proposed cross-IOU loss. It helps the LSNet to locate the landmarks with high accuracy, the rich global information contained in the landmarks further promote the cross-IOU loss to regress the landmarks more accurately. With the additional corner point verification (CPV)~\cite{chen2020reppoints} and multi-scale testing~\cite{zhang2020bridging}, LSNet achieves a box AP of 53.5 %, which outperforms all the anchor-free detectors as we know.
COCO · test-devLSNetmask AP40.2%split: test-dev · epochs=30 · testing=multi-scale · backbone=R2-101-DCN
Source quote
L213: {LSNet~\dagger} │ {R2-101-DCN} │ {30} │ {40.2} │ {66.2} │ {42.1}
COCO · MS-COCO test-devLSNet (obj-box)AP55.7%split: test-dev · sample-assignment=object bounding boxes · keypoint-prediction=regression-only
Source quote
L289: Comparisons to SOTA. Unlike most of the human pose estimation methods that predict the keypoints using the heatmaps, LSNet predicts the keypoints using regression only. In the experiment, we use the object bounding boxes ('obj-box') and keypoint-boxes ('kps-box') to assign training samples, respectively. We will give a detailed discussion of the difference between the two methods in the Appendix~\ref{appendix_b}. On the MS-COCO test-dev set, LSNet reports an AP of 55.7% w/ obj-box and 59.0% w/ kps-box, respectively, which outperform CenterNet-reg~\cite{zhou2019objects} with the Hourglass-104 backbone. However, LSNet does not perform as well as the heatmap-based methods, and we analyze the reason as follows.
COCO · MS-COCO test-devLSNet (kps-box)AP59.0%split: test-dev · epochs=20 · backbone=X-101-64x4d-DCN · sample-assignment=keypoint boxes · keypoint-prediction=regression-only
Source quote
L289: Comparisons to SOTA. Unlike most of the human pose estimation methods that predict the keypoints using the heatmaps, LSNet predicts the keypoints using regression only. In the experiment, we use the object bounding boxes ('obj-box') and keypoint-boxes ('kps-box') to assign training samples, respectively. We will give a detailed discussion of the difference between the two methods in the Appendix~\ref{appendix_b}. On the MS-COCO test-dev set, LSNet reports an AP of 55.7% w/ obj-box and 59.0% w/ kps-box, respectively, which outperform CenterNet-reg~\cite{zhou2019objects} with the Hourglass-104 backbone. However, LSNet does not perform as well as the heatmap-based methods, and we analyze the reason as follows.
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
COCO · test-devPolarMask baselineAP36.2split: test-dev · epochs=24 · backbone=X-101-64x4d-DCN
Source quote
L207: PolarMask~\cite{xie2020polarmask} │ X-101-64x4d-DCN │ 24 │ 36.2 │ 59.4 │ 37.7 │ 17.8 │ 37.7 │ 51.5
BibTeX
@misc{duan2021location,
  author = {Kaiwen Duan and Lingxi Xie and Honggang Qi and Song Bai and Qingming Huang and Qi Tian},
  title = {{Location-Sensitive Visual Recognition with Cross-IOU Loss}},
  year = {2021},
  eprint = {2104.04899},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.04899},
}
Figure