Multi-view Action Recognition via Directed Gromov-Wasserstein Discrepancy

Hoang-Quan Nguyen, Thanh-Dat Truong, Khoa LuuarXiv 2024 · DOI · arXiv

Introduction

Deep learning models for action recognition have achieved remarkable accuracy on standard benchmarks. However, these models often function as "black boxes," making predictions based on coincidental background features or specific camera angles rather than the actual human action. For instance, a model might identify "cycling" by recognizing a patch of asphalt rather than the person pedaling.

To address this, we propose that a truly robust model should exhibit multi-view consistency: its attention should remain focused on the primary subject regardless of the perspective. This paper introduces a framework that enforces such consistency by integrating Video Transformers with Neural Radiance Fields (NeRF) and a novel mathematical metric called Directed Gromov-Wasserstein (DGW) discrepancy.

Proposed Methodology

The proposed framework consists of three integrated components designed to ensure that the model's internal representations are invariant to camera viewpoint shifts.

The proposed framework integrates a Video Transformer backbone with a NeRF-based Feature Renderer to enforce multi-view consistency.

1. Video Transformer Backbone

The system utilizes a standard architecture, such as the Video Swin Transformer, to extract high-level features and attention maps from input video frames. These maps represent where the model is "looking" to make its classification.

2. Implicit Multi-view Rendering (NeRF)

Since most action datasets provide only a single camera view, the framework incorporates a Neural Radiance Field (NeRF) module. This module acts as a "feature factory," allowing the model to render feature maps from novel, imaginary viewpoints during training. This effectively synthesizes a multi-view dataset from single-view inputs, providing the necessary data to enforce spatial consistency.

3. Directed Gromov-Wasserstein (DGW) Discrepancy

The core innovation lies in how the model compares the original view's attention map with the rendered novel view. Standard metrics like Gromov-Wasserstein (GW) distance compare the structure of distributions but treat points as static. In video, the relationship and motion direction between points are critical. The proposed Directed GW incorporates the direction of vectors between points in the attention volume using cosine similarity. By minimizing the DGW loss, the model is forced to maintain a consistent focus on the structural elements of the action across different simulated perspectives.

Experimental Evaluation

The model was evaluated on three major industry benchmarks: Kinetics-400, Something-Something V2 (SSv2), and Jester.

Key Results

  • State-of-the-Art Performance: The method achieved 83.49% Top-1 accuracy on Kinetics-400 and 70.74% on SSv2, outperforming base Swin-B models.
  • Ablation Studies: On the Jester dataset, adding the DGW consistency loss improved Top-1 accuracy from 96.50% to 96.94%, demonstrating that consistency constraints directly improve recognition performance.
  • Qualitative Visualization: Attention map visualizations reveal that models trained with DGW maintain a tight lock on the person performing the action, whereas models without it often exhibit "leaky" attention that drifts into the background.
Qualitative comparison of attention maps across different time steps and viewpoints, showing the superior consistency achieved with the DGW loss compared to standard GW or no consistency loss.

Discussion and Limitations

By using consistency as a proxy for correctness, this approach forces models to prioritize the actual subject of an action. However, the method faces certain challenges. Calculating DGW distances is computationally intensive, requiring entropic regularization for efficiency. Additionally, the NeRF module's ability to hallucinate novel views is limited by the information available in the single input frame; complete occlusions can still pose a challenge. Future work may extend this consistency-based reasoning to fields like autonomous driving and human-robot interaction.

Summary updated

Abstract

Action recognition has become one of the popular research topics in computer vision. There are various methods based on Convolutional Networks and self-attention mechanisms as Transformers to solve both spatial and temporal dimensions problems of action recognition tasks that achieve competitive performances. However, these methods lack a guarantee of the correctness of the action subject that the models give attention to, i.e., how to ensure an action recognition model focuses on the proper action subject to make a reasonable action prediction. In this paper, we propose a multi-view attention consistency method that computes the similarity between two attentions from two different views of the action videos using Directed Gromov-Wasserstein Discrepancy. Furthermore, our approach applies the idea of Neural Radiance Field to implicitly render the features from novel views when training on single-view datasets. Therefore, the contributions in this work are three-fold. Firstly, we introduce the multi-view attention consistency to solve the problem of reasonable prediction in action recognition. Secondly, we define a new metric for multi-view consistent attention using Directed Gromov-Wasserstein Discrepancy. Thirdly, we built an action recognition model based on Video Transformers and Neural Radiance Fields. Compared to the recent action recognition methods, the proposed approach achieves state-of-the-art results on three large-scale datasets, i.e., Jester, Something-Something V2, and Kinetics-400.
BibTeX
@misc{nguyen2024multi,
  author = {Hoang-Quan Nguyen and Thanh-Dat Truong and Khoa Luu},
  title = {{Multi-view Action Recognition via Directed Gromov-Wasserstein Discrepancy}},
  year = {2024},
  eprint = {2405.01337},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.01337},
}
Figure