Confidence Interval Construction and Conditional Variance Estimation with Dense ReLU Networks

Carlos Misael Madrid Padilla, Oscar Hernan Madrid Padilla, Yik Lun Kei, Zhi Zhang, Yanzhen ChenarXiv 2024 · DOI

Abstract

While deep neural networks have achieved state-of-the-art performance in point estimation tasks, providing rigorous uncertainty quantification remains a significant challenge. This paper establishes a statistical foundation for conditional variance estimation using dense ReLU networks. We introduce a three-stage residual-based framework and derive the first non-asymptotic error bounds for variance estimation in this context. Furthermore, we develop a robust bootstrap procedure that offers theoretical coverage guarantees for confidence intervals under sub-Exponential noise conditions. Empirical results on synthetic and real-world datasets demonstrate that our approach yields more accurate variance estimates and more precise confidence intervals than traditional non-parametric methods.

Introduction

In many high-stakes applications of machine learning, such as healthcare or autonomous driving, knowing the "certainty" of a prediction is as important as the prediction itself. In statistical terms, this involves estimating the conditional variance—or heteroscedasticity—of the data. While deep learning excels at estimating the conditional mean, existing methods for variance estimation often rely on restrictive parametric assumptions or lack theoretical guarantees when applied to high-dimensional data.

This research bridges the gap between the high-performance capabilities of deep ReLU networks and the rigorous requirements of statistical inference. By providing non-asymptotic bounds and a validated bootstrap procedure, the authors offer a framework for building reliable confidence intervals in complex, non-parametric regression settings.

Methodology: The Three-Stage Framework

The authors propose a residual-based approach to estimate conditional variance, which proves more stable than direct estimation methods. The framework operates in three distinct stages:

  1. Mean Estimation: A dense ReLU network is trained to estimate the conditional mean function $f^*(x)$.
  2. Residual Computation: Residuals (the difference between observed values and the predicted mean) are calculated using a held-out or independent dataset to avoid over-fitting.
  3. Variance Estimation: A second ReLU network is trained to model the squared residuals, providing an estimate for the conditional variance $g^*(x)$.

Theoretical Innovations

A key contribution of this work is the derivation of non-asymptotic upper bounds for the estimation error of both the mean and the variance. Unlike previous studies that assume "sub-Gaussian" noise (thin-tailed distributions), this paper relaxes the assumption to sub-Exponential noise. This makes the framework applicable to a much wider range of real-world datasets where "heavy-tailed" noise is common.

To overcome the "curse of dimensionality," the theory leverages the concept of hierarchical smoothness. By assuming that high-dimensional functions are compositions of simpler, smoother functions, the authors prove that ReLU networks can efficiently learn these structures even as the number of input features increases.

Robust Bootstrap and Confidence Intervals

Beyond point estimates of variance, the paper introduces a bootstrap procedure to construct confidence intervals. By sampling from the distribution of normalized residuals, the method generates intervals that are mathematically guaranteed to contain the true mean with the specified probability (e.g., 95% coverage). This "guaranteed coverage" proof distinguishes the method from heuristic uncertainty measures commonly used in deep learning.

Empirical Evaluation

Synthetic Simulations

The researchers tested the framework against five simulated scenarios with varying dimensions ($d=2, 5, 10$) and complex hierarchical structures. The proposed ReLU-based variance estimator (NNres) consistently outperformed state-of-the-art competitors, including Random Forests and Multivariate Adaptive Regression Splines (MARS), in terms of Mean Squared Error (MSE).

Real-World Application: California Housing

On the California Housing dataset (20,640 observations), the task was to predict median house values. The NN-based confidence intervals were compared against "Naive" bootstrap methods. The results showed that the proposed method produced significantly shorter (more precise) intervals while maintaining the target coverage. For instance, at a 95% confidence level ($\alpha=0.05$), the NN method produced an average interval length of 0.5273, whereas the naive bootstrap produced a much wider, less useful interval of 2.1069.

Conclusion and Future Directions

This work provides a rigorous path forward for uncertainty quantification in deep learning. By moving from heuristics to provable statistical bounds, it enables the use of ReLU networks in domains where reliability is paramount.

Future research directions include:

  • Uniform Coverage: Extending the current point-wise guarantees to hold uniformly across the entire input domain.
  • Fixed-Design Settings: Adapting the proofs for settings where covariates are pre-determined rather than randomly sampled.
  • Computational Efficiency: Developing "fast bootstrap" approximations to reduce the computational overhead of retraining networks multiple times while preserving theoretical guarantees.

Summary updated

BibTeX
@misc{padilla2024confidence,
  author = {Carlos Misael Madrid Padilla and Oscar Hernan Madrid Padilla and Yik Lun Kei and Zhi Zhang and Yanzhen Chen},
  title = {{Confidence Interval Construction and Conditional Variance Estimation with Dense ReLU Networks}},
  year = {2024},
  eprint = {2412.20355},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.20355},
}
Figure