ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing
ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing

All Courses

Introduction to Multimodal AI
Chapter 1: What is Multimodal AI?
Artificial Intelligence: A Brief Overview
Understanding Data Modalities: Text, Images, Audio
Defining Multimodal AI: Processing Diverse Data
Benefits of Combining Multiple Modalities
Multimodal vs. Unimodal AI: Core Differences
Examples of Multimodal Systems
Fundamental Challenges in Multimodal AI
An Illustrative Multimodal Task: Generating Image Descriptions
Practice: Identifying Modalities in Common Technologies
Quiz for Chapter 1
Chapter 2: Data Foundations for Multimodal Systems
Text Data Representation: From Characters to Meaning
Image Data Representation: Pixels, Features, and Structure
Audio Data Representation: Sound Waves to Digital Signals
Video Data: Sequences of Images and Sound
Basic Preprocessing for Different Data Types
Aligning Data from Multiple Sources
Comparing Information Across Modalities
Hands-on Practical: Observing Data Formats
Quiz for Chapter 2
Chapter 3: Techniques for Integrating Modalities
Approaches to Multimodal Fusion: Early, Intermediate, Late
Early Fusion: Combining Data at the Input Stage
Intermediate Fusion: Merging Processed Features
Late Fusion: Combining Independent Predictions
Shared Representations: Learning Common Features
Coordinated Representations: Mapping Between Modalities
Basic Architectures for Multimodal Learning
Introduction to Attention: Focusing on Relevant Information
Practice: Visualizing Fusion Methods
Quiz for Chapter 3
Chapter 4: Components of Multimodal AI Models
Extracting Features from Text Data
Extracting Features from Image Data
Extracting Features from Audio Data
Simple Neural Network Layers for Multimodal Tasks
Measuring Performance: Loss Functions for Combined Data
Training Multimodal Systems: An Overview
Basic Evaluation Metrics for Multimodal Outputs
Hands-on Practical: Conceptualizing a Simple Model
Quiz for Chapter 4
Chapter 5: Introductory Applications of Multimodal AI
Image Captioning Systems: Generating Text from Images
Visual Question Answering: Interacting with Images Through Questions
Text-to-Image Synthesis: Creating Visuals from Descriptions (Introduction)
Speech Recognition Enhanced by Visual Cues (Introduction)
Multimodal Sentiment Analysis: Understanding Opinions from Multiple Cues
Inputs and Outputs in Multimodal Applications
Practice: Brainstorming a Multimodal Solution
Quiz for Chapter 5

Shared Representations: Learning Common Features

Integrating information from different modalities is a primary challenge in Multimodal AI. One method involves fusion strategies, where data streams are merged. A distinct and powerful approach is learning shared representations, which aims to create common features across modalities.

Imagine you're trying to get two people who speak different languages to understand each other. You could translate word-for-word (which is a bit like some fusion methods), or you could try to get them both to understand a set of common ideas or symbols. Shared representations in multimodal AI are more like the latter.

The main idea is to transform data from different modalities, like an image and a piece of text, into a common format or "space" where they can be directly compared. Think of it as creating a universal language that both images and text (or audio, etc.) can be translated into. If an image and a sentence describe the same thing, their translations into this universal language should be very similar.

What is a Shared Representation?

A shared representation, sometimes called a joint embedding space, is a vector space where representations (or "embeddings") from two or more different modalities can coexist and be meaningfully compared.

Let's say we have an image, ximgx_{\text{img}}ximg​, and a text caption, xtxtx_{\text{txt}}xtxt​, that describes the image. The goal is to learn two mapping functions, fimg(⋅)f_{\text{img}}(\cdot)fimg​(⋅) and ftxt(⋅)f_{\text{txt}}(\cdot)ftxt​(⋅), such that: zimg=fimg(ximg)z_{\text{img}} = f_{\text{img}}(x_{\text{img}})zimg​=fimg​(ximg​) ztxt=ftxt(xtxt)z_{\text{txt}} = f_{\text{txt}}(x_{\text{txt}})ztxt​=ftxt​(xtxt​) Here, zimgz_{\text{img}}zimg​ and ztxtz_{\text{txt}}ztxt​ are vectors in the same high-dimensional space (e.g., both might be 300-dimensional vectors). The "shared" part means that if ximgx_{\text{img}}ximg​ and xtxtx_{\text{txt}}xtxt​ are semantically related (e.g., the image depicts what the text describes), then their corresponding vectors zimgz_{\text{img}}zimg​ and ztxtz_{\text{txt}}ztxt​ should be "close" to each other in this space.

Why Learn Shared Representations?

Creating these common spaces is useful for several reasons:

  1. Cross-Modal Comparison and Similarity: Once data from different modalities are in the same space, you can directly measure how similar they are. For example, you can calculate the distance (e.g., Euclidean distance) or similarity (e.g., cosine similarity) between an image vector and a text vector. A small distance or high similarity would suggest they are related.
  2. Cross-Modal Retrieval: This is a very common application.
    • Text-to-Image Retrieval: Given a text query (e.g., "a dog catching a frisbee"), you can convert it to a vector in the shared space and then search for images whose vectors are closest to the text query's vector.
    • Image-to-Text Retrieval: Conversely, given an image, you can find text descriptions that best match it.
  3. Data Alignment: Shared spaces can help align data from different sources. For instance, aligning spoken words in an audio track with the corresponding text transcript.
  4. Information Transfer: Sometimes, learning a good representation for one modality can help improve the representation of another, especially if there's a strong correlation between them.

How are Shared Representations Learned?

Typically, shared representations are learned using neural networks. Each modality will often have its own network (or "encoder") responsible for processing its specific type of data and transforming it into an initial feature vector. Then, these feature vectors are projected into the shared embedding space.

The magic happens during the training process. The model is trained on pairs (or triplets) of data from different modalities. For instance, it might be given:

  • An image and its correct caption (a positive pair).
  • The same image and an incorrect caption (a negative pair).

The learning algorithm, guided by a loss function, tries to adjust the network parameters so that:

  • The vectors for positive pairs (e.g., zimgz_{\text{img}}zimg​ for the image and ztxtz_{\text{txt}}ztxt​ for its correct caption) are pulled closer together in the shared space.
  • The vectors for negative pairs (e.g., zimgz_{\text{img}}zimg​ for the image and ztxt_wrongz_{\text{txt\_wrong}}ztxt_wrong​ for an unrelated caption) are pushed further apart.

This process, often involving techniques like contrastive learning or triplet loss (though the specifics are outside our current scope), effectively "shapes" the shared space so that semantic similarity across modalities translates into proximity in the vector space.

Here's a diagram illustrating the general idea for images and text:

Data from different modalities (image, text) are processed by their respective encoders and mapped into a shared semantic space where their vector representations can be directly compared.

For example, if you have an image of a "blue car parked by a red fire hydrant" and the text "a blue car next to a red hydrant," their representations zimgz_{\text{img}}zimg​ and ztxtz_{\text{txt}}ztxt​ in the shared space would ideally be very close. If the text was "a cat sleeping on a mat," its vector ztxt_otherz_{\text{txt\_other}}ztxt_other​ should be far from zimgz_{\text{img}}zimg​.

Benefits and Challenges

Shared representation learning is a powerful technique for many multimodal tasks, especially those involving search, retrieval, and comparison.

Benefits:

  • Direct Cross-Modal Interaction: Enables direct comparison and relation of information from different sources.
  • Flexibility: The learned representations can often be used for various downstream tasks.
  • Improved Understanding: By forcing modalities into a common space, models can learn deeper semantic relationships.

Challenges:

  • Defining Similarity: Determining what "semantically similar" means and encoding that into a loss function can be difficult.
  • Space Alignment: Ensuring that the different modalities are properly aligned in the shared space and that the space itself is well-structured (e.g., not collapsing all points to one region) is a significant technical challenge.
  • Scalability: Training these models often requires large amounts of paired multimodal data.

While methods like early or late fusion, which we discussed previously, directly combine features or decisions, shared representation learning focuses on creating a common ground for understanding. This approach provides a different, and often very effective, way to integrate information from multiple modalities. Next, we'll look at another related idea: coordinated representations.

  • Learning Transferable Visual Models From Natural Language Supervision, Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever, 2021 Proceedings of the 38th International Conference on Machine Learning (ICML) DOI: 10.48550/arXiv.2103.00020 - This paper introduces CLIP, a model that learns shared representations for images and text through contrastive pre-training on a large dataset. It provides an example of how shared representations are learned and applied, particularly for cross-modal retrieval.
  • FaceNet: A Unified Embedding for Face Recognition and Clustering, Florian Schroff, Dmitry Kalenichenko, and James Philbin, 2015 Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (IEEE) DOI: 10.1109/CVPR.2015.7298682 - This paper introduces the triplet loss function, a core technique for learning embeddings in a shared space where similar samples are pulled closer and dissimilar samples are pushed further apart. It is relevant to the learning mechanism described.

© 2026 ApX Machine Learning