Multimodal Transformers Need an Input and Fusion Contract
Calculate image patch records and distinguish modality tokenization from concatenation, cross-attention, adapters, objectives, data, and evaluation.
“Multimodal Transformer” does not identify one architecture. First ask how each modality becomes records and where information from different modalities can mix.
Tokenize an Image into Patches
An image of height , width , and channels can be divided into non-overlapping patches. The number of patch tokens is
when both dimensions are divisible by . Each flattened patch has values before projection to .
For a RGB image and :
This changes the input contract. The resulting records can still pass through ordinary Transformer blocks. Vision Transformer is one influential instance of this approach under its stated pretraining and transfer settings.
Choose Where Modalities Meet
Image and text records can be concatenated into one sequence, processed by separate encoders and joined by cross-attention, or connected through learned adapter/resampler modules. These are different fusion contracts.
| Question | Example answer |
|---|---|
| image representation | projected patch records |
| text representation | token embeddings |
| fusion site | text layers cross-attend to compressed visual records |
| objective | next-token prediction conditioned on image and text |
| evidence | declared image-text tasks and datasets |
Flamingo provides one image-language fusion design. It does not define all multimodal systems.
Q1. Calculate image patch tokens
A image is divided into non-overlapping patches. How many patch tokens result?
Compute it first, then check your number.
Hint
Solution
Do Not Hide the Data Contract
Architecture alone does not establish grounding or cross-modal understanding. Alignment data, objectives, negative examples, resolution, augmentation, and evaluation are part of the evidence. Their full treatment belongs to a later multimodal subject.