Attend in Groups: A Weakly-Supervised Deep Learning Framework for Learning from Web Data

Bohan Zhuang, Lingqiao Liu, Yao Li, Chunhua Shen, Ian D. Reid

Introduction

Deep learning's success is largely predicated on the availability of massive, accurately labeled datasets like ImageNet. However, the manual effort required to curate such datasets is immense. An alternative is to harvest images from the web using search engine keywords. While scalable, this approach introduces significant "label noise"—a search for "black swan" might yield images of white swans, logos, or irrelevant scenery. Standard Convolutional Neural Networks (CNNs) are sensitive to these errors, as they treat every image-label pair as ground truth. This paper proposes a robust framework to distill visual knowledge from noisy web data without human intervention.

Methodology: Random Grouping and Attention

The proposed framework addresses label noise through two primary innovations: Random Grouping Training (RGT) and a specialized Attention Mechanism.

Random Grouping Training (RGT)

Instead of training on individual images, the model processes groups of $K$ images (typically 2 to 5) sharing the same keyword. By treating these groups as a single training instance, the probability of a completely incorrect label is drastically reduced. If the error rate for a single image is $\xi$, the probability that an entire group is mislabeled is $\xi^K$. This multi-instance learning approach ensures that as long as one image in the group is correct, the collective label remains valid.

Overview of the training and testing phases using Random Grouping Training.

The choice of group size $K$ involves a critical trade-off. While larger groups increase the statistical likelihood of including a correctly labeled image, they also reduce the total number of unique training instances and can lead to memory constraints. The authors identified $K=2$ or $K=3$ as the optimal balance for most web-scale datasets.

Attention Mechanism and Regularization

Grouping images introduces "distractor" features from mislabeled members. To counter this, an attention layer assigns weights to local regions across the grouped feature maps, effectively filtering out irrelevant visual signals. To ensure the model doesn't "hallucinate" features in noisy images, the authors implement attention regularization. By using a set of known negative images (images not belonging to any target category), the model is penalized for assigning high attention scores to irrelevant content, forcing it to be more discriminative.

Key Insights

The effectiveness of the framework stems from the synergy between grouping and attention. Mathematically, grouping significantly boosts label reliability; for instance, with a 20% noise rate, a group of three ($K=3$) is correct over 99% of the time. The attention mechanism then acts as a gatekeeper, identifying the "signature" of a class and ignoring images that do not match.

Visualization of attention maps for relevant (car) vs. irrelevant (dashboard) images.

As shown in the visualization above, the model learns to focus on the actual object (the car) while assigning negligible attention to irrelevant "noise" images (the dashboard) that might appear in a web search for car models. This selective focus allows the network to learn robust features even when a significant portion of the training data is technically incorrect.

Experimental Results

The framework's performance was validated across diverse benchmarks:

  • WebCars: A custom dataset of 213,072 noisy images for fine-grained car classification. The proposed method achieved 78.44% accuracy, a nearly 12% improvement over standard baselines.
  • CIFAR-10 with Synthetic Noise: Tested against controlled noise levels (30% to 50%). At the highest noise level (50%), the model maintained 67.15% accuracy, demonstrating superior robustness compared to contemporary noise-tolerant methods.
  • Web Data + ImageNet: Using 100 classes from ImageNet and their noisy web counterparts (~61,000 images), the model successfully distilled knowledge that generalized well to the clean ILSVRC2012 validation set.

Beyond classification, the model proved effective at re-ranking, successfully identifying and prioritizing correctly labeled images from raw web search results.

Conclusion

By combining the statistical reliability of image grouping with the selective power of attention, this framework provides a scalable solution for training deep models on uncurated web data. While it introduces some computational overhead and requires a set of negative samples for regularization, the gains in accuracy on noisy datasets represent a significant step toward truly autonomous visual learning.

Summary updated

BibTeX
@inproceedings{zhuang2017attend,
  author = {Bohan Zhuang and Lingqiao Liu and Yao Li and Chunhua Shen and Ian D. Reid},
  title = {{Attend in Groups: A Weakly-Supervised Deep Learning Framework for Learning from Web Data}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.311},
}
Figure