CAPro: Webly Supervised Learning with Cross-modality Aligned Prototypes

Yulei Qin, Xingyu Chen, Yunhang Shen, Chaoyou Fu, Yun Gu, Ke Li, Xing Sun, Rongrong Ji

Introduction

Training state-of-the-art deep learning models typically requires massive, manually annotated datasets like ImageNet. To bypass the high cost of human labeling, researchers have turned to Webly Supervised Learning (WSL). In WSL, models learn directly from web images using search queries or user tags as labels. While this approach allows for massive scaling, it introduces a significant hurdle: web data is inherently noisy.

Beyond simple mislabeling, WSL faces a critical challenge known as semantic noise. This occurs when a query is polysemous—having multiple meanings. For instance, a search for "tiger cat" (a specific breed) might return images of actual tigers, or a search for "drumstick" might yield more fried chicken than musical instruments. Standard WSL methods often struggle in these scenarios because they lack a stable "ground truth" concept to anchor the learning process, leading the model to converge on incorrect visual patterns.

To address this, the CAPro (Cross-modality Aligned Prototypes) framework introduces a novel approach that leverages external textual knowledge to disambiguate visual noise and regularize the learning process through collective consistency.

Methodology

CAPro cleans web data during training through a multi-pronged strategy that integrates textual definitions with visual features.

1. Cross-Modality Aligned Prototypes

Rather than calculating a class prototype by simply averaging noisy visual features, CAPro utilizes formal textual definitions from WordNet (e.g., "a cat having a striped coat"). These definitions are encoded as textual prototypes. By using text as a semantic anchor, the model can identify which images actually align with the intended category definition, effectively filtering out polysemous noise.

2. Text Enhancement via Visual Guidance

Web metadata is frequently sparse or incomplete. CAPro addresses this by using a $k$-reciprocal nearest neighbor graph to identify visually similar images. It then "borrows" metadata from these neighbors to enhance the text description of a target image. This symbiotic relationship—where visual similarity improves text reliability—makes the subsequent text-matching process significantly more robust.

3. Semantic Alignment and Visual Prototypes

The system selects "clean" anchor images by matching their enhanced text against the formal textual prototypes. These anchors are used to initialize visual prototypes, which are then refined throughout the training process to represent the core visual characteristics of each class.

4. Collective Bootstrapping (CB)

Traditional bootstrapping methods update an image's label based on the model's own prediction for that specific image, which often leads to overfitting on noise (the "memorization effect"). CAPro instead implements a "dictionary look-up" mechanism. It compares a query image to a large queue (dictionary) of previously seen images and aggregates their predictions to create a collective pseudo-label. This ensures that visually similar images receive consistent label references, acting as a powerful regularizer.

Experimental Results

The authors evaluated CAPro on several large-scale benchmarks, demonstrating its superiority over existing methods like MoPro and VSGraph.

  • WebVision1k / Google500: On the massive WebVision1k dataset (2.4M images), CAPro achieved a 74.2% top-1 accuracy, setting a new state-of-the-art for webly supervised models.
  • Generalization to Clean Data: When tested on the curated ImageNet1k dataset—without ever seeing its labels during training—CAPro maintained a high accuracy of 68.0%. This indicates that the model learns robust, generalizable features rather than just memorizing web-specific shortcuts.
  • Multi-label and Open-Set Performance: On the noisy NUS-WIDE dataset, CAPro improved the mean Average Precision (mAP) by 9.7% over vanilla baselines. Furthermore, the model showed a superior ability to identify "out-of-distribution" images, a critical requirement for real-world deployment.

Discussion and Future Work

While CAPro represents a significant step forward, the authors note several areas for further research:

  • Intra-class Diversity: A heavy focus on "clean" prototypes may reduce the model's tolerance for atypical or rare examples within a category (e.g., a car that looks significantly different from the "prototype" car).
  • Knowledge Dependency: The system's efficacy is tied to the quality of the underlying language model and the WordNet hierarchy. Poor textual definitions can lead to poor visual alignment.
  • Domain Gap: A performance gap still exists between models trained on web data and those trained on perfectly curated datasets.

Future work may involve extending the CAPro framework to other modalities, such as audio and video, where uncurated web noise is even more prevalent.

Summary updated

BibTeX
@inproceedings{qin2023capro,
  author = {Yulei Qin and Xingyu Chen and Yunhang Shen and Chaoyou Fu and Yun Gu and Ke Li and Xing Sun and Rongrong Ji},
  title = {{CAPro: Webly Supervised Learning with Cross-modality Aligned Prototypes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=25HiFHPcXg},
}
Figure