Abstract: Standard self-supervised learning (SSL) often clusters images based on prominent backgrounds rather than target objects. This paper introduces contrastive Instance Discrimination and Feature Decorrelation (cIDFD), a method that utilizes a reference "background-only" dataset to teach models which features to ignore. By applying a repulsive force between samples with similar backgrounds, cIDFD forces the network to focus on salient foreground features. Evaluated on datasets like Stripe MNIST and Birds400-ABC, cIDFD significantly improves clustering accuracy and produces cleaner, more human-friendly image clusters.
Introduction: The Challenge of Background Bias
In unsupervised representation learning, machines are tasked with grouping similar images without explicit labels. Modern techniques like Contrastive Learning achieve this by ensuring that different views of the same image have similar feature representations. However, machines are often too efficient at finding patterns, frequently prioritizing prominent background textures over the actual objects of interest.
As shown in the visualization above, if a dataset contains leopards and oranges photographed against a similar mesh fence, a standard SSL model may cluster them together based on the "mesh-ness" of the background. This background bias makes unsupervised clustering unreliable for real-world applications, such as medical imaging or industrial inspection, where the target signal is often subtler than the surrounding noise.
Methodology: The cIDFD Framework
The authors propose a two-stage framework called contrastive Instance Discrimination and Feature Decorrelation (cIDFD) to isolate target signals from background noise.
Two-Stage Learning
- Stage 1: Learning the Noise. The model first trains a "Background Module" ($f_\theta$) on a reference dataset containing only unimportant features (e.g., textures or landscapes). This module learns to extract high-resolution background features.
- Stage 2: Enhancing the Signal. The "Target Module" ($g_\psi$) is then trained on the primary dataset. It employs a novel contrastive instance discriminative loss that utilizes the frozen background features from Stage 1.
Weighted Repulsion and Decorrelation
The core innovation is the application of a "repulsive force" ($\alpha_{ij}$) when the model compares two images. If two images have highly similar backgrounds, the loss function increases the repulsion, effectively instructing the Target Module to ignore the shared background and find alternative features to distinguish the samples. Additionally, by incorporating feature decorrelation, the model ensures that learned dimensions are non-redundant, which is critical for effective spectral clustering.
Experimental Evaluation
The cIDFD method was evaluated across three datasets designed to test background/foreground separation:
- Stripe MNIST: Handwritten digits on artificial stripe patterns. cIDFD achieved a clustering accuracy (ACC) of 0.830, compared to 0.276 for standard IDFD, which was distracted by the stripes.
- CelebA-ROH: A facial dataset where target features (e.g., hats, receding hairlines) must be isolated from general facial structures. Accuracy reached 0.969.
- Birds400-ABC: Images of 144 bird species. Using a landscape reference dataset, the model achieved an ACC of 0.738, a ~25% improvement over the next best conventional method.
Qualitative UMAP visualizations show that while baseline models produce messy, overlapping blobs, cIDFD creates distinct, tight clusters corresponding to ground-truth classes.
Conclusion and Future Work
cIDFD provides a necessary inductive bias for unsupervised learning by using background data as a teacher for what to ignore. The primary limitation is the requirement for a curated reference background dataset, which may be difficult to obtain in some niche fields. Future work may explore automating the selection of reference data to extend this framework to more complex real-world environments, such as semiconductor manufacturing inspection.
Summary updated