Building AI Agents with Multimodal Models : Part 1

Search for a command to run...

Notes from my certification - Building AI Agents with Multimodal Models from Nvidia deep learning institute
Contrastive Learning: Teaching AI That a Picture is Worth a Thousand Words This is Part 2 of a 4-part series based on learnings from NVIDIA's "Building AI Agents with Multimodal Models" certification. The Big Question: How Do You Connect Pictures an...
Language models can answer medical questions with surprising accuracy. But do they actually encode medical knowledge in identifiable, interpretable ways? Or is it all just statistical soup? Using Neuronpedia, we ran a simple experiment to find out. W...

When a medical Vision Language Model(VLM) looks at a chest X-ray and says "cardiomegaly present," what's actually happening inside the model? It's a black box. Billions of parameters. Dense activation vectors where every dimension encodes a tangled m...

Off late a lot of my research time is studying why medical models systems fail. Not the obvious failures where the model outputs gibberish, but the subtle ones where the output looks clinically appropriate, follows proper documentation structure, use...

When a doctor examines a chest X-ray and says "I see signs of pneumonia in the lower right lung," you can ask them to point at exactly what they're seeing. They can circle the cloudy region, explain why it looks abnormal, and walk you through their r...

Data does not just appear. Something creates it. A coin flip. A measurement device. A biological process. A human decision. Understanding that something, the mechanism that generates observations, is the key to understanding uncertainty. This mechani...
On this page
Imagine you're trying to identify a fruit in complete darkness. You can feel its round shape, its smooth skin, and smell its citrusy aroma. Now imagine you can only see a photo of it but can't touch or smell it. In either case alone, you might confuse an orange with a tangerine. But combine all your senses together, and suddenly the identification becomes much easier.
This is exactly the challenge AI faces. Traditional AI models are like humans with only one sense. A camera sees colors but doesn't understand depth. A LiDAR sensor measures precise distances but sees the world in points, not colors. Neither alone tells the complete story.
Here's where it gets interesting. When you combine senses, your brain does it effortlessly. But for computers, mixing an image (a grid of pixels) with depth data (a cloud of 3D points) is like trying to add apples and equations together. They're fundamentally different.
Think of it like this:
Just like cooking, the order in which you combine ingredients matters. NVIDIA's training introduces three fundamental approaches to fusion, each with its own strengths.
The Analogy: Making a smoothie. You throw all your fruits into the blender right at the beginning and blend them together.
How It Works: Concatenate (stack) all your input data together before feeding it into a single neural network. If your image has 3 color channels (RGB) and your depth map has 1 channel, you create a 4-channel input.
When to Use It:
The Trade-off: You're betting that the network can figure out how to use both data types from the very beginning. Sometimes this works beautifully. Other times, the model gets confused trying to learn two things at once.
Input A ─┐
├──> [Concatenate] ──> [Single Neural Network] ──> Output
Input B ─┘
The Analogy: A panel of specialist doctors. The eye doctor examines vision, the hearing specialist checks audio, and at the end they meet to discuss and reach a combined diagnosis.
How It Works: Train separate neural networks for each modality. Each network becomes an expert at its own data type. At the very end, combine their predictions (by averaging, voting, or concatenating).
When to Use It:
The Trade-off: You need more parameters (two full networks instead of one). But each network can fully focus on mastering its own domain without interference.
Input A ──> [Network A] ──> Prediction A ─┐
├──> [Combine] ──> Final Output
Input B ──> [Network B] ──> Prediction B ─┘
The Analogy: Jazz musicians improvising together. Each plays their own instrument, but at key moments they sync up, listen to each other, and let one musician's riff influence another's response.
How It Works: Each modality has its own pathway that extracts features. At intermediate layers (not the beginning, not the end), these pathways exchange information. This exchange can happen through:
When to Use It:
The Trade-off: More complex to design. You need to decide where and how fusion happens.
Input A ──> [Early Layers A] ──┐
├──> [Fusion Layer] ──> [Later Layers] ──> Output
Input B ──> [Early Layers B] ──┘
NVIDIA's training uses a brilliant example to demonstrate these concepts. Imagine a scene with three cubes: one red, one green, and one blue. Your task is to classify which cube is which.
Challenge 1: RGB Camera Only The camera sees colors perfectly. Red cube? Check. Green cube? Check. But wait, where exactly are they in 3D space? The camera flattens everything to 2D. If the cubes overlap visually, things get confusing.
Challenge 2: LiDAR Only The LiDAR sensor knows exact 3D positions. It can tell you precisely where each cube sits in space. But all cubes look the same because LiDAR doesn't see color.
The Solution: Combine Both With multimodal fusion, the model gets the best of both worlds. LiDAR provides spatial precision while RGB provides color identification. Together, they solve what neither could alone.
This is multimodal AI in action: combining complementary strengths to overcome individual weaknesses.
Multimodal AI combines different data types (images, text, audio, depth) to create more robust understanding
Fusion timing matters:
Choose your strategy based on your data: If modalities complement each other at a low level, go early. If they need expertise first, go late. If you need both, go intermediate.
The goal is complementary strengths: Each modality should bring something unique to the table
In Part 2, we'll explore how AI learns to connect completely different modalities through a technique called Contrastive Learning. Imagine teaching a computer that a photo of a dog and the word "dog" should live close together in the AI's understanding. This is the foundation of models like CLIP that power modern image search and generation.
This content is inspired by NVIDIA's Deep Learning Institute course: Building AI Agents with Multimodal Models. For hands-on experience, consider enrolling in their official courses.