How a 9B Multimodal Embedding Model Tops Retrieval Benchmarks: Architecture, Training, and Deployment

    This article breaks down why general-purpose multimodal embedding models are gaining traction and how a 9B model reached the top of a leading multimodal retrieval benchmark. It explains the core mechanism of using a single shared encoder, input serialization into mixed text and visual tokens, hidden-state extraction with L2 normalization, and dual-tower independent encoding for offline indexing and online queries. It also covers the 2B, 4B, and 9B model tiers, vector dimension trade-offs, the two-stage training strategy built on billions of related pairs, and practical guidance on data and index layering, offline and online separation, systematic evaluation, and common pitfalls.

    1. Background: Why Multimodal Embedding Models Are in Focus

    General-purpose multimodal embedding models have recently become a hot topic in the technical community. A general-purpose multimodal embedding model at the 9B parameter scale ranked first on an authoritative benchmark for multimodal retrieval, sparking extensive discussion. Notably, several general-purpose large models and lightweight variants were released around the same time, making this result easy to overlook.

    From a technical evolution perspective, the significance of this class of models is not “another large model.” Instead, it unifies retrieval capabilities that were previously scattered across separate systems. In the past, image search, video retrieval, and document question answering each maintained their own feature extraction and indexing stack. A general-purpose multimodal embedding model attempts to use a shared encoder to map heterogeneous content into the same semantic space, turning “search images with text,” “search videos with images,” and “cross-modal question answering” into the same vector nearest-neighbor query.

    From an engineering value perspective, these capabilities have already been deployed in large-scale production scenarios such as video channels, image-text content, and social feeds on content platforms. This shows the work is not purely experimental; it has been tested under real traffic and cost constraints.

    2. Core Mechanism: One Encoder for All Modalities

    2.1 Input Serialization: Turning Everything into a Token Sequence

    This class of models typically uses a native multimodal large model directly as the shared encoder. Whether the input is plain text, an image, a video, or a visual document, it is serialized into a mixed sequence of “text tokens + visual tokens,” with a dedicated embedding marker appended at the end (think of it as an <embedding> placeholder). An example layout:

    1. [task instruction] + [text] + [image] + [text] + [video] + [<embedding>]

    The key advantage of this design is that there is no need to build a separate network branch for each modality or an additional alignment network. All modalities share the same attention computation and parameters.

    2.2 Vector Extraction: Taking the Hidden State at the Last Valid Position

    After the forward pass completes, the model takes the hidden state corresponding to the embedding marker in the final layer and applies L2 normalization to produce the final vector. Normalization makes the inner product equivalent to cosine similarity, so retrieval thresholds are comparable across different queries.

    Illustrative pseudocode:

    1. def embed(inputs):
    2. outputs = backbone(inputs) # Run the multimodal backbone
    3. h = outputs.last_hidden_state
    4. idx = inputs.embedding_token_position # Position of the embedding marker
    5. v = h[:, idx, :] # Take the hidden state at that position
    6. return l2_normalize(v) # Return the normalized vector

    2.3 Dual-Tower Independent Encoding: Build the Index Offline, Compute Only the Query Online

    Queries and candidate content are encoded independently, with no cross-attention between them. This yields two direct benefits:

    • Candidate content can be encoded in batches offline and indexed in advance.
    • Online, only the query vector needs to be computed before a cosine similarity search, keeping latency and compute overhead under control.

    The trade-off is the loss of fine-grained interaction between queries and candidates. In scenarios that require strong interaction, a reranking stage is typically added for a second, finer pass.

    3. Model Specs: Balancing Parameter Count and Vector Dimension

    Publicly available specs show a lineup of 2B, 4B, and 9B tiers, with capability roughly correlating with parameter count, plus a selectable range of vector dimensions:

    Model Tier Weight Size (BF16) Text Layers / Hidden Width Vision Encoder Max Context Selectable Vector Dimensions
    2B ~5.4GB 24 layers / 1024 Supports high-resolution input Relatively long context 64–2048
    4B ~10.3GB 24 layers / 1024 Supports high-resolution input Relatively long context 64–2560
    9B ~18.8GB 27 layers / 1152 Supports high-resolution input Relatively long context 64–4096

    The 2B tier is especially noteworthy: its performance already approaches or exceeds that of many 8B-class multimodal embedding models. Even at an extremely low 256 dimensions, it retains about 98.7% of image and video task performance. This means that in a large-scale vector store, you can trade significantly less storage and memory for nearly lossless recall quality.

    Choosing a dimension is essentially a cost-model problem:

    • Lower dimensions reduce index memory usage, disk usage, and search latency.
    • Higher dimensions improve fine-grained semantic discrimination.
    • A common practice is a layered strategy of “low-dimensional coarse recall + high-dimensional or reranked fine ranking.”

    4. Differences from General-Purpose Multimodal LLMs: Data and Training Strategy

    From an implementation standpoint, the custom code for this class of models is minimal. It typically inherits the general-purpose multimodal model structure and adds a vector extraction method, with the main body remaining the original multimodal backbone. The core difference from a general-purpose large model is therefore not the architecture but the training data construction and training strategy.

    The first stage typically collects hundreds of millions of naturally related content pairs, such as:

    • Image–description;
    • Video–title;
    • Question–answer;
    • Product–category;
    • User need–tool description.

    The training objective is to pull related content closer in the vector space and push unrelated content apart, which is a typical contrastive learning objective. In engineering practice, this is often combined with a large number of in-batch negatives, temperature coefficient tuning, and hard negative mining to improve the discriminative power of the representations.

    During training, the same type of task is also kept in the same batch as much as possible to avoid gradient interference across different tasks. This can be likened to “task-bucketed sampling,” which leads to more stable convergence and less forgetting between tasks.

    4.2 Instruction-Based Input: One Model for Multiple Tasks

    Because the input includes a task instruction field, the same set of parameters can support retrieval, clustering, classification, reranking, and other tasks by simply changing the instruction text. This greatly reduces the maintenance cost of multi-task systems and means new tasks do not require retraining the backbone.

    4.3 Stage Two: Fine-Tuning for Downstream Tasks

    After large-scale alignment, the second stage typically fine-tunes on high-quality, labeled downstream data, adding hard negatives and greater task instruction diversity to make the model more robust on real business distributions.

    5. Deployment Practice: Building Multimodal Vector Retrieval Well

    5.1 Data and Index Layering

    • Store raw content in object storage, and vectors plus metadata in a vector database or search engine.
    • Drive incremental updates through a message queue when content changes, avoiding full rebuilds.
    • Track recall, latency, and failure rates with logging and monitoring alerts.

    5.2 Separate Offline Batch Processing from Online Queries

    Encode candidate content in batches offline and write it to the index; online, encode only the query. For very long videos or documents, segment first and then aggregate into paragraph-level vectors, balancing granularity and cost.

    5.3 Make Evaluation Systematic

    Do not look only at benchmark scores. It is recommended to observe the following together:

    • Per-modality recall quality (evaluate text-to-image, image-to-video, and document question answering separately);
    • The performance–cost curve at different dimensions;
    • End-to-end latency and throughput;
    • Performance on hard case sets, especially fine-grained discrimination and long-tail content.

    5.4 Common Pitfalls

    • Forgetting normalization, making thresholds incomparable;
    • Inconsistent instruction text between offline indexing and online queries, causing distribution drift;
    • Inconsistent visual input resolution and tiling strategy;
    • Building an index without version management, making canary rollout impossible after a model upgrade.

    6. Conclusion

    The 9B general-purpose multimodal embedding model topping the benchmark is fundamentally the result of three things working together: a unified multimodal serialization encoder, a two-stage training strategy centered on hundreds of millions of related pairs, and dimension and index engineering optimizations for large-scale retrieval. For developers, the truly reusable lesson is to abstract multimodal retrieval into a general paradigm of “unified encoding + independent indexing + nearest-neighbor query + optional reranking,” then choose the parameter tier and vector dimension according to the business distribution. Only then can you achieve a sustainable balance among quality, latency, and cost.