Chapter 10. Any-to-Any Models
Multimodal models are great because they ground language in the world we actually live in. Vision language models (VLMs) can see images and answer questions in natural language. Video models understand how actions unfold and how cause and effect play out over time. Audio models can hear speech and sound. All of them bring AI closer to human-like perception.
What if you want to build an assistant that can see, hear, and speak? Based on what we have seen so far, you would need a vision model, an audio model, a speech synthesis model, and careful orchestration among them.
The next frontier is any-to-any models: unified architectures that handle understanding and generation across text, images, audio, and video within a single system (Figure 10-1).
To be truly any-to-any, a model must handle at least two input modalities and two output modalities. If that sounds ambitious, it is…and the engineering choices involved are fascinating—as you will see in this chapter.
Particularly, you will learn about the three architectural trends for any-to-any models, along with their pros and cons. You will also run inference and train those models to gain experience and judge these different approaches.
Why three families? That is a fair question. The challenge of unifying modalities creates a fundamental puzzle: how do you represent continuous signals (images, audio, video) in a way that a transformer can both understand and generate?
Figure 10-1. Overview of a unified ...
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