Abstract
In this paper, we propose a convolutional layer inspired by optical flow algorithms to learn motion representations. Our representation flow layer is a fully-differentiable layer designed to capture the 'flow' of any representation channel within a convolutional neural network for action recognition. Its parameters for iterative flow optimization are learned in an end-to-end fashion together with the other CNN model parameters, maximizing the action recognition performance. Furthermore, we newly introduce the concept of learning 'flow of flow' representations by stacking multiple representation flow layers. We conducted extensive experimental evaluations, confirming its advantages over previous recognition models using traditional optical flows in both computational speed and performance.
Introduction
Capturing motion is a fundamental requirement for effective action recognition. Traditionally, the "two-stream" architecture has been the gold standard, utilizing one network for RGB frames (appearance) and another for pre-computed optical flow (motion). However, optical flow calculation is a significant computational bottleneck, often requiring hundreds of iterations per frame and preventing real-time application. While "flow-free" methods have attempted to learn motion implicitly, they typically lag behind two-stream models in accuracy. This research addresses the gap by hypothesizing that the missing ingredient in previous attempts was the iterative optimization inherent in classical flow algorithms.
The Representation Flow Layer
The core innovation is the Representation Flow Layer, a fully differentiable CNN component that "unrolls" the iterative optimization of traditional TV-L1 optical flow into a sequence of tensor operations. Unlike traditional methods where hyperparameters like smoothness and time-steps are hand-tuned, this layer allows the network to learn optimal flow parameters ($\theta, \lambda, \tau$) via backpropagation.
Key technical features include:
- Intermediate Feature Flow: While traditional flow is computed on RGB pixels, this layer can be inserted anywhere in a CNN to compute the flow of abstract feature maps.
- Efficiency: To maintain high inference speeds, the layer uses a single scale (no image pyramids) and operates on lower-resolution intermediate feature maps.
- Flow-of-Flow (FoF): By stacking these layers with intermediate convolutions (FcF blocks), the network can capture higher-order motion, such as acceleration, and longer-term temporal dependencies.
Experimental Results
The method was evaluated on several benchmarks, including Tiny-Kinetics, HMDB51, and the full Kinetics dataset. A critical finding was that iterative updates (10–20 iterations) significantly outperform single-pass motion features, confirming that the refinement process is essential for capturing useful motion cues.
Performance and Speed
- Accuracy: On Kinetics, the Representation Flow model achieved 77.9% accuracy using a (2+1)D backbone, outperforming traditional I3D and two-stream R(2+1)D models.
- Inference Speed: The proposed model runs in approximately 576ms per video, compared to 8,546ms for a standard two-stream model—a nearly 15x speedup.
- Integration: By integrating motion into the main backbone, the need for a second "flow stream" is eliminated, effectively halving the number of model parameters while maintaining superior performance.
Conclusion
Representation Flow provides a bridge between classical computer vision optimization and modern deep learning. By making the flow computation differentiable and learnable, the model achieves state-of-the-art results without the heavy computational cost of pre-computed optical flow. Future work may explore applying this differentiable flow logic to other video-based tasks such as object detection and tracking.
Summary updated