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

Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semantics

Uncertainty weighting lets one network learn scene geometry and semantics jointly

  • Problem Multi-task networks with losses in different units need careful loss weights. Tuning those weights by hand is slow and expensive, which makes multi-task learning hard in practice.
  • Method The method weighs each task loss by a learned homoscedastic uncertainty term. It trains one shared encoder with separate decoders for segmentation, instances and inverse depth.
  • Results The three-task model reaches 63.4% class IoU, compared with 59.4% for the single-task segmentation model on the Tiny CityScapes validation split.

Why loss weights matter

The model studied here must output a semantic class per pixel, an instance vector per pixel and a depth value per pixel, all from one monocular image. These outputs are measured in different units and scales, so the size of each task loss depends on the measurement scale and on how noisy that task's targets are.

The usual remedy is a weighted linear sum of the task losses, with weights that are either uniform or tuned by hand. Searching for good weights is expensive, and the search becomes harder as the number of tasks grows.

Homoscedastic uncertainty as a loss weight

The method starts from the split of aleatoric uncertainty into a data-dependent part, which the model predicts for each input, and a task-dependent part, which is one constant per task. Because the task-dependent part does not change with the input, it is treated as a learnable quantity that reflects how much each task's output varies, and it is used as the basis for weighting the losses.

For a regression output, the likelihood is a Gaussian whose mean is the network output, \(p(y\mid f^{W}(x)) = \mathcal{N}(f^{W}(x), \sigma^{2})\), with \(\sigma\) as the observation noise. For two outputs with separate noise terms, minimising the negative log likelihood gives \[ \mathcal{L}(W,\sigma_1,\sigma_2) \propto \frac{1}{2\sigma_1^{2}}\mathcal{L}_1(W) + \frac{1}{2\sigma_2^{2}}\mathcal{L}_2(W) + \log\sigma_1\sigma_2 \], where \(\mathcal{L}_1\) and \(\mathcal{L}_2\) are the losses of the two outputs.

A larger noise \(\sigma_1\) shrinks the weight on \(\mathcal{L}_1\), and the \(\log\) term acts as a regulariser that stops the noise from growing to ignore the data.

For classification, the softmax is applied to the output divided by \(\sigma^{2}\), so the scale \(\sigma^{2}\) acts like a temperature that controls how flat the class distribution is. When a regression output and a classification output are combined, the authors make a simplifying approximation that becomes an equality as \(\sigma_2\) approaches 1, which gives \[ \mathcal{L} \approx \frac{1}{2\sigma_1^{2}}\mathcal{L}_1(W) + \frac{1}{\sigma_2^{2}}\mathcal{L}_2(W) + \log\sigma_1 + \log\sigma_2 \], with \(\mathcal{L}_1\) a Euclidean loss and \(\mathcal{L}_2\) a cross entropy loss.

Plain weights learned as a linear sum would tend to shrink to zero, whereas this objective keeps every task weight away from zero. In practice the network predicts \(s := \log\sigma^{2}\) rather than \(\sigma^{2}\), which avoids division by zero and lets the output be unconstrained while \(\exp(-s)\) stays positive.

Shared encoder with task decoders

A shared encoder builds the representation, using DeepLabV3 with a ResNet101 base, dilated convolutions and an Atrous Spatial Pyramid Pooling module to add context. Because the encoder is shared, the features it learns draw on cues from all the tasks at once.

Each task then has its own decoder with separate weights, built from a 3 × 3 convolution with 256 output features followed by a 1 × 1 layer that produces that task's output. The semantic branch is trained with a cross entropy loss averaged over labelled pixels in each mini-batch.

Instance vectors and inverse depth

Each pixel predicts a vector pointing to the centroid of its instance, and the training loss is an L1 loss averaged over the labelled instance pixels. At test time, the instance branch is applied only to pixels that the predicted semantic segmentation marks as instance classes. The predicted vectors are treated as votes and clustered with OPTICS, a density-based method that does not need the number of clusters or a fixed instance size, and each pixel then joins the instance nearest to its estimated centre.

Depth is regressed as inverse depth with an L1 loss, so that points at infinite distance such as sky can be represented. Pixels without an inverse depth label are left out of the loss.

Tiny CityScapes loss weighting results

The controlled comparison trains each model at 128 × 256 pixels for 50,000 iterations on the Tiny CityScapes validation split, and reports class IoU for segmentation and mean error for instances and depth. The single-task models reach a class IoU of 59.4% for segmentation, a mean error of 4.61 px for instances and 0.640 for inverse depth, where lower error is better.

With equal weights of 0.333 on each task, the class IoU falls to 50.1%, below the single-task segmentation model, and the instance and depth errors are 3.79 px and 0.592. Approximately optimal weights give 62.8% class IoU, 3.61 px and 0.549, but the authors note that finding them requires an expensive grid search.

Training all three tasks with uncertainty weighting gives 63.4% class IoU, a mean instance error of 3.50 px and an inverse depth error of 0.522. Each pair of tasks alone reaches less: segmentation with instances gives 61.0% and 3.42 px, segmentation with depth gives 62.7% and 0.533, and instances with depth gives 3.54 px and 0.539.

The authors attribute part of the gain to the grid search being limited by its resolution, and to the uncertainty terms letting the weights change during training. They also report that the uncertainty terms decrease during training, and that the loss is robust to how the uncertainty parameters are initialised.

CityScapes test benchmark results

The benchmark uses full resolution images of 1024 × 2048 pixels, with 2,975 training and 500 validation images, and 1,525 images withheld for testing on an online server. On the test set the multi-task model reaches a class IoU of 78.5, an instance AP of 21.6 and a mean disparity error of 2.92 px.

On segmentation it sits above Adelaide (71.6) and Uhrig et al. (64.3), but below DeepLab V3 (81.3) and PSPNet (81.2). On instance AP it is above Deep Watershed (19.4) and R-CNN + MCG (4.6), and below Mask R-CNN (26.2).

The final model's losses are weighted at the end of training with a ratio of 43 : 1 : 0.16 for semantic segmentation, depth regression and instance segmentation.

Limits of the evidence

The controlled study uses reduced 128 × 256 resolution on the Tiny CityScapes validation split, while the benchmark uses full resolution, so the two sets of numbers come from different setups. All experiments use CityScapes, and the benchmark comparison is not entirely fair because many compared methods use ensembles of different training datasets.

The authors leave open whether a single optimal weighting exists for all tasks, where the encoder should be split into decoders, and what network depth suits the shared representation. They also ask why the semantics and depth tasks outperform the semantics and instance tasks in Table 1, and how to measure how useful one task is for another.

Paper info

Authors
Alex Kendall, Yarin Gal, Roberto Cipolla
Venue
arXiv · Preprint
First published
2017-5-19
Added
2026-11-12
Updated
2018-4-24
Version
v3
arXiv
1705.07115
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

Alex Kendall, Yarin Gal, Roberto Cipolla (2017). Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semantics. arXiv:1705.07115v3. https://arxiv.org/abs/1705.07115v3

BibTeX
@misc{kendall2017multi,
  title = {{Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semantics}},
  author = {Alex Kendall and Yarin Gal and Roberto Cipolla},
  year = {2017},
  eprint = {1705.07115},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.07115v3}
}

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