A Perturbation Resilient Framework for Unsupervised Learning

Andreas Maurer, Daniela A. Parletta, Andrea Paudice, Massimiliano Pontil

Abstract

Designing learning algorithms that are resistant to perturbations of the underlying data distribution is a problem of wide practical and theoretical importance. We present a general approach to this problem focusing on unsupervised learning. The key assumption is that the perturbing distribution is characterized by larger losses relative to a given class of admissible models. This is exploited by a general descent algorithm which minimizes an $L$-statistic criterion over the model class, weighting small losses more. Our analysis characterizes the robustness of the method in terms of bounds on the reconstruction error relative to the underlying unperturbed distribution. As a byproduct, we prove uniform convergence bounds with respect to the proposed criterion for several popular models in unsupervised learning, a result which may be of independent interest. Numerical experiments with kmeans clustering and principal subspace analysis demonstrate the effectiveness of our approach.

Introduction

Unsupervised learning algorithms, such as k-means clustering and Principal Component Analysis (PCA), are notoriously sensitive to outliers. A single heavily corrupted data point can drastically skew learned representations or cluster centers. Traditional robust statistics often rely on pre-processing steps to detect and reject outliers. However, in unsupervised learning, "outliers" are an ill-defined concept because the hypothesis class of the learning process itself determines what data fits the underlying structure. This paper presents a general approach to learning robust models directly from perturbed data without relying on ad-hoc, model-independent outlier rejection rules.

Methodology: L-Statistics for Robust Learning

The core innovation is using L-statistics (L-estimators) as the objective function for empirical risk minimization. Given a candidate model, the algorithm calculates the loss (distortion) for each data point, ranks these losses, and computes a weighted average that heavily favors the smallest losses. For example, using a hard-threshold weight function completely ignores the top $1-\zeta$ fraction of the largest losses, effectively treating them as irrelevant noise.

To optimize this, we propose a general alternating minimization meta-algorithm:

  1. Sorting Step: Fix the model and sort the data points by their current losses.
  2. Descent Step: Fix the sorting (the weights) and update the model using a standard "descent oracle" (like a Lloyd-style update for k-means or an SVD update for subspace analysis).

This L-statistic objective has a bounded influence function, meaning no single data point can infinitely perturb the model. Furthermore, the paper provides rigorous dimension-free uniform convergence bounds showing that the estimation error decays at $O(n^{-1/2} \ln n)$ or better, ensuring the model trained on perturbed data performs well on clean test data.

Experimental Setup

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

  • Synthetic Data: 2D points generated from truncated Gaussians mixed with unstructured noise (uniform or Gaussian) to visualize clustering and subspace learning behavior.
  • Real Data: Fashion-MNIST, EMNIST, CIFAR-10, a Victorian-era text dataset, and the Iris dataset. These were artificially corrupted by sampling "inliers" from a few target classes and "outliers" from the remaining classes to simulate heavy contamination (up to 50% outliers).

Key Results

The proposed Robust K-Means (RKM) algorithm demonstrates superior resilience compared to standard k-means++ and robust baselines like Spherical Depth (SD).

Robust clustering and image reconstruction on corrupted Fashion-MNIST.

On corrupted Fashion-MNIST with 50% outliers, RKM successfully isolated the target classes. In contrast, standard k-means++ and SD were severely skewed by the background classes. Quantitatively, RKM consistently achieved the lowest reconstruction error on clean test data across various datasets. For instance, on CIFAR-10, RKM achieved an error of $31.07 \times 10^4$ compared to $95.57 \times 10^4$ for k-means++ and $96.42 \times 10^4$ for SD.

Test error comparison across different parameter settings.

Key Insights

  • Subset Modeling: Instead of explicit outlier detection, the L-statistic approach identifies the subset of data that can be modeled with the lowest error, bypassing the chicken-and-egg problem of unsupervised outlier detection.
  • Resilience to Mis-specification: In scenarios where the model is mis-specified (e.g., fewer clusters than present), RKM accurately finds the most prominent clusters and treats others as noise, whereas standard methods often produce a compromised "average" model.
  • NP-Hardness of Robustness: The authors prove that minimizing this robust objective for k-means is NP-hard even for $k=1$ (finding a robust mean). This justifies the use of an alternating descent heuristic rather than searching for a global optimum.
  • Efficiency: The alternating minimization is computationally efficient, scaling linearly with the number of data points $O(nkd)$, making it significantly faster than depth-based pre-processing methods.

Limitations and Future Work

A current limitation is the requirement to tune the threshold parameter $\zeta$, which represents the fraction of data to keep. This typically requires a rough estimate of the contamination level. Future work will focus on methods to automatically determine $\zeta$. Additionally, while the algorithm guarantees a descent property, it may converge to local minima. Extending this framework to supervised learning tasks like Canonical Correlation Analysis (CCA) is also a promising direction.

Summary updated

BibTeX
@misc{maurer2020perturbation,
  author = {Andreas Maurer and Daniela A. Parletta and Andrea Paudice and Massimiliano Pontil},
  title = {{A Perturbation Resilient Framework for Unsupervised Learning}},
  year = {2020},
  eprint = {2012.07399},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.07399},
}
Figure