Abstract
Real-world applications such as robotics and augmented reality demand real-time activity recognition from continuous, untrimmed video streams. Traditional models often struggle with the computational demands of long-term temporal modeling and the accumulation of spatial redundancy. We introduce CARS (Continuous Activity Recognition System), which addresses these challenges through an adaptive video context modeling approach. By combining an unsupervised spatial information funnel with a Mamba-based dynamic state update mechanism, CARS achieves state-of-the-art accuracy while operating at over 30 FPS on edge devices like the NVIDIA Jetson Orin and MacBook Air.
Introduction
Most contemporary video recognition research focuses on short, pre-trimmed clips. However, practical deployment requires processing streaming video where activities occur across diverse temporal scales—from fleeting motions to long-duration tasks. Three primary hurdles impede effective streaming recognition: diverse temporal scales, accumulating spatial redundancy that "clutters" hidden states, and the quadratic scaling of Transformer-based architectures.
Methodology
CARS introduces Adaptive Video Context Modeling to mitigate these issues through two core components:
Activity Spatial Feature Extraction
To reduce spatial redundancy without manual labeling, CARS employs an "information funnel" based on the Information Bottleneck principle. It utilizes general-purpose CLIP embeddings and a trainable module that learns to discard task-irrelevant features. This unsupervised process ensures that only the most salient visual information enters the temporal modeling stage.
Activity-Aware State Update
Unlike traditional RNNs or LSTMs with fixed transition logic, CARS utilizes a Mamba-based architecture. This allows the model to dynamically generate transition parameters based on the current frame's content. This input-dependent adaptability enables the system to selectively update its hidden state, effectively deciding what to remember or forget based on incoming visual evidence.
Frame-Weighted Loss
To better capture the completion of actions, particularly in motion-heavy tasks, CARS employs a weighted loss function during training that prioritizes later frames in a sequence.
Experiments and Datasets
The system was evaluated on several challenging benchmarks including FineGym99/288 for fine-grained recognition and Charades for daily activities. Additionally, a custom 3.5-hour continuous stream ("All-activity-in-one FineGym") was used to simulate real-world conditions. CARS was also tested as a video encoder for Large Video Models (LVMs) using VideoChatGPT and ActivityNet-QA.
Key Results
CARS demonstrates significant improvements in both accuracy and efficiency. It outperformed existing baselines by 1.2% to 79.7% across various datasets.
Edge Performance and Efficiency
A standout feature of CARS is its deployment capability. By optimizing the system using llama.cpp and ggml frameworks, the authors achieved:
- Real-time Inference: >30 FPS on MacBook Air (M3) and NVIDIA Jetson Orin.
- Parameter Efficiency: Only 202K trainable parameters (excluding the frozen CLIP backbone).
- LVM Enhancement: Integrating CARS as an encoder for VideoLLaMa2 improved VideoChatGPT scores from 1.95 to 2.41 and boosted zero-shot performance by up to 4%.
Conclusion
CARS represents a significant step toward efficient, continuous video understanding. By focusing on selective memory and input-dependent transitions, it overcomes the limitations of traditional fixed-state models. Future work will explore extending this adaptive modeling to multi-agent interactions and more complex video-grounded dialogue tasks.
Summary updated