Multiple Descents in Unsupervised Auto-Encoders: The Role of Noise, Domain Shift and Anomalies

Kobi Rahimi, Tom Tirer, Ofir Lindenbaum · Submission to ICLR 2025 · Rejected

TL;DR

While "double descent" is well-documented in supervised learning, this paper demonstrates that under-complete autoencoders (AEs) also exhibit model-wise, epoch-wise, and sample-wise double—and even triple—descent when trained on contaminated data. Crucially, scaling up to the over-parameterized regime does not just yield better reconstruction; it actively improves downstream performance in domain adaptation and anomaly detection.

What Problem Does This Paper Address?

In classical machine learning theory, the bias-variance trade-off dictates that increasing model capacity beyond a certain threshold leads to severe overfitting. Modern deep learning challenged this with the discovery of the double descent phenomenon: as model size increases past the "interpolation threshold" (the critical point where the model can fit training labels/noise perfectly), test error paradoxically drops again.

However, whether double descent occurs in unsupervised learning has remained contentious. Previous studies (e.g., Lupidi et al., 2023) argued that double descent does not occur in self-supervised autoencoders. This paper resolves that debate, explaining why previous work missed the phenomenon and demonstrating under what conditions multiple descents emerge in unsupervised representation learning.

Methods

The authors focus on under-complete autoencoders (both multi-layer perceptrons and convolutional neural networks) trained strictly via mean squared error (MSE) reconstruction loss:

  • Architecture Setup: Under-complete bottlenecks prevent the model from trivially learning the identity function. Model capacity is systematically scaled along two axes: the bottleneck dimension and the hidden layer/channel widths.
  • Data Contamination Models: To test the limits of unsupervised generalization, models are trained on corrupted source data and tested on clean data under four regimes:
  • Sample Noise: Gaussian noise added to a fraction $p$ of samples across a range of Signal-to-Noise Ratios (SNRs).
  • Feature Noise: Noise injected across a fixed subset of features across all samples.
  • Domain Shift: Perturbing projection matrices ($D'' = D + sD'$) or testing across distinct real-world collection batches.
  • Anomalies / Outliers: Injecting Gaussian outliers into clean training data controlled by a Signal-to-Anomaly Ratio (SAR).

Datasets

The authors validate their framework across synthetic and real-world benchmarks:

  • Synthetic Linear Subspace Data: Latent Gaussian vectors ($d=20$) mapped into ambient space ($n=50$), extending Lupidi et al.'s benchmark to negative SNR regimes and partial corruption.
  • Synthetic Non-linear Subspace Data: Latent features projected with higher-order polynomial components ($z, z^2, z^3$).
  • Single-Cell RNA Sequencing (scRNA-seq): 5 biological batches ('Baron', 'Mutaro', 'Segerstolpe', 'Wang', 'Xin') spanning 15 cell types and 1,000 prominent features, used to test real-world biological "batch effect" domain shifts.
  • CelebA Attributes: 40 binary attributes with 3,000 clean samples and substituted outliers for unsupervised anomaly detection.
  • MNIST & MNIST-M: Used for CNN autoencoders under synthetic noise and visual domain shift.

Key Insights and Ideas

  • Why Prior Studies Missed Double Descent: Prior negative results trained autoencoders at high SNRs (e.g., $+10\text{ dB}$). Double descent in unsupervised AEs requires low SNR (heavy noise) and an adequate fraction of contaminated samples. Under severe noise, models in the critical regime exhaust their capacity interpolating/memorizing noise, causing a spike in test loss on clean data.
  • Benign Overfitting in Unsupervised Learning: Sufficiently large, over-parameterized autoencoders have enough capacity to fit the noise while simultaneously recovering the true low-dimensional signal manifold.
  • Emergent Denoising: Even though models are trained simply to reconstruct corrupted inputs (not trained as explicit Denoising Autoencoders), over-parameterized CNNs spontaneously act as denoisers, whereas intermediate models produce heavily corrupted outputs.
  • Avoid the Critical Regime for Downstream Tasks:
  • Anomaly Detection: Intermediate models yield the worst ROC-AUC scores because corrupted clean samples receive high reconstruction errors. Very small models or over-parameterized models perform best.
  • Domain Adaptation: Over-parameterized models achieve superior cross-domain latent alignment (higher domain mixing measured by $k$-nearest neighbor domain adaptation tests, or KNN-DAT).

Key Results

  • Extensive Validation: Results reflect over 16,900 MLP models and 7,040 CNN models trained across 5–15 random seeds.
  • Multi-Descent Regimes: Identified double descent, triple descent (e.g., on scRNA-seq target domains like 'Wang'), and "final ascent" across model capacity, training epochs, and sample counts.
  • Noise Reduction Without Denoising Training (MNIST):
  • When trained with 50% noisy samples ($\text{SNR} = -15\text{ dB}$):
  • Under-parameterized model (3 channels): $\text{PSNR} = 18.76\text{ dB}$ on clean inputs.
  • Critical regime model (5 channels): $\text{PSNR} = 13.65\text{ dB}$.
  • Over-parameterized model (60 channels): $\text{PSNR} = 31.93\text{ dB}$ (recovering crisp digits).
  • Domain Adaptation (scRNA-seq): Testing models trained on 'Baron' against target domains showed that over-parameterized models achieved the best domain mixing ($\text{KNN-DAT} = 0.75$ vs. $0.93$ in the critical regime) alongside the lowest target reconstruction loss.

Limitations and Future Work

  • Theoretical Formalization: The paper provides empirical evidence and intuition, but lacks formal mathematical generalization bounds explaining non-linear unsupervised double descent.
  • Compute Constraints: Experiments were limited to relatively small datasets (e.g., 5,000 samples) and shallow architectures (single hidden-layer MLPs, 3-layer CNNs) due to the massive computational overhead of training tens of thousands of individual models across fine parameter grids.
  • Model Classes: Future research is needed to determine whether these multi-descent properties translate to modern generative paradigms such as Diffusion Models, VAEs, or large-scale foundation transformers.

Summary updated

Abstract

The phenomenon of double descent has recently gained attention in supervised learning. It challenges the conventional wisdom of the bias-variance trade-off by showcasing a surprising behavior. As the complexity of the model increases, the test error initially decreases until reaching a certain point where the model starts to overfit the train set, causing the test error to rise. However, deviating from classical theory, the error exhibits another decline when exceeding a certain degree of over-parameterization. We study the presence of double descent in unsupervised learning, an area that has received little attention and is not yet fully understood. We conduct extensive experiments using under-complete auto-encoders (AEs) for various applications, such as dealing with noisy data, domain shifts, and anomalies. We use synthetic and real data and identify model-wise, epoch-wise, and sample-wise double descent for all the aforementioned applications. Finally, we assessed the usability of the AEs for detecting anomalies and mitigating the domain shift between datasets. Our findings indicate that over-parameterized models can improve performance not only in terms of reconstruction, but also in enhancing capabilities for the downstream task.
BibTeX
@misc{rahimi2024multiple,
  author = {Kobi Rahimi and Tom Tirer and Ofir Lindenbaum},
  title = {{Multiple Descents in Unsupervised Auto-Encoders: The Role of Noise, Domain Shift and Anomalies}},
  year = {2024},
  eprint = {2406.11703},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.11703},
}

Loading related content...

Figure