Open-Source Multimodal LLMs: Architecture, Cross-Modal Capabilities, and Fine-Tuning Essentials

    This article provides a general technical overview of open-source multimodal large language models. It covers input and output architecture, methods for evaluating cross-modal understanding and multilingual instruction following, and parameter-efficient fine-tuning mechanisms such as learnable prompt tokens and zero initialization, while introducing bias adjustment as a third approach. The focus is on implementation checkpoints rather than specific products.

    In recent years, large language models have matured, and multimodal directions have become a focus of both research and engineering. Many open-source multimodal models are publicly available. This article does not discuss specific products. It focuses on general technical design, cross-modal capabilities, and fine-tuning methods for this class of models, and provides implementation checkpoints for review.

    1. General Architecture for Multimodal Inputs and Outputs

    Mainstream open-source multimodal large models are moving from pure text processing toward multimodal fusion. A base model typically needs to handle heterogeneous data such as images, audio, text, and video. On the input side, each modality is first processed by a dedicated encoder: images commonly use visual Transformer (ViT) encoders, and audio commonly uses spectral encoders. The encoders map non-text data into a feature space with the same dimensions as the language model, and the features are then aligned with text features through projection layers or cross-attention.

    On the output side, most models still primarily produce natural language text. Some architectures add an image generation module alongside the language model, so they can output images. Models that support image output are significantly more complex in engineering terms. When selecting a model, first confirm whether the task truly requires visual output.

    2. Cross-Modal Understanding and Multilingual Instruction Following

    When evaluating a multimodal model, the following three questions can serve as starting points.

    How can visual feature alignment with text generation be tested?

    Consider a “write a poem about the image” example. A user uploads a photo of a lake and enters “write a poem for this picture.” The model first extracts features such as color, outlines, and spatial layout through the visual encoder, and then feeds these features as conditions into the language model decoder. A good result should satisfy two requirements at the same time: the poem mentions scenery that actually exists in the image, and the mood is consistent with the picture. Such examples are only qualitative demonstrations and cannot replace systematic evaluation.

    How can we determine whether a model can describe objects using common sense?

    Input an image containing a white washing machine and ask for object information. The model should first recognize the category and then use common sense in the language model to generate a description, such as “This is a white washing machine placed on the floor.” This indicates that visual features are linked to entity knowledge in the language model. Description accuracy depends on the coverage of the training data. When encountering rare objects, the model may still misclassify them, so sampling checks are needed.

    How can cross-language instruction following be verified?

    Ask “What is this and what is it used for?” in Chinese while providing an image, and require the model to answer in English. The test needs to check three things: whether the model correctly understands the Chinese intent, whether the answer is based on the image content, and whether the output language meets the requirement. If the model is stable only in monolingual settings, multilingual vocabulary or multimodal alignment training still has gaps.

    3. Three Mechanisms for Parameter-Efficient Fine-Tuning

    Full fine-tuning requires updating all parameters and has high memory and compute overhead. Parameter-efficient fine-tuning (PEFT) trains only a small subset of parameters and is a common approach for multimodal models. Three ideas are described below.

    1. Learnable Prompt Tokens

    The method prepends a small number of trainable continuous vectors, called prompt tokens, to the input sequence. During training, only these vectors are updated, while the pretrained backbone remains frozen. This approach is simple in structure and suits scenarios with limited data where the original capabilities should be preserved.

    Its differences from LoRA and Adapter are as follows. Prompt tokens do not modify existing weight matrices; they add a sequence prefix. LoRA adds low-rank matrices beside weights. Adapter inserts small bottleneck modules between layers. All three freeze the backbone, but they modify different locations and therefore have different effects on inference latency. Prompt token methods increase sequence length, which brings extra computation for long inputs.

    2. Zero Initialization

    When injecting visual instruction information into a language model, if the initial output of a newly added branch is random and large, it can disrupt the pretrained model’s feature distribution early in training. Zero initialization sets the weights and biases of the last layer of the new branch to zero, so the branch’s initial output is always 0. At the start of training, model behavior matches the original language model; gradients then gradually teach the new branch useful signals.

    Note that zero initialization applies to the output layer or gating parameters of the newly added branch, not to the weights of the prompt tokens themselves. If all intermediate layers of the branch are also set to zero, gradient backpropagation will be blocked, so typically only the last layer or gating parameters are zeroed. The tanh gating in Flamingo and the attention gating in LLaMA-Adapter follow this idea, with gating parameters set to 0 at the start of training.

    3. Bias Adjustment