Frame Order Matters: A Temporal Sequence-Aware Model for Few-Shot Action Recognition

Bozheng Li, Mushui Liu, Gaoang Wang, Yunlong Yu

Introduction

Few-Shot Action Recognition (FSAR) aims to identify novel video categories using only a minimal number of labeled examples. While the advent of Large Language-Image Models (like CLIP) has significantly advanced the field, these models often suffer from "temporal blindness." They tend to treat videos as a "bag-of-frames," focusing on static visual features rather than the chronological sequence of motion.

Figure 1: Comparison between standard video encoders and sequence-aware encoders. Standard models struggle to distinguish actions like "shooting" vs "catching" when frame order is reversed, whereas sequence-aware models correctly identify the temporal direction.

This lack of temporal awareness is a critical flaw. For instance, reversing the frames of a video showing someone "sitting down" results in "standing up." Without sensitivity to the arrow of time, a model might misclassify both as the same action. To address this, researchers from Zhejiang University have introduced TSAM (Temporal Sequence-Aware Model), a framework designed to capture the specific order of frames while maintaining high parameter efficiency.

The TSAM Framework

TSAM introduces three primary innovations to the FSAR pipeline: a sequential perceiver, LLM-enhanced text prototypes, and a robust matching mechanism.

Figure 2: The TSAM architecture overview, featuring the Perceiver-Based Video Encoder, Textual Corpus Enhancement module, and Unbalanced Optimal Transport Matching.

1. Sequential Perceiver Adapter

Traditional global attention mechanisms look at all frames simultaneously, which can lead to "information leakage" where future frames influence the representation of past ones, effectively blurring the temporal order. TSAM utilizes a Sequential Perceiver Adapter with a recurrent structure. It processes temporal information as a distinct modality, updating a "temporal query" frame-by-frame. This forces the model to learn the progression of an action as it unfolds, preserving the chronological integrity of the video.

2. Textual Corpus Enhancement

Standard FSAR models typically rely on simple class labels (e.g., "fencing") for supervision. TSAM leverages Large Language Models (LLMs) to generate detailed descriptive paragraphs for each action category. These enriched descriptions are encoded into "textual prototypes," providing the model with a deeper semantic understanding of the visual and temporal characteristics expected for a specific action.

3. Unbalanced Optimal Transport (UOT) Matching

Video data is often noisy, containing redundant motions or irrelevant background frames (e.g., the moments before an athlete begins a jump). TSAM employs Unbalanced Optimal Transport (UOT) to match query video features against prototypes. Unlike standard matching, UOT allows the model to dynamically "ignore" outlier frames, leading to more robust classification by focusing on the most representative parts of the action.

Experimental Results

The model was rigorously evaluated on five major FSAR benchmarks: SSv2-Small, SSv2-Full, HMDB-51, UCF101, and Kinetics.

Performance and Efficiency

TSAM established a new state-of-the-art (SOTA) across all tested datasets. On the challenging SSv2-Full (1-shot) dataset, which is highly dependent on temporal order, TSAM achieved 65.8% accuracy, outperforming the previous best of 62.1%.

Notably, TSAM is highly efficient. It achieves these results with only 8 million trainable parameters through Parameter-Efficient Fine-Tuning (PEFT). In comparison, competing models like CLIP-FSAR and MA-CLIP require 91 million and 18 million parameters, respectively.

Temporal Sensitivity Test

To prove that TSAM is truly "watching" the sequence, the researchers conducted a "reverse-frame" test. When frames were played backward, TSAM’s performance dropped significantly (e.g., a 3.2% drop on SSv2), whereas standard models showed almost no change. This confirms that TSAM relies on the chronological order of motion, unlike its "temporally blind" predecessors.

Discussion and Future Work

The success of TSAM highlights that order is a modality. By treating the sequence of frames as a specific signal to be perceived recurrently, the model avoids the homogenization of features. Furthermore, the use of LLMs as "feature boosters" suggests that linguistic common sense about how actions unfold can effectively compensate for a lack of training data.

However, some limitations remain. The model shows diminishing returns on scene-heavy datasets like UCF101, where background context often suffices for recognition. Additionally, the current sequential perceiver is optimized for short 8-frame samples; scaling this to long-form videos with multi-stage actions is a key area for future research. Finally, the model's reliance on LLM-generated descriptions means that any "hallucinations" in the text could potentially mislead the visual encoder.

Summary updated

BibTeX
@inproceedings{li2025frame,
  author = {Bozheng Li and Mushui Liu and Gaoang Wang and Yunlong Yu},
  title = {{Frame Order Matters: A Temporal Sequence-Aware Model for Few-Shot Action Recognition}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i17.34004},
}
Figure