TL;DR
This paper introduces Deep Patch Learning (DPL), a unified convolutional neural network that performs object classification and discovery (localization) using only image-level labels. By treating images as "bags" of patches and optimizing a multi-task loss end-to-end, the model achieves state-of-the-art classification results and highly competitive localization while being significantly faster than previous multi-stage methods.
What Problem Does This Paper Address?
In computer vision, training a model to find objects usually requires "fine-grained" supervision—meaning humans must draw thousands of bounding boxes around objects. This is incredibly labor-intensive. On the other hand, "weakly supervised" learning only requires image-level tags (e.g., "this image contains a dog"), which are much easier to collect.
The challenge is that image-level labels don't tell the model where the object is or which specific pixels represent it. Previous attempts to solve this often used multi-stage pipelines that were slow, required massive disk space for intermediate features, and couldn't be optimized as a single system. This paper aims to bridge that gap with an efficient, end-to-end deep learning framework.
Methods
The authors propose the Deep Patch Learning (DPL) framework, which views the problem through the lens of Multiple Instance Learning (MIL). In MIL, an image is a "bag" and its patches are "instances." If an image is labeled "dog," at least one patch must contain a dog; if it's labeled "no dog," every patch must be dog-free.
Key technical innovations include:
- Shared Convolutional Computation: Inspired by Fast R-CNN, DPL passes the whole image through convolutional layers once. Patches (generated via Selective Search) then share these features, drastically reducing computation time compared to models that process each patch independently.
- Two-Stream Architecture: After the initial layers, the network branches into two specialized blocks:
- Classification Block: Encodes patches into semantic "parts" and aggregates them using Spatial Pyramid Matching (SPM) to create a global image representation.
- Discovery Block: Acts as an instance classifier that scores each patch. The highest-scoring patch is used to "discover" the object's location.
- End-to-End Multi-task Learning: The model optimizes both blocks simultaneously via backpropagation. This allows the classification task (which looks for parts) and the discovery task (which looks for the whole object) to inform and improve each other.
Datasets
The researchers evaluated their method on two gold-standard benchmarks:
- PASCAL VOC 2007: 9,962 images across 20 categories.
- PASCAL VOC 2012: 22,531 images across 20 categories. Both datasets are challenging due to complex backgrounds, varied object scales, and multiple objects per image.
Key Insights and Ideas
- Complementary Tasks: The most striking finding is that classification and discovery are mutually beneficial. Classification tends to focus on discriminative parts (like a bird's head), while discovery aims to find the whole object. Training them together improved the localization accuracy (CorLoc) by 3.1%.
- Patch Encoding as "Part" Learning: The model learns a weight matrix that effectively acts as a dictionary of object parts. Visualizations show specific neurons firing for "bicycle wheels" or "human heads," even though the model was never explicitly told what those parts look like.
- Efficiency Matters: By sharing convolutional features, the model is 2-4x faster during testing than previous state-of-the-art methods like HCP, making it more viable for real-world applications.
Key Results
- Classification: DPL achieved 92.7% mAP (mean Average Precision) on VOC 2007 using a VGG16 backbone, setting a new state-of-the-art for single-model weakly supervised classification at the time.
- Discovery: The model produced highly competitive CorLoc (Correct Localization) scores, outperforming several dedicated MIL-based discovery methods.
- Speed: Testing takes only 1.85s (AlexNet) to 2.8s (VGG16) per image, significantly faster than competitors that feed patches into CNNs separately.
Limitations and Future Work
While DPL is powerful, it still relies on an external "proposal generator" (Selective Search) to suggest patches. If the proposal generator misses an object entirely, the model cannot find it.
The authors suggest that future work could involve:
- Integrating the patch generation process directly into the neural network (similar to Region Proposal Networks).
- Applying the DPL framework to even larger-scale datasets or different visual recognition tasks like action recognition in video.
Summary updated