NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Labeling Distribution Matrix (LDM): A Tool for Estimating Machine Learning Algorithm Capacity

Pedro Sandoval Segura, Julius Lauw, Daniel Bashir, Kinjal Shah, Sonia Sehra, Dominique Macias, George D. MontañezICAART 2020

TL;DR

This paper introduces the Labeling Distribution Matrix (LDM) as a novel method to empirically estimate the "capacity" or representational complexity of machine learning algorithms. By analyzing how algorithms distribute probabilities over possible labelings of a holdout set across various training data permutations, the LDM aims to provide a more direct measure of an algorithm's ability to store and utilize information, potentially offering insights into overfitting and underfitting tendencies.

What Problem Does This Paper Address?

A fundamental challenge in machine learning is understanding and quantifying an algorithm's "capacity" – its ability to learn and represent complex relationships within data. While concepts like VC dimension and Rademacher complexity offer theoretical upper bounds, there's a need for empirical methods to directly measure this capacity. Knowing an algorithm's capacity could help predict whether it's likely to overfit (too much capacity) or underfit (too little capacity) a given dataset, guiding model selection and tuning. This paper aims to fill this gap by proposing a new empirical tool.

Methods

The core of the proposed method is the Labeling Distribution Matrix (LDM). The process involves:

  1. Generating Simplex Vectors: For a given classification model, it's trained on multiple, randomly generated training datasets. For each training dataset, the model is used to predict labels for a fixed holdout set. The output is a probability distribution over all possible labelings of the holdout set, represented as a "simplex vector."
  2. Constructing the LDM: These simplex vectors, generated from different training datasets, are arranged as columns to form the LDM.
  3. Dirichlet Distribution Inference: The authors hypothesize that these simplex vectors are samples from a Dirichlet distribution. They use an iterative method to infer the parameters (alpha priors) of this Dirichlet distribution.
  4. Entropy Calculation: The entropy of the inferred Dirichlet distribution is computed. A higher entropy is interpreted as indicating greater algorithm expressiveness and thus higher capacity, suggesting the algorithm can adapt to a wider range of data patterns.

Additionally, the paper introduces a Label Recorder as a complementary method, which directly measures an algorithm's ability to reproduce randomly assigned labels.

Datasets

The primary dataset used for evaluation is the Iris Dataset (Fisher, 1936), a standard benchmark in machine learning. The authors mention using this dataset by permuting its labels to create training and holdout sets with no inherent feature-label relationship, a crucial step for their capacity estimation approach. No new benchmarks were introduced.

Key Insights and Ideas

  • LDM as a Proxy for Capacity: The central idea is that an algorithm's flexibility in assigning probabilities to different labelings across varied training data reflects its underlying capacity.
  • Entropy as a Measure of Diversity: The entropy of the inferred Dirichlet distribution from the LDM columns serves as the quantitative measure of this capacity. Higher entropy implies more diverse labeling distributions, hence higher capacity.
  • Label Recorder's Promise: The Label Recorder, which tests an algorithm's ability to memorize random labels, shows more intuitive results and aligns better with traditional understanding of model complexity (e.g., KNN's capacity decreasing with higher K).

Key Results

  • The LDM was applied to various classifiers (Random Forest, Gaussian Naive Bayes, Gaussian Process Classifier, AdaBoost, QDA, Decision Tree, KNN variants).
  • The average entropy values from the LDM showed some interesting behaviors but were "not as conclusive or consistent as initially hoped." For instance, KNN-1 (expected to be most prone to overfitting) had a lower entropy than KNN-10.
  • The Label Recorder results, presented in Table 2, showed that unpruned Decision Trees and Random Forest had the highest estimated capacity, while bias-heavy models like QDA and Gaussian Naive Bayes had lower capacity. This aligns better with intuition.

Limitations and Future Work

  • LDM Inconsistencies: The paper acknowledges that the LDM process struggles to unambiguously combine the variation between output distributions and the confidence within individual distributions. Some results also contradicted traditional expectations of model flexibility (e.g., KNN behavior).
  • Negative Entropy: The LDM process yielded negative entropy values, making direct interpretation as "storage capacity in bits" challenging.
  • Future Work: The authors suggest exploring other ways to average or combine data from the LDM, or using entropic expressivity concepts. The Label Recorder is highlighted as a promising avenue for future work, potentially offering a more robust and interpretable method for estimating algorithm capacity, possibly complementing or even superseding the LDM.

Summary updated

BibTeX
@inproceedings{segura2020labeling,
  author = {Pedro Sandoval Segura and Julius Lauw and Daniel Bashir and Kinjal Shah and Sonia Sehra and Dominique Macias and George D. Montañez},
  title = {{The Labeling Distribution Matrix (LDM): A Tool for Estimating Machine Learning Algorithm Capacity}},
  booktitle = {ICAART},
  year = {2020},
  url = {https://openreview.net/forum?id=rDRcj8nJ7k1},
}

Loading related content...

Figure