M3Net: Multi-view Encoding, Matching, and Fusion for Few-shot Fine-grained Action Recognition

Hao Tang, Jun Liu, Shuanglin Yan, Rui Yan, Zechao Li, Jinhui Tang

Abstract

M$^3$Net is a novel framework designed to recognize subtle, fine-grained actions (like different types of gymnastic jumps) using only one or a few labeled examples. By analyzing video data through three distinct "views"—spatial details within frames, temporal dynamics within videos, and shared patterns across a task—it achieves state-of-the-art performance on challenging benchmarks, significantly outperforming existing methods in 1-shot scenarios.

Introduction: The Challenge of Fine-Grained Action Recognition

Standard action recognition has made huge strides, but it usually relies on massive datasets. Few-shot (FS) learning aims to recognize new actions with minimal data, but most existing FS methods focus on "coarse-grained" actions. Distinguishing between "Shooting a Basketball" and "Brushing Hair" is relatively easy because the backgrounds and objects are vastly different.

However, Fine-grained (FG) action recognition is much harder. Imagine trying to tell the difference between a "Stag Jump" and a "Split Jump" in gymnastics. The background is the same, the athlete is the same, and the movement happens in a split second. Existing models struggle here because they can't capture subtle pose changes or handle the high similarity between different classes in the embedding space.

Comparison of coarse-grained vs. fine-grained action recognition in embedding space.

The M$^3$Net Framework

The authors propose a three-stage pipeline: Multi-view Encoding, Multi-view Matching, and Multi-view Fusion. This architecture allows the model to capture spatial, temporal, and task-specific contexts simultaneously to generate more discriminative features.

Overview of the M$^3$Net architecture featuring multi-view encoding, matching, and fusion stages.

1. Multi-view Encoding

Instead of a single feature vector, the model generates three "views" of the data:

  • Intra-frame (IFCE): Uses a "patch-mixing" block to focus on spatial details within a single frame, helping the model ignore irrelevant background noise.
  • Intra-video (IVCE): Uses a "frame-mixing" block to capture the temporal order and dynamics of the action across the whole clip.
  • Intra-episode (IECE): This is a "task-adaptive" view. It looks at all the videos in the current few-shot task (the "episode") to find interactive clues that help distinguish the specific classes at hand.

2. Multi-view Matching

The model doesn't just compare videos once; it uses three specialized functions:

  • Instance-specific (I-M): Uses Dynamic Time Warping (DTW) to align frames temporally, ensuring the sequence of the action matches.
  • Category-specific (C-M): Uses cross-attention to reconstruct a "prototype" of a category based on the query video, measuring how well the query fits that class.
  • Task-specific (T-M): Performs frame-to-frame matching in a space contextualized by the entire task episode.

3. Multi-view Fusion

To make the final call, M$^3$Net fuses these views in two ways. During training, it uses matching-losses fusion (multi-task learning) to ensure each view learns effectively. During inference, it uses matching-predictions fusion, essentially letting the three views "vote" on the correct label.

Experimental Evaluation

The model was evaluated on three premier fine-grained action benchmarks: FineGym (Gym99 & Gym288) and Diving48.

  • Diving48: In the 1-shot setting, M$^3$Net achieved 72.35% accuracy, a massive 18.5% improvement over previous leading methods like TRX and STRM.
  • Gym99/Gym288: It consistently outperformed competitors in 1, 3, and 5-shot tasks. On Gym99 5-shot, it reached 86.71%.
  • Qualitative Success: Activation maps show that M$^3$Net focuses tightly on the human subject and the specific limbs involved in the action, whereas baseline models often get distracted by the background.

Key Insights

  • Spatial Before Temporal: The authors found that enriching spatial context within frames (IFCE) before modeling temporal relationships (IVCE) significantly boosts performance. It helps the model "see" the athlete better before trying to "understand" the move.
  • The Power of the Episode: By looking at all videos in a few-shot task simultaneously (IECE), the model can perform an "implicit alignment." It learns what makes this specific set of classes different from each other.
  • Complementary Matching: Temporal matching (like DTW) and non-temporal matching (like prototype reconstruction) catch different types of errors. Combining them makes the system much more robust to variations in action speed or duration.

Limitations and Future Work

While M$^3$Net is powerful, processing three separate views and matching functions increases the computational overhead compared to simpler single-view models. Future work could further exploit the "structural invariance" of multiple views to handle even more extreme data scarcity or explore more modern backbones like Video Transformers to improve the underlying feature extraction.

Summary updated

BibTeX
@inproceedings{tang2023m,
  author = {Hao Tang and Jun Liu and Shuanglin Yan and Rui Yan and Zechao Li and Jinhui Tang},
  title = {{M3Net: Multi-view Encoding, Matching, and Fusion for Few-shot Fine-grained Action Recognition}},
  booktitle = {ACM Multimedia},
  year = {2023},
  url = {https://openreview.net/forum?id=zst_rRVEnlh},
}

Loading related content...

Figure