Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

LongVILA: Scaling Long-Context Visual Language Models for Long Videos

About

Long-context capability is critical for multi-modal foundation models, especially for long video understanding. We introduce LongVILA, a full-stack solution for long-context visual-language models by co-designing the algorithm and system. For model training, we upgrade existing VLMs to support long video understanding by incorporating two additional stages, i.e., long context extension and long video supervised fine-tuning. However, training on long video is computationally and memory intensive. We introduce the long-context Multi-Modal Sequence Parallelism (MM-SP) system that efficiently parallelizes long video training and inference, enabling 2M context length training on 256 GPUs without any gradient checkpointing. LongVILA efficiently extends the number of video frames of VILA from 8 to 2048, achieving 99.8% accuracy in 6,000-frame (more than 1 million tokens) video needle-in-a-haystack. LongVILA-7B demonstrates strong accuracy on 9 popular video benchmarks, e.g. 65.1% VideoMME with subtitle. Besides, MM-SP is 2.1x - 5.7x faster than ring style sequence parallelism and 1.1x - 1.4x faster than Megatron with a hybrid context and tensor parallelism. Moreover, it seamlessly integrates with Hugging Face Transformers.

Yukang Chen, Fuzhao Xue, Dacheng Li, Qinghao Hu, Ligeng Zhu, Xiuyu Li, Yunhao Fang, Haotian Tang, Shang Yang, Zhijian Liu, Ethan He, Hongxu Yin, Pavlo Molchanov, Jan Kautz, Linxi Fan, Yuke Zhu, Yao Lu, Song Han• 2024

Related benchmarks

TaskDatasetResultRank
Visual Question AnsweringVizWiz
Accuracy65
1525
Visual Question AnsweringVQA v2
Accuracy85.4
1362
Visual Question AnsweringGQA
Accuracy65.4
1249
Text-based Visual Question AnsweringTextVQA
Accuracy77.8
807
Science Question AnsweringScienceQA
Accuracy98.5
502
Video UnderstandingMVBench--
425
Video Question AnsweringActivityNet-QA
Accuracy59.5
376
Multimodal Capability EvaluationMM-Vet
Score51.7
345
Video Question AnsweringActivityNet-QA (test)
Accuracy59.5
288
Video UnderstandingVideoMME--
222
Showing 10 of 49 rows

Other info

Code

Follow for update