Introduction
Semantic segmentation—the task of assigning a category label to every pixel in an image—is a cornerstone of computer vision. However, its progress is often bottlenecked by the requirement for massive amounts of pixel-level "ground truth" annotations, which are expensive and time-consuming to produce. Weakly Supervised Semantic Segmentation (WSSS) offers a solution by utilizing cheaper labels, such as image-level tags (e.g., "this image contains a car").
The standard tool for WSSS is the Class Activation Map (CAM), which identifies the pixels a classifier used to make its decision. Despite their utility, CAMs suffer from a significant "sparsity" problem: a classifier only needs to identify a small, highly discriminative part of an object (like a bird's beak or a car's wheel) to categorize the image, leaving the rest of the object unmasked. This paper introduces a novel approach that leverages the temporal variation in web videos to "fill in" these sparse masks, creating more complete object representations for training.
Methodology: Temporal Aggregation
The proposed "webly-supervised" pipeline utilizes the movement found in YouTube videos to expand the coverage of CAMs. The process follows four key stages:
- Classifier Training: A standard classifier is trained on a clean image dataset using image-level labels.
- Video Harvesting & Filtering: Videos are collected based on class keywords. To handle the inherent noise of web data, the pre-trained classifier filters out frames that do not contain the target object or are incorrectly labeled.
- Frame-to-Frame Aggregation: This core innovation exploits the fact that as objects or cameras move, different frames highlight different discriminative parts of the same object. By generating CAMs for a sequence of $K$ frames and using Optical Flow (via PWC-Net) to calculate pixel movement, the system "warps" activations from adjacent frames onto a reference frame. Taking the union of these warped activations results in a significantly more complete mask.
- Segmentation Training: These aggregated masks serve as proxy ground truth to train a segmentation network (e.g., VGG-16 or ResNet-101), utilizing domain adaptation to bridge the gap between noisy web videos and clean benchmark images.
Experimental Results
The method was evaluated on the PASCAL VOC 2012 benchmark, setting a new state-of-the-art for weakly supervised methods. On the test set, the approach achieved a mean Intersection-over-Union (mIoU) of 65.0% with VGG-16 and 67.4% with ResNet-101. Notably, this technique outperformed several existing methods that utilized stronger forms of supervision, such as saliency maps or bounding box annotations.
Furthermore, the video aggregation technique proved to be a versatile "plug-and-play" improvement. When integrated into existing WSSS frameworks like SEC or FickleNet, it consistently boosted performance by 3-10% mIoU.
Discussion and Key Insights
A critical finding of the research is the existence of a "sweet spot" for temporal aggregation. The authors determined that aggregating 5 frames ($K=5$) provides the optimal balance. While more frames theoretically offer more information, the accumulation of errors in optical flow estimation (drift) eventually leads to mask degradation.
Additionally, the method demonstrates remarkable data efficiency. It achieves superior results using only 15,000 video frames, a fraction of the data used by previous web-based methods that often required nearly a million samples. This suggests that the quality and temporal variety of the data are more important than sheer volume.
Conclusion and Future Work
By leveraging the temporal "slop" in web videos, this research provides a robust method for overcoming the sparsity of traditional CAMs. While the approach is currently limited by the accuracy of optical flow estimation and potential initial classifier bias, it demonstrates the immense potential of using uncurated web video as a source of rich, weakly supervised data. Future work may focus on more sophisticated domain adaptation techniques to further narrow the gap between web-harvested data and curated benchmarks.
Summary updated