Training CNN Classifiers Solely on Webly Data

Dominik Lewy, Jacek MandziukJ. Artif. Intell. Soft Comput. Res 2023 · DOI

Abstract

Deep learning models traditionally rely on massive, expert-labeled datasets, which are expensive and time-consuming to produce. This study investigates whether high-quality Convolutional Neural Network (CNN) classifiers can be trained using only noisy, user-tagged data from social media. By leveraging millions of Instagram images, the researchers demonstrate that models can achieve high accuracy on clean benchmarks without manual intervention. Surprisingly, automated data cleaning was found to be unnecessary, suggesting that the inherent noise in web data may serve as a beneficial form of regularization.

Introduction: The Data Bottleneck

The current era of computer vision is fueled by large-scale datasets like ImageNet and COCO. However, these datasets require thousands of hours of manual labor to ensure label accuracy. This "human-in-the-loop" requirement creates a significant bottleneck, hindering the rapid scaling of AI to niche domains or emerging trends.

This research explores a provocative alternative: using "webly" data. Social media platforms like Instagram provide a nearly infinite stream of images tagged with hashtags. While these tags are often noisy or inaccurate (e.g., a photo of a city skyline tagged as #ApplePie), the sheer volume of data presents an opportunity. Can standard CNN architectures learn to filter this noise and extract meaningful visual concepts?

Methodology

The researchers developed a systematic pipeline to test the efficacy of webly-supervised learning.

The experimental pipeline for training and evaluating CNNs on webly data.

The process begins with the automated collection of millions of images based on specific hashtags. These images are then used to train standard CNN architectures, specifically VGG16 and ResNet50. The study compared two primary training protocols:

  1. Training from scratch: Initializing the model with random weights.
  2. Fine-tuning: Starting with weights pre-trained on ImageNet (Transfer Learning).

A key component of the methodology was testing the impact of automated data cleaning. The authors implemented an ensemble-based approach to either correct labels (based on model consensus) or remove images where no consensus could be reached. Finally, all models were evaluated on "clean" test sets—curated benchmarks with high-quality, expert-verified labels—to measure their ability to generalize to real-world, non-noisy data.

Datasets

The study utilized three large-scale Instagram-based datasets:

  • InstaCities1M: 1 million images representing 10 major global cities.
  • InstaFood1M: 1 million images covering 10 popular food categories.
  • InstaPascal2M: 2 million images corresponding to the 20 object categories in the PascalVOC benchmark.
Examples from the InstaFood1M dataset, showing common food categories tagged on Instagram.

To validate the models, "clean" counterparts were used for testing, such as the Food-101 dataset and the official PascalVOC2007 test set. This ensured that the performance metrics reflected the model's true understanding of the visual concepts rather than its ability to memorize noisy social media tags.

Key Insights: The Noise Paradox

The most significant finding of the study was the "Noise Paradox": automated data cleaning did not improve performance. In many instances, models trained on raw, noisy data outperformed those trained on cleaned versions.

The authors hypothesize that the variety and noise inherent in web data act as a form of natural regularization. Instead of overfitting to a narrow, "perfect" set of examples, the model is forced to learn more robust and generalized features to navigate the inconsistencies of user-generated tags. This suggests that for large-scale training, quantity and diversity may be more important than absolute label precision.

Furthermore, while Transfer Learning from ImageNet provided a faster convergence rate, models trained from scratch on webly data eventually reached comparable performance levels. This indicates that webly data alone is sufficient to learn high-level visual representations.

Results and Performance

The results across different domains were promising:

  • Food Recognition: The ResNet50 model trained on InstaFood1M achieved 89.1% accuracy on the clean Food-101 test set.
  • Object Detection: On the PascalVOC benchmark, the webly-trained model reached 83.8% accuracy.
  • Scene Classification: InstaCities1M proved more challenging, with a peak accuracy of 82.5% on representative images. The lower performance here is attributed to the high visual overlap between different urban environments (e.g., similar-looking skyscrapers in different cities).

Scaling the datasets also showed clear benefits; doubling the training data size typically resulted in a 2–5 percentage point increase in accuracy, confirming that webly-supervised models benefit significantly from increased data volume.

Conclusion and Future Directions

This research demonstrates that expert-labeled data is not always a prerequisite for training high-performing CNNs. By embracing the noise of the web, researchers can build robust models at a fraction of the traditional cost.

However, limitations remain. The current approach struggles with complex scenes and category co-occurrence (e.g., confusing burgers with fries because they often appear together). Future work will likely focus on more sophisticated selection methods, such as self-supervised learning or intelligent data pruning, to further bridge the gap between webly-supervised and expert-supervised systems.

Summary updated

BibTeX
@article{lewy2023training,
  author = {Dominik Lewy and Jacek Mandziuk},
  title = {{Training CNN Classifiers Solely on Webly Data}},
  journal = {J. Artif. Intell. Soft Comput. Res.},
  year = {2023},
  doi = {10.2478/jaiscr-2023-0005},
}
Figure