Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?

The combined model learns per-pixel variance next to dropout-based epistemic uncertainty

  • Problem Vision networks rarely say how far their outputs can be trusted.
  • Method The network predicts a per-pixel variance that weights each residual.
  • Results The combined model scored 67.5 IoU on CamVid, compared to 67.1 for the DenseNet baseline. It also gave new state-of-the-art results on segmentation and depth regression benchmarks.

Why dense vision models hide their doubt

Deep networks now give strong accuracy on vision tasks, yet most of them return an output with no sense of how far it can be trusted. Regression networks have no standard way to express uncertainty, and classifier softmax scores often look confident even when the model is guessing. The authors open with two failures: a fatal assisted-driving crash in which a trailer's white side was read as bright sky, and a photo system that mislabelled two people.

They argue that a model flagging high uncertainty on such inputs could have let the system defer or act more carefully.

Bayesian modelling splits uncertainty into two kinds that behave differently. Aleatoric uncertainty is noise in the observations, such as sensor or motion noise, and collecting more data doesn't remove it. Epistemic uncertainty sits in the model parameters, reflecting which model generated the data, and it can be explained away with enough data.

Aleatoric uncertainty can also depend on the input, which the authors call heteroscedastic, so a featureless wall should carry more uncertainty in depth estimation than a richly textured scene.

The authors' central observation is that big image datasets shrink epistemic uncertainty, so aleatoric uncertainty is the part worth modelling there. Modelling aleatoric uncertainty alone has a cost, though, because inputs unlike the training data can only be flagged by epistemic uncertainty. The question therefore becomes whether both uncertainties can be modelled together in one network.

Predicting a variance to weight the regression loss

The key idea is that the network predicts a variance for every pixel next to its depth or unary output, and the loss uses that variance to weight the residual. No uncertainty labels are needed, because the regression targets alone supervise the predicted mean and the learned variance together. A single Bayesian convolutional network with a split head produces both values, so each sampled pass returns its own pair.

Training minimises a loss derived from a Gaussian likelihood, and the authors train on the log variance \(s_i := \log\hat\sigma_i^2\) rather than on the variance itself. Working with the log avoids dividing by zero, and the exponential maps any unconstrained output to a positive variance. Averaged over the output pixels, the per-image loss reads as follows.

\[ L_{BNN}(\theta)=\frac{1}{D}\sum_i\Big[\tfrac{1}{2}\exp(-s_i)\,\lVert y_i-\hat y_i\rVert^2+\tfrac{1}{2}s_i\Big] \] Here \(D\) is the number of output pixels, and the leading minus sign inside the exponent is what gives the residual its weight.

The first term multiplies the squared residual by \(\exp(-s_i)\), so a pixel the network marks as uncertain contributes less to the loss. The second term, \(\tfrac{1}{2}s_i\), stops the network from declaring infinite uncertainty everywhere, which would otherwise zero out the residual term. The authors call this learned loss attenuation, and they argue it makes training more robust to noisy labels.

They say the weighting follows from the probabilistic reading of the model rather than being added by hand.

At test time the network runs dropout-sampled passes, and the authors average 50 of them. Each pass gives a predicted mean and variance, and the predictive variance combines the spread of the means with the average predicted variance. \[ \mathrm{Var}(y)\approx\frac{1}{T}\sum_{t=1}^{T}\hat y_t^{2}-\Big(\frac{1}{T}\sum_{t=1}^{T}\hat y_t\Big)^{2}+\frac{1}{T}\sum_{t=1}^{T}\hat\sigma_t^{2} \] In this formula the first two terms capture the spread across sampled passes, and the last term is the average aleatoric variance.

Noise on logits for classification

Classification is harder to fit into this picture, because the authors point out that every classification task carries some input-dependent uncertainty. They therefore adapt the classifier itself, placing a Gaussian over the vector of unaries for each pixel. The logits are corrupted with Gaussian noise whose variance is predicted per logit, and the softmax of the noisy vector gives the pixel's probabilities.

The expected log likelihood has no known analytic form, so the authors approximate it by Monte Carlo sampling. The sampling acts on the logits after one pass through the network, which is a small part of the compute and doesn't noticeably slow test-time inference. The resulting numerically stable objective takes the log of an average, over sampled logit vectors, of the softmax value for the observed class.

The authors describe this as the classification counterpart of loss attenuation.

Segmentation results on CamVid and NYUv2

The CamVid experiments use DenseNet on a road scene dataset with 367 training images and 233 test images. Images are resized to 360×480 for training and evaluation, and segmentation is scored with IoU. Training uses 224×224 crops at batch size 4, followed by fine-tuning on full images at batch size 1, with RMS-Prop at a constant learning rate of 0.001.

Epistemic uncertainty comes from Monte Carlo dropout with p = 0.2 and 50 samples.

On CamVid the DenseNet baseline reaches 67.1 IoU, the aleatoric-only variant 67.4, and the epistemic-only variant 67.2. Modelling both reaches 67.5, the highest of these rows, and the table also lists the original DenseNet at 66.9 from prior work. The aleatoric gain is larger than the epistemic one, which the authors read as a sign that epistemic uncertainty is mostly explained away at this data scale.

The margin is small, and the tables give single values without intervals, so the CamVid improvement is best read as modest.

NYUv2 40-class is harder, with 1449 images from 464 indoor scenes and 40 semantic classes. Here the baseline is DeepLabLargeFOV, and the combined model moves accuracy from 70.1 to 70.6 and IoU from 36.5 to 37.3. The authors find the gain larger than on CamVid and suggest it may be because the dataset is harder.

Depth regression on Make3D and NYUv2 Depth

Make3D has 400 training and 134 testing images from a 3-D laser scanner, and the authors resize to 345×460 and evaluate pixels below 70 m. On Make3D the DenseNet baseline has a rel error of 0.167, and the aleatoric-only model lowers it to 0.149. The combined model also reaches 0.149 rel, but its rms is 4.08 against 3.92 for the baseline, so the gain isn't uniform across metrics.

The epistemic-only variant reaches 0.162 rel, a smaller change from the baseline.

On NYUv2 Depth the combined model reaches a rel error of 0.110, compared to 0.117 for the DenseNet baseline. The aleatoric-only model reaches 0.112 and the epistemic-only model 0.114, so each single uncertainty helps a little and the combination helps most. The table also lists Laina et al. at 0.127, a prior method that isn't a controlled comparison with these runs.

Delta-1 accuracy rises to 81.7% for the combined model, compared to 80.2% for the baseline.

The authors read the aleatoric maps as highlighting large depths, reflective surfaces and occlusion boundaries, which are known failure modes of monocular depth. Epistemic uncertainty instead tracks gaps in the training data, such as rare categories like humans in one example. The evidence here is a handful of example maps rather than a scored test.

Whether the uncertainty values behave as expected

A precision-recall test asks whether dropping the most uncertain pixels raises precision. On CamVid, precision falls as more uncertain pixels are kept, so the uncertainty values order pixels in a useful way. The aleatoric and epistemic curves look very similar, which the authors read as each measure covering for the other when only one is modelled.

Calibration asks whether a stated probability matches how often that prediction is correct. The calibration mean squared error falls from 0.00501 for the non-Bayesian model to 0.00214 for the combined model. The epistemic-only model scores 0.007 on this measure, worse than the non-Bayesian model, while the aleatoric-only model reaches 0.00272.

So the combination is the setting that improves calibration over the baseline in this comparison.

Table 3 trains on smaller subsets of the data and tests on unrelated datasets. Aleatoric uncertainty stays roughly constant as the training set shrinks, while epistemic uncertainty grows on the less familiar test data. For CamVid-trained models the epistemic logit variance is 1.36 on CamVid test data and 11.8 on NYUv2 test data, both in units of ×10−3.

Costs and open gaps

Epistemic uncertainty is expensive for DenseNet, because the whole architecture has to be sampled. The authors report a roughly 50× slow-down for 50 Monte Carlo samples, and parallelising this is hard under GPU memory limits. The authors leave a real-time method for epistemic uncertainty as future work.

The unrelated-test check covers only the models trained on CamVid and Make3D and tested on NYUv2. Other kinds of distribution shift are not tested in the paper. Each reported number comes from one set of runs, so small margins such as the CamVid gain are hard to separate from run-to-run variation.

Paper info

Authors
Kendall, Alex, Gal, Yarin
Venue
arXiv · Preprint
First published
2017-3-15
Added
2026-11-12
Updated
2017-10-5
Version
v2
arXiv
1703.04977
Category
cs.CV
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Kendall, Alex, Gal, Yarin (2017). What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?. arXiv:1703.04977v2. https://arxiv.org/abs/1703.04977v2

BibTeX
@misc{alex2017what,
  title = {{What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?}},
  author = {Kendall, Alex and Gal, Yarin},
  year = {2017},
  eprint = {1703.04977},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.04977v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up