Bayesian Prediction of Future Street Scenes using Synthetic Likelihoods.

Bayesian Prediction of Future Street Scenes using Synthetic Likelihoods.

Apratim Bhattacharyya, Mario Fritz, Bernt Schiele
Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbrücken, Germany
{abhattac, schiele, mfritz}

For autonomous agents to successfully operate in the real world, the ability to anticipate future scene states is a key competence. In real-world scenarios, future states become increasingly uncertain and multi-modal, particularly on long time horizons. Dropout based Bayesian inference provides a computationally tractable, theoretically well grounded approach to learn likely hypotheses/models to deal with uncertain futures and make predictions that correspond well to observations – are well calibrated. However, it turns out that such approaches fall short to capture complex real-world scenes, even falling behind in accuracy when compared to the plain deterministic approaches. This is because the used log-likelihood estimate discourages diversity. In this work, we propose a novel Bayesian formulation for anticipating future scene states which leverages synthetic likelihoods that encourage the learning of diverse models to accurately capture the multi-modal nature of future scene states. We show that our approach achieves accurate state-of-the-art predictions and calibrated probabilities through extensive experiments for scene anticipation on Cityscapes dataset. Moreover, we show that our approach generalizes across diverse tasks such as digit generation and precipitation forecasting.

Bayesian Prediction of Future Street Scenes using Synthetic Likelihoods.

Apratim Bhattacharyya, Mario Fritz, Bernt Schiele
Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbrücken, Germany
{abhattac, schiele, mfritz}

1 Introduction

Figure 1: Blue: Groundtruth distribution. Black: Models sampled at random from the model distribution.

The ability to anticipate future scene states which involves mapping one scene state to likely future states under uncertainty is key for autonomous agents to successfully operate in the real world e.g., to anticipate the movements of pedestrians and vehicles for autonomous vehicles. The future states of street scenes are inherently uncertain and the distribution of outcomes is often multi-modal. This is especially true for important classes like pedestrians. Recent works on anticipating street scenes (Luc et al., 2017; Jin et al., 2017; Seyed et al., 2018) do not systematically consider uncertainty.

Bayesian inference provides a theoretically well founded approach to capture both model and observation uncertainty but with considerable computational overhead. A recently proposed approach (Gal & Ghahramani, 2016b; Kendall & Gal, 2017) uses dropout to represent the posterior distribution of models and capture model uncertainty. This approach has enabled Bayesian inference with deep neural networks without additional computational overhead. Moreover, it allows the use of any existing deep neural network architecture with minor changes.

However, when the underlying data distribution is multimodal and the model set under consideration do not have explicit latent state/variables (as most popular deep deep neural network architectures), the approach of Gal & Ghahramani (2016b); Kendall & Gal (2017) is unable to recover the true model uncertainty (see Figure 1 and Osband (2016)). This is because this approach is known to conflate risk and uncertainty (Osband, 2016). This limits the accuracy of the models over a plain deterministic (non-Bayesian) approach. The main cause is the data log-likelihood maximization step during optimization – for every data point the average likelihood assigned by all models is maximized. This forces every model to explain every data point well, pushing every model in the distribution to the mean. We address this problem through an objective leveraging synthetic likelihoods (Wood, 2010; Rosca et al., 2017) which relaxes the constraint on every model to explain every data point, thus encouraging diversity in the learned models to deal with multi-modality.

In this work: {enumerate*}

We develop the first Bayesian approach to anticipate the multi-modal future of street scenes and demonstrate state-of-the-art accuracy on the diverse Cityscapes dataset without compromising on calibrated probabilities,

We propose a novel optimization scheme for dropout based Bayesian inference using synthetic likelihoods to encourage diversity and accurately capture model uncertainty,

Finally, we show that our approach is not limited to street scenes and generalizes across diverse tasks such as digit generation and precipitation forecasting.

2 Related work

Bayesian deep learning. Most popular deep learning models do not model uncertainty, only a mean model is learned. Bayesian methods (MacKay, 1992; Neal, 2012) on the other hand learn the posterior distribution of likely models. However, inference of the model posterior is computationally expensive. In (Gal & Ghahramani, 2016b) this problem is tackled using variational inference with an approximate Bernoulli distribution on the weights and the equivalence to dropout training is shown. This method is further extended to convolutional neural networks in (Gal & Ghahramani, 2016a). In (Kendall & Gal, 2017) this method is extended to tackle both model and observation uncertainty through heteroscedastic regression. The proposed method achieves state of the art results on segmentation estimation and depth regression tasks. This framework is used in Bhattacharyya et al. (2018a) to estimate future pedestrian trajectories. In contrast, Saatci & Wilson (2017) propose a (unconditional) Bayesian GAN framework for image generation using Hamiltonian Monte-Carlo based optimization with limited success. Moreover, conditional variants of GANs (Mirza & Osindero, 2014) are known to be especially prone to mode collapse. Therefore, we choose a dropout based Bayesian scheme and improve upon it through the use of synthetic likelihoods to tackle the issues with model uncertainty mentioned in the introduction.

Structured output prediction. Stochastic feedforward neural networks (SFNN) and conditional variational autoencoders (CVAE) have also shown success in modeling multimodal conditional distributions. SFNNs are difficult to optimize on large datasets (Tang & Salakhutdinov, 2013) due to the binary stochastic variables. Although there has been significant effort in improving training efficiency (Rezende et al., 2014; Gu et al., 2016), success has been partial. In contrast, CVAEs (Sohn et al., 2015) assume Gaussian stochastic variables, which are easier to optimize on large datasets using the re-parameterization trick. CVAEs have been successfully applied on a large variety of tasks, include conditional image generation (Bao et al., 2017), next frame synthesis (Xue et al., 2016), video generation (Babaeizadeh et al., 2018; Denton & Fergus, 2018), trajectory prediction (Lee et al., 2017) among others. The basic CVAE framework is improved upon in (Bhattacharyya et al., 2018b) through the use of a multiple-sample objective. However, in comparison to Bayesian methods, careful architecture selection is required and experimental evidence of uncertainty calibration is missing. Calibrated uncertainties are important for autonomous/assisted driving, as users need to be able to express trust in the predictions for effective decision making. Therefore, we also adopt a Bayesian approach over SFNN or CVAE approaches.

Anticipation future scene scenes. In (Luc et al., 2017) the first method for predicting future scene segmentations has been proposed. Their model is fully convolutional with prediction at multiple scales and is trained auto-regressively. Jin et al. (2017) improves upon this through the joint prediction of future scene segmentation and optical flow. Similar to Luc et al. (2017) a fully convolutional model is proposed, but the proposed model is based on the Resnet-101 (He et al., 2016) and has a single prediction scale. More recently, Luc et al. (2018) has extended the model of Luc et al. (2017) to the related task of future instance segmentation prediction. These methods achieve promising results and establish the competence of fully convolutional models. In (Seyed et al., 2018) a Convolutional LSTM based model is proposed, further improving short-term results over Jin et al. (2017). However, fully convolutional architectures have performed well at a variety of related tasks, including segmentation estimation (Yu & Koltun, 2016; Zhao et al., 2017), RGB frame prediction (Mathieu et al., 2016; Babaeizadeh et al., 2018) among others. Therefore, we adopt a standard ResNet based fully-convolutional architecture, while providing a full Bayesian treatment.

3 Bayesian models for prediction under uncertainty

We phrase our models in a Bayesian framework, to jointly capture model (epistemic) and observation (aleatoric) uncertainty (Kendall & Gal, 2017). We begin with model uncertainty.

3.1 Model uncertainty

Let be the input (past) and be the corresponding outcomes. Consider , we capture model uncertainty by learning the distribution of generative models , likely to have generated our data . The complete predictive distribution of outcomes y is obtained by marginalizing over the posterior distribution,


However, the integral in (1) is intractable. But, we can approximate it in two steps (Gal & Ghahramani, 2016b). First, we assume that our models can be described by a finite set of variables . Thus, we constrain the set of possible models to ones that can be described with . Now, (1) is equivalently,


Second, we assume an approximating variational distribution of models which allows for efficient sampling. This results in the approximate distribution,


For convolutional models, Gal & Ghahramani (2016a) proposed a Bernoulli variational distribution defined over each convolutional patch. The number of possible models is exponential in the number of patches. This number could be very large, making it difficult optimize over this very large set of models. In contrast, in our approach (4), the number possible models is exponential in the number of weight parameters, a much smaller number. In detail, we choose the set of convolutional kernels and the biases of our model as the set of variables . Then, we define the following novel approximating Bernoulli variational distribution independently over each element (correspondingly ) of the kernels and the biases at spatial locations ,


Note, denotes the hadamard product, are tuneable variational parameters, are the independent Bernoulli variables, is a probability tensor equal to the size of the (bias) layer, is the number of kernels in the current (previous) layer. Here, is chosen manually. Moreover, in contrast to Gal & Ghahramani (2016a), the same (sampled) kernel is applied at each spatial location leading to the detection of the same features at varying spatial locations. Next, we describe how we capture observation uncertainty.

3.2 Observation uncertainty

Observation uncertainty can be captured by assuming an appropriate distribution of observation noise and predicting the sufficient statistics of the distribution (Kendall & Gal, 2017). Here, we assume a Gaussian distribution with diagonal covariance matrix at each pixel and predict the mean and variance of the distribution. In detail, the predictive distribution of a generative model draw from at a pixel position is,


We can sample from the predictive distribution (3) by first sampling the weight matrices from (4) and then sampling from the Gaussian distribution in (5). We perform the last step by the linear transformation of a zero mean unit diagonal variance Gaussian, ensuring differentiability,


where, is the sample drawn at a pixel position through the liner transformation of with the predicted mean and variance . In case of street scenes, is a class-confidence vector and sample of final class probabilities is obtained by pushing through a softmax.

3.3 Training

For a good variational approximation (3), our approximating variational distribution of generative models should be close to the true posterior . Therefore, we minimize the KL divergence between these two distributions. As shown in Gal & Ghahramani (2016b; a); Kendall & Gal (2017) the KL divergence is given by (over i.i.d data points),


The log-likelihood term at the right of (7) considers every model for every data point. This imposes the constraint that every data point must be explained well by every model. However, if the data distribution is multi-modal, this would push every model to the mean of the multi-modal distribution (as in Figure 1 where only way for models to explain both modes is to converge to the mean). This discourages diversity in the learned modes. In case of multi-modal data, we would not be able to recover all likely models, thus hindering our ability to fully capture model uncertainty. The models would be forced to explain the data variation as observation noise (Osband, 2016), thus conflating model and observation uncertainty. We propose to mitigate this problem through the use of an approximate objective using synthetic likelihoods (Wood, 2010; Rosca et al., 2017) – obtained from a classifier. The classifier estimates the likelihood based on whether the models explain (generate) data samples likely under the true data distribution . This removes the constraint on models to explain every data point – it only requires the explained (generated) data points to be likely under the data distribution. Thus, this allows models to be diverse and deal with multi-modality. Next, we reformulate the KL divergence estimate of (7) to a likelihood ratio form which allows us to use a classifier to estimate (synthetic) likelihoods, (also see Appendix),


In the second step of (8), we divide and multiply the probability assigned to a data sample by a model by the true conditional probability to obtain a likelihood ratio. We can estimate the KL divergence by equivalently estimating this ratio rather than the true likelihood. In order to (synthetically) estimate this likelihood ratio, let us introduce the variable to denote, the probability assigned by our model to a data sample and the true probability of the sample. Therefore, the ratio in the last term of (8) is,


In the last step of (9) we use the fact that the events and are mutually exclusive. We can approximate the ratio by jointly learning a discriminator that can distinguish between samples of the true data distribution and samples generated by the model , which provides a synthetic estimate of the likelihood, and equivalently integrating directly over ,


Note that the synthetic likelihood is independent of any specific pair of the true data distribution (unlike the log-likelihood term in (7)), its value depends only upon whether the generated data point by the model is likely under the true data distribution . Therefore, the models have to only generate samples likely under the true data distribution. The models need not explain every data point equally well. Therefore, we do not push the models to the mean, thus allowing them to be diverse and allowing us to better capture uncertainty.

Empirically, we observe that a hybrid log-likelihood term using both the log-likelihood terms of (10) and (7) with regularization parameters and (with ) stabilizes the training process,

Note that, although we do not explicitly require the posterior model distribution to explain all data points, due to the exponential number of models afforded by dropout and the joint optimization (min-max game) of the discriminator, empirically we see very diverse models explaining most data points. Moreover, empirically we also see that predicted probabilities remain calibrated. Next, we describe the architecture details of our generative models and the discriminator .

3.4 Model architecture for street scene anticipation

The architecture of generative models in our model distribution is shown in Figure 2. The generative model takes as input a sequence of past segmentation class-confidences , the past and future vehicle odometry () and produces the class-confidences at the next time-step as output. The additional conditioning on vehicle odometry is because the sequences are recorded in frame of reference of a moving vehicle and therefore the future observed sequence is dependent upon the vehicle trajectory. We use recursion to efficiently predict a sequence of future scene segmentations . The discriminator takes as input and classifies whether it was produced by our model or is from the true data distribution.

Figure 2: The architecture of generative models in our model distribution .

In detail, generative model architecture consists of a fully convolutional encoder-decoder pair. This architecture builds upon prior work of Luc et al. (2017); Jin et al. (2017), however with key differences. In Luc et al. (2017), each of the two levels of the model architecture consists of only five convolutional layers. In contrast, our model consists of one level with five convolutaional blocks. The encoder contains three residual blocks with max-pooling in between and the decoder consists of a residual and a convoluational block with up-sampling in between. We double the size of the blocks following max-pooling in order to preserve resolution. This leads to a much deeper model with fifteen convolutional layers, with constant spatial convolutional kernel sizes. This deep model with pooling creates a wide receptive field and helps better capture spatio-temporal dependencies. The residual connections help in the optimization of such a deep model. Computational resources allowing, it is possible to add more levels to our model. In Jin et al. (2017) a model is considered which uses a Res101-FCN as an encoder. Although this model has significantly more layers, it also introduces a large amount of pooling. This leads to loss of resolution and spatial information, hence degrading performance.

Our discriminator model consists of six convolutional layers with max-pooling layers in between, creating a large receptive field. The convolutional layers are followed by two fully connected layers. (More details in Appendix)

4 Experiments

Next, we evaluate our approach on MNIST digit generation and street scene anticipation on Cityscapes. We further evaluate our model on 2D data (Figure 1) and precipitation forecasting in the Appendix.

Groundtruth Bayes-S Samples Bayes-SL Samples Method Top-10% Mean 79.8 Bayes-S 78.8 CVAE 82.1 Bayes-SL 82.6
Figure 3: Left: MNIST generations: The models see the non grayed-out region of the digit. The samples are generated from models drawn at random from . Right: Top-10% accuracy on MNIST generation.

4.1 MNIST digit generation

Here, we aim to generate the full MNIST digit given only the lower left quarter of the digit. This task serves as an ideal starting point as in many cases there are multiple likely completions given the lower left quarter digit, e.g. 5 and 3. Therefore, the learned model distribution should contain likely models corresponding to these completions. We use a fully connected generator with 6000-4000-2000 hidden units with 50% dropout probability. The discriminator has 1000-1000 hidden units with leaky ReLU non-linearities. We set for the first 4 epochs and then reduce it to 0, to provide stability during the initial epochs. We compare our synthetic likelihood based approach (Bayes-SL) with, {enumerate*}

A non-Bayesian mean model,

A standard Bayesian approach (Bayes-S),

A Conditional Variational Autoencoder (CVAE) (architecture as in Sohn et al. (2015)). As evaluation metric we consider (oracle) Top-k% accuracy (Lee et al., 2017). We use a standard Alex-Net based classifier to measure if the best prediction corresponds to the ground-truth class – identifies the correct mode – in Figure 3 (right). We sample 10 models from our learned distribution and consider the best model. We see that our Bayes-SL performs best, even outperforming the CVAE model. In the qualitative examples in Figure 3 (left), we see that generations from models sampled from our learned model distribution corresponds to clearly defined digits (also in comparision to Figure 3 in Sohn et al. (2015)). In contrast, we see that the Bayes-S model produces blurry digits. All sampled models have been pushed to the mean and shows little advantage over a mean model.

4.2 Cityscapes street scene anticipation

Next, we evaluate our apporach on the Cityscapes dataset – anticipating scenes more than 0.5 seconds into the future. The street scenes already display considerable multi-modality at this time-horizon.

Evaluation metrics and baselines. We use PSPNet (Zhao et al., 2017) to segment the full training sequences as only the 20 frame has groundtruth annotations. We always use the annotated 20 frame of the validation sequences for evaluation using the standard mean Intersection-over-Union (IoU) and the per-pixel (negative) conditional log-likelihood (CLL) metrics. We consider the following baselines for comparison to our Resnet based Bayesian (Bayes-WD-SL) model with weight dropout and trained using synthetic likelihoods: {enumerate*}

Copying the last seen input;

A non-Bayesian (ResG-Mean) version;

A Bayesian version with standard patch dropout (Bayes-S);

A Bayesian version with our weight dropout (Bayes-WD) . Note that, combination of ResG-Mean with an adversarial loss did not lead to improved results (similar observations made in Luc et al. (2017)). We use grid search to set the dropout rate (in (4)) to 0.15 for the Bayes-S and 0.20 for Bayes-WD(-SL) models. We set for our Bayes-WD-SL model. We train all models using Adam (Kingma & Ba, 2015) for 50 epochs with batch size 8. We use one sample to train the Bayesian methods as in Gal & Ghahramani (2016a) and use 100 samples during evaluation.

Table 1: Comparison to the state-of-the-art.
Method +0.06sec +0.18sec +0.54sec
Last Input (Luc et al. (2017)) x 49.4 36.9
Luc et al. (2017) (ft) x 59.4 47.8
Last Input (Seyed et al. (2018)) 62.6 51.0 x
Seyed et al. (2018) 71.3 60.0 x
Last Input (Ours) 67.1 52.1 38.3
Bayes-S (mean) 71.2 64.8 45.7
Bayes-WD (mean) 73.7 63.5 44.0
Bayes-WD-SL (mean) 74.1 64.8 x
Bayes-WD-SL (ft, mean) x x 51.2
Table 2: Comparison of segmentation estimation methods on Cityscapes validation set.
Method mIoU
Dilation10 (Luc et al., 2017) 68.8
PSPNet (Seyed et al., 2018) 75.7
PSPNet (Ours) 76.9
+ 5 + 10
Method mIoU CLL mIoU CLL
Last Input 45.7 0.86 37.1 1.35
ResG-Mean 59.1 0.49 46.6 0.89
Bayes-S 58.8 0.48 46.1 0.80
Bayes-WD 59.2 0.48 46.6 0.79
Bayes-WD-SL 60.2 0.47 47.1 0.79
Table 4: Ablation study and comparison to a CVAE baseline.
+ 5 + 10
Method mIoU mIoU
CVAE (First) 58.7 45.5
CVAE (Mid) 58.9 46.6
CVAE (Last) 59.2 46.8
Bayes-WD-SL 60.2 47.1
Table 3: Detailed evaluation of predicted uncertainty (mIoU estimated using oracle top 5%).

Comparison to state of the art. We begin by comparing our Bayesian models to state-of-the-art methods Luc et al. (2017); Seyed et al. (2018) in Table 2. We use the mean IoU metric and for a fair comparison consider the mean (of all samples) prediction of our Bayesian models. Always the comparison is to the groundtruth segmentations of the validation set. However, as all three methods use a slightly different semantic segmentation algorithm (Table 2) to generate training and input test data, we include the mean IoU achieved by the Last Input of all three methods. Similar to Luc et al. (2017) we fine-tune (ft) our model to predict at 3 frame intervals for better performance at +0.54sec. Our Bayes-WD-SL model outperforms baselines and improves on prior work by 2.8 mIoU at +0.06sec and 4.8 mIoU / 3.4 mIoU at +0.18sec/+0.54sec respectively. Our Bayes-WD-SL model also obtains relatively closer results to the maximum possible mIoU obtained by the data generating segmentation algorithm. These results validate our choice of model architecture and show that our novel Bayesian approach clearly outperforms the state-of-the-art.

Evaluation of predicted uncertainty. Next, we evaluate whether our Bayesian models are able to accurately capture uncertainity and deal with multi-modal futures, upto + 10 frames (0.6 seconds) in Table 4. We consider the mean of (oracle) best 5% of predictions (Lee et al. (2017)) of our Bayesian models to evaluate whether the learned model distribution contains likely models corresponding to the groundtruth. We see that the best predictions considerably improve over the mean predictions – showing that our Bayesian models learn to capture uncertainity and deal with multi-modal futures. Quantitatively, we see that the Bayes-S model performs worst, demonstrating again that standard dropout (Kendall & Gal, 2017) struggles to recover the true model uncertainity. The use of weight dropout improves the performance to the level of the ResG-Mean model. Finally, we see that our Bayes-WD-SL model performs best. In fact, it is the only Bayesian model whose (best) performance exceeds that of the ResG-Mean model, demonstrating the effectiveness of synthetic likelihoods during training. In Figure 6 we show examples comparing the best prediction of our Bayes-WD-SL model with that of ResG-Mean at + 9. The last row highlights the differences between the predictions – cyan shows areas where our Bayes-WD-SL is correct and ResG-Mean is wrong, red shows the opposite. We see that our Bayes-WD-SL performs better at classes like cars and pedestrians which are harder to predict (also in comparison to Table 5 in Luc et al. (2017)). In Figure 6, we show samples from randomly sampled models , which shows correspondence to the range of possible movements of bicyclists/pedestrians. Next, we further evaluate the models with the CLL metric in Table 4 using the ground-truth class annotations. We consider the mean predictive distributions (3) up to + 10 frames. We see that the Bayesian models outperform the ResG-Mean model significantly. In particular, we see that our Bayes-WD-SL model performs the best, demonstrating that the learned model and observation uncertainty corresponds to the variation in the data.

Comparison to a CVAE baseline. As there exists no CVAE (Sohn et al., 2015) based model for future segmentation prediction, we construct a baseline as close as possible to our Bayesian models based on existing CVAE based models for related tasks (Babaeizadeh et al., 2018; Xue et al., 2016). Existing CVAE based models (Babaeizadeh et al., 2018; Xue et al., 2016) contain a few layers with Gaussian input noise. Therefore, for a fair comparison we first conduct a study in Table 4 to find the layers which are most effective at capturing data variation. We consider Gaussian input noise applied in the first, middle or last convolutional blocks. The noise is input dependent during training, sampled from a recognition network (see Appendix). We observe that noise in the last layers can better capture data variation. This is because the last layers capture semantically higher level scene features. Overall, our Bayesian approach (Bayes-WD-SL) performs the best. This shows that the CVAE model is not able to effectively leverage Gaussian noise to match the data variation.

Figure 4: Uncertainty calibration at + 10.

Uncertainty calibration. We further evaluate predicted uncertainties by measuring their calibration – the correspondence between the predicted probability of a class and the frequency of its occurrence in the data. As in Kendall & Gal (2017), we discretize the output probabilities of the mean predicted distribution into bins and measure the frequency of correct predictions for each bin. We report the results at + 10 frames in Figure 4. We observe that all Bayesian approaches outperform the ResG-Mean and CVAE versions. This again demonstrates the effectiveness of the Bayesian approaches in capturing uncertainty.

Groundtruth, + 9 ResG-Mean, + 9 Bayes-WD-SL, + 9 Comparison
Figure 5: Bayes-WD-SL (top 1) vs ResG-Mean. Cyan: Bayes-WD-SL is correct and ResG-Mean is wrong. Red: Bayes-WD-SL is wrong and ResG-Mean is correct, white: both right, black: both wrong/unlabeled.
Sample #1, + 9 Sample #2, + 9 Sample #3, + 9 Sample #4, + 9
Figure 6: Random samples from our Bayes-WD-SL model corresponds to the range of likely movements of bicyclists/pedestrians.

5 Conclusion

We propose a novel approach for predicting real-world semantic segmentations into the future that casts a convolutional deep learning approach into a Bayesian formulation. One of the key contributions is a novel optimization scheme that uses synthetic likelihoods to encourage diversity and deal with multi-modal futures. Our proposed method shows state of the art performance in challenging street scenes. More importantly, we show that the probabilistic output of our deep learning architecture captures uncertainty and multi-modality inherent to this task. Furthermore, we show that the developed methodology goes beyond just street scene anticipation and creates new opportunities to enhance high performance deep learning architectures with principled formulations of Bayesian inference.


  • Babaeizadeh et al. (2018) Mohammad Babaeizadeh, Chelsea Finn, Dumitru Erhan, Roy H Campbell, and Sergey Levine. Stochastic variational video prediction. In ICLR, 2018.
  • Bao et al. (2017) Jianmin Bao, Dong Chen, Fang Wen, Houqiang Li, and Gang Hua. Cvae-gan: fine-grained image generation through asymmetric training. In ICCV, 2017.
  • Bhattacharyya et al. (2018a) Apratim Bhattacharyya, Mario Fritz, and Bernt Schiele. Long-term on-board prediction of people in traffic scenes under uncertainty. In CVPR, 2018a.
  • Bhattacharyya et al. (2018b) Apratim Bhattacharyya, Mario Fritz, and Bernt Schiele. Accurate and diverse sampling of sequences based on a “best of many” sample objective. In CVPR, 2018b.
  • Denton & Fergus (2018) Emily Denton and Rob Fergus. Stochastic video generation with a learned prior. arXiv preprint arXiv:1802.07687, 2018.
  • Gal & Ghahramani (2016a) Yarin Gal and Zoubin Ghahramani. Bayesian convolutional neural networks with Bernoulli approximate variational inference. In ICLR workshop track, 2016a.
  • Gal & Ghahramani (2016b) Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In ICML, 2016b.
  • Gu et al. (2016) Shixiang Gu, Sergey Levine, Ilya Sutskever, and Andriy Mnih. Muprop: Unbiased backpropagation for stochastic neural networks. In ICLR, 2016.
  • He et al. (2016) Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
  • Jin et al. (2017) Xiaojie Jin, Huaxin Xiao, Xiaohui Shen, Jimei Yang, Zhe Lin, Yunpeng Chen, Zequn Jie, Jiashi Feng, and Shuicheng Yan. Predicting scene parsing and motion dynamics in the future. In NIPS, 2017.
  • Kendall & Gal (2017) Alex Kendall and Yarin Gal. What uncertainties do we need in bayesian deep learning for computer vision? In NIPS, 2017.
  • Kingma & Ba (2015) Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
  • Lee et al. (2017) Namhoon Lee, Wongun Choi, Paul Vernaza, Christopher B Choy, Philip HS Torr, and Manmohan Chandraker. Desire: Distant future prediction in dynamic scenes with interacting agents. In CVPR, 2017.
  • Luc et al. (2017) Pauline Luc, Natalia Neverova, Camille Couprie, Jakob Verbeek, and Yann LeCun. Predicting deeper into the future of semantic segmentation. In ICCV, 2017.
  • Luc et al. (2018) Pauline Luc, Camille Couprie, Yann Lecun, and Jakob Verbeek. Predicting future instance segmentations by forecasting convolutional features. arXiv preprint arXiv:1803.11496, 2018.
  • MacKay (1992) David JC MacKay. A practical bayesian framework for backpropagation networks. Neural computation, 4(3), 1992.
  • Mathieu et al. (2016) Michael Mathieu, Camille Couprie, and Yann LeCun. Deep multi-scale video prediction beyond mean square error. In ICLR, 2016.
  • Mirza & Osindero (2014) Mehdi Mirza and Simon Osindero. Conditional generative adversarial nets. arXiv preprint arXiv:1411.1784, 2014.
  • Neal (2012) Radford M Neal. Bayesian learning for neural networks, volume 118. Springer Science & Business Media, 2012.
  • Osband (2016) Ian Osband. Risk versus uncertainty in deep learning: Bayes, bootstrap and the dangers of dropout. NIPS Workshop on Bayesian Deep Learning, 2016.
  • Rezende et al. (2014) Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In ICML, 2014.
  • Rosca et al. (2017) Mihaela Rosca, Balaji Lakshminarayanan, David Warde-Farley, and Shakir Mohamed. Variational approaches for auto-encoding generative adversarial networks. arXiv preprint arXiv:1706.04987, 2017.
  • Saatci & Wilson (2017) Yunus Saatci and Andrew G Wilson. Bayesian gan. In NIPS, 2017.
  • Seyed et al. (2018) Shahabeddin Nabavi Seyed, Mrigank Rochan, and Wang Yang. Future semantic segmentation with convolutional lstm. In BMVC, 2018.
  • Sohn et al. (2015) Kihyuk Sohn, Honglak Lee, and Xinchen Yan. Learning structured output representation using deep conditional generative models. In NIPS, 2015.
  • Tang & Salakhutdinov (2013) Yichuan Tang and Ruslan R Salakhutdinov. Learning stochastic feedforward neural networks. In NIPS, 2013.
  • Wood (2010) Simon N Wood. Statistical inference for noisy nonlinear ecological dynamic systems. Nature, 466(7310):1102, 2010.
  • Xingjian et al. (2015) Shi Xingjian, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional lstm network: A machine learning approach for precipitation nowcasting. NIPS, 2015.
  • Xue et al. (2016) Tianfan Xue, Jiajun Wu, Katherine Bouman, and Bill Freeman. Visual dynamics: Probabilistic future frame synthesis via cross convolutional networks. In NIPS, 2016.
  • Yu & Koltun (2016) Fisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. In ICLR, 2016.
  • Zhao et al. (2017) Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In CVPR, 2017.

Appendix A. Detailed derivations.

KL divergence estimate. Here, we provide a detailed derivation of (8). Starting from (7), we have,


Multiplying and dividing by , the true probability of occurance,


Using ,


As is independent of , the variables we are optmizing over, we have,


Appendix B. Results on simple multi-modal 2D data.

Figure 7: Blue: Data points. Black: Sampled models learned by the Bayes-S approach. All models fit to the mean.

Figure 8: Blue: Data points. Black: Sampled models learned by the Bayes-SL approach. We recover models covering both modes.

We show results on simple multi-modal 2d data as in the motivating example in the introduction. The data consists of two parts: we have and we have . The set of models under consideration is a two hidden layer neural network with 256-128 neurons with 50% dropout. We show 10 randomly sampled models from learned by the Bayes-S approach in Figure 8 and our Bayes-SL approach in Figure 8 (with ). We assume constant observation uncertainty (=1). We clearly see that our Bayes-SL learns models which cover both modes, while all the models learned by Bayes-S fit to the mean. Clearly showing that our approach can better capture model uncertainty.

Appendix C. Results on HKO precipitation forecasting data.

The HKO radar echo dataset consists of weather radar intensity images. We use the train/test split used in Xingjian et al. (2015); Bhattacharyya et al. (2018b). Each sequence consists of 20 frames. We use 5 frames as input and 15 for prediction. Each frame is recorded at an interval of 6 minutes. Therefore, they display considerable uncertainty. We use the same network architecture as used for street scene segmentation Bayes-WD-SL (Figure 2 and with ), but with half the convolutional filters at each level. We compare to the following baselines: {enumerate*}

A deterministic model (ResG-Mean),

A Bayesian model with weight dropout . We report the (oracle) Top-10% scores (best 1 of 10), over the following metrics (Xingjian et al., 2015; Bhattacharyya et al., 2018b), {enumerate*}

Rainfall-MSE: Rainfall mean squared error,

CSI: Critical success index,

FAR: False alarm rate,

POD: Probability of detection, and

Correlation , in Table 5,

Method Rainfall-MSE CSI FAR POD Correlation
Xingjian et al. (2015) (mean) 1.420 0.577 0.195 0.660 0.908
Bhattacharyya et al. (2018b) (mean) 1.163 0.670 0.163 0.734 0.918
ResG-Mean 1.286 0.720 0.104 0.780 0.942
Bayes-WD (Top-10%) 1.067 0.718 0.113 0.771 0.944
Bayes-WD-SL (Top-10%) 1.033 0.721 0.102 0.780 0.945
Table 5: Evaluation on HKO radar image sequences.
Figure 9: Predicted radar intensity to the true mean observed intensity.

Note, that Xingjian et al. (2015); Bhattacharyya et al. (2018b) reports only scores over mean of all samples. Our ResG-Mean model outperforms these state of the art methods, showing the versatility of our model architecture. Our Bayes-WD-SL can outperform the strong ResG-Mean baseline again showing that it learns to capture uncertainty (see Figure 10). In comparison, the Bayes-WD baseline struggles to outperform the ResG-Mean baseline.

We further compare the calibration our Bayes-SL model to the ResG-Mean model in Figure 9. We plot the predicted intensity to the true mean observed intensity. The difference to ResG-Mean model is stark in the high intensity region. The RegG-Mean model deviates strongly from the diagonal in this region – it overestimates the radar intensity. In comparison, we see that our Bayes-WD-SL approach stays closer to the diagonal. These results again show that our synthetic likelihood based approach leads to more accurate predictions while not compromising on calibration.

Observation Groundtruth
Observation Prediction
Observation Groundtruth
Observation Prediction
Figure 10: Example Top-1 predictions by our Bayes-WD-SL model.

Appendix D. Additional architecture details.

Details of our generative model. We show the layer wise details in Table 6.

Layer Type Size Activation Input Output
Input x
Conv2D 128 ReLU
Conv2D 128 ReLU
Conv2D 128 ReLU
Residual Connection 128
Max Pooling 22
Conv2D 256 ReLU
Conv2D 256 ReLU
Conv2D 256 ReLU
Residual Connection 128
Max Pooling 22
Conv2D 512 ReLU
Conv2D 512 ReLU
Conv2D 512 ReLU
Residual Connection 128
Up Sampling 22
Conv2D 256 ReLU
Conv2D 256 ReLU
Conv2D 256 ReLU
Residual Connection 128
Up Sampling 22
Conv2D 128 ReLU
Conv2D 64 ReLU
Conv2D 64 ReLU
Conv2D 38 GaussS
GaussS Gaussian Sampling y
Table 6: Details our generative model. The final output of is split into mean and variances for sampling as in (6) of the main paper.

Details of our discriminator model. We show the layer wise details in Table 7.

Layer Type Size Activation Input Output
Conv2D 128 ReLU
Conv2D 128 ReLU
Max Pooling 22
Conv2D 256 ReLU
Conv2D 256 ReLU
Max Pooling 22
Conv2D 512 ReLU
Max Pooling 22
Conv2D 512 ReLU
Max Pooling 22 Flatten
Fully Connected 1024 ReLU Flatten
Fully Connected 1024 ReLU Out
Out Fully Connected -
Table 7: Details our discriminator model. The final output Out provides the synthetic likelihoods .

Details of the recognition model used in the CVAE baseline. We show the layer wise details in Table 8.

Layer Type Size Activation Input Output
Conv2D 128 ReLU
Conv2D 128 ReLU
Max Pooling 22
Conv2D 128 ReLU
Conv2D 128 ReLU
Max Pooling 22
Conv2D 128 ReLU
Conv2D 128 ReLU
Up Sampling 22
Conv2D 128 ReLU
Up Sampling 22
Conv2D 32
Conv2D 32
Conv2D 32
Table 8: Details the recognition model used in the CVAE baseline. The final outputs are the Gaussian Noise tensors .
Comments 0
Request Comment
You are adding the first comment!
How to quickly get a good reply:
  • Give credit where it’s due by listing out the positive aspects of a paper before getting into which changes should be made.
  • Be specific in your critique, and provide supporting evidence with appropriate references to substantiate general statements.
  • Your comment should inspire ideas to flow and help the author improves the paper.

The better we are at sharing our knowledge with each other, the faster we move forward.
The feedback must be of minimum 40 characters and the title a minimum of 5 characters
Add comment
Loading ...
This is a comment super asjknd jkasnjk adsnkj
The feedback must be of minumum 40 characters
The feedback must be of minumum 40 characters

You are asking your first question!
How to quickly get a good answer:
  • Keep your question short and to the point
  • Check for grammar or spelling errors.
  • Phrase it like a question
Test description