Hallucinating Optical Flow Features for Video Classification

Yongyi Tang, Lin Ma, Lianqiang Zhou

Abstract

Two-stream neural networks, which combine RGB frames with optical flow, represent the state-of-the-art in video classification. However, the computation and storage of dense optical flow are notoriously resource-intensive, often exceeding the costs of processing the video itself. This paper introduces MoNet, a novel architecture designed to "hallucinate" optical flow features directly from standard RGB features. By framing motion estimation as a sequence-to-sequence translation problem, MoNet achieves competitive accuracy while cutting computational costs by nearly 50% and eliminating the need for optical flow storage.

Introduction

In video analysis, understanding both what is in a frame (appearance) and how it moves (motion) is essential for accurate classification. The dominant paradigm is the "two-stream" model, which processes RGB images and optical flow images in parallel before fusing their outputs.

Despite its accuracy, this approach faces a massive bottleneck: optical flow. Calculating dense optical flow is computationally expensive, often taking longer to compute than the video's actual runtime. Furthermore, storing pre-computed flow data can double the storage requirements of a dataset. For massive datasets containing millions of videos, such as YouTube-8M, extracting and storing optical flow is practically impossible. MoNet addresses this by asking whether a network can learn to predict motion features solely from a sequence of RGB frames, effectively skipping the expensive estimation step.

The MoNet Architecture

MoNet treats the generation of motion information as a translation task: converting a sequence of appearance features into a sequence of optical flow features. Unlike standard Recurrent Neural Networks (RNNs) or Gated Recurrent Units (GRUs) that process data linearly, MoNet is designed to capture the complex, local contextual relationships inherent in motion.

Concurrent Context Modeling

Standard RNNs struggle with the concurrent nature of video motion. MoNet utilizes a specialized gating mechanism that models temporal relationships in appearance features while simultaneously exploiting the contextual relationships of adjacent optical flow features. By looking forward and backward in time concurrently, the model better approximates the spatial-temporal shifts found in real optical flow.

Recursive Expansion and Feature-Level Hallucination

MoNet is unfolded in a recursive, layer-by-layer manner, similar to neural message passing. This allows the network to refine hallucinated features at each layer by pulling in contextual information from temporal neighbors.

Crucially, MoNet does not generate optical flow images. Instead, it directly generates the high-level features that a Convolutional Neural Network (CNN) would have extracted from those images. This bypasses both the pixel-level estimation step and the subsequent CNN feature extraction, leading to significant efficiency gains.

Experimental Evaluation

The authors evaluated MoNet on two primary benchmarks:

  1. Kinetics-400: A standard action recognition dataset with over 300,000 clips. This was used to evaluate baseline accuracy and compare hallucinated features against ground-truth flow.
  2. YouTube-8M: A massive dataset of 6 million videos. This served as a real-world testbed for scalability, where computing actual optical flow is computationally unfeasible.

Key Results

  • Superior Feature Quality: On the Kinetics-400 validation set, hallucinated features achieved 63.42% top-1 accuracy. Surprisingly, this outperformed the ground-truth I3D optical flow stream (58.72%) and standard GRUs (55.92%). The authors attribute this to MoNet learning a representation optimized specifically for classification rather than raw pixel displacement.
  • Computational Efficiency: Replacing the actual optical flow stream with MoNet reduced the total floating-point operations (FLOPs) for a two-stream model from 425 GFLOPs to 224 GFLOPs.
  • Large-Scale Scalability: On YouTube-8M, adding MoNet’s hallucinated features to an appearance-only NeXtVLAD classifier improved the Global Average Precision (GAP@20) from 78.55% to 79.39%, proving that motion information can be injected into models at a scale where traditional methods fail.

Discussion and Limitations

One of the primary insights of this work is that context matters more than simple bidirectionality. While standard Bidirectional LSTMs did not significantly improve performance, MoNet’s concurrent modeling of local regions proved vital for motion prediction. Additionally, the recursive structure showed that refinement matters; expanding MoNet up to 5 layers consistently improved performance.

However, limitations remain. The hallucinated two-stream model's overall accuracy on Kinetics-400 is still approximately 2% lower than a full two-stream model using ground-truth optical flow. Furthermore, the model faces diminishing returns beyond 5 layers, likely due to vanishing gradients. Future research may explore residual connections to enable deeper recursive architectures and further close the gap with traditional two-stream models.

Conclusion

MoNet demonstrates that explicit optical flow computation is not always necessary for high-performance video classification. By hallucinating motion features at the representation level, MoNet provides a scalable, efficient alternative for large-scale video understanding, offering a path forward for analyzing datasets where traditional motion estimation is too costly to implement.

Summary updated

BibTeX
@inproceedings{tang2019hallucinating,
  author = {Yongyi Tang and Lin Ma and Lianqiang Zhou},
  title = {{Hallucinating Optical Flow Features for Video Classification}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/130},
}
Figure