Training deep learning models for video action recognition presents a persistent hardware challenge: the memory-intensive nature of video data often forces researchers to train with tiny batch sizes. This paper, presented at NeurIPS 2021 by researchers from Intel Labs China, introduces a novel architectural drop-in—Dynamic Normalization and Relay (DNR)—to solve the performance degradation that occurs under these constrained conditions.
The Small Batch Size Problem
Convolutional Neural Networks (CNNs) are the workhorses of video action recognition, but they are incredibly memory-hungry. Because a single video clip is essentially a 3D "space-time cube," a standard GPU can usually only fit a few clips into memory at once.
This leads to a severe "small batch size" problem. Standard Batch Normalization (BN) relies on calculating stable statistics (mean and variance) across a large batch of data. When the batch size is tiny (e.g., 2 or 4 clips), these statistics become noisy and unreliable, causing the model's performance to tank. While image-based solutions like Group Normalization (GN) exist, they treat video frames as independent entities, completely ignoring the rich temporal and hierarchical dependencies inherent in video data.
The Solution: Dynamic Normalization and Relay (DNR)
To address this, the authors propose Dynamic Normalization and Relay (DNR). Instead of using fixed, learnable parameters for the "scale" and "shift" operations of standard normalization, DNR predicts these parameters on the fly based on the input data itself.
The core innovation lies in replacing static parameters with two dynamic "relay" modules:
- Cross-temporal DNR: This module models the dependencies between neighboring frames at the same layer. It uses a lightweight Long Short-Term Memory (LSTM) network to pass information along the temporal axis, ensuring that the normalization of frame $t$ is informed by the context of frame $t-1$.
- Cross-layer DNR: This module unrolls along the depth of the network. It ensures that the normalization parameters for a specific layer are conditioned on the feature distributions of the preceding layers for the entire video clip.
To keep the computational overhead low, these modules utilize a "bottleneck" structure (inspired by SENet) and a modified LSTM where the traditional tanh activation is replaced with a sigmoid to better learn the scale and shift parameters.
Key Insights and Innovations
- Normalization as a Dynamic Process: The primary breakthrough is treating normalization not as a static preprocessing step, but as an input-dependent, dynamic operation. By doing so, the network can adapt its internal scaling to the specific motion and appearance of a given video clip.
- Exploiting Video Redundancy: Video frames are highly redundant. DNR exploits this by "relaying" statistical information. If frame $A$ looks a lot like frame $B$, their normalization parameters should logically be related.
- The Power of LSTMs in "Meta-Tasks": While LSTMs are traditionally used to process features directly, DNR uses them for a "meta-task": predicting the parameters of another layer. This allows a very small LSTM to have a massive impact on the overall network's representational power.
Datasets and Key Results
The researchers evaluated DNR on four major action recognition benchmarks: Kinetics-400, Kinetics-200, and Something-Something (Sth-Sth) V1 & V2. They tested DNR across various backbones, including 2D CNNs (ResNet, ResNeXt), 3D CNNs (SlowFast, R(2+1)D), and specialized temporal models (TSM, TANet, TDN).
The results are particularly striking for 2D CNN baselines:
- Accuracy Boosts: On Kinetics-200, DNR improved the Top-1 accuracy of a ResNet-50 baseline by an absolute 5.59%.
- Temporal Understanding: On the temporally-heavy Sth-Sth V1 dataset, DNR achieved a massive 27.77% improvement over the baseline.
- Small Batch Resilience: In head-to-head tests against Batch Norm and Group Norm at a batch size of 4, DNR outperformed them by 7.89% and 7.99% respectively.
- SOTA Integration: When added to already high-performing models like TDN, DNR still provided a ~0.7% boost, demonstrating that it is complementary to existing temporal modeling techniques.
Limitations and Future Work
While the computational cost (FLOPs) added by DNR is negligible, the authors acknowledge that it introduces extra latency during inference. Because the modules are recurrent (LSTMs), they must be processed sequentially, which can pose challenges for strict real-time applications.
Additionally, the method introduces three new hyperparameters: the layer location, the relay distance, and the LSTM structure. While the authors found a "sweet spot" for these in their experiments, finding the optimal configuration for a brand-new architecture might require trial and error. Future work could involve automating the search for these parameters or finding ways to parallelize the recurrent relay process to eliminate latency bottlenecks.
Summary updated