Abstract
Few-shot action recognition (FSAR) is a challenging task that requires models to generalize to novel video categories using only a few labeled examples. Existing approaches often struggle with indiscriminate class prototypes that lack task-specific context and rigid matching strategies that fail to capture both spatial appearance and temporal order effectively. We propose the Graph-guided Hybrid Matching (GgHM) framework to address these limitations. GgHM utilizes a Graph Neural Network to refine video features based on the support set context and introduces a hybrid matching strategy that combines frame-level and tuple-level comparisons. Our framework achieves state-of-the-art results on several benchmarks, including a significant 3.0% accuracy improvement on the SSv2 dataset.
Introduction
Few-shot action recognition (FSAR) aims to bridge the gap between deep learning's data hunger and the scarcity of labeled video data in real-world scenarios. Most current FSAR methods rely on metric learning, where a query video is compared against a set of support prototypes. However, these methods face two primary hurdles:
- Indiscriminate Prototypes: Standard models often extract features for each video in isolation. This ignores the relational context between the query and support videos, leading to prototypes that may not be discriminative enough to separate highly similar actions (e.g., "high jump" vs. "long jump").
- Rigid Matching Strategies: Existing models typically use either frame-level matching (ignoring temporal order) or fixed temporal blocks (tuples). Neither is universally optimal; some actions are defined by spatial objects, while others are defined strictly by the sequence of motion.
The GgHM Framework
The GgHM framework introduces three core components designed to make feature construction task-aware and matching more flexible.
Learnable Dense Temporal Modeling (LDTM)
Before matching, raw video features are enhanced via the LDTM module. This module employs Patch Temporal Relation Modeling, which shifts patches across the time dimension to capture local motion, and Channel Temporal Relation Modeling, which utilizes 1D convolutions to identify temporal patterns across feature channels. This dense modeling provides a richer foundation for subsequent graph-based refinement.
Graph-guided Prototype Construction (GgPC)
To make features "task-oriented," GgHM treats the query and support videos as nodes in a graph. A Graph Neural Network (GNN) allows these videos to interact, refining their features based on the specific task context. By using support set labels as guidance, the GNN optimizes features to maximize intra-class similarity and minimize inter-class correlation, ensuring that the resulting prototypes are highly discriminative for the current set of classes.
Hybrid Prototype Matching (HPM)
Classification is performed using a bidirectional Hausdorff Distance across two paths:
- Frame-level Matching: This path matches individual frames, making it robust to temporal misalignments and effective for appearance-based actions.
- Tuple-level Matching: This path matches pairs of frames to preserve temporal order, which is essential for distinguishing actions like "opening" vs. "closing" a box.
The final classification score is a weighted fusion of these two metrics, providing a "safety net" for diverse video styles.
Experimental Results
We evaluated GgHM on four standard benchmarks: Kinetics-100, Something-Something V2 (SSv2), UCF101, and HMDB51.
- State-of-the-Art Performance: On the challenging SSv2 dataset (1-shot), GgHM reached 54.5% accuracy, a 3.0% improvement over the previous best method (HyRSM). On Kinetics-100 (1-shot), it achieved 74.9% accuracy.
- Qualitative Analysis: Visualizations of similarity matrices demonstrate that GgHM successfully distinguishes between actions with similar rhythmic movements (like drumming and jumping jacks) that often confuse baseline models like TRX or OTAM.
Conclusion
The GgHM framework demonstrates that task-aware feature refinement and hybrid temporal matching are critical for robust few-shot action recognition. While the addition of GNNs and dual-path matching increases computational complexity, the significant gains in accuracy—particularly on temporally sensitive datasets like SSv2—highlight the effectiveness of this approach. Future work may involve exploring more complex graph structures or incorporating multi-modal data to further enhance performance in extremely low-shot scenarios.
Summary updated