Tradeoff of generalization error in unsupervised learning

Gilhan Kim, Hojun Lee, Junghyo Jo, Yongjoo Baek

Introduction

In supervised learning, the bias-variance tradeoff is a foundational principle. It dictates that a model's complexity must be carefully balanced: a model that is too simple will underfit the data (high bias), while a model that is too complex will overfit the noise (high variance). However, in the realm of unsupervised learning—where the objective is to capture the underlying probability distribution of data rather than predicting a label—this tradeoff has historically been less clearly defined.

A recent study by researchers at Seoul National University, titled "Tradeoff of generalization error in unsupervised learning," addresses this gap. By proposing a new framework for decomposing generalization error, the authors demonstrate that unsupervised models, specifically Restricted Boltzmann Machines (RBMs), follow a U-shaped complexity curve that mirrors the behavior of supervised models.

The Decomposition Framework: Model Error vs. Data Error

In unsupervised generative modeling, the standard metric for performance is the Kullback-Leibler (KL) divergence, which measures the distance between the learned distribution and the "true" distribution of the data. Previous attempts to decompose this error often resulted in terms that lacked intuitive physical or statistical meanings.

The authors introduce a novel two-component decomposition for the Generalization Error (GE):

  1. Model Error (ME): This represents the structural limitation of the model architecture. It is defined as the KL divergence between the true distribution and the best possible distribution that the chosen model (e.g., an RBM with a specific number of hidden nodes) could theoretically represent. As model complexity increases, ME typically decreases.
  2. Data Error (DE): This represents the error incurred due to the finite and noisy nature of training samples. Even if a model architecture is capable of representing the true distribution, training on a limited dataset introduces statistical fluctuations. As model complexity increases, the model becomes more sensitive to these fluctuations, causing DE to rise.

This decomposition allows researchers to distinguish between errors caused by an inadequate model and errors caused by insufficient or noisy data.

Experimental Methodology

To validate this framework, the researchers utilized the Restricted Boltzmann Machine (RBM), a classic energy-based generative model. To ensure mathematical rigor and allow for exact calculations of the probability distributions, they focused on systems with a small visible layer (3x3 lattice).

The "ground truth" data were generated from two well-understood models in statistical physics:

  • 2D Ising Model: A mathematical model of ferromagnetism. The researchers tested the RBM across different phases: ferromagnetic (ordered), critical (highly correlated), and paramagnetic (disordered).
  • Totally Asymmetric Simple Exclusion Process (TASEP): A model for one-dimensional particle transport. This allowed the researchers to observe how the tradeoff behaves in non-equilibrium systems across various density regimes.

By varying the number of hidden nodes ($N_H$) in the RBM, the team could precisely track how ME and DE evolved as the model's capacity grew.

The U-Shaped Complexity Curve

The experiments confirmed that Generalization Error in unsupervised learning follows a distinct U-shaped curve relative to model complexity.

The Impact of Model Complexity

As the number of hidden nodes ($N_H$) increases, the Model Error (ME) drops because the RBM gains the representational power to approximate more complex distributions. However, this gain is eventually offset by the rising Data Error (DE). In the overparameterized regime, the RBM begins to "memorize" specific training configurations—a process the authors describe as "freezing," where the model's weights grow excessively large to assign high probability only to the samples it has seen.

Data Complexity and Optimal Architecture

The "sweet spot" or optimal $N_H$ is not universal; it depends heavily on the complexity of the underlying data. For the Ising model in a disordered paramagnetic state, a single hidden node is often sufficient. In contrast, during the critical phase—where long-range correlations are at their peak—the GE minimum shifts toward a higher $N_H$, indicating that more complex data requires a more complex model to minimize total error.

Scaling with Sample Size

The study also found that Data Error scales inversely with the number of training samples ($V^{-1}$). This relationship aligns with the Central Limit Theorem, confirming that DE is fundamentally a consequence of sampling noise. As the volume of training data increases, the DE curve flattens, allowing for the effective use of more complex models without immediate overfitting.

Practical Implications and Proxies

In real-world scenarios, the "true" distribution is unknown, making it impossible to calculate GE, ME, or DE directly. However, the authors demonstrated that the Log-Likelihood on a held-out test set serves as an excellent proxy for the Generalization Error. By monitoring the test log-likelihood, practitioners can identify the optimal model complexity ($N_H$) for their specific dataset without needing access to the underlying ground truth.

Conclusion and Future Directions

This research provides a theoretical bridge between supervised and unsupervised learning by clarifying the nature of the complexity tradeoff. While the study was limited to small-scale systems to maintain mathematical exactness, it sets the stage for several future inquiries:

  • Scaling to Deep Learning: Investigating whether these ME/DE scaling laws hold in deep generative models or high-dimensional datasets like images.
  • Double Descent: Exploring whether unsupervised models exhibit the "double descent" phenomenon observed in supervised learning, where error decreases again in extremely overparameterized regimes.
  • Regularization: Analyzing how techniques like L1 or L2 regularization specifically target and suppress the Data Error component.

By quantifying the tension between structural capacity and sampling noise, this framework offers a clearer roadmap for designing and training generative models.

Summary updated

BibTeX
@article{kim2023tradeoff,
  author = {Gilhan Kim and Hojun Lee and Junghyo Jo and Yongjoo Baek},
  title = {{Tradeoff of generalization error in unsupervised learning}},
  journal = {Journal of Statistical Mechanics Theory and Experiment},
  year = {2023},
  doi = {10.1088/1742-5468/ace42c},
}
Figure