Knowledge / Artificial Intelligence and Data Science / Multimodal AI

Multimodal AI

Artificial Intelligence and Data Science (B.E./B.Tech) · Advanced learning methods · free study notes for exams, placements and interviews

In short

Multimodal AI builds models that take in and relate more than one kind of data — text, images, video, speech, tabular signals, sensor streams — in a single shared representation, instead of one model per data type. It matters because real tasks are multimodal: a Flipkart product has a photo, a title and reviews; a doctor's note sits beside an X-ray; a bank's KYC check compares a selfie with an Aadhaar card photo. It is examined in AI/DS electives on advanced deep learning (fusion strategies, contrastive objectives, attention-based alignment) and in GATE DA-style questions on embeddings, similarity and loss functions. Indian employers — Google India, Microsoft IDC, Amazon, Flipkart, Jio, Sarvam AI, Krutrim, AI4Bharat, Niramai, Qure.ai — ask it in placement rounds, usually around CLIP, VQA, fusion levels and handling missing modalities.

Explained

Modalities, and why combining them helps

Representation: joint versus coordinated

Fusion strategies (the most examined classification)

Alignment and training objectives

Representative models and tasks

Limitations, evaluation and Indian regulatory context

Key points

Formulas and examples

Cosine similarity sim(u, v) = (u·v) / (‖u‖ ‖v‖); u, v = embedding vectors (dimensionless), range −1 to +1.
Contrastive (InfoNCE) loss, image→text direction
L_i2t = −(1/N) Σ_i log [ exp(sim(Iᵢ,Tᵢ)/τ) / Σ_j exp(sim(Iᵢ,Tⱼ)/τ) ]
N = batch size; τ = temperature (typically 0.01–0.1); the CLIP loss is (L_i2t + L_t2i)/2.
Scaled dot-product cross-attention
Attention(Q, K, V) = softmax(Q Kᵀ / √d_k) V, with Q from the target modality, K and V from the source modality; d_k = key dimension.
Late fusion by weighted probabilities p = Σ_m w_m p_m, with Σ w_m = 1, w_m ≥ 0; p_m = class-probability vector from modality m.
Bilinear fusion z = xᵀ W y (or z = vec(x yᵀ)); if x ∈ Ra, y ∈ Rb, the outer product has a×b terms.
Early-fusion dimension d_fused = Σ_m d_m (plain concatenation).
Recall@K = (number of queries whose correct item appears in the top K) / (total queries) × 100%.
Triplet (ranking) loss L = max(0, margin − sim(a, p) + sim(a, n)); a = anchor, p = positive, n = negative.

Example 1 — cosine similarity and zero-shot choice. Image embedding I = (0.6, 0.8, 0.0). Text embeddings: T₁ "a photo of a tractor" = (0.5, 0.5, 0.707); T₂ "a photo of a bus" = (0.0, 1.0, 0.0).

Example 2 — contrastive loss for one batch row. Batch of N = 4. For image I₁ the similarities with the four captions are (matched first): 0.9, 0.2, 0.1, 0.0, with τ = 0.1 → logits 9, 2, 1, 0.

Example 3 — fusion dimensions and parameter cost. Text feature 768-d (BERT CLS), image feature 2048-d (ResNet-50 pool), audio 128-d.

Example 4 — retrieval metrics. A cross-modal retrieval test on 1,000 image queries over 5,000 captions. The correct caption appears at rank 1 for 420 queries, within top 5 for 710, within top 10 for 820.

Example 5 — detecting modality collapse by ablation. A VQA model scores 68.0% with image + question. Question-only baseline scores 44.0%; image-only scores 24.0%.

AspectEarly fusionLate fusionCross-attention fusion
Where combinedInput/feature levelDecision levelInside hidden layers
Cross-modal interactionLow-level onlyNoneRich, token-to-region
Missing modalityFails or needs imputationDegrades gracefullyNeeds placeholder tokens
ComputeLowLow, parallelHigh (quadratic in tokens)
Typical useSensor fusion, tabular + textEnsembles, medical panelsVLMs, VQA, captioning
Model familyArchitectureTrained withCan generate text?Best at
CLIP / SigLIPDual encoderContrastiveNoRetrieval, zero-shot labels
BLIP-2Encoder + Q-Former + LLMContrastive + matching + captioningYesCaptioning, VQA
LLaVA-styleVision encoder + projector + LLMInstruction tuningYesVisual chat, document QA
Stable DiffusionText encoder + U-Net/diffusionDenoising + cross-attentionNo (makes images)Text-to-image
WhisperAudio encoder + text decoderSupervised seq2seqYesSpeech-to-text, translation

Where it is used

Interview questions

Common mistakes

Related topics

Semi-supervised and self-supervised learning · Transformers and attention mechanisms · Convolutional neural networks and vision architectures · Natural language processing and large language models · Transfer learning and fine-tuning (LoRA/PEFT) · Generative models: GANs, VAEs and diffusion

Open in the Knowledge reader →Find jobs →