NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Deep Heteroskedastic Regression: Post-Hoc Variance Estimation from Latent Representations

Mikkel Jordahn, Jonas Vestergaard Jensen, James Harrison, Michael Andersen, Mikkel Schmidt

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Time Series, PDEs & Probabilistic ML › Latent Space Bayesian Optimization · Type: new method · Keywords: heteroskedastic regression, uncertainty quantification, post-hoc variance estimation, deep learning, latent representations

Summary

Post-Hoc Variance Estimation provides a simple, post-hoc procedure to fit a variance model on pretrained network latent representations, delivering competitive heteroskedastic uncertainty quantification without retraining the model.

Explained to a 5-year-old

A computer learns to guess numbers and also how unsure it is about those guesses. When we try to teach it both at the same time, it often gets confused and makes bad guesses. The new idea is to first teach the computer to guess well, then later teach a small helper to tell how unsure the big computer is. This helper uses some extra data that we already have, so we don't need new information. Now the big computer stays good at guessing and also gives useful guesses about how confident it is, all without having to start over.

Explained to a 5-year-old, longer

A computer program can learn to predict numbers, like how many apples are in a picture. It can also learn to say how sure it is about its prediction, which is called uncertainty. When we try to teach it both at the same time, it often gets confused. Sometimes it becomes too confident about wrong answers, and sometimes it becomes too unsure. This makes the program not very useful for important tasks where we need to know if we can trust it. The researchers noticed this problem and wanted to find a simpler way. They first taught the program only to make good predictions, ignoring uncertainty. After that, they gave the program a small extra piece of learning that looks at the hidden layers of the first program. This extra piece learns to say how unsure the first program is, using data we already have. Because the extra piece is trained separately, it does not mess up the original predictions. The result is a program that still makes accurate guesses and also gives useful confidence scores. This works even for very big computer models used in chemistry, without having to retrain everything.

For a technical reader

The paper addresses the difficulty of obtaining reliable uncertainty estimates in deep regression while preserving predictive accuracy. It proposes a post-hoc pipeline that first trains a pretrained network for mean prediction and then fits a variance model on its intermediate representations using a hold-out set. This separation avoids the optimization and overfitting issues typical of joint mean-variance training and eliminates the need for additional data. Experiments show the approach matches end-to-end trained baselines across multiple modalities and scales, while being far cheaper in both training and inference. The method is particularly useful for large-scale foundation models, such as those in chemistry, where full retraining is impractical.

Problem

Deep heteroskedastic regression models struggle to balance accurate mean predictions and reliable uncertainty estimates, often suffering from variance overfitting, optimization difficulties, and representation collapse. Training end-to-end mean-variance networks is costly and can degrade performance on both tasks.

Method

The approach first trains a pretrained network for mean prediction, then fits a variance model across its intermediate layers on a hold-out dataset using post-hoc optimization. This separates variance estimation from mean training, avoiding the trade-offs of joint end-to-end training. The procedure is computationally cheap and requires no extra data beyond the existing training set.

Results

The approach matches the performance of end-to-end trained models while being significantly cheaper in training and inference time, and it preserves mean prediction accuracy. It also works on large-scale chemistry foundation models without extra data.

Contributions

The paper identifies the core trade-offs in deep heteroskedastic regression and proposes a post-hoc variance fitting procedure that decouples uncertainty estimation from mean training. This yields a cheap, scalable solution that maintains accuracy and works on large-scale models.

Practical relevance

This enables affordable uncertainty quantification for large models in critical applications such as chemistry and decision-making systems.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction