Multimodal Adaptation of CLIP for Few-Shot Action Recognition

Jiazheng Xing, Mengmeng Wang, Xiaojun Hou, Guang Dai, Jingdong Wang, Yong Liu · OpenReview

Abstract

Applying large-scale pre-trained visual models like CLIP to few-shot action recognition tasks can benefit performance and efficiency. Utilizing the "pre-training, fine-tuning" paradigm makes it possible to avoid training a network from scratch, which can be time-consuming and resource-intensive. However, this method has two drawbacks. First, limited labeled samples for few-shot action recognition necessitate minimizing the number of tunable parameters to mitigate over-fitting, also leading to inadequate fine-tuning that increases resource consumption and may disrupt the generalized representation of models. Second, the video's extra-temporal dimension challenges few-shot recognition's effective temporal modeling, while pre-trained visual models are usually image models. This paper proposes a novel method called Multimodal Adaptation of CLIP (MA-CLIP) to address these issues. It adapts CLIP for few-shot action recognition by adding lightweight adapters, which can minimize the number of learnable parameters and enable the model to transfer across different tasks quickly. The adapters we design can combine information from video-text multimodal sources for task-oriented spatiotemporal modeling, which is fast, efficient, and has low training costs. Additionally, based on the attention mechanism, we design a text-guided prototype construction module that can fully utilize video-text information to enhance the representation of video prototypes. Our MA-CLIP is plug-and-play, which can be used in any different few-shot action recognition temporal alignment metric.

Introduction

Few-Shot Action Recognition (FSAR) involves identifying novel video categories using only a handful of labeled examples. This task is inherently difficult due to the high dimensionality of video data and the fact that actions often depend on subtle temporal dynamics rather than static background features. While large-scale models like CLIP offer a powerful foundation, adapting them to FSAR typically faces a trade-off: full fine-tuning is computationally expensive and risks catastrophic forgetting, while standard parameter-efficient methods often ignore the rich semantic information available in text labels.

Methodology

The proposed MA-FSAR framework addresses these challenges through two primary innovations designed to inject temporal and textual cues directly into the visual encoder.

Fine-grained Multimodal Adaptation (FgMA)

Instead of appending a temporal layer at the end of the pipeline, MA-FSAR inserts three specialized adapters into the Vision Transformer (ViT) blocks:

  • Global Temporal Adaptation: This module processes only the [class] token across frames. It efficiently captures global motion cues without the prohibitive cost of processing every spatial patch.
  • Local Multimodal Adaptation: Acting as a "multimodal spotlight," this adapter injects text features from action labels into the visual tokens of the support branch. This guides the model's attention toward objects relevant to the specific action (e.g., focusing on a "cup" for a "pouring" action).
  • Joint Adaptation: A parallel adapter that fine-tunes the final representations to ensure task-specific alignment.

Text-guided Prototype Construction Module (TPCM)

To create representative feature vectors (prototypes) for each class, MA-FSAR employs a TPCM that utilizes cross-attention between video and text features. This ensures that the resulting prototypes are semantically rich and distinct, facilitating better alignment during the temporal matching phase.

Detailed architecture of the MA-FSAR framework, highlighting the Fine-grained Multimodal Adaptation (FgMA) and Text-guided Prototype Construction Module (TPCM).

Experimental Results and Insights

MA-FSAR was evaluated on five benchmarks, including spatial-related datasets (Kinetics-100, HMDB51, UCF101) and challenging temporal-related datasets (Something-Something V2).

Performance and Efficiency

On the difficult SSv2-Small 1-shot task, MA-FSAR achieved a state-of-the-art 59.1% accuracy, significantly outperforming previous CLIP-based methods and specialized models like HyRSM and STRM. Remarkably, this performance is achieved using only ~18.5M tunable parameters—roughly 1/5th of the parameters required for full fine-tuning. This efficiency results in 15% faster training speeds and lower GPU memory consumption.

Qualitative Analysis: Language as a Spotlight

Visualization of attention heatmaps reveals that injecting text features into the intermediate layers of the visual encoder allows the model to "look" for the correct semantic cues. Compared to baseline methods like AIM, MA-FSAR focuses much more tightly on action-relevant objects, proving that language can effectively guide visual perception in few-shot scenarios.

Summary of MA-FSAR: (a) architectural comparison with AIM and CLIP-FSAR, (b) attention heatmaps showing improved focus on action-relevant objects, and (c) performance vs. parameter efficiency comparison.

Conclusion

MA-FSAR demonstrates that parameter-efficient adaptation of CLIP can outperform full fine-tuning by preserving general knowledge while specializing in temporal and multimodal cues. Future work may involve leveraging Large Language Models (LLMs) to provide even more descriptive knowledge, further enhancing the model's ability to recognize complex actions with minimal data.

Summary updated

BibTeX
@article{xing2024multimodal,
  author = {Jiazheng Xing and Mengmeng Wang and Xiaojun Hou and Guang Dai and Jingdong Wang and Yong Liu},
  title = {{Multimodal Adaptation of CLIP for Few-Shot Action Recognition}},
  journal = {Pattern Recognition},
  year = {2024},
}
Figure