Learning Conditional Space-Time Prompt Distributions for Video Class-Incremental Learning

Xiaohan Zou, Wenchao Ma, Shu ZhaoCVPR 2025

Abstract

Recent advancements in prompt-based learning have significantly advanced image and video class-incremental learning. However, the prompts learned by these methods often fail to capture the diverse and informative characteristics of videos, and struggle to generalize effectively to future tasks and classes. To address these challenges, this paper proposes modeling the distribution of space-time prompts conditioned on the input video using a diffusion model. This generative approach allows the proposed model to naturally handle the diverse characteristics of videos, leading to more robust prompt learning and enhanced generalization capabilities. Additionally, we develop a simple yet effective mechanism to transfer the token relationship modeling capabilities of pre-trained image transformers to spatio-temporal modeling in videos. Our approach has been thoroughly evaluated across four established benchmarks, showing remarkable improvements over existing state-of-the-art methods in video class-incremental learning.

Introduction

In Video Class-Incremental Learning (VCIL), an AI system must learn to recognize new action categories sequentially without losing the ability to recognize previous ones. The primary obstacle is catastrophic forgetting, where updates for new data overwrite the weights essential for old data.

Recent "prompt-based" solutions attempt to solve this by keeping the main vision model frozen and only training small, learnable "prompts." However, existing methods typically rely on a fixed pool of prompts or deterministic generators. These suffer from a lack of diversity and often fail to capture the complex spatio-temporal relationships—how objects move over time—that are essential for video understanding.

The CoSTEP Framework

The authors introduce CoSTEP (Conditional Space-TimE Prompt distribution), which reimagines prompts as a conditional distribution rather than static values. This shift is achieved through two primary innovations:

1. Prompt Diffusion

Instead of selecting a prompt from a list, CoSTEP uses a Denoising Diffusion Probabilistic Model (DDPM). During training, it learns the distribution of ideal prompts conditioned on the input video's features. During inference, it starts with random noise and iteratively "refines" it into a specific prompt tailored to that exact video instance. This probabilistic approach naturally injects helpful noise during learning, acting as a regularizer that prevents overfitting to the current task and enhances generalization to future classes.

Comparison of prompt-based learning paradigms: (a) fixed prompt pools, (b) deterministic generators, and (c) the proposed CoSTEP conditional distribution modeling.

2. Spatio-Temporal Modeling via "Frame Grids"

To help a pre-trained image transformer (like CLIP) understand temporal dynamics without adding heavy 3D layers, CoSTEP employs a "frame grid" technique. Multiple video frames are downsampled and arranged into a single grid (similar to a comic strip). This allows the standard image transformer to process temporal relationships as if they were spatial ones, maintaining high efficiency while capturing motion.

The prompt diffusion sampling process, where Gaussian noise is iteratively denoised into a task-specific prompt $P_0$ guided by video conditions.

Experimental Evaluation

CoSTEP was evaluated on four major action recognition benchmarks, including UCF101, HMDB51, and the challenging Something-Something v2 (SSv2), which requires fine-grained temporal reasoning.

Key Results

  • State-of-the-Art Accuracy: On UCF101 (10-task split), CoSTEP reached 96.51% average accuracy, significantly outperforming previous leaders like PIVOT (93.36%).
  • Minimal Forgetting: The model showed remarkably low Backward Forgetting (BWF). On UCF101, its BWF was only 1.99%, compared to 4.47% for PIVOT and over 18% for older methods like iCaRL.
  • Temporal Reasoning: On the SSv2 benchmark, CoSTEP achieved 41.44% accuracy, a notable jump over the previous best of ~39%, highlighting its superior ability to handle complex motion.

Conclusion

By treating prompt generation as a probabilistic task via diffusion, CoSTEP makes incremental learning more robust and adaptable. The inherent randomness of the diffusion process helps the model generalize to unseen classes, while the frame grid approach ensures efficient temporal modeling. This generative prompting strategy sets a new standard for maintaining knowledge in evolving video recognition systems.

Summary updated

BibTeX
@inproceedings{zou2025learning,
  author = {Xiaohan Zou and Wenchao Ma and Shu Zhao},
  title = {{Learning Conditional Space-Time Prompt Distributions for Video Class-Incremental Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=50ncevh7On},
}
Figure