Abstract
Object recognition is a fundamental problem in many video processing tasks. Accurately locating seen objects at low computation cost paves the way for on-device video recognition. We propose PatchNet, an efficient convolutional neural network to match objects in adjacent video frames. It learns the patchwise correlation features instead of pixel features. PatchNet is very compact, running at just 58MFLOPs, $5\times$ simpler than MobileNetV2. We demonstrate its application on two tasks, video object detection and visual object tracking. On ImageNet VID, PatchNet reduces the flops of R-FCN ResNet-101 by 5x and EfficientDet-D0 by 3.4x with less than 1% mAP loss. On OTB2015, PatchNet reduces SiamFC and SiamRPN by 2.5x with no accuracy loss. Experiments on Jetson Nano further demonstrate 2.8x to 4.3x speed-ups associated with flops reduction.
The Efficiency Challenge in Video Processing
Deep learning has revolutionized object recognition, but high-performance models like ResNet or EfficientDet are computationally expensive. While suitable for powerful servers, this cost is a dealbreaker for real-time processing on edge devices like drones, smart cameras, or mobile phones.
In video, consecutive frames are highly redundant—the object in Frame 1 is usually very close to its position in Frame 0. Ideally, we should "match" the object from the previous frame rather than re-running a heavy detector from scratch. However, existing "cheap" methods like optical flow or standard correlation filters are either too slow (e.g., FlowNet) or too fragile to handle changes in scale and rotation. PatchNet fills this gap with a model that is both robust and incredibly tiny.
Methods: Patch-wise Correlation and Aggregation
PatchNet combines the simplicity of classical correlation filters with the learnability of Siamese neural networks. The architecture is designed to be significantly more efficient than standard Siamese approaches by focusing on local matching.
The architecture consists of three main components:
- Patch Correlation Layer: Instead of correlating the entire object template at once, PatchNet splits the template into a grid of small patches. It performs patch-wise correlation to create a multi-channel "similarity map."
- Aggregation Subnet: This is a shallow, 3-stage CNN that takes the multi-channel similarity map and distills it into a single-channel response map to localize the object's center.
- Hierarchical Bounding Box Regression: PatchNet uses the distribution of patch matches to hierarchically refine bounding box coordinates using only a few convolutional layers, overcoming the difficulty tiny models usually have with precise sizing.
The system operates on a skip-frame strategy: a heavy, accurate detector runs only on "keyframes," while the featherweight PatchNet handles all the "inter-frames" in between.
Key Insights
- Matching is Cheaper than Searching: Finding a "seen" object in a local neighborhood requires orders of magnitude less computation than finding an "unseen" object in a whole image.
- The Power of Patches: By breaking a template into patches, the model becomes robust to scale changes and distortions. If the object expands, the patches move further apart in the correlation map—a pattern the Aggregation Subnet easily learns.
- Spectral Bias: Learning in the Fourier domain allows the model to automatically ignore unreliable high-frequency noise, focusing instead on robust low-frequency structures.
- Extreme Efficiency: At 58 MFLOPs, PatchNet is roughly 5x simpler than MobileNetV2, making it one of the most compact tracking-oriented models available.
Results and Performance
- Hardware Speedups: On an NVIDIA Jetson Nano, PatchNet delivered real-world speedups of 2.8x to 4.3x.
- Video Detection: When paired with R-FCN ResNet-101, it reduced total computation by 4.9x with less than 1% loss in Mean Average Precision (mAP) on ImageNet VID.
- Tracking: On the OTB2015 benchmark, it sped up the popular SiamRPN tracker by 2.5x with zero loss in accuracy.
- Generalization: The same PatchNet weights were used for both detection and tracking tasks across different datasets without retraining, proving the model learns a fundamental matching capability.
Limitations and Future Work
PatchNet is designed for "short-range" matching and is not intended to handle long-term occlusions where an object disappears for extended periods. In such cases, the system falls back to the heavy keyframe detector. Future work will explore tighter integration with hardware-specific optimizers like TensorRT to further reduce latency on specialized edge silicon.
Summary updated