Choosing a Multimodal Model: How to Evaluate Dense and MoE Architectures
This guide explains how to choose an open-source multimodal model for a specific deployment. It compares dense and Mixture of Experts (MoE) architectures, shows how to estimate memory needs before testing, matches model size to deployment scenarios, and describes how to build an internal evaluation process instead of relying on leaderboard rankings.
1. Why Selection Matters More Than Ranking
Open-source multimodal models are developing quickly. Parameter counts range from hundreds of millions to tens of billions, and one model family often includes versions for phones, personal computers, and servers. For developers, the core question is usually which model fits the available hardware budget, latency requirements, and accuracy needs of the business. Leaderboard rankings offer a useful reference, but they cannot directly replace this judgment.
2. Two Common Architectures: Dense Models and Mixture of Experts Models
2.1 Dense Models
In a dense model, every parameter takes part in each forward pass. The structure is straightforward, inference behavior is predictable, and the engineering pipelines for fine-tuning, quantization, and deployment are relatively mature. The cost is that a larger model needs more computation and GPU memory for each token.
2.2 Mixture of Experts Models (MoE)
MoE splits the feed-forward network into multiple “expert” sub-networks. A router selects a small subset of these experts for each token. The total parameter count of an MoE model can be very large, but only a fraction of the parameters are activated during a single inference pass. This is why MoE is often used to balance model capacity against inference cost.
When using MoE, keep three points in mind:
- Total parameter count does not equal the cost of a single inference. Pay attention to the number of activated parameters as well.
- The weights of all experts must stay resident in memory. Lower computation does not mean memory usage drops by the same proportion.
- In multi-GPU deployments, routing load imbalance and communication overhead between experts become more pronounced. Run separate load tests for these factors.
2.3 Comparing the Two Architectures
Within the same product generation, the MoE version sometimes has a lower total parameter count than the dense version. In that case, selection should not rely on parameter numbers alone. Compare activated parameters, memory requirements, throughput, and latency distribution together.
3. Estimating Memory: Check Whether the Model Fits First
Weight memory can be estimated with a simple formula: parameter count multiplied by the number of bytes each parameter occupies. The following example calculates the weight memory of a 31-billion-parameter model at different precisions:
def estimate_weight_memory_gb(num_params_b, bits):bytes_per_param = bits / 8return num_params_b * 1e9 * bytes_per_param / 1024**3for bits in (16, 8, 4):print(bits, round(estimate_weight_memory_gb(31, bits), 1))# 16-bit is about 57.8 GB, 8-bit about 28.9 GB, and 4-bit about 14.4 GB
This result covers only the weights. Actual inference also requires memory for the KV cache, activations, and framework overhead. In long-context scenarios, the KV cache often becomes the main cost. Reserve a safety margin, and measure peak memory usage at the target context length.
4. Matching Parameter Scale to the Deployment Scenario
Different deployment scenarios have clearly different requirements for model size. They can be roughly grouped into three tiers:
- Small scale (hundreds of millions to about 2 billion parameters): Suitable for phones, embedded devices, and offline use. Focus on time to first token, power consumption, and accuracy loss after quantization.
- Medium scale (several billion parameters): Suitable for personal workstations or a single mid-to-high-end accelerator card. Common uses include local knowledge base question answering, document understanding, and coding assistance.
- Large scale (tens of billions of parameters and above): Suitable for centralized server deployment. Focus on throughput, concurrency scheduling, and cost per request.
When selecting a model, first determine which tier the scenario falls into, then compare candidate models within that tier. This is usually more efficient than comparing every available model directly.
5. Evaluating Multimodal Capabilities Separately
Multimodal models typically accept images, video frames, or audio, and reason jointly over them with text. Evaluation should be split by input modality and task type. Avoid using a single overall score to represent all capabilities.
- Image understanding: chart reading, table recognition, document layout parsing, and text extraction from screenshots.
- Visual question answering: answering questions based on image details. Check especially whether the model invents content that does not appear in the image.
- Audio processing: speech transcription and speech instruction understanding (confirm that the model supports this modality).
- Cross-modal reasoning: deriving steps from a flowchart, or determining the next action from an interface screenshot.
Prepare a separate test set for each task category, and record accuracy and typical error examples for each.
6. Common Evaluation Dimensions for Text Capabilities
Text-only capabilities are usually assessed along the following dimensions:
- General knowledge: multiple-choice and short-answer questions across many disciplines, testing breadth of knowledge.
- Mathematical reasoning: competition-level or applied math problems, testing multi-step derivation.
- Code generation: generating code from requirements, measured by unit test pass rate.
- Scientific question answering: graduate-level technical questions, testing accuracy of specialized knowledge.
Correlations between these dimensions are not strong. A model that performs well on math problems does not necessarily perform equally well on coding or multimodal tasks.
7. Reading Public Benchmark Scores Correctly
Public benchmark scores are valuable references, but interpret them with the following points in mind:
- Confirm that the evaluation protocol is consistent. Prompt templates, the number of few-shot examples, whether chain-of-thought reasoning is enabled, sampling temperature, and whether tool calls are allowed all significantly affect results. Scores produced under different protocols cannot be compared directly.
- Compare results for the same version under the same protocol. When comparing across versions, check whether the dataset has been updated and whether the test questions may have appeared in training data.
- Judge whether the score gap is meaningful. In small-sample evaluations, a difference of one or two percentage points may simply be random variation. Use results from multiple runs or confidence intervals to decide.
- Map individual scores to business metrics. Customer service scenarios depend more on instruction following and refusal boundaries, while code assistance depends more on runnable rate and test pass rate.
- Acknowledge the limits of leaderboards. A composite leaderboard reflects overall preference under a specific evaluation design. It cannot replace acceptance testing for your business.
8. Building Your Own Evaluation Process
Public benchmarks cannot cover specific business needs, so build an internal evaluation process:
- Collect real samples: a few hundred is usually enough. Cover the main scenarios, and include edge cases and historical error cases.
- Define quantitative metrics, such as accuracy, format compliance rate, hallucination rate, average latency, and cost per request.
- Fix inference parameters: use the same prompts and generation settings for all candidate models.
- Record resource consumption, including peak memory usage, throughput, and performance under long context.
- Review samples manually: problems that automated metrics cannot capture require human judgment.
The following example shows the basic structure of an evaluation loop:
def evaluate(model, dataset, metric_fns, gen_config):scores = {name: [] for name in metric_fns}for sample in dataset:output = model.generate(sample["input"], **gen_config)for name, fn in metric_fns.items():scores[name].append(fn(output, sample["reference"]))return {name: sum(v) / len(v) for name, v in scores.items()}
The key point is that gen_config must stay identical for all candidate models. Otherwise, the results are not comparable.
9. Common Mistakes
- Looking only at parameter count. A larger model is not necessarily better for your business. Training data quality and alignment training matter just as much.
- Looking only at a single score. A high score on one item does not mean overall performance is stable.
- Ignoring the effects of quantization. Low-bit quantization can noticeably reduce performance on long reasoning chains or math tasks, so verify it through testing.
- Ignoring latency and concurrency. A high offline evaluation score does not guarantee that response times meet targets under high concurrency in production.
- Ignoring licensing and compliance. The usage terms of open-source models, data handling practices, and output review requirements need to be confirmed separately.
10. Summary
Model selection means converting “model capability” into “verifiable metrics under business constraints.” Start by defining the hardware budget and latency requirements. Next, understand the architectural differences and memory requirements. Then evaluate the model with your own data. Finally, make the decision based on cost and compliance requirements. This approach does not depend on any single leaderboard, and it applies to models across different generations and sizes.
