Choosing a Small On-Device Multimodal Encoder-Decoder Model: Selection Criteria and Evaluation Checklist

    This article provides practical guidance on selecting and evaluating small multimodal encoder-decoder models for on-device deployment. It outlines when this architecture is appropriate, clarifies model size specifications, offers a size selection reference table, and presents a 6-item evaluation checklist covering memory, latency, long-context handling, multilingual quality, and quantization impact. All performance numbers must be re-measured on your own target device.

    Key Takeaways

    When selecting a small encoder-decoder model, first determine whether the task has clearly defined input boundaries and whether the output must closely follow the input. Once confirmed, choose a size based on the device memory budget, then run the evaluation checklist provided in this article on the target hardware. This article presents three selection rules and a 6-item evaluation checklist. All performance figures cited here must be re-measured on your own devices.

    When to Consider an Encoder-Decoder Architecture

    Pure decoder models generate tokens in a left-to-right fashion and can only attend to the already generated output and the current input during generation. The encoder-decoder architecture splits the work into two stages. The encoder uses bidirectional self-attention to read the full input and produces a global representation for each position. The decoder reads these representations through cross-attention and generates output tokens one by one.

    This division of labor suits tasks such as translation, summarization, and instruction-based information extraction. Since the input is fully visible and the output is constrained by the encoded representation, the likelihood of the output deviating from the source text is reduced. However, this assessment depends on the specific task and the evaluation data. For tasks that require long-form open-ended generation or multi-turn free-form dialogue, a pure decoder model may be more suitable, and this should be decided based on comparative tests with your own data.

    Clarifying Model Size Specifications

    The model family in question comes in three sizes: 270M, 1B, and 4B. These numbers are often presented in the form of “encoder size-decoder size.” For instance, “270M-270M” typically indicates that both the encoder and decoder have roughly 270M parameters each. The total parameter count of the entire model must be checked separately. When comparing different sizes, refer to the official model card to identify the total parameter count and the non-embedding parameter count, and avoid comparing figures that are calculated using different conventions.

    To find the official model card, search for the model family name along with the size identifier (e.g., “270M,” “1B,” “4B”) on the publisher’s official website or model hosting platforms, and verify the publication date and changelog on the card. This article does not cite unverified publication dates, version numbers, or statistics.

    Choosing Among the Three Sizes

    The table below provides a selection reference. The memory estimates shown are calculated for weight storage only, based on the nominal parameter count times bytes per parameter. These figures do not include KV cache, activation values, or runtime overhead; actual memory usage is typically higher.

    Model Size FP16 Weights (Approx.) INT4 Weights (Approx.) Suitable Scenarios Points to Note
    270M ~0.5 GB ~0.14 GB Short text classification, field extraction, low-power devices Limited capacity for complex reasoning and open-ended generation
    1B ~2 GB ~0.5 GB Visual question answering, medium-length summarization, general on-device assistant Long context and multilingual capability need per-task testing
    4B ~8 GB ~2 GB Complex multimodal understanding, longer document processing Highest demands on device memory and power

    Follow these three selection rules:

    1. After subtracting the operating system overhead, the available device memory must accommodate the quantized weights of the target size while leaving sufficient headroom for the KV cache. The specific headroom value should be determined through actual measurement.
    2. For tasks with clear input boundaries where output must closely follow input, test the smallest size first. Upgrade only if measured quality requires it.
    3. For multimodal and long-document tasks, begin with the smallest feasible size and scale up incrementally to avoid wasting resources by selecting the largest size first.

    Measuring Multimodal Inputs

    The model first divides images into patches, converts them into representations with the same dimensionality as text tokens, and then feeds them into the encoder together with the text. As a result, image resolution, the number of image patches, and memory usage are directly correlated. When measuring, fix the batch size to 1 and record the input resolution (e.g., 448×448, 672×672) and the patch size. For each test group, record peak memory, time-to-first-token, and answer accuracy. Change only one variable at a time to make it easier to attribute the effect to a specific parameter.

    Tiered Long-Context Testing

    The model’s architecture sets a maximum context length of 128K tokens. This is only a structural upper limit and does not guarantee stable operation on any given device. Long contexts simultaneously increase both memory usage and time-to-first-token. It is recommended to test in tiers, recording the following metrics for each tier:

    Context Length Metrics to Record Pass Criteria
    8K Peak memory, time-to-first-token, throughput No crashes, latency within acceptable business limits
    32K Same as above, plus key information recall rate Same as above, recall rate meets business requirements
    64K Same as above Same as above
    128K Same as above Same as above

    Pass criteria should be defined by the business side, such as upper bounds on time-to-first-token and lower bounds on memory headroom. Each tier of test input should include verifiable facts, with key information placed at the beginning, middle, and end of the document to check whether the model can retrieve it from all positions.

    Multilingual Testing

    The introductory material for the model claims native support for over 140 languages. Readers should first cross-reference the official language list to confirm that the target language is supported, then test generation quality. The evaluation process is as follows:

    First, confirm that the target language appears on the official support list. Second, sample an equal number of items from both high-resource and low-resource languages. Third, manually check translation accuracy, proper noun handling, and format preservation. Quality differences in low-resource languages can be more pronounced and should be reported separately rather than aggregated with scores from high-resource languages.

    Quantization and Pre-Deployment Checklist

    The introductory material states that quantization can significantly reduce model size. Quantization affects both size and output quality, so the two must be measured together. A common approach is to compare FP16 against INT8 and INT4 versions. Complete the following 6 checks before deployment:

    1. Size and peak memory: Record peak memory usage both after loading and during inference.
    2. Time-to-first-token: Fix the input length, repeat the measurement, and take the median value.
    3. Throughput: Record the number of tokens generated per second.
    4. Long-context tiers: Complete the 8K, 32K, 64K, and 128K tests according to Section 5.
    5. Low-resource languages: Complete the sampling check according to Section 6.
    6. Output quality comparison: Use the same batch of tasks to compare accuracy across different quantization versions and confirm that quality degradation is within acceptable business limits.

    Capability Boundaries and Unsupported Scenarios

    The following cases are not recommended for direct deployment without prior testing:

    • Open-ended long-form generation.
    • Medical or legal scenarios with strict factual accuracy requirements.
    • Device memory headroom insufficient to support the target context length.
    • Target languages not present on the official support list.

    Performance results can vary significantly across deployment environments. Numbers from other environments should not be applied directly. All conclusions in this article should be validated by measurements on your target device.