Mingze Xu, Mingfei Gao, Zhe Gan, Hong-You Chen, Zhengfeng Lai, Haiming Gang, Kai Kang, Afshin Dehghan
We propose SlowFast-LLaVA (or SF-LLaVA for short), a training-free video large language model (LLM) that can jointly capture detailed spatial semantics and long-range temporal context without exceeding the token budget of commonly used LLMs. This is realized by using a two-stream SlowFast design of inputs for Video LLMs to aggregate features from sampled frames in an effective way. Specifically, the Slow pathway extracts features at a low frame rate while keeping as much spatial detail as possible (e.g., with 12x24 tokens), and the Fast pathway operates on a high frame rate but uses a larger spatial pooling stride (e.g., downsampling 6x) to focus on the motion cues. As a result, this design allows us to adequately capture both spatial and temporal features that are beneficial for detailed video understanding. Experimental results show that SF-LLaVA outperforms existing training-free methods on a wide range of video tasks. On some benchmarks, it achieves comparable or even better performance compared to state-of-the-art Video LLMs that are fine-tuned on video datasets. Code has been made available at: https://github.com/apple/ml-slowfast-llava.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Question Answering | NExT-QA | Accuracy | 64.2 | SlowFast-LLaVA-34B |
| Question Answering | MSVD-QA | Accuracy | 79.9 | SlowFast-LLaVA-34B |
| Question Answering | MSVD-QA | Confidence Score | 4.1 | SlowFast-LLaVA-34B |
| Question Answering | TGIF-QA | Accuracy | 80.6 | SlowFast-LLaVA-34B |
| Question Answering | TGIF-QA | Confidence Score | 4.3 | SlowFast-LLaVA-34B |
| Question Answering | MSRVTT-QA | Accuracy | 67.4 | SlowFast-LLaVA-34B |
| Question Answering | MSRVTT-QA | Confidence Score | 3.7 | SlowFast-LLaVA-34B |
| Question Answering | IntentQA | Accuracy | 60.1 | SlowFast-LLaVA-34B |
| Question Answering | EgoSchema (subset) | Accuracy | 47.2 | SlowFast-LLaVA-34B |
| Question Answering | ActivityNet-QA | Accuracy | 59.2 | SlowFast-LLaVA-34B |
| Question Answering | ActivityNet-QA | Confidence Score | 3.5 | SlowFast-LLaVA-34B |
| Visual Question Answering (VQA) | VideoInstruct | mean | 3.32 | SlowFast-LLaVA-34B |
| Visual Question Answering (VQA) | VideoInstruct | gpt-score | 3.84 | SlowFast-LLaVA-34B |
| Visual Question Answering (VQA) | VideoInstruct | gpt-score | 3.48 | SlowFast-LLaVA-34B |
| Visual Question Answering (VQA) | VideoInstruct | gpt-score | 2.96 | SlowFast-LLaVA-34B |
| Visual Question Answering (VQA) | VideoInstruct | gpt-score | 2.77 | SlowFast-LLaVA-34B |
| Visual Question Answering (VQA) | VideoInstruct | gpt-score | 3.57 | SlowFast-LLaVA-34B |
| Video Question Answering | NExT-QA | Accuracy | 64.2 | SlowFast-LLaVA-34B |
| Video Question Answering | MSVD-QA | Accuracy | 79.9 | SlowFast-LLaVA-34B |
| Video Question Answering | MSVD-QA | Confidence Score | 4.1 | SlowFast-LLaVA-34B |
| Video Question Answering | TGIF-QA | Accuracy | 80.6 | SlowFast-LLaVA-34B |
| Video Question Answering | TGIF-QA | Confidence Score | 4.3 | SlowFast-LLaVA-34B |
| Video Question Answering | MSRVTT-QA | Accuracy | 67.4 | SlowFast-LLaVA-34B |
| Video Question Answering | MSRVTT-QA | Confidence Score | 3.7 | SlowFast-LLaVA-34B |
| Video Question Answering | IntentQA | Accuracy | 60.1 | SlowFast-LLaVA-34B |
| Video Question Answering | EgoSchema (subset) | Accuracy | 47.2 | SlowFast-LLaVA-34B |
| Video Question Answering | ActivityNet-QA | Accuracy | 59.2 | SlowFast-LLaVA-34B |
| Video Question Answering | ActivityNet-QA | Confidence Score | 3.5 | SlowFast-LLaVA-34B |
| Generative Visual Question Answering | VideoInstruct | mean | 3.32 | SlowFast-LLaVA-34B |
| Generative Visual Question Answering | VideoInstruct | gpt-score | 3.84 | SlowFast-LLaVA-34B |
| Generative Visual Question Answering | VideoInstruct | gpt-score | 3.48 | SlowFast-LLaVA-34B |
| Generative Visual Question Answering | VideoInstruct | gpt-score | 2.96 | SlowFast-LLaVA-34B |
| Generative Visual Question Answering | VideoInstruct | gpt-score | 2.77 | SlowFast-LLaVA-34B |
| Generative Visual Question Answering | VideoInstruct | gpt-score | 3.57 | SlowFast-LLaVA-34B |
| Video-based Generative Performance Benchmarking (Correctness of Information) | VideoInstruct | gpt-score | 3.48 | SlowFast-LLaVA-34B |
| Video-based Generative Performance Benchmarking | VideoInstruct | mean | 3.32 | SlowFast-LLaVA-34B |
| Video-based Generative Performance Benchmarking | VideoInstruct | gpt-score | 3.84 | SlowFast-LLaVA-34B |
| Video-based Generative Performance Benchmarking | VideoInstruct | gpt-score | 3.48 | SlowFast-LLaVA-34B |
| Video-based Generative Performance Benchmarking | VideoInstruct | gpt-score | 2.96 | SlowFast-LLaVA-34B |
| Video-based Generative Performance Benchmarking | VideoInstruct | gpt-score | 2.77 | SlowFast-LLaVA-34B |
| Video-based Generative Performance Benchmarking | VideoInstruct | gpt-score | 3.57 | SlowFast-LLaVA-34B |