Abstract
Video object segmentation and optical flow are inherently complementary tasks: motion information helps maintain temporal consistency in segmentation, while object-level cues can refine flow estimation near boundaries. SegFlow introduces an end-to-end trainable convolutional neural network (CNN) that jointly predicts both. By bi-directionally sharing feature representations between a segmentation branch and a flow branch, the model improves accuracy for both tasks simultaneously. To overcome the lack of datasets with joint ground-truth annotations, the authors employ an iterative training strategy. SegFlow achieves competitive results on benchmarks like DAVIS and MPI Sintel while operating significantly faster than traditional joint optimization methods.
Introduction
In video analysis, identifying which pixels belong to a specific object (segmentation) and tracking the motion of those pixels (optical flow) are highly synergistic. Optical flow provides the motion cues necessary to keep segmentation smooth over time, while segmentation provides "objectness" cues that can correct flow errors, particularly for fast-moving objects where standard algorithms often fail.
Despite this natural synergy, existing methods typically treat these tasks separately or use one as a static input for the other. Computationally expensive optimization loops, such as the ObjectFlow algorithm, are often too slow for practical applications. Furthermore, training a joint model is challenging because few large-scale datasets provide ground-truth annotations for both tasks simultaneously. SegFlow addresses these issues with a unified architecture and a novel training pipeline.
Methods
Architecture
The SegFlow architecture consists of two main branches: a Segmentation Branch based on a modified ResNet-101 for binary classification, and an Optical Flow Branch based on the FlowNetS encoder-decoder structure.
The core innovation is Bi-directional Feature Propagation. Instead of simply sharing final predictions, the network concatenates intermediate feature maps from both branches at various scales during the up-sampling phase. This allows the model to learn deep, shared representations of motion and object boundaries.
Training Strategy
To bypass the lack of joint ground-truth data, the authors utilize an Iterative Offline Training approach. They alternate between freezing one branch and training the other on task-specific datasets (e.g., training segmentation on DAVIS while the flow branch is frozen). This process continues until both branches converge on shared representations.
For specific video sequences, the model undergoes Online Fine-Tuning. To train the flow branch during this phase without a second frame's ground truth, the authors use affine transformations on the first frame to synthesize a "next frame," simulating movement while maintaining temporal consistency.
Key Results
SegFlow demonstrates that sharing intermediate features is more effective than simple output-level coupling. The joint model consistently reduced the average endpoint error (EPE) for optical flow across the Sintel, KITTI, and Scene Flow datasets compared to the FlowNetS baseline.
In terms of segmentation, SegFlow achieved a region similarity (J-Mean) of 0.761 on the DAVIS validation set, outperforming unsupervised state-of-the-art methods by over 10%. Crucially, the model is highly efficient: offline inference takes only 0.3 seconds per frame, and even with online fine-tuning, it averages 7.9 seconds per frame—drastically faster than competing joint optimization methods like OFL (~120s/frame).
Conclusion
SegFlow provides a generalized framework for joint learning that benefits both video object segmentation and optical flow. By leveraging bi-directional feature sharing and an iterative training scheme, the model achieves high accuracy and efficiency. The authors suggest that this framework can be easily adapted to more advanced backbone architectures or applied to other correlated computer vision tasks in the future.
Summary updated