TL;DR
CornerNet-Lite introduces two efficient variants of the state-of-the-art keypoint-based object detector, CornerNet, to solve its sluggish inference speeds. By either selectively processing image regions (CornerNet-Saccade) or streamlining the underlying neural network architecture (CornerNet-Squeeze), the authors achieve massive speedups. This makes keypoint-based detection viable for both high-accuracy offline processing and strict real-time applications, notably outperforming popular baselines like YOLOv3.
What Problem Does This Paper Address?
Keypoint-based object detection—where bounding boxes are formed by detecting and grouping keypoints like top-left and bottom-right corners—has emerged as a powerful, anchor-free paradigm in computer vision. The flagship model in this space, CornerNet, achieves state-of-the-art accuracy among single-stage detectors but suffers from a major drawback: it is incredibly slow, taking about 1.1 seconds per image to process.
Naively speeding up CornerNet by reducing the input image resolution or processing scales causes a massive drop in accuracy, making it less competitive than faster alternatives. This paper tackles this accuracy-efficiency tradeoff, aiming to make keypoint-based detection practical for real-world use cases that require either faster offline processing or strict real-time performance.
Methods
The authors tackle efficiency from two orthogonal directions, resulting in two distinct models collectively called CornerNet-Lite:
- CornerNet-Saccade (Reducing pixels processed): Inspired by "saccades" (rapid eye movements) in human vision, this variant uses an attention mechanism to avoid exhaustively processing every pixel. It first examines a downsized version of the full image to predict "attention maps" that indicate coarse object locations and scales. It then crops small regions around these locations and processes them at a higher resolution. To support this, the authors designed a custom, shallower backbone called Hourglass-54.
- CornerNet-Squeeze (Reducing processing per pixel): Designed for real-time constraints, this variant overhauls the network architecture to be ultra-compact. It integrates the "fire module" from SqueezeNet (which replaces expensive 3x3 convolutions with 1x1s) and depth-wise separable convolutions from MobileNets into the stacked hourglass architecture.
Datasets
The models are trained and evaluated on the standard MS COCO (Microsoft Common Objects in Context) dataset. No new datasets were introduced, allowing for direct benchmarking against existing state-of-the-art models.
Key Insights and Ideas
- Saccades can be multi-object: Unlike previous region-proposal networks (like Faster R-CNN) that process crops to find a single object, CornerNet-Saccade's crops can detect multiple objects at once. This drastically reduces the number of crops the network needs to process.
- Attention requires capacity: The authors attempted to combine both approaches into a single "CornerNet-Squeeze-Saccade" model but found it performed worse than Squeeze alone. The insight here is that generating accurate attention maps requires a certain level of network capacity; the ultra-lightweight Squeeze backbone simply wasn't powerful enough to guide the saccades effectively.
- Hourglass networks can be efficient: Historically, stacked hourglass networks were known for high accuracy in pose estimation and detection but were considered computationally heavy. CornerNet-Squeeze proves that with the right architectural tweaks, they can be adapted for highly competitive real-time performance.
Key Results
The authors tested all models on the same hardware (1080Ti GPU) for fair comparison:
- CornerNet-Saccade (Offline Efficiency): Achieved an Average Precision (AP) of 43.2% at 190ms per image. This is a 6.0x speedup over the original CornerNet, alongside a 1.0% increase in AP. It also reduced training GPU memory usage by over 60%, allowing it to be trained on just four GPUs instead of ten.
- CornerNet-Squeeze (Real-Time Efficiency): Achieved 34.4% AP at 30ms per image. This makes it both faster and more accurate than the popular real-time baseline YOLOv3 (which scored 33.0% AP at 39ms on the same hardware).
Limitations and Future Work
The primary limitation noted by the authors is the inability to effectively combine the two approaches. Because the Squeeze architecture lacks the capacity to generate accurate attention maps, and because it operates on a single scale (leaving less room for saccades to save compute), a unified "Squeeze-Saccade" model is currently unviable. Future work could explore finding the exact capacity threshold needed for attention mechanisms, potentially leading to a hybrid model that is both real-time and utilizes intelligent cropping.
Summary updated