MAIN: Multi-Attention Instance Network for Video Segmentation
Juan Leon Alcazar, Maria A. Bravo, Ali K. Thabet, Guillaume Jeanneret,, Thomas Brox, Pablo Arbelaez, Bernard Ghanem

TL;DR
MAIN introduces a novel multi-attention network for video segmentation that effectively integrates generic spatio-temporal cues, achieving state-of-the-art results without relying on sequence-specific modeling.
Contribution
The paper presents MAIN, a multi-attention network that segments multiple video instances in real-time using generic cues, avoiding sequence-specific modeling.
Findings
Achieves state-of-the-art on Youtube-VOS dataset.
Improves unseen Jaccard by 6.8%.
Operates at 30.3 FPS.
Abstract
Instance-level video segmentation requires a solid integration of spatial and temporal information. However, current methods rely mostly on domain-specific information (online learning) to produce accurate instance-level segmentations. We propose a novel approach that relies exclusively on the integration of generic spatio-temporal attention cues. Our strategy, named Multi-Attention Instance Network (MAIN), overcomes challenging segmentation scenarios over arbitrary videos without modelling sequence- or instance-specific knowledge. We design MAIN to segment multiple instances in a single forward pass, and optimize it with a novel loss function that favors class agnostic predictions and assigns instance-specific penalties. We achieve state-of-the-art performance on the challenging Youtube-VOS dataset and benchmark, improving the unseen Jaccard and F-Metric by 6.8% and 12.7% respectively,…
| Separable | Dilated | Seen |
| Convolutions | Convolutions | |
| 0.603 | ||
| ✓ | 0.606 | |
| ✓ | 0.613 | |
| ✓ | ✓ | 0.645 |
| Loss Function | Seen |
|---|---|
| Binary Cross Entropy | 0.538 |
| DICE | 0.611 |
| Weighted Instance DICE (WID) | 0.645 |
| Attention | Input Data | Seen |
|---|---|---|
| None | RGB | 0.321 |
| None | RGB+uOF | 0.326 |
| STA | RGB | 0.436 |
| STA | RGB+uOF | 0.500 |
| LTA | RGB | 0.625 |
| LTA | RGB+uOF | 0.628 |
| LTA+STA | RGB | 0.632 |
| LTA+STA | RGB+uOF | 0.645 |
| Optical Flow Configuration | Seen |
|---|---|
| Optical Flow | 0.612 |
| Unit Optical Flow | 0.645 |
| Number of instances | Seen |
|---|---|
| Single-Instance | 0.616 |
| Multi-Instance | 0.645 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
MAIN: Multi-Attention Instance Network for Video Segmentation
Juan León Alcázar*∗1*, María A. Bravo*∗1*, Ali K. Thabet2, Guillaume Jeanneret1, Thomas Brox3,
Pablo Arbeláez1 and Bernard Ghanem2
1Universidad de los Andes, 2King Abdullah University of Science and Technology, 3University of Freiburg
1{jc.leon, ma.bravo641, g.jeanneret10, pa.arbelaez}@uniandes.edu.co;
2{ali.thabet, bernard.ghanem}@kaust.edu.sa;
Abstract
Instance-level video segmentation requires a solid integration of spatial and temporal information. However, current methods rely mostly on domain-specific information (online learning) to produce accurate instance-level segmentations. We propose a novel approach that relies exclusively on the integration of generic spatio-temporal attention cues. Our strategy, named Multi-Attention Instance Network (MAIN), overcomes challenging segmentation scenarios over arbitrary videos without modelling sequence- or instance-specific knowledge. We design MAIN to segment multiple instances in a single forward pass, and optimize it with a novel loss function that favors class agnostic predictions and assigns instance-specific penalties. We achieve state-of-the-art performance on the challenging Youtube-VOS dataset and benchmark, improving the unseen Jaccard and F-Metric by 6.8% and 12.7% respectively, while operating at real-time (30.3 FPS).
††footnotetext: ∗ Equal contribution
1 Introduction
Current state-of-the-art video segmentation methods [5, 48, 24, 30] have achieved impressive results for the binary task of separating foreground objects from the background. However, the finer-grained task of multi-instance video segmentation, which aims at independently identifying and segmenting multiple objects, remains an open research problem. There are several task-specific challenges for multi-instance segmentation. First, an accurate label assignment must create a set of spatial and temporal consistent masks across all the instances in the sequence. Second, there is a loose definition (lack of semantics) for the object of interest, since segmentation targets are arbitrarily chosen among all the available objects in the starting frame. Third, the appearance, scale, and visibility of segmentation targets vary throughout the video. Finally, there are complex scene dynamics specific to each sequence, which are hard to model without domain-specific knowledge. Figure 1 shows video clips with some results of our method on such challenging scenarios.
One-shot video segmentation defines the task of segmenting arbitrary objects given a ground-truth annotation in the first video frame. Methods like [5, 48, 24] approached this task by training a binary model over fully annotated videos (a phase commonly known as Offline Training) and finetuning it on every unseen video, resulting in multiple sequence-specific or instance-specific models (a phase also known as Online Training). These methods rely strongly on online training to estimate and fuse instance-level predictions. Recent methods have proposed other strategies to improve the online phase by using instance re-identification [43, 31, 7], instance proposals [54, 19, 44], or local motion information [47], among many others. Regardless of the selected strategy, these methods remain computationally expensive for training and inference, and might not be suitable for modern large-scale datasets.
In this paper, we propose a single encoder-decoder architecture that operates by design at the instance-level in an offline configuration, enabling efficient and generic processing of unconstrained video sequences. Our method focuses on recurrent estimation and consistent propagation of generic spatio-temporal information. It integrates static grouping features (e.g. color, shape and texture), with short-term motion cues (e.g. optical flow), along with short and long spatio-temporal attention mechanisms, which attend to a specific set of objects in a frame and maintain large contextual information. We optimize our model end-to-end using a novel loss function that assigns a pixel-wise penalty according to the relative error contribution of the segmentation target. Figure 2 shows an overview of our method, which we call Multi-Attention Instance Network (MAIN).
Intuitively, MAIN incorporates insights from multi-target tracking, image warping, and static image segmentation in an efficient framework that runs at fps. To the best of our knowledge, MAIN is the first method that can generate an arbitrary number of instance-level predictions in a single forward pass and without domain-specific information, thus, making it particularly useful for unconstrained large-scale scenarios. MAIN accomplishes state-of-the-art performance and improves with a high increase for unseen instances in the Jaccard and F-Metric to 55.0% and 63.0% respectively. We verify our contributions through a series rigorous ablation studies in which we demonstrate the contribution of each additional feature and the robustness and effectiveness of our method.
Contributions.
Our work has four main contributions. (1) MAIN directly addresses the multi-instance scenario; it generates multi-instance segmentations in a single forward pass, without the need of domain-specific knowledge or instance-specific fine-tuning. (2) We introduce a novel loss function devised for the multi-instance segmentation scenario. This function enables us to work on large and highly imbalanced datasets that contain multiple instances of diverse sizes without any hyper-parameter tuning. (3) MAIN explicitly fuses static, motion, short-term and long-term temporal grouping cues into a single end-to-end trainable architecture. (4) We propose a dilated separable decoder architecture, which allows us to aggregate multi-scale information using less computationally expensive operations.
To ensure reproducible results and to promote future research, all the resources of this project –source code, model weights, and official benchmark results– will be made publicly available.
2 Related Work
Interest in video segmentation has grown in recent years within the computer vision community, in part due to the availability of new datasets [40, 41, 53], and the development of deep convolutional neural architectures [16, 28, 27, 17, 35]. But mostly due to the recent re-formulation of the problem, evolving from a direct extension of classic image segmentation [3, 45, 13] into a one-shot learning task [40, 41, 53], which further highlights the need for temporally consistent estimations.
One-Shot learning for video object segmentation.
Recent datasets formulate the video object segmentation task as a one-shot problem [40, 41, 53] and provide the ground-truth instance segmentations for the first frame. State-of-the-art methods [5, 39, 54, 48, 51] usually train a binary offline model, capable of producing an initial background and foreground estimation. Then, during online training, they fine-tune these models for the specific instances in validation using the available ground-truth. Most offline methods [5, 46, 48, 24] do not work in a multi-instance scenario and require either multiple online training sessions or instance-specific knowledge [54] to do so. In contrast, MAIN works directly on a multi-instance offline configuration, generating multi-instance segmentations in a single forward pass without any prior knowledge or online training.
Loss functions for video segmentation.
Video object segmentation datasets have an inherent large class imbalance favoring trivial background assignments and making small objects into hard false negatives. To tackle this issue, strategies like the Focal Loss [33] use a sample-specific weight enabling the large imbalance to be controlled on detection tasks. Likewise, other methods [52, 11, 36] create an adaptive loss function for edge detection weighted by the ratio of positive edge pixels to background pixels. In the segmentation field, Milletari et al. [37] proposed the Dice Loss function, which directly approximates the Jaccard Index. In this paper, we propose a novel loss function, the Weighted Instance Dice (WID) loss, that exploits the benefits of the Dice loss to perform effectively on highly imbalanced datasets. WID independently weighs every pixel prediction according to the size of the corresponding instance.
Long-term temporal cues.
Building upon the core ideas of generic and specific networks, some recent works [46, 47, 51] tackle the lack of consistent temporal information, a phenomenon that arises when video frames are processed independently. These approaches focus mostly on extracting useful temporal information from moving objects. In fact, motion is a strong bottom-up cue for video segmentation, especially when objects of interest have independent motion patterns [23]. Following this line of thought, some approaches [4, 50] use long-term point trajectories based on dense optical flow fields. They define pair-wise distances between these trajectories and cluster them to have temporally consistent segmentations of moving objects. We build upon these core ideas and design an encoder-decoder architecture that incorporates long-term spatial attention cues estimated from a tracking algorithm.
Short-term temporal cues.
Recent video segmentation methods directly rely on motion information, thus including it as prior knowledge [24, 19, 39, 18, 51, 29]. These strategies either rely on dense optical flow estimation or another online approximation of pixel-level short-term motion patterns, either pre-computed or estimated jointly with the segmentation [8]. Compared to these methods, MAIN benefits from motion information by explicitly fusing a robust version of the optical flow with the standard RGB input.
Another important source of information when performing a recurrent task like video segmentation is the set of previous predictions. Methods like VPN [22, 7] and MaskTrack [39] use previously segmented masks to better estimate the current segmentation. We also use the optical flow to warp the previous segmentation and to set our short spatio-temporal prior information. MAIN fuses these short-term cues with long spatio-termporal cues to produce a set of temporally consistent instance segmentations.
3 Multi-Attention Instance Network (MAIN)
Video object segmentation datasets such as Youtube-VOS [53] and DAVIS-17 [41] contain multiple segmentation targets in a single video. Our approach directly addresses the multi-instance scenario with an offline trained network that produces multiple segmentations in a single forward pass. We concatenate attention sources for every instance in the video and optimize MAIN in order to output a segmentation only if the attention cues indicate the presence of an instance. Given a dataset with at most instances per video, we use attention priors for possible instances (one short-term (STA) and one long-term (LTA) for each instance), and set the output of our decoder to return a tensor of dimensions . Then, if a video has instances, MAIN predicts instances only for the first channels.
While simple, this extension overcomes two important challenges of the one-shot multi-instance segmentation scenario: (i) the lack of semantics for target objects, since attention cues are class agnostic and (ii) the need for domain-specific knowledge to achieve temporally consistent instance-level segmentations, given by the multiple channel output that generates multi-instance segmentation in a single forward pass. By using this strategy, MAIN reduces the computational complexity of the forward pass, along with the total training time.
Instance Shuffle.
We observe that the instance distribution in Youtube-VOS (Avg. 1.71, Std. 0.87, Mode 1, Max 6 per video) makes it difficult for the network to generate accurate multi-instance segmentations for videos with more than three instances, since they are not frequent. We address this problem by randomly shuffling the attention channels, and performing the same permutation in the output maps and supervision data. After this modification, instances appear with similar frequency across output channels in a single batch regardless of the bias in the dataset.
3.1 Weighted Instance Dice (WID) Coefficient Loss
Most state-of-the-art methods for video object segmentation use either a binary or a multi-class cross-entropy loss function that can, optionally, be weighted in the presence of a large class imbalance [36, 52]. Since MAIN predicts instance-level and class-agnostic segmentations, we depart from the standard practice and introduce a novel loss function that better approximates the multi-instance segmentation scenario. This loss penalizes overlapping predictions and errors over small instances, which have large influence on the evaluation metric. We propose the Weighted Instance Dice Coefficient (WID) loss function for a multi-instance segmentation scenario:
[TABLE]
where is the set of instance predictions and the set of instance ground-truth. is the standard Dice coefficient, hence corresponds to a non-weighted Dice loss for a single instance. is an instance specific weight coefficient that increases for smaller instances. We define , where is the total number of pixels in and correspond to the width and height of the video frame. Finally, enforces a penalty for overlapping instance predictions reducing incorrect instance assignments.
Formally, WID is supported by the bijection between the Dice coefficient and the Jaccard index (), which guarantees that minimizing a Dice loss function maximizes the associated Jaccard metric. In contrast to the Dice coefficient proposed by [37], whose convergence rate is modulated by , WID presents an improvement as it considers instance overlapping errors and allows for an instance-specific weighting instead of the standard practice of class-specific weighting.
3.2 Attention Priors
At the core of our approach is a set of attention cues estimated for all instances at time given their visual appearance and location at time . Initially, we estimate long-term dependencies (i.e. ), by means of a tracking strategy that creates attention regions according to the temporal evolution of previous positive detections. We call these cues Long-term Attention (LTA). We complement these long term recurrences with attention cues over short-term intervals (i.e. ). We estimate a robust version of Optical Flow and use it as a fine-grained (pixel-level) short-term motion attention cue. We also propagate the prediction at time by warping it with the estimated optical flow, creating a coarser (region-level) Short-term Attention (STA). Figure 3 presents an overview of the selected cues.
Short-Term Attention Prior.
We propose an STA source by including information from the warped segmentation mask of the previous frame. This prior is motivated by the video’s causal nature, in which the predicted mask at time is strongly related to the prediction at time . Such temporal correspondence approximates both the target specification and its immediate trajectory.
We follow the standard definition of a recurrent warping as the mapping over a frame from a video with width , height , number of channels , and estimated optical flow field between frames . This short-term prior allows the network to explicitly assess the approximate appearance of the targets resulting in more precise segmentations.
Long-Term Attention Prior.
We establish an LTA prior from the iterative estimation of an instance location. We calculate this prior by means of a bounding box tracker, which estimates an approximate location of an object at frame given its appearance and its immediate context at times . This process is performed in a sequential manner, starting at frame 0, whose bounding box location information is known.
Since tracking is, in essence, a one-shot learning problem [2] and its core algorithm can be initialized and efficiently executed, even in large-scale datasets, it directly fits into the one-shot video instance segmentation framework.
Unit Optical Flow.
Many recent methods for video object segmentation [50, 48, 47, 39] focus on inferring pixel-wise mappings exclusively from spatial data. Optionally, these methods complement their predictions with temporal estimates over initial ground-truth labels. We depart from this mainstream approach and estimate explicit temporal cues from the video, which we fuse at frame-level with the spatial information.
We compute the optical flow from consecutive RGB frames using FlowNet2.0 [21] and map the estimated vector field into its unitary direction field . We concatenate these unitary vectors with the normalized magnitude of the flow field and name this 3-channel cue the Unit Optical Flow (uOF). Compared to the raw vector field, the uOF is bounded between , thus it is more stable in the presence of large displacements and estimation errors. We use the uOF as a complementary source of information in MAIN, thereby achieving end-to-end training using both spatial and temporal cues.
3.3 Multi-Scale Separable Decoder
Since richer contextual information aids at better modeling local information and overall segmentation score, recent works [12, 34, 56, 6, 42] establish connections between coarse and fine information to produce better segmentations. Our decoder uses multi-scale separable convolutional operators to augment its field-of-view. There are two elements at the core of this enhancement: dilated convolutions [55] that enables the exponential expansion of a neuron’s receptive field without losing resolution [55, 6]; and separable convolutions that aim at factoring cross-channel and spatial correlations [9], reducing computation, increasing time efficiency and which we find to be beneficial for instance segmentation.
3.4 Implementation Details
We train MAIN using the Pytorch library [38]. We choose the ADAM optimizer [25] and train until convergence with an initial learning rate of and learning rate annealing every 45000 iterations. The decoder layers are randomly initialized using the Xavier weight initialization [14]. To speedup training in the large-scale Youtube-VOS, which contains mostly frames of HD-quality at 1280768, we rescale the training data to 256416, leading to a batch-size of 23 in training using a Titan X GPU.
Multi-Scale Separable Decoder.
For our encoder backbone, we use Resnet50 pretrained on Image-Net [10]. We drop the final global pooling and fully connected layers and augment the backbone with side outputs [15, 35] at the end of each block (the final layer before the pooling operator). We adopt the architectural pattern from Feature Pyramid Networks [32], in which feature maps before every pooling operation are independently up-sampled by a factor of 2 and post-processed with a 4-layer feature pooling stack. The first layer of the stack is a standard 1x1 separable convolution and ReLU non-linearity [27]. The remaining 3 layers are 33 separable convolutions with dilation factors of 1, 2 and 3 [55].
The up-sample step is performed with a bilinear interpolation followed by a 33 convolutional layer. The feature pooling and up-sampling process are performed independently over all the side-outputs of the encoder, thus, allowing incremental fusion (by an element-wise addition) of every up-sampled response map with the pooled feature map from the previous level.
4 Experimental Validation
In this section, we provide empirical evidence to support our approach. We proceed by validating each individual contribution and related design choice.
4.1 Datasets and Evaluation Metrics
Youtube-VOS [53].
It is the first large-scale video segmentation dataset consisting of 4453 high quality hand labeled videos, split across training (3471), validation (474) and test (508) sets. Following the one-shot formulation, this dataset provides the ground-truth segmentation for the first frame in any set. Xu. et al. [53] reserve the test set for the annual challenge, and designate the validation set, whose ground truth labels are also withheld, for algorithm evaluation and ranking over a dedicated evaluation server.
Since annotations in the Youtube-VOS validation set are withheld [53], we create a random split from the original training set. As a result, we obtain two subsets: Train66 (2314 videos) and *Train33 *(1157 videos) with known labels and use these sets to empirically validate each of our contributions.
To assess the final performance of our MAIN method and to compare our results against the state-of-the-art, we follow the standard evaluation methodology of the Youtube-VOS benchmark introduced in [53]. The two main evaluation metrics are: region similarity or Jaccard index ( ) and F-measure ( ) for contour accuracy and temporal stability. The Youtube-VOS validation set includes instances from categories not available in the training set, thus, creating two dataset-specific metrics for seen and unseen object categories.
DAVIS-17 [41].
We complement our empirical validation by assessing the effectiveness of MAIN on the DAVIS-17 dataset, which consists of 60 high quality videos for training and 30 for validation. This dataset is densely annotated but is two orders of magnitude smaller than Youtube-VOS. DAVIS-17 also evaluates and but without the distinction between seen and unseen categories.
4.2 Architectural Ablation Experiments
We now empirically assess our architectural design choices namely: dilated and separable convolutions in the decoder of our network. Table 1 summarizes the results. We train four versions of our network with different combinations (absence/presence) of separable and dilated convolutions in Train66. Evaluation in *Train33 *shows that using separable and dilated convolutions is beneficial for our method.
Loss Function:
We evaluate the suitability of the proposed WID as loss function by comparing it against other loss functions. This comparative study is summarized in Table 2. We compare against Dice Coefficient and Binary Cross Entropy by training three versions of our network in Train66 with the different loss functions. WID clearly outperforms the other losses when evaluated in the *Train33 *set.
4.3 Attention Priors
To evaluate the effect of the different attention cues on MAIN, we ablate each attention cue to show their importance separately and jointly. Table 3 summarizes the ablation experiments. We train eight different configurations of our network in Train66 by incrementally adding each of the different attention cues. Each attention cue contributes to the performance of the network, with Long-term Attention being especially useful at improving MAIN’s performance, and Short-term Attention more suitable for refining results.
Unit Optical Flow.
We integrate the uOF by concatenating it with the RGB channels in the input. We initialize the first layer weights that correspond to the uOF inputs as the RGB average weights, thus adding channels to the input tensor. During training, we switch between the forward and backward estimates of the uOF. To verify the effectiveness of uOF compared to the raw optical flow, we train two versions of MAIN in Train66 switching this attention cue and evaluate them in *Train33 *. Table 4 shows that using uOF is more beneficial to MAIN than using raw optical flow. We also test the performance of the model when adding the uOF. Table 3 shows that for every configuration of attention cues the method benefits with the inclusion of uOF.
Multi-Instance Attention.
We complement the input of the multi-scale encoder-decoder with a set of attention maps ( for LTA and for STA), in which is set to the maximum number of instances in the dataset (6 for Youtube-VOS and 10 for DAVIS-17). Each attention map encodes the estimated location of a single instance by means of a binary bounding box. For a video with instances (), we set the remaining maps to [math]. We concatenate these additional channels to the RGB and uOF input. Since this modification changes the input dimension, we initialize the first layer weights corresponding to the attention cues with the average of the original RGB weights, thus, avoiding the need to retrain the whole layer and favoring faster convergence.
We evaluate the effectiveness of producing a multi-instance segmentation compared to estimating multiple single-instance predictions and then joining the results. Table 5 shows that the multi-instance approach of MAIN significantly outperforms the single-instance scenario.
Long Term Attention Priors.
We derive our Long-term Attention from the tubes generated by the Distractor-Aware Siamese Tracker (DA-Siam-RPN) [57]. We keep the default anchor-ratios from the VOT-2018 dataset [26] and set the number of candidate scales to 8, with a displacement penalty of 0.055 windowed by a cosine function, and template learning rate of 0.395. For the network weights, we use the ’AlexNet-Big’ model. The tracker is initialized with a tight bounding box created over the instance annotation from the first frame and run over the full frame-set of Youtube-VOS. In the supplementary material, we show a comparison of the relative performance of the proposed attention methods according to the tracker’s average overlap as the video progresses.
Long-term Attention is one of the most important cues for MAIN. Table 3 shows the improvement of adding the LTA for each of MAIN configuration. We find it beneficial to initially train MAIN using the ground-truth segmentation to create perfect bounding boxes and later, when the network converges, introduce the estimated LTA. This way, we allow the network to first learn to operate over attention cues and later to learn from error modes on the tracker.
Short Term Attention Priors.
During the final training stage, we concatenate the STA attention to our input tensor. We extend the first layer weights, corresponding to the STA, by replicating the weights of the LTA input. Therefore, the final version of MAIN, has an input tensor of dimension for the inputs: RGB, uOF, LTA, and STA. To train this last phase, we perform several data augmentation at different image scales and crops of size 256416. We replace the ideal LTA cue with the one estimated by the tracker, and for the STA at time , we randomly choose the ground-truth segmentation from consecutive frames . We randomly dilate and erode the selected annotation with squared kernels of sizes that vary between to pixels, perform affine transformations such as scale change between 0.8 and 1.2 of ratio, and shift between [math] to of image size. All these transformations are used to approximate the possible errors that the previous segmentations might have in the validation set. In the forward phase, we simply take the previously segmented output and warp it to the current time position by using the backward estimated optical flow.
To adapt MAIN to the error pattern in the tracker, we use a Curriculum Learning [1] strategy. We steadily increase the error source (i.e. tracker error) as the optimization process advances. We start by fine-tuning MAIN with LTA and STA data over the first 2, 4, 8 and 14 frames for three epochs each. Table 3 shows the significant improvement of adding the STA for each MAIN configuration.
5 Comparison with the State-of-the-art
In this section, we compare our best MAIN network (RGB+uOF+LTA+STA) against state-of-the-art methods. Table 6 summarizes this comparison for the task of instance video segmentation on the Youtube-VOS validation set. We follow the standard testing methodology proposed by [53]. We distinguish between offline and online methods for a fair comparison. As outlined in Section 4.1, the Youtube-VOS dataset breaks up the evaluation metrics between seen and unseen categories. This distinction creates a large performance gap between both sets, the latter being far more difficult.
MAIN achieves state-of-the-art scores for every metric in the offline configuration, achieving an accuracy that is competitive compared to online methods. Our method relies on generic attention cues and favors consistent temporal predictions along the video sequence, instead of enforcing strong semantics or individual appearance models. This leads to a significant performance improvement in the unseen scenario, in which MAIN surpasses the current offline state-of-the-art by and in and metrics, respectively. Compared against the online methods, MAIN results are higher than almost all methods except for [53], where MAIN is within of the latter’s performance in unseen but outperforms it by in .
We also evaluate MAIN against the state-of-the-art on the DAVIS validation dataset, summarized in Table 7. We achieve state-of-the-art performance on the offline task, while remaining competitive against online methods. Furthermore, MAIN fares favorably against approaches that also rely on spatial attention like [54], and long-term recurrences like [49, 19].
5.1 Efficiency Analysis
We conclude this section with an efficiency analysis. Figure 4 shows the comparison between performance and inference time. We calculate the inference time for a single frame in MAIN after estimating the attention mechanisms. MAIN outperforms most state-of-the-art methods by an order of magnitude, where only SiamMask [49] performs faster in inference. It is important to emphasize that SiamMask was devised for fast inference and underperforms in and when compared to MAIN. Additionally, SiamMask can only generate a single instance segmentation per forward pass. Hence, MAIN is faster than SiamMask in sequences with more than one instance.
6 Qualitative Results
To complement our experimental validation, we present some qualitative results in Figure 5 that show the visual differences of incrementally adding cues in training. On the first (top) row, MAIN overcomes a challenging scenario with occlusions, similar visual instances, and blur. The second row corresponds to a video with fast moving objects, different-sized objects, and complex motion patterns. In this case, motion and STA cues play a key role in the good performance because all instances tend to stay in the center, while the background is moving quickly. The third video shows a case with objects with distinct degrees of blur and with an incomplete label in the first frame (the tail of the cat is missing). Even though MAIN is not aware that cats have tails, it deduces it thanks to the attention mechanisms that ensure that the tail is part of the object. The final video (bottom) shows two segmentation targets one mostly occluded an the other completely visible and in motion. While the LTA and uOF approximate the location and number of instances, only the inclusion of STA approximates the targets shape.
Overall, there is an improvement when stacking different priors and sources of information. LTA mostly approximates the objects location but fails at providing a good recall, especially for finer details or highly textured objects. Using the uOF refines the prediction of the objects with somewhat homogeneous motion. Finally, incorporating STA with LTA and uOF enhances the segmentation quality by reducing the false negatives and improving the boundary definition between adjacent masks. We include more examples in the supplemental material that show MAIN in diverse scenarios.
7 Conclusions
MAIN is an efficient approach devised for generic instance-level segmentation. It is trained end-to-end with a new WID loss suitable for class imbalance, generating multiple instance-level segmentations in a single forward pass. We validate MAIN in the first large-scale video segmentation benchmark, achieving state-of-the-art results while running at 30.3 FPS. The increments in the unseen metrics demonstrate MAIN’s effectiveness at fusing generic grouping cues and producing temporally consistent segmentations without requiring domain-specific knowledge.
Acknowledgement
This work was partially supported by the King Abdullah University of Science and Technology (KAUST) Office of Sponsored Research, and by the German-Colombian Academic Cooperation between the German Research Foundation (DFG grant BR 3815/9-1) and Universidad de los Andes, Colombia.
8 Appendix
8.1 Temporal Consistency Analysis
To complement the experimental validation of section 4, we evaluate the temporal consistency of our method. Figure 6 shows the performance of the different versions of our method (different choices for attention cues) as the video sequences progress. For this analysis we train on Train66 and validate over the *Train33 *set.
Our method incrementally benefits with the addition of each attention prior. LTA is critical for MAIN’s performance, if MAIN only considers STA the scores drop much faster during the first frames. We explain this behaviour as errors propagate faster if STA is the only source of attention. Overall, LTA improves the temporal consistency of predictions, enabling mask refinement by STA. Finally the combination of RGB, uOF and STA has a slower decrease than adding RGB+STA, which shows a complementary behaviour of the pixel-level and region-level short-term attention cues.
Like most video object segmentation methods, the performance of MAIN slowly decreases as the sequence progresses, it seems to stabilize around frame 100, above the 0.6 mean IoU. We will also note that the graph presents an unusual jump in performance around frames 100 and 150, specially for those configurations that only consider short-term priors. This particular behaviour is due to a bias in the videos length. In figure 6 the black dots represents the number of instances still present at frame as fraction of the maximum number instances present at any time, the sharp declines in the number of instances correlate with the sudden jumps in the of our methods, it seems that the remaining group of videos at frames 100 and 150 contain instances or scenarios that are easier to segment.
8.2 Qualitative Results
We provide more qualitative examples to better understand the capabilities and failure modes of MAIN. Figures 7 to 18 show challenging scenarios that include: occlusions (figures 7, 8, 11, 12, 17 and 18), scale changes (figures 10, 9, 14), appearance changes (figures 8, 13, 9 and 15), multiple similar instances (figures 12, 13 and 13), fast motion (figures 10, 8, 9 and 17) and very target small objects (10, 15, 16).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Y. Bengio, J. Louradour, R. Collobert, and J. Weston. Curriculum learning. In Proceedings of the 26th annual international conference on machine learning . ACM, 2009.
- 2[2] L. Bertinetto, J. F. Henriques, J. Valmadre, P. Torr, and A. Vedaldi. Learning feed-forward one-shot learners. In Neur IPS , 2016.
- 3[3] G. J. Brostow, J. Fauqueur, and R. Cipolla. Semantic object classes in video: A high-definition ground truth database. Pattern Recognition Letters , 2009.
- 4[4] T. Brox and J. Malik. Object segmentation by long term analysis of point trajectories. In ECCV , 2010.
- 5[5] S. Caelles, K.-K. Maninis, J. Pont-Tuset, L. Leal-Taixé, D. Cremers, and L. Van Gool. One-shot video object segmentation. In CVPR , 2017.
- 6[6] L.-C. Chen, G. Papandreou, I. Kokkinos, K. Murphy, and A. L. Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE transactions on pattern analysis and machine intelligence , 2018.
- 7[7] J. Cheng, Y.-H. Tsai, W.-C. Hung, S. Wang, and M.-H. Yang. Fast and accurate online video object segmentation via tracking parts. In CVPR , 2018.
- 8[8] J. Cheng, Y.-H. Tsai, S. Wang, and M.-H. Yang. Segflow: Joint learning for video object segmentation and optical flow. In ICCV , 2017.
