Abstract
Conventional video models rely on a single stream to capture the complex spatial-temporal features. Recent work on two-stream video models, such as SlowFast network and AssembleNet, prescribe separate streams to learn complementary features, and achieve stronger performance. However, manually designing both streams as well as the in-between fusion blocks is a daunting task, requiring to explore a tremendously large design space. Such manual exploration is time-consuming and often ends up with suboptimal architectures when computational resources are limited and the exploration is insufficient. In this work, we present a pragmatic neural architecture search approach, which is able to search for two-stream video models in giant spaces efficiently. We design a multivariate search space, including 6 search variables to capture a wide variety of choices in designing two-stream models. Furthermore, we propose a progressive search procedure, by searching for the architecture of individual streams, fusion blocks and attention blocks one after the other. We demonstrate two-stream models with significantly better performance can be automatically discovered in our design space. Our searched two-stream models, namely Auto-TSNet, consistently outperform other models on standard benchmarks. On Kinetics, compared with the SlowFast model, our Auto-TSNet-L model reduces FLOPS by nearly 11× while achieving the same accuracy 78.9%. On Something-Something-V2, Auto- TSNet-M improves the accuracy by at least 2% over other methods which use less than 50 GFLOPS per video.
Introduction
Video recognition is inherently more complex than image recognition, as it requires the simultaneous capture of spatial context and temporal dynamics. To address this, "two-stream" architectures have emerged, typically employing a "Slow" (Sparse) pathway for high-resolution spatial features and a "Fast" (Dense) pathway for high-frequency temporal information.
Despite their success, designing these models manually is an arduous task. The design space is vast—estimated at $2 \times 10^{53}$ possible configurations—encompassing variables like stream fusion points, attention block placement, and kernel dimensions. Human designers often default to mirrored, symmetric streams to simplify the process, but this likely leaves significant performance and efficiency on the table. Researchers from Facebook AI and UT Austin have addressed this by developing Auto-TSNet, a framework that automates the discovery of high-performance, asymmetric two-stream models.
The Auto-TSNet Framework
To navigate the massive search space efficiently, the authors introduced a multivariate search space and a progressive search procedure. The search space includes six critical variables: inter-stream fusion blocks, attention blocks, temporal/spatial kernel sizes, output channels, and expansion rates of the building blocks (MBConv3D).
The search is conducted in three sequential, tractable steps:
- Sparse Stream Search: Identifying the optimal architecture for the high-resolution, low-frame-rate stream.
- Dense Stream and Fusion Search: Fixing the Sparse stream and searching for the Dense stream architecture along with the fusion blocks that bridge the two.
- Attention Placement: Optimizing the location of Global Relation (GloRe) attention blocks within the combined network.
This process utilizes PARSEC, a memory-efficient probabilistic NAS method. By sampling one architecture at a time, PARSEC avoids the prohibitive GPU memory requirements of traditional supernet training.
Results and Efficiency
Auto-TSNet was evaluated on the Kinetics-400 and Something-Something-V2 (SSv2) benchmarks. The results demonstrate a significant leap in efficiency without sacrificing accuracy.
On Kinetics-400, the Auto-TSNet-L (Large) model achieved a Top-1 accuracy of 78.9%, matching the heavy SlowFast R101 model while requiring nearly 11x fewer FLOPs. On the temporally demanding SSv2 dataset, Auto-TSNet-M achieved 63.6% accuracy without pre-training, outperforming existing efficient models like GST and TEINet while maintaining a lower computational footprint.
Key Insights
- Asymmetry is Essential: The search consistently favored non-uniform architectures. The Sparse and Dense streams often utilized different kernel sizes and channel widths, confirming that asymmetric streams are better at capturing complementary features than mirrored ones.
- Strategic Attention: The framework discovered that attention blocks are most effective when placed on the Sparse stream. This suggests that the Sparse stream handles the high-level semantic reasoning where global context is most beneficial.
- Progressive Search Efficacy: Decoupling the search into stages proved more effective than a single-step search. This "divide and conquer" approach allowed the algorithm to focus on learning complementary features for each stream sequentially.
Conclusion and Future Work
Auto-TSNet demonstrates that automated multivariate search can discover video architectures that far surpass human-designed models in efficiency. While the current search focuses on RGB frames and FLOPs as a proxy for efficiency, future iterations could incorporate hardware-aware constraints (like real-world latency) and expand to multi-modal inputs including audio and optical flow. The success of this approach highlights the potential for NAS to solve complex design problems in high-dimensional spaces where manual intuition falls short.
Summary updated