Hierarchical Recurrent Filtering for Fully Convolutional DenseNets

10/05/2018 ∙ by Jörg Wagner, et al. ∙ 0

Generating a robust representation of the environment is a crucial ability of learning agents. Deep learning based methods have greatly improved perception systems but still fail in challenging situations. These failures are often not solvable on the basis of a single image. In this work, we present a parameter-efficient temporal filtering concept which extends an existing single-frame segmentation model to work with multiple frames. The resulting recurrent architecture temporally filters representations on all abstraction levels in a hierarchical manner, while decoupling temporal dependencies from scene representation. Using a synthetic dataset, we show the ability of our model to cope with data perturbations and highlight the importance of recurrent and hierarchical filtering.

READ FULL TEXT VIEW PDF
POST COMMENT

Comments

There are no comments yet.

Authors

page 1

page 2

page 3

page 4

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

A robust and reliable perception and interpretation of the environment is a crucial competence of autonomous systems. Deep learning based methods greatly advanced the generation of robust environment representations and dominate the majority of perception benchmarks. From a safety point of view, a major drawback of popular datasets is their recording at daytime under good or normal environment conditions. In order to deploy autonomous systems in an unconstrained world without any supervision, one has to make sure that they still work in challenging situations such as sensor outages or heavy weather. These situations induce failures of the perception algorithm, which are not solvable by just using a single image. We denote these failures in accordance to Kendall et al. [1] as aleatoric failures. To tackle such failures, one has to enhance the information provided to the perception algorithm. This can be achieved by using a better sensor, fusing information of multiple sensors, utilizing additional context knowledge, or by integrating information over time.

In this paper, we focus on using temporal coherence to reduce aleatoric failures of a single-frame segmentation model. We build upon the Fully Convolutional DenseNet (FC-DenseNet) [2] and propose a temporal filtering concept, which extends it to work with multiple frames. The temporal integration is achieved by recurrently filtering the representations on all abstraction levels in a hierarchical manner. Due to the hierarchical nature of the filter concept, our model—the Recurrent Fully Convolutional DenseNet (RFC-DenseNet)—can utilize temporal correlations on all abstraction levels. Additionally, the RFC-DenseNet decouples temporal dependencies from scene representation, which increases its transparency and enables a direct transformation of any FC-DenseNet. Despite its recurrent nature, the proposed model is highly parameter efficient. Using simulated data, we show the ability of RFC-DenseNet to reduce aleatoric failures and highlight the importance of recurrent and hierarchical filtering.

2 Related Work

The majority of research, focused on using temporal information to reduce aleatoric failures of segmentation models, applies a non-hierarchical filter approach. Valipour et al. [3] generate a representation for each image in a sequence and use a Recurrent Network to temporally filter them. Jin et al. [4] utilize a sequence of previous images to predict a representation of the current image. The predicted representation is fused with the current one and propagated through a decoder model. Similar approaches exist, which apply post-processing steps on top of frame segmentations. Kundu et al. [5] use a Conditional Random Field operating on an Euclidean feature space, optimized to minimize the distance between features associated with corresponding points in the scene. Our approach differs from the above methods due to its hierarchical nature.

Tran et al. [6]

build a semantic video segmentation network using spatio-temporal features computed with 3D convolutions. We differ from this approach due to the explicit utilization of recurrent filters. The Recurrent Convolutional Neural Network of Pavel

et al. [7] is similar to our architecture. This method uses layer-wise recurrent self-connections as well as top-down connections to stabilize representations. The approach focuses on a fully recurrent topology, while our approach decouples temporal filtering and scene representation. Additionally, our approach uses a dense connection pattern to get an improved signal flow.

3 Recurrent Fully Convolutional DenseNets

3.1 Revisiting the Fully Convolutional DenseNet (FC-DenseNet)

The FC-DenseNet [2] is constructed by using a fully convolutional version of DenseNet as feature extractor, utilizing a Dense Block (DB) enhanced upsampling path, and interlinking both paths using skip connections (Fig. 1). The DenseNet, used in the feature extractor, is a convolutional network, which iteratively adds features to a stack, the global feature state. Newly added features are computed using all previous ones of matching spatial size:

(1)

where is the function of the Dense Unit (DU) with parameters .

Figure 1: FC-DenseNet of depth two with three layers per Dense Block.

3.2 Temporal Representation Filtering

Due to perturbations inherent in the data, the features computed in each Dense Unit are only a crude approximation of the true representation

. To get an improved estimate, we propose to filter them using a Filter Module (FM):

(2)

where is the filter function with parameters and hidden state .

FC-DenseNet can be transformed into our proposed RFC-DenseNet by using a recurrent version of the Dense Block (see Fig. 2), which employs a Filter Module after each Dense Unit. To compute a robust segmentation, RFC-DenseNet utilizes the information of multiple images. These images are propagated through the feature extractor and the subsequent upsampling path, while taking temporal correlations via the Filter Modules into account.

The RFC-DenseNet adds filtered features to the global feature state of the model. Features computed in each Dense Unit are thus derived from already filtered ones, generating a hierarchy of filtered representations. Due to the hierarchical filter nature, RFC-DenseNet can utilize temporal correlations on all abstraction levels. In comparison, a non-hierarchical filter only has access to a sequence of high-level representations. The availability of all features, required to solve aleatoric failures within the filter, is not guaranteed in such a setting.

The RFC-DenseNet decouples temporal dependencies from scene representation by using dedicated Filter Modules. This property makes it easy to transform any single-image FC-DenseNet into a corresponding multi-image RFC-DenseNet. One could also use the weights of a FC-DenseNet to initialize the non-recurrent part of the corresponding RFC-DenseNet. The decoupling additionally increases the transparency of the model, enabling a dedicated allocation of resources for temporal filtering and hierarchical feature generation (scene representation).

The proposed filter approach can also be employed in other models, but is especially suitable for the FC-DenseNet architecture. The explicit differentiation of newly computed features and features stored in the global feature state makes the temporal filtering very parameter efficient. Each filter only has to process a small number of feature maps—resulting in a moderate increase in the total number of model parameters. The distinct focus on a small feature set in each Filter Module also reduces the computational complexity of the filter task.

Figure 2: Recurrent Dense Block using a Filter Module after each Dense Unit.

3.3 Instances of the Filter Module

We investigated three instances of the Filter Module with increasing complexity. All modules are based on Convolutional Long Short Term Memory cells (Conv-LSTMs), which have proven to produce state-of-the-art results on a multitude of spatio-temporal sequence modeling tasks. The Conv-LSTM is defined by:

(3)
(4)
(5)

where is the convolutional operator, the Hadamard product, and the input. The hidden state of Equation 2 is a summary of and . A property of all Filter Modules are matching dimensions between the unfiltered and filtered representation and a filter size of 33 for all kernels .

The Filter Module FM (Fig. 3, green) uses a single Conv-LSTM following the two pre-activation

layers (Batch Normalization (BN) and Rectified Linear Unit (ReLU)). The number of feature maps stored in the cell state

matches the number of feature maps of the unfiltered representation. This property restricts the filter capabilities but also limits the number of required parameters.

The Filter Module FM (Fig. 3, green and blue) uses the concept of residual learning [8] and applies it to FM. The introduced skip connection ensures a direct information and gradient flow, preventing signal degradation.

FM (Fig. 3, green and red) alleviates the limitation on the complexity of the filter, introduced by matching feature dimensions of the unfiltered representation and the cell state. This instance employs an encoder-decoder structure, consisting of the Conv-LSTM and a Dense Unit. The number of feature maps stored in the Conv-LSTM can be chosen to be a multitude of the number of unfiltered maps. A drawback of FM is the increased parameter count.

Figure 3: Three separate Filter Module instances: FM, FM and FM.

4 Experimental Results

4.1 Dataset

To evaluate the proposed models, we use a simulated dataset (see Fig. 4). The sequences emulate a 2D environment of 6464 pixels, in which squares represent dynamic and static objects, rectangles represent borders and walls, and circles represent moving foreground objects. Each square is marked with a random MNIST digit. The dynamic squares elastically collide with all other squares, borders and walls. The moving circles occlude each other, as well as all other objects. The number of objects, their size and color, the color of MNIST digits as well as the velocity of all dynamic objects is randomly sampled for each sequence.

To simulate aleatoric failures, we perturb the data with noise, ambiguities, missing information, and occlusions. Noise is simulated by adding zero mean Gaussian noise to each pixel. Occlusions are introduced by the foreground circles. To simulate missing information, we increase or decrease the intensity of pixels by a random value and let this offset decay. This effect is added to whole images and to subregions. Ambiguities are simulated using different classes for static and dynamic squares. Our dataset contains 25,000 independently sampled sequences of length 5, which are split into 20,000 training, 4,000 validation and 1,000 test sequences. We additionally generate a clean test set with no aleatoric failures. For the segmentation task, we define 14 classes: background, borders and walls, static squares, circles, and dynamic squares with one class per MNIST digit. A label is only available for the last image in each sequence.

Figure 4: Test sequence of length 5 with label.
FCD FCD Model depth Layers per DB Features per DU Features of the first convolution Table 1: FC-DenseNets.

4.2 Models

We perform a grid search to find the best FC-DenseNet (FCD). The grid parameters are listed in Table 1. Our temporal models are built based on a smaller version of the FC-DenseNet (FCD) to reduce training time.

In total, we train seven temporal models: Four RFC-DenseNets using our filter concept (Table 2), a recurrent, non-hierarchical model RM (cf. [3]), and two non-recurrent models: TM and TM. RM globally filters the representation generated in the last Dense Block of FCD using FM with and a hidden-to-hidden filter size of 9. TM and TM are FC-DenseNets: one using

Filter Module
RFCD FM
RFCD FM
RFCD FM,
RFCD FM,
Table 2: RFC-DenseNets.

3D convolutions of size 333 and one operating on stacked input sequences. The filter size of kernels in our RFC-DenseNets are set to . All temporal models, except for RFCD, have roughly the same number of parameters.

4.3 Evaluation

We summarize the results in Table 3 by reporting the mean Intersection over Union (mean IoU) on the test dataset, as well as the clean test dataset.

FCD FCD RFCD RFCD RFCD RFCD RM TM TM
Test dataset
Clean test dataset
Table 3: Mean IoU of the different models on the test and clean test dataset.

All models which utilize temporal information significantly outperform the single-image FC-DenseNets on the test data—showing the importance of temporal filtering. On the clean test data, the single-image and multi-image models are roughly on par, suggesting that temporal information especially benefits the reduction of aleatoric failures. The superior performance of FCD on the clean test data compared to most of the temporal models can most likely be attributed to its increased non-temporal depth and width.

The mean IoUs of the different RFC-DenseNets suggest a correlation between filter complexity and performance. However, the difference is relatively small. The performance of RFCD is unexpectedly poor in comparison to RFCD. Looking at class-wise IoUs did not provide any additional insight regarding possible systematic failures. We plan to further investigate other recurrent regularization techniques to improve the performance of RFCD.

The hierarchical RFC-DenseNet models outperform the non-hierarchical, recurrent baseline RM by to on the test data, showing the superiority of our models in the reduction of aleatoric failures. We suspect that our hierarchical filter concept better utilizes temporal information, compared to a non-hierarchical approach. Taking only the diverse MNIST digits into account, the performance difference increases further. For these classes, it is important to model low-level temporal dependencies. The non-hierarchical approach possibly suffers, because of the loss in scene details from lower to upper layers.

The performance of the non-recurrent models, TM and TM, is inferior to the recurrent ones. This is most likely due to the explicit temporal structure of recurrent models, which benefits the detection of temporal correlations.

5 Conclusion

In this work, we proposed a parameter-efficient approach to temporally filter the representations of the FC-DenseNet in a hierarchical fashion, while decoupling temporal dependencies from scene representation. Using a synthetic dataset, we showed the benefits of using temporal information in regards to aleatoric failures, as well as the advantages introduced by our recurrent and hierarchical filtering concept. In the future, we plan to evaluate our approach on real-world datasets.

References