Skip to content
03 of 06Multimodality in Generative AI

Chapter 2 — Alignment: from pairs to interactions

Library

Series and technical notes.

You are in Multimodality in Generative AI · Alignment.

Watch video, summary and related content

Estimated reading8 min

This article explains how multimodal systems learn that two different signals refer to the same content: the alignment process. By reading it, you will understand what kind of data is needed to build shared representations, what happens when alignment extends beyond the image–text pair (as ImageBind does with six modalities), and why training-data quality matters more than architecture in determining where a system fails in production. The article is useful whether you have a technical background in machine learning or simply want to understand why models handle some images well and fail systematically on others.

The previous chapter established that multimodality is not limited to the text–image pair or to the existence of a single shared representation space. This chapter describes how alignment between modalities is built: what kind of data is needed, how the problem evolves when there are more than two modalities, and what happens when the data is low quality or poorly structured.

The progression is not arbitrary. Multimodal systems are trained in stages, each building on the previous one, so problems that appear in the final stages almost always have their roots in weaknesses introduced earlier.


1. Image–text pairs: the foundation and its limits

The starting point is conceptually the simplest: image and text pairs that belong together. A photograph with its caption, a product image with its description, a diagram next to its legend. The internet contains billions of these pairs, and foundational vision–language models such as CLIP or ALIGN were trained by extracting them at scale CLIP.

Learning from these pairs follows a contrastive learning logic: the model learns to project image and text into the same representation space so that matching pairs end up close together and non-matching pairs end up far apart. The loss penalizes the model when it associates an image with another image's description, and rewards it when the representations of the correct pair are similar. That training produces aligned visual and text encoders that can find the description most compatible with an image without having been trained on that exact pair, because the shared space captures semantic relationships in image–text pairs instead of simply memorizing examples.

The limitation of this approach is data noise. A photograph's caption does not always describe precisely what appears in the image: it may refer to something that happened before or after, it may describe context rather than visible content, or it may simply be irrelevant.

When the model learns from millions of these noisy pairs, the representations it builds are statistically strong but fragile in fine details, with visible consequences when the system faces questions that require precision.

The field's response to these weaknesses was not to abandon the contrastive paradigm but to refine it. SigLIP replaced CLIP's classic loss with independent sigmoid pair training, improving stability with smaller batches and producing representations that transfer better to localization tasks SigLIP.

DINOv2 took a different direction: instead of depending on text supervision, it trains the visual encoder through self-supervision on a curated image collection, producing denser representations that capture fine spatial structure and generalize better to segmentation and visual retrieval DINOv2. Both point to the same conclusion: the representation-quality bottleneck in multimodal systems was not only alignment with text, but also the richness of the visual encoder itself.

But the most important limitation is not noise: it is that the image–text pair leaves entire modalities out. Audio, video, documents, and continuous signals do not fit into that framework without additional extensions, and that narrowness constrains what systems can be built by anyone working only with that type of data.


2. Beyond the pair: aligning multiple modalities

One of the most important observations from the latest stage of the field is that alignment does not need to remain anchored to image–text to work. ImageBind demonstrated this directly: using only pairs that include image as a common denominator (image–text, image–audio, image–depth, image–thermal, image–IMU), the system learns a shared embedding space across six modalities without ever requiring direct audio–text or audio–depth pairs ImageBind.

The result is that a text query can retrieve audio, an image can retrieve depth or thermal data, and all modalities become aligned transitively through the visual anchor.

That same alignment logic has extended to the product level. Gemini Embedding 2 treats multimodal embedding as a native primitive that unifies text, images, video, audio, and documents in a single representation space usable for cross-modal search, classification, and clustering Gemini Embedding 2. The difference from earlier systems is not only quantitative (more modalities) but qualitative: the embedding is no longer a by-product of an understanding model, but the central object of the system.

What changes when alignment goes beyond the text–image pair is the structure of the training data. For vision–language, the internet provided billions of natural pairs. For audio–text, video–text, or document-layout, high-quality pairs are much scarcer, noisier, and more dependent on human work or controlled synthesis. That asymmetry in data availability largely explains why system capabilities are asymmetric: models understand images better than audio, and audio better than documents with complex layout.

Transitive alignment — from an image–text pair to six modalities
How ImageBind learns a shared space without requiring direct pairs between non-visual modalities.
TEXT
Text
IMAGE
Image
AUDIO
Audio
DEPTH
Depth
THERMAL
Thermal
IMU
IMU
VIDEO
Video
Millions of natural pairs exist for text + image: captions, product descriptions, articles with images. For audio–text: they are scarce and expensive to label. For depth–layout: they require specialized sensors and human work. Modalities outside the text–image pair remain disconnected in the representation space.
transitivity pair pair pair pair pair pair
IMAGE
anchor
TEXT
Text
AUDIO
Audio
DEPTH
Depth
THERMAL
Thermal
IMU
IMU
VIDEO
Video
Transitive alignment (dashed line): ImageBind (2023) learns the space using only the five pair types that include image. The model never sees a direct audio↔text pair, but because both are aligned with image, they become aligned with each other.
A text query can retrieve audio. An image can retrieve depth or thermal data. All modalities become connected without having trained those direct relationships explicitly.
CLIP / Image–text pair
Binary alignment
Image↔text retrieval only
N modalities → N(N−1)/2 pairs to connect them all
2 connected modalities
TEXT
IMAGE
pairs required for N=6
N(N−1)/2 = 15
ImageBind / Gemini Embedding 2
Native multimodal alignment
Cross-modal retrieval between any pair of modalities
N modalities → N pairs (all through the anchor)
6+ connected modalities
Gemini Embedding 2 (2026): text, image, video, audio, and documents as a native primitive
TEXT
IMAGE
AUDIO
DEPTH
VIDEO
IMU
pairs required for N=6
N = 6
Note: Asymmetry in data availability explains asymmetry in capabilities. Models understand images better than audio, and audio better than documents with complex layout, because high-quality training pairs are far more abundant for images than for the other modalities.

3. Visual instruction: the next level

Image–text pairs (and their extensions to other modalities) train representations, but they do not train the model to follow instructions. For a system to answer "what anomalies are in this chart?" or "transcribe the text in this image and correct it," it needs additional training on visual-instruction data.

Visual-instruction data consists of triples: image, textual instruction, and expected response. The model learns to condition jointly on the image and the instruction to generate the correct response, which is the format used by models such as LLaVA or InstructBLIP.

Generating high-quality instruction data is significantly more expensive than extracting pairs from the internet, because it requires either human annotation (expensive and slow) or synthetic generation with powerful language models that receive a description of the image and generate plausible instructions and responses. Synthetic generation scales, but it introduces the generator model's own biases: if the model generating the data has blind spots, the model trained on that data inherits them.

LLaVA, published in 2023, showed that synthetic visual-instruction data generated with GPT-4 could produce models capable of following visual instructions with notable quality relative to the cost of generating the data LLaVA. The approach has become common practice for projects without the budget for large-scale human annotation, although the final quality remains bounded by the quality of the model generating the synthetic data.

From pairs to triples: visual instruction tuning
Image–text pairs teach representations. Instruction triples teach behavior. They are different stages and cannot replace each other.
Contrastive pretraining CLIP · ALIGN · ImageBind
🖼Image
+
📝Descriptive text
Contrastive learning
bring correct pairs closer · push incorrect pairs apart
Shared representation
Learns to recognize — which things refer to the same content
Instruction fine-tuning LLaVA · InstructBLIP
🖼Image
+
Instruction
+
Response
Supervised fine-tuning
minimize error on the expected response
Instruction-following model
Learns to respond — how to act on a specific instruction
The pair learns to recognize. The triple learns to respond. A model trained only on pairs knows which things are similar, but it does not know how to follow instructions. A model trained only on triples does not have sufficiently robust base representations to generalize beyond the instructions seen during fine-tuning.

4. Why data quality dominates

The most consistent lesson from multimodal systems is that training-data quality determines representation robustness much more than architectural decisions. A model with a suboptimal architecture trained on high-quality data tends to outperform a state-of-the-art architecture trained on noisy data, at least on tasks that the higher-quality data covers well.

That absolute importance of data has two effects that directly change how published results should be interpreted.

The first is that multimodal evaluation benchmarks are often incomplete diagnostically: a model can score highly on image-description tasks while failing on localization or verification tasks simply because its training data emphasized the first and poorly covered the second. The training-data distribution is therefore reflected directly in the model's capability profile.

The second effect is that weaknesses compound through the training chain: if image–text pretraining produces representations where certain image types are only weakly associated with their correct descriptions, later visual-instruction tuning cannot repair that problem from scratch, because it builds on the representations it receives, including their strengths and gaps.

Radford et al. documented this pattern when analyzing CLIP failures on image categories underrepresented in the training data CLIP: the model generalized well on common categories and systematically worse on infrequent ones, even when image quality was equivalent. Fixing the problem required rebalancing the data, not changing the architecture.

Data quality and capability profile
The training-set distribution determines what the model knows how to do. Weaknesses in the foundation are amplified at every later stage.
Categories frequent in training
people
data
model
vehicles
data
model
pets
data
model
Categories infrequent in training
medical devices
data
model
specialized art
data
model
technical documents
data
model
Observation from Radford et al. (CLIP, 2021)
The training-data distribution is reflected directly in the model's capability profile. CLIP generalized well on common categories and systematically worse on infrequent categories even when image quality was equivalent. Fixing the problem required rebalancing the data, not changing the architecture.

5. The role of alignment with human preferences

Beyond supervised training, more recent multimodal models include a phase of alignment with human preferences, analogous to RLHF in language models. In this phase, human evaluators compare model responses to visual questions and indicate which is better, so the model learns to generate responses that people consider useful, correct, and aligned with their expectations.

This phase captures something that pure supervised training cannot measure directly: subjective preferences about how the model should describe what it sees, what level of detail is appropriate for different types of questions, and how to balance precision and readability in responses.

The risk is that evaluator preferences are not uniform and can introduce cultural, gender, or aesthetic biases that become encoded in the model. If evaluators tend to prefer longer, more elaborate descriptions, the model will learn to produce longer answers regardless of whether that length is appropriate for the question. The bias is not in the architecture or the visual data, but in who evaluates and what criteria they apply, making it difficult to detect with standard benchmarks and easier to observe in real use.

Multimodal training progression
Three stages with different data requirements. Failures at each stage propagate to the next: noisy data at the foundation produces fragile representations that fine-tuning cannot repair.
Pretraining with image–text pairs
Contrastive learning
I₁ · T₁ correct pair
I₁ T₁ ↔ close
sim(vI, vT) ↑ — bring closer in the space
I₁ · T₂ incorrect pair
I₁ T₂ ↔ far
sim(vI, vT') ↓ — push farther apart in the space
CLIP 400M pairs · ALIGN 1.8B pairs — high scale, low precision per pair
What works
Frequent categories learn strong representations. "dog", "city", and "food" appear millions of times in different combinations.
Frequent categories
robust
What fails
Noisy pairs (irrelevant caption, contextual image) and infrequent categories produce fragile representations that fine-tuning cannot repair.
Rare categories
fragile
Noisy data here → fragile representations → fine-tuning works on a weak foundation

Next chapter

Chapter 3 — Architectures → — The four multimodal architecture families, their differences in quality, cost and latency, and why multimodal embedding and multimodal generation are not the same layer of the system.

6. References

Core sources
Key Source Short description
R1 Radford et al. (2021)Learning Transferable Visual Models From Natural Language Supervision (arXiv) CLIP and contrastive learning at scale.
R2 Liu et al. (2023)Visual Instruction Tuning (arXiv) LLaVA: synthetic visual-instruction data generation with GPT-4.
R3 Li et al. (2023)BLIP-2: Bootstrapping Language-Image Pre-training (arXiv) Staged training strategy for vision–language systems.
R4 Jain et al. (2023)VCoder: Versatile Vision Encoders for Multimodal Large Language Models (arXiv) Study of how visual-encoder choice determines a multimodal system's capability profile beyond the LLM architecture.
R5 Girdhar et al. (2023)ImageBind: One Embedding Space To Bind Them All (CVPR) Alignment of six modalities using only pairs with image as the anchor.
R6 Google DeepMind (2026)Gemini Embedding 2 (blog) Native multimodal embeddings across text, images, video, audio, and documents.
R7 Zhai et al. (2023)Sigmoid Loss for Language Image Pre-Training (arXiv) SigLIP: independent pairwise sigmoid loss that improves stability relative to CLIP.
R8 Oquab et al. (2023)DINOv2: Learning Robust Visual Features without Supervision (arXiv) DINOv2: self-supervised visual encoder with dense representations and stronger spatial generalization.

Frequently asked questions

Why is contrastive learning more efficient than teaching a model to describe images? Learning to match images with text that already exists on the internet is much cheaper than predicting every word of a generated description. The method forces visual and text encoders to build a shared space where similar concepts are represented by nearby vectors, without needing to generate new text or annotate images by hand.

What is the connector module between the visual encoder and the language model for? It acts as a bridge between two worlds with different representations. If the connector is too simple, it fails to transfer the richness of the visual signal to the language model. If it is too complex, it requires more data and more compute to train. Connector design is the most critical point in this architecture because it determines how much visual information reaches reasoning.

What does the visual instruction tuning popularized by LLaVA involve? It trains the model on triples of image, textual instruction, and expected response, so it learns to follow complex instructions about visual content instead of only describing what it sees. LLaVA showed that these data can be generated synthetically with a powerful language model, although the trained model inherits the blind spots of the model that generated them.

What is the difference between learning from image–text pairs and building a shared representation space across six modalities as ImageBind does? Image–text pairs align only those two modalities. ImageBind uses image as a common anchor and learns alignment between audio, depth, thermal signals, and IMU without ever seeing direct pairs between those modalities: if audio and image are aligned, and text and image are also aligned, then audio and text become aligned transitively. The result is that a text query can retrieve audio even though they were never paired directly.

Keep learning
Next chapterArchitecturesMultimodality in Generative AI