Abstract
Mobile object detection is essential for modern applications, yet deploying multiple specialized detectors creates a significant storage and bandwidth bottleneck. We introduce SpotPatch, a novel framework that allows mobile devices to handle diverse detection tasks by sharing a single base model and adding tiny, task-specific "patches." By combining 1-bit weight residuals with a smart gating mechanism that updates only critical layers, SpotPatch achieves high accuracy with a fraction of the storage footprint required by traditional fine-tuning.
Introduction
Mobile object detection powers critical features like FaceID, augmented reality, and retail scanning. However, a major efficiency bottleneck exists: to achieve maximum accuracy, developers typically train independent models for each specific task. If each model requires 10MB, supporting ten features results in a 100MB download—a heavy tax on user storage and network bandwidth.
SpotPatch addresses this by representing task-specific detectors as a shared set of "base" weights plus a minimal set of additional weights for each task. This paper provides the first systematic investigation of parameter-efficient transfer learning specifically for the complex domain of object detection.
Methods
SpotPatch utilizes two primary techniques to minimize patch size:
- Task-Specific Weight Transform: Instead of full 32-bit floating-point weights, SpotPatch learns a 1-bit mask and a single scaling factor per layer. The new weights are calculated as the original weights plus a scaled version of this binary mask, creating a "residual" that is 32x smaller than the original tensor.
- Gating Mechanism: Recognizing that not every layer needs to change for a new task, SpotPatch introduces a binary "gate" for each layer. During training, the model learns which layers to "open" (patch) and which to "close" (reuse original weights).
The final model optimizes a multi-part loss function balancing detection accuracy against a sparsity penalty to minimize the number of patched layers.
The Detection Decathlon Benchmark
To evaluate SpotPatch, the authors established the Detection Decathlon. The process starts with a base model trained on OpenImages V4 (600 classes) and adapts it to nine diverse tasks including fine-grained categories (Birds, Cars, Dogs), domain-specific tasks (Kitti, Face, RPC), and general detection (COCO, Pascal VOC, Oxford-IIIT Pet).
Key Results and Insights
SpotPatch demonstrates significant advantages in both efficiency and performance:
- Performance vs. Size: SpotPatch achieved an average mAP of 64.4% across the Decathlon, nearly matching the state-of-the-art WeightTrans (65.2%) while maintaining a 24% smaller storage footprint.
- Compactness: Supporting 9 additional tasks required only an extra 35% of the original model's size, whereas dynamic routing baselines often require 300% to 1000% increases.
- Task-Adaptive Footprint: The model adapts to task difficulty; similar tasks (e.g., Pascal VOC) may only patch 2.8% of layers, while distinct tasks (e.g., Kitti) may patch nearly 70%.
- Layer Sensitivity: The first few convolutional layers and FPN upsampling layers rarely required patching, as they handle universal visual features like edges and textures.
Conclusion
SpotPatch offers a highly efficient solution for mobile object detection, particularly in 8-bit quantized environments where it provides 26-36% better parameter efficiency than competitors. While a small "performance tax" remains compared to full fine-tuning (67.3% mAP), SpotPatch significantly narrows the gap between efficiency and accuracy. Future work will focus on bridging this final accuracy gap without compromising the compact model size.
Summary updated