Abstract
This work addresses the problem of temporal action localization with Variance-Aware Networks (VAN), i.e., DNNs that use second-order statistics in the input and/or the output of regression tasks. We first propose a network ($\text{VAN}_p$) that when presented with the second-order statistics of the input, i.e., each sample has a mean and a variance, it propagates the mean and the variance throughout the network to deliver outputs with second order statistics. In this framework, both the input and the output could be interpreted as Gaussians. To do so, we derive differentiable analytic solutions, or reasonable approximations, to propagate across commonly used NN layers. To train the network, we define a differentiable loss based on the KL-divergence between the predicted Gaussian and a Gaussian around the ground truth action borders, and use standard back-propagation. Importantly, the variances propagation in $\text{VAN}_p$ does not require any additional parameters, and during testing, does not require any additional computations either. Results in the action localization problem show that the incorporation of second order statistics improves over the baseline network, and that $\text{VAN}_p$ surpasses the accuracy of virtually all other two-stage networks without involving any additional parameters.
Introduction
Temporal Action Localization (TAL) is the challenging task of identifying the start, end, and category of actions within untrimmed video streams. Most state-of-the-art TAL systems employ a two-stage pipeline: generating candidate video segments (proposals) and subsequently refining these segments via regression and classification.
A critical bottleneck in this pipeline is the feature pooling stage. Because video proposals vary in length, they must be pooled into fixed-size vectors for processing by downstream neural networks. Standard methods, such as average pooling, typically retain only the first-order statistic (the mean) and discard the second-order statistic (the variance). This variance, however, is a vital signal of uncertainty, particularly near the ambiguous boundaries where actions begin or end.
Variance-Aware Architectures
To capture this missing information, we propose Variance-Aware Networks (VAN). We explore three distinct ways to integrate variance into the regression process:
- $\text{VAN}_i$ (Input): The variance calculated during pooling is concatenated to the mean as an additional input feature. While simple, this doubles the parameters in the first layer.
- $\text{VAN}_o$ (Output): The network is modified with an additional head to predict the variance of the output localization, treating the final prediction as a Gaussian distribution.
- $\text{VAN}_p$ (Propagated): This variant treats every internal activation as a Gaussian distribution $(\mu, \sigma^2)$, propagating both statistics through the entire network.
The $\text{VAN}_p$ Framework
The $\text{VAN}_p$ model is the most sophisticated variant, enabling the propagation of variance without adding any trainable parameters. By interpreting features as distributions, the network can naturally account for uncertainty throughout its depth.
To enable this propagation, we derived differentiable analytical solutions for standard layers. For linear layers, the output variance is a function of the input variance and the element-wise square of the weights ($W^2$). For non-linear layers like ReLU and L2-normalization, we employ robust approximations.
The network is trained using a Kullback-Leibler (KL) divergence loss. Instead of standard $L_1$ regression, the model minimizes the divergence between its predicted Gaussian and a ground-truth Gaussian centered on the action boundaries. This approach provides "loss attenuation": if a segment has high input variance (indicating high uncertainty), the network is penalized less for minor prediction errors, leading to more stable and robust training.
Experimental Evaluation
We evaluated our models on the THUMOS’14 benchmark. The results demonstrate that $\text{VAN}_p$ consistently outperforms both the baseline and the $\text{VAN}_i$ variant. Notably, $\text{VAN}_p$ achieves superior precision at high temporal Intersection over Union (tIoU) thresholds (e.g., 0.7), where accurate boundary localization is paramount.
Despite having fewer parameters than $\text{VAN}_i$, $\text{VAN}_p$ delivers better performance, proving that the propagation of second-order statistics is more effective than simple feature concatenation. Compared to other leading two-stage networks like TURN and TAD, VAN models set new performance benchmarks for average mAP.
Conclusion
Variance-Aware Networks offer a parameter-efficient method to improve temporal action localization by leveraging uncertainty. By propagating variance through the network, $\text{VAN}_p$ utilizes information typically lost during pooling to achieve higher localization precision. While the method shows some limitations for very short actions due to loss attenuation, its general framework for parameter-free variance propagation holds promise for a wide range of regression tasks in computer vision.
Summary updated