Chapter 9. Video-Language Models
The when and how of events unfolding over time is what separates interpreting a photo from understanding a story: the world doesn’t stand still. What is the deer in Figure 9-1 doing in the street? Looking at the multiple frames, we see it is in a park, and people are not scared but are enjoying observing and interacting with it.
Figure 9-1. We provide frames from a video and their timestamps to a video-language model, and we get answers from it.
Videos contain everything images do plus time. The temporal dimension is deceptively expensive: 300 frames per 10-second clip, quadratic attention costs that explode with sequence length, and motion patterns that require understanding not just what objects are but how they move. A strong image classifier might nail every frame individually but completely miss the action that ties them together.
In this chapter, you will learn how video-language models tackle these challenges. You will see how temporal modeling mechanisms capture motion and event sequences, how attention strategies scale to handle hundreds of frames while fitting in a GPU, and how to combine embedding and generative models into practical pipelines that work at scale.
By the end of this chapter, you will:
-
Understand how video models evolved from 3D convolutional neural networks (CNNs) to modern transformer architectures and why factorization ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access