How does Labeling Error Impact Contrastive Learning? A Perspective from Data Dimensionality Reduction

Jun Chen, Hong Chen, Yonghua Yu, Yiming Ying

Introduction

Self-supervised contrastive learning (CL) has emerged as a dominant paradigm in representation learning, primarily by training models to recognize that different "views" (augmentations) of the same image should be mapped to similar representations. This approach relies heavily on the label consistency assumption: the belief that semantic identity remains invariant under transformations like cropping, color jittering, or rotation.

However, in practice, this assumption is frequently violated. Aggressive augmentations, such as Random Resized Cropping (RRC), can produce views that lack the primary semantic object—for instance, a crop of a dog image that only contains a patch of a background blanket. When the model is forced to treat this "blanket" view and the original "dog" view as identical, it introduces a labeling error. This paper provides a rigorous theoretical framework to quantify these errors and proposes a practical solution using dimensionality reduction to filter out the semantic noise that drives them.

Theoretical Framework: Risk and Overlap

The impact of labeling errors is analyzed through the lens of downstream classification risk. The authors establish the first theoretical upper and lower bounds for this risk by accounting for two critical factors:

  1. Intra-class Overlap: The degree to which different views of the same class are correctly associated (desirable for learning).
  2. Inter-class Overlap: The degree to which views from different classes become indistinguishable due to aggressive augmentation (the source of labeling errors).

By quantifying these overlaps, the research demonstrates that labeling errors directly inflate the classification risk. Furthermore, the study identifies a "connectivity trade-off": while reducing the complexity of data can mitigate labeling errors, it can also reduce the connectivity of the augmentation graph, making it harder for the model to learn the relationships between diverse samples.

Methodology: Truncated SVD as a Semantic Filter

To address these labeling errors, the authors propose a preprocessing step using Truncated Singular Value Decomposition (SVD). The core intuition is that labeling errors often arise because the model focuses on high-frequency noise or fine-grained, non-semantic details that are easily distorted by augmentations.

By applying SVD to the original data and retaining only the top $q$ singular values, the researchers effectively create a "low-rank" version of the dataset. This process acts as a semantic filter, preserving the structural essence of the images while stripping away the noise most susceptible to labeling errors.

The "Goldilocks" Zone

A key finding is the existence of an optimal truncation parameter $q^*$.

  • If $q$ is too high, the data retains the high-frequency noise that causes labeling errors.
  • If $q$ is too low, the filter becomes too aggressive, discarding actual semantic information (e.g., the defining features of a "dog").

Similarly, the authors find that moderate embedding dimensions (typically between 512 and 1024) provide the best balance between error reduction and maintaining the graph connectivity required for effective contrastive learning.

Experimental Results

The proposed SVD-based approach was evaluated across several standard benchmarks, including CIFAR-10, CIFAR-100, STL-10, and TinyImageNet-200.

Performance Gains

Across the board, filtering data via SVD led to measurable improvements in top-1 accuracy for the SimCLR framework:

  • CIFAR-10: Accuracy increased from 68.82% to 69.87%.
  • STL-10: Accuracy improved from 71.54% to 73.12%.
  • TinyImageNet: The method showed consistent scalability to more complex categorical structures.

Synergy with Data Inflation

The researchers also combined SVD filtering with "data inflation"—the use of generative models to synthesize additional training samples. This combination proved particularly potent, pushing CIFAR-10 performance to 72.55%. The SVD method also demonstrated robustness across various augmentation strategies, including Cutout and HidePatch, consistently providing an average improvement of nearly 1%.

Conclusion and Future Directions

This research highlights that more data or more complex augmentations are not always beneficial if they introduce significant labeling errors. By viewing the problem through the lens of dimensionality reduction, the authors provide a simple yet effective tool—Truncated SVD—to enhance the reliability of contrastive learning.

While the current method uses a fixed truncation parameter $q$ for entire datasets, future work may explore adaptive low-rank approximations that adjust $q$ on a per-sample basis. Additionally, while this study focused on "false positives" (inter-class overlap), the theoretical exploration of "false negatives" (where views of the same class are pushed too far apart) remains a promising avenue for further investigation.

Summary updated

BibTeX
@inproceedings{chen2025how,
  author = {Jun Chen and Hong Chen and Yonghua Yu and Yiming Ying},
  title = {{How does Labeling Error Impact Contrastive Learning? A Perspective from Data Dimensionality Reduction}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=gVnGcm8E3d},
}
Figure