NGC: A Unified Framework for Learning with Open-World Noisy Data

Zhi-Fan Wu, Tong Wei, Jianwen Jiang, Chaojie Mao, Mingqian Tang, Yu-Feng LiICCV 2021

Abstract

The existence of noisy data is prevalent in both the training and testing phases of machine learning systems, which inevitably leads to the degradation of model performance. There have been plenty of works concentrated on learning with in-distribution (IND) noisy labels in the last decade, i.e., some training samples are assigned incorrect labels that do not correspond to their true classes. Nonetheless, in real application scenarios, it is necessary to consider the influence of out-of-distribution (OOD) samples, i.e., samples that do not belong to any known classes, which has not been sufficiently explored yet. To remedy this, we study a new problem setup, namely Learning with Open-world Noisy Data (LOND). The goal of LOND is to simultaneously learn a classifier and an OOD detector from datasets with mixed IND and OOD noise. In this paper, we propose a new graph-based framework, namely Noisy Graph Cleaning (NGC), which collects clean samples by leveraging geometric structure of data and model predictive confidence. Without any additional training effort, NGC can detect and reject the OOD samples based on the learned class prototypes directly in testing phase. We conduct experiments on multiple benchmarks with different types of noise and the results demonstrate the superior performance of our method against state of the arts.

Introduction

In real-world machine learning applications, datasets are rarely perfectly curated. While traditional research often focuses on In-Distribution (IND) noise—where a sample is mislabeled as another known class (e.g., a "cat" labeled as a "dog")—practical web-scraped data frequently contains Out-of-Distribution (OOD) noise. These are samples that do not belong to any of the target categories, such as a picture of a car in an animal classification dataset.

The challenge of Learning with Open-world Noisy Data (LOND) requires models to handle both types of noise simultaneously. A robust system must not only learn to classify IND samples correctly despite label errors but also identify and reject OOD samples during deployment.

Illustration of the testing phase in LOND, where the model must classify known categories and detect OOD samples.

Methodology: Noisy Graph Cleaning (NGC)

The proposed Noisy Graph Cleaning (NGC) framework leverages the geometric structure of data in the feature space. It operates on the observation that clean samples of the same class tend to form dense clusters, while noisy samples appear as scattered outliers.

1. Graph-based Noise Correction

NGC constructs a $k$-nearest neighbor ($k$-NN) graph of the training data. By applying a label propagation algorithm, the framework "smooths" labels across the graph. This process effectively corrects mislabeled IND samples by aligning their labels with those of their nearest neighbors in the feature space.

2. Two-Stage Subgraph Selection

To isolate a "clean" training set, NGC employs a dual-filtering mechanism:

  • Confidence-based Filtering: Samples with low model predictive confidence are discarded, as they are likely OOD noise.
  • Geometry-based Filtering: NGC identifies the Largest Connected Component (LCC) for each class within the graph. The LCC represents the primary cluster of the true class, while smaller, isolated components are treated as noise and removed.

3. Contrastive Learning and Iterative Refinement

NGC integrates instance-level and subgraph-level contrastive losses. This encourages the model to pull clean samples of the same class together while pushing noisy samples away. This creates a feedback loop: improved feature representations lead to a more accurate $k$-NN graph, which in turn enables better data cleaning.

4. OOD Detection at Inference

During the testing phase, NGC utilizes learned class prototypes—the mean embeddings of cleaned training samples. A test sample is classified into a known category if it is close to a prototype; otherwise, it is rejected as an OOD sample based on a distance threshold.

Experiments and Results

The framework was evaluated on both synthetic and real-world noisy datasets.

  • Synthetic Benchmarks: Using CIFAR-10 and CIFAR-100 with injected OOD noise from TinyImageNet and Places-365. On CIFAR-100 with 50% IND noise and 20k OOD samples, NGC achieved 73.44% accuracy, outperforming the state-of-the-art DivideMix (69.84%).
  • OOD Detection: In the LOND setup, NGC achieved an AUROC of over 90% for OOD detection, significantly higher than traditional methods which typically hovered around 70-75%.
  • Real-World Data: On the WebVision-50 dataset, which contains natural web noise, NGC reached a top-1 accuracy of 79.16%, demonstrating its effectiveness in practical scenarios.

Conclusion

NGC provides a unified solution for the LOND problem by combining graph geometry with contrastive learning. While the method is robust, future work could focus on optimizing hyperparameters like the neighbor count ($k$) and scaling the graph construction process for billion-scale datasets using approximate nearest neighbor techniques.

Summary updated

BibTeX
@inproceedings{wu2021ngc,
  author = {Zhi-Fan Wu and Tong Wei and Jianwen Jiang and Chaojie Mao and Mingqian Tang and Yu-Feng Li},
  title = {{NGC: A Unified Framework for Learning with Open-World Noisy Data}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=vPQ502PfU1},
}
Figure