A Guide to Multimodal Embedding Architecture Evolution and Selection

    This article explores the evolution of multimodal embedding architectures, shifting from traditional dual-tower models to unified multimodal backbones. It covers task boundaries, architectural transitions including late interaction and dynamic resolution, training objectives, and provides a practical decision matrix to help you select the right embedding strategy for various business scenarios.

    A Guide to Multimodal Embedding Architecture Evolution and Selection

    The selection logic for multimodal embeddings is undergoing a fundamental shift. In the past, the typical approach was “images go through a vision encoder, text goes through a text encoder, each yielding a vector, and Cosine similarity is computed in the vector space.” This dual-tower independent feature extraction route is low-cost, easy to pre-compute, and engineering-friendly, but it inherently suffers from a “modality gap”: image vectors and text vectors are formed in two relatively isolated spaces, making it difficult for the model to truly understand the fine-grained correspondence between “the red curve in the chart” and “the Q3 sales decline” in the text.

    With the development of native multimodal large models, embedding models are evolving from independent feature extractors into unified visual-language understanding backbones. The new generation of representation models no longer merely “translates” an image into a single vector; instead, it reads images like text—understanding complex tables, recognizing UI element semantics, and capturing short-term details in videos. Consequently, selection metrics are no longer limited to “vector dimension, recall rate, QPS.” Instead, one must simultaneously evaluate fine-grained understanding, multi-vector storage costs, index complexity, long-document capability, and end-to-end latency.

    1. Define Task Boundaries: What Problem Does Multimodal Embedding Solve?

    The core goal of multimodal embedding is to map inputs of different modalities into a representation space that is comparable, searchable, and sortable. Common tasks include:

    • Coarse-grained image-text recall: Searching for images with text, or text with images.
    • Visual document retrieval: Treating document pages as images for retrieval, covering complex structures like tables, formulas, layouts, and stamps.
    • UI and chart understanding: Retrieving fine-grained elements like buttons, menus, chart areas, and trend lines.
    • Video segment retrieval: Locating short-term events or objects in videos using natural language.
    • Multilingual cross-modal retrieval: Matching the same visual semantic even when the text language changes.
    • Hybrid retrieval and reranking: Applying cross-modal reranking after vector recall to improve final sorting quality.

    Evaluation should not rely solely on a single recall metric. It is recommended to establish a layered evaluation set:

    1. Coarse-grained semantic matching: Whether the overall theme is consistent.
    2. Fine-grained region matching: Whether the query locates the correct patch, table cell, or UI element.
    3. Compositional reasoning matching: Whether image-text relationships, quantitative relationships, and trend relationships are correct.
    4. Engineering metrics: Vector count, index memory, first-screen latency, batch throughput, and update cost.
    5. Robustness: Resolution changes, aspect ratio changes, compression noise, language switching, and layout changes.

    2. Architecture Evolution: From Dual-Tower Independent Encoding to Unified Understanding Space

    2.1 The Old Paradigm: Strengths and Limitations of Dual-Tower Encoders

    Early mainstream solutions typically adopted a dual-tower structure: the vision side used a Vision Transformer (ViT) encoder to extract image features, and the text side used a bidirectional text encoder to extract text features. Finally, pooling was applied to obtain a single vector, and Cosine similarity was used for retrieval.

    The similarity can be written as:

    [
    s(q,d)=\frac{f(q)\cdot g(d)}{|f(q)||g(d)|}
    ]

    Where (f(q)) is the text vector and (g(d)) is the image vector. Contrastive learning was commonly used during training to ensure the similarity of positive pairs was higher than that of negative pairs.

    The advantages are clear: images and text can be encoded offline, vector indexing is simple, single-vector storage cost is low, and it is suitable for large-scale coarse recall. However, the disadvantages are equally obvious: when an image is compressed into a single vector, fine details like small text in tables, UI buttons, and local chart trends are easily lost. Image-text interaction occurs only at the final similarity calculation step, meaning the model lacks deep cross-modal attention and struggles to handle compositional relationships and fine-grained evidence localization.

    2.2 Unified Multimodal Backbone: Images Read as “Visual Tokens”

    The key change in the new paradigm is that images are no longer passed through an independent vision encoder to become a single vector. Instead, they are sliced and mapped into visual tokens, which are fed into the same Transformer or Large Language Model (LLM) backbone alongside text tokens for deep self-attention interaction.

    The simplified flow can be represented as:

    1. Image -> Slicing -> Visual Token Sequence
    2. Text -> Tokenization -> Text Token Sequence
    3. [Visual Tokens; Text Tokens] -> Unified Transformer -> Multimodal Representation

    The value of this architecture lies in “joint understanding.” The model can directly establish image-text correspondences in the attention layers—for example, understanding that “the red curve in the chart” corresponds to “the Q3 sales decline” in the text, or understanding the semantic meaning of a specific button in a UI. It is better suited for complex documents, chart Q&A, cross-modal reranking, and retrieval tasks requiring reasoning.

    However, a unified backbone also brings engineering costs: computation is heavier, training data requirements are higher, and resolution and position encoding designs are more complex. Vector dimension and pooling strategies will significantly impact downstream performance. When selecting, it is crucial to distinguish between “using a unified backbone for dual-tower encoding” (which still allows pre-computation) and “using a unified backbone for interactive reranking” (which offers higher precision but greater latency).

    2.3 Visual Late Interaction: Preserving Patch-Level Evidence with Multi-Vectors

    Inspired by the late interaction concept in text retrieval, visual retrieval has begun to introduce multi-vector mechanisms. The core approach is no longer compressing an image into a single vector, but retaining tens to hundreds of patch vectors, each representing a local region of the image. During querying, the similarity between text tokens and image patch vectors is calculated individually, followed by a max-similarity aggregation.

    The simplified scoring can be written as:

    [
    S(q,D)=\sum{i=1}^{m}\max{j=1}^{n} \cos(q_i,d_j)
    ]

    Where (q_i) is the vector of the (i)-th query token, and (d_j) is the vector of the (j)-th image patch. This score preserves the evidence of “which image region the query token actually matches.”

    Its killer application is visual document retrieval: there is no need to perform OCR first; document pages are directly retrieved as images, covering complex tables, formulas, layouts, and charts. The trade-off is a significant increase in storage—an image goes from 1 vector to tens or hundreds of vectors, causing a rise in index size, memory consumption, and latency. Therefore, it is more suitable for high-value, strongly fine-grained scenarios, or as a “reranking layer after coarse recall.”

    2.4 Native Aspect Ratio and Dynamic Resolution: Stop Squashing Long Images

    The pure vision encoding route is still evolving, with an important direction being support for native aspect ratio inputs. Fixed square resolutions squash elongated images, causing feature loss for slender objects, long document pages, and UI screenshots. With support for native aspect ratios, dynamic slicing, and adaptive position encoding, models can preserve more details.

    In engineering, this typically requires a combination of:

    • Dynamic slicing: Splitting long images into multiple local blocks.
    • Global thumbnails: Retaining overall layout information.
    • Position encoding interpolation: Adapting to different resolutions.
    • Patch pooling: Controlling vector count and storage costs.

    This type of solution is suitable for scenarios dominated by visual retrieval, with relatively short text queries and latency sensitivity. However, if the task requires complex image-text reasoning, it still needs to be combined with a unified multimodal backbone or multi-vector reranking.

    3. Training Objectives: Softmax Contrastive vs. Sigmoid Pairwise Loss

    Training objectives determine the geometric structure of the vector space. Common contrastive learning uses the Softmax form:

    [
    L{\text{softmax}}=-\log\frac{\exp(s{+}/\tau)}{\sum{k}\exp(s{k}/\tau)}
    ]

    This emphasizes distinguishing positive samples from multiple negative samples within a batch, relying on large batch sizes and high-quality negative samples. Another approach is the Sigmoid pairwise loss, which independently judges positive/negative pairs:

    [
    L{\text{sigmoid}}=-\frac{1}{|B|}\sum{i,j}\log \sigma\big(y{ij}(s{ij}-b)\big)
    ]

    Where (y_{ij}\in{-1,1}) and (b) is the bias. The Sigmoid form is less sensitive to the distribution of in-batch negative samples, offering better training stability and making it suitable for large-scale pairwise data and noisy data. When selecting a model, do not blindly favor one loss function; the key is to check whether the data scale, negative sample construction, and evaluation set align.

    4. Pseudocode: Multi-Vector Scoring and Pairwise Loss

    1. # Pseudocode: Max similarity aggregation for query tokens and image patches
    2. def late_interaction_score(q_tokens, d_patches, tau):
    3. # q_tokens: [m, dim]
    4. # d_patches: [n, dim]
    5. sim = cosine_similarity_matrix(q_tokens, d_patches) # [m, n]
    6. max_sim = max(sim, axis=1) # [m]
    7. return sum(max_sim) / tau
    8. # Pseudocode: Sigmoid pairwise loss
    9. def sigmoid_pair_loss(s_pos, s_neg, bias):
    10. loss_pos = -log(sigmoid(s_pos - bias))
    11. loss_neg = -log(sigmoid(bias - s_neg))
    12. return mean(loss_pos + loss_neg)

    5. Selection Decision Matrix

    Scenario Recommended Architecture Vector Form Indexing Strategy Main Advantage Main Risk
    Large-scale image-text coarse recall Dual-tower or unified backbone dual-tower encoding Single vector Approximate Nearest Neighbor (ANN) index Low cost, easy to scale Weak fine-grained capability
    Complex document retrieval Unified backbone + multi-vector late interaction Multi-vector Multi-vector index + reranking Good coverage for tables, formulas, layouts High storage and latency
    UI/chart element retrieval Unified backbone or multi-vector Multi-vector Patch-level index Strong local evidence Requires high-quality annotations
    Video segment retrieval Unified backbone + temporal pooling Multi-vector or segmented single vector Segmented index + temporal aggregation Captures short-term details Computation and storage pressure
    High QPS, low latency Lightweight dual-tower Single vector In-memory index / Quantization Controllable latency Limited effectiveness on complex queries
    Hybrid retrieval Single-vector coarse recall + multi-vector reranking Hybrid Two-level index Balances cost and precision Increased system complexity

    6. Practical Advice and Conclusions

    First, do not select solely based on “single-vector recall rate.” Coarse recall, fine-grained localization, compositional reasoning, and engineering costs should be evaluated separately. Second, unified multimodal backbones are suitable for high-value reranking and complex understanding, but large-scale coarse recall can still use single-vector dual-towers to control costs. Third, multi-vector late interaction is an important direction for visual document retrieval, but storage amplification and index latency must be estimated in advance. Fourth, native aspect ratios and dynamic resolution are fundamental capabilities for preserving details; long images, screenshots, and table scenarios should be prioritized for validation. Fifth, training objectives and data quality are equally critical; Softmax and Sigmoid each have their applicable boundaries and must be validated using business evaluation sets.

    The approach to multimodal embedding selection has indeed changed: from “choosing a feature extractor” to “designing a layered representation and retrieval system.” Understanding the mathematical and engineering trade-offs behind architectural evolution is the only way to make verifiable, scalable technical decisions across different business scenarios.