ANNE: Adaptive Nearest Neighbours and Eigenvector-based sample selection for robust learning with noisy labels

Filipe R. Cordeiro, Gustavo Carneiro

Abstract

Deep learning models are highly sensitive to the quality of training data, often memorizing noisy labels rather than learning generalizable features. This paper introduces ANNE (Adaptive Nearest Neighbors and Eigenvector-based), a novel sample selection framework designed to mitigate the impact of label noise. By integrating loss-based and feature-based filtering, ANNE dynamically partitions data into high and low confidence subsets. It applies Eigenvector decomposition (FINE) to high-confidence samples and a novel Adaptive K-Nearest Neighbors (AKNN) algorithm to low-confidence samples. Experimental results demonstrate that ANNE achieves state-of-the-art performance across synthetic and real-world datasets, including CIFAR-100 and WebVision, while maintaining competitive computational efficiency.

Introduction

The performance of deep neural networks is fundamentally tied to the availability of large-scale, accurately labeled datasets. However, real-world data often contains significant noise due to human error, ambiguous classification (e.g., distinguishing between similar animal species), or automated web scraping. Training on such "noisy labels" typically leads to overfitting on errors, which degrades the model's ability to generalize.

To address this, researchers have developed "Learning with Noisy Labels" (LNL) methods, primarily focusing on sample selection. These methods attempt to distinguish between "clean" and "noisy" samples during the training process. Traditional approaches generally rely on two signals: loss-based filtering (the "small-loss" hypothesis) or feature-based filtering (clustering in feature space). However, single-strategy methods often struggle to balance precision and recall across varying noise levels. ANNE addresses this gap by employing a hybrid, adaptive strategy that tailors its filtering mechanism to the local characteristics of the data.

The ANNE Framework

ANNE is built upon the existing SSR+ framework but introduces a more sophisticated multi-stage pipeline for sample selection. The core innovation lies in how it treats samples based on the model's current confidence level.

1. Dynamic Subset Partitioning

The framework begins by dividing the training set into two distinct groups: a High Confidence Subset (HCS) and a Low Confidence Subset (LCS). This is achieved using an Otsu threshold—a technique traditionally used in image processing for binarization—applied to the model's prediction scores. This allows the model to separate samples it is relatively sure about from those that are potentially noisy or difficult to learn.

2. HCS Filtering: The Eigenvector Approach

For the HCS, ANNE utilizes FINE (Factorizable Information-based Network Embedding). This method uses eigenvector decomposition to determine if a sample aligns with the dominant feature direction of its assigned class. In a relatively clean subset, this acts as a precision tool, pruning out the few remaining mislabeled samples that might otherwise be accepted.

3. LCS Filtering: Adaptive KNN (AKNN)

The LCS represents the messier portion of the data where standard filtering often fails. ANNE introduces Adaptive KNN (AKNN) to handle this group. Unlike standard KNN, which uses a fixed neighborhood size ($K$), AKNN dynamically adjusts $K$ based on local density. In sparse regions of the feature space, the algorithm expands its search to find a sufficient number of neighbors to make a reliable classification. This prevents the model from being misled by small clusters of mislabeled data that might appear consistent in a fixed-size neighborhood.

4. Relabeling and Semi-Supervised Learning

After filtering, the samples identified as "clean" are used for standard supervised learning. Samples identified as "noisy" are not discarded; instead, they are either relabeled or incorporated into the training process using a semi-supervised consistency loss (such as MixUp), ensuring the model benefits from the underlying feature information even if the original label was incorrect.

Experimental Evaluation

The authors evaluated ANNE against a variety of benchmarks to test its robustness across different noise types and scales.

Synthetic and Real-World Benchmarks

  • CIFAR-10/100: Tested with symmetric, asymmetric, and instance-dependent noise ranging from 20% to 90%.
  • WebVision: A large-scale dataset of 2.4 million images with inherent web-scraped noise.
  • ANIMAL-10N: A dataset specifically focused on confusing classes (e.g., wolves vs. huskies) to test performance on fine-grained label noise.

Key Results

ANNE demonstrated significant improvements over previous state-of-the-art (SOTA) methods. On CIFAR-100 with 20% noise, ANNE achieved an accuracy of 80.4%, surpassing the previous SSR+ benchmark of 79.7%. Notably, the framework remained robust even at 90% noise levels, where many competing methods suffered from total collapse.

On the massive WebVision dataset, ANNE reached a Top-1 accuracy of 81.96%, a substantial improvement over the 80.92% achieved by SSR+. Despite the added complexity of the dual-filtering strategy, the training time for ANNE is only approximately 1.3x that of SSR+, representing a highly favorable trade-off between performance and computational cost.

Discussion and Insights

The success of ANNE highlights several critical insights in the LNL field. First, the "small-loss" hypothesis is insufficient on its own; feature-based signals provide a necessary second dimension for validation. Second, the introduction of AKNN demonstrates that density-aware filtering is crucial for handling high-noise scenarios. By expanding the search neighborhood in sparse regions, the model avoids the "confirmation bias" that occurs when a model learns from its own mistakes in isolated clusters.

Furthermore, ANNE addresses the precision-recall trade-off in sample selection. While many methods achieve high precision by selecting only a tiny fraction of the data, ANNE maintains high precision while keeping a larger, more diverse pool of samples, which is essential for learning complex features.

Conclusion and Future Work

ANNE represents a significant step forward in robust learning, providing a framework that adapts to the quality of the data it processes. While the method currently requires some hyperparameter tuning (specifically for thresholds $\gamma_r$ and $\gamma_e$), it consistently outperforms existing methods on both synthetic and real-world noise.

Future research will focus on automating the hyperparameter selection process, allowing the framework to self-adjust based on an estimated noise rate of the dataset. Additionally, as benchmarks like CIFAR-10 reach saturation, the authors suggest that future LNL research should pivot toward more complex, real-world datasets where the distinction between "clean" and "noisy" is increasingly blurred.

Summary updated

BibTeX
@article{cordeiro2025anne,
  author = {Filipe R. Cordeiro and Gustavo Carneiro},
  title = {{ANNE: Adaptive Nearest Neighbours and Eigenvector-based sample selection for robust learning with noisy labels}},
  journal = {Pattern Recognition},
  year = {2025},
  doi = {10.1016/j.patcog.2024.111132},
}
Figure