Probabilistic supervised learning

Frithjof Gressmann, Franz J. Király, Bilal A. Mateen, Harald OberhauserarXiv 2018

Abstract

In many critical applications, point predictions are inadequate for decision-making. This paper introduces a domain-agnostic framework for probabilistic supervised learning, where models predict entire probability distributions. By bridging Bayesian and frequentist methodologies, the authors provide a theoretical bias-variance decomposition and a modular Python toolbox, skpro, for building and evaluating uncertainty-aware models.

Introduction

Traditional supervised learning focuses on predicting a single value $y$ for a given input $x$. However, in fields like medicine, finance, or engineering, understanding the uncertainty associated with a prediction is as crucial as the prediction itself. A "point prediction" fails to capture the range of possible outcomes and their relative likelihoods.

Historically, the landscape of uncertainty quantification has been fragmented. Bayesian methods provide a natural probabilistic interpretation but often rely on specific parametric assumptions. Conversely, frequentist "black-box" methods, such as Random Forests, excel at point predictions but lack a standardized way to quantify their own uncertainty. This paper addresses this gap by proposing a unified framework that treats all models as "black boxes" that output probability distributions, allowing for fair, task-centric evaluation regardless of the underlying model philosophy.

Methodology

The core of the proposed framework is the formalization of supervised learning as the task of learning a functional that maps features to a space of probability distributions.

Conceptual framework for probabilistic supervised learning: comparing predicted distributions from different methods against ground truth test data.

Proper Loss Functionals

To evaluate these models, the authors emphasize the use of "proper" scoring rules. A scoring rule is proper if the expected loss is minimized when the predicted distribution matches the true distribution. The paper focuses on two primary metrics:

  1. Log-Loss (Negative Log-Likelihood): Measures how well the model assigns probability to the observed outcome.
  2. Gneiting (Integrated Squared) Loss: A robust alternative that evaluates the distance between the predicted and empirical cumulative distribution functions.

The skpro Toolbox

A significant practical contribution is the skpro Python library. Designed to follow the scikit-learn interface, it allows researchers to easily compose probabilistic models. For instance, one can use a standard Linear Regression to predict the mean and a Random Forest to predict the variance (residuals), combining them into a single probabilistic predictor.

Theoretical Insights

The paper introduces several novel theoretical concepts to refine our understanding of probabilistic models.

Probabilistic Bias-Variance Decomposition

The authors derive a new decomposition that extends the classical bias-variance trade-off to the space of distributions. This allows researchers to diagnose whether a model's error stems from a "shifted" prediction (bias) or from "noisy" or poorly calibrated uncertainty (variance).

The Uninformed Baseline

A common practice in machine learning is to use a "permuted label" baseline. The authors argue this is flawed for uncertainty tasks. Instead, they propose an "uninformed baseline" which is a simple density estimate of the labels that ignores the features entirely. They prove that a model can only outperform this baseline if the features and labels are statistically dependent, linking model validation to formal independence testing.

Calibration and Residuals

To assess model calibration, the authors define "probabilistic residuals" based on the Cumulative Distribution Function (CDF). For a perfectly calibrated model, these residuals should follow a uniform distribution, providing a powerful visual diagnostic tool.

Experimental Evaluation

The framework was tested on four standard tabular regression datasets from the UCI repository:

  • Boston Housing: Predicting house prices.
  • Diabetes: Predicting disease progression.
  • Energy: Predicting building heating loads.
  • Bike Sharing: Predicting daily rental counts (a non-i.i.d. temporal dataset).

Key Results

The experiments yielded several important findings:

  • Composite Models: Models that explicitly modeled variance as a function of features consistently outperformed those assuming constant noise.
  • Numerical Stability: Implementing a "Min-wrapper"—a lower bound on predicted variance—was crucial for Log-Loss performance. It prevents models from becoming overconfident and incurring infinite penalties for "confidently wrong" predictions.
  • Distributional Assumptions: The choice of distribution shape (e.g., Gaussian vs. Laplace) is data-dependent. The Laplace distribution, which has heavier tails, performed better on the Boston Housing and Energy datasets, highlighting the importance of modeling outliers.

Conclusion and Future Work

This work provides a robust foundation for probabilistic supervised learning. However, several avenues for future research remain. The computational cost of certain Bayesian methods remains a bottleneck for large-scale benchmarking. Additionally, extending the framework to handle "mixed" outcomes (part-discrete, part-continuous) and multivariate outputs is a priority for expanding the utility of the skpro ecosystem.

Summary updated

BibTeX
@misc{gressmann2018probabilistic,
  author = {Frithjof Gressmann and Franz J. Király and Bilal A. Mateen and Harald Oberhauser},
  title = {{Probabilistic supervised learning}},
  year = {2018},
  eprint = {1801.00753},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.00753},
}
Figure