Skip to content

Multimodal Encoder

Overview

Multimodal Encoder — a neural network module that takes input data of various types (text, images, audio, video) and converts them into embeddings of a common space. It is used in VLM, CLIP, and multimodal RAG systems.

Architecture

  • Text Encoder: Transformer that converts tokens into vectors.
  • Visual Encoder: Vision Transformer (ViT) or CNN that processes images.
  • Audio Encoder: Spectrograms through convolutional or transformer layers.
  • Projection Layers: Linear transformations for dimension alignment.

Example (CLIP)

import clip
model, preprocess = clip.load("ViT-B/32")
image_features = model.encode_image(image)
text_features = model.encode_text(text)

See Also

← All Terms