Multimodal Sparse LLMs: How to Lower the Cost of Frontier Intelligence

    Inference cost for large models depends on parameter scale, token volume, and the number of calls required to complete a task. This article explains how mixture-of-experts architectures separate total parameters from active parameters, how native multimodality replaces stitched pipelines with unified representations, and why teams should measure cost per successful task and build their own task-specific evaluation suite.

    1. Background: Why Frontier Intelligence Has Been Expensive

    The inference cost of a large model is mainly determined by three factors: the number of parameters involved in each computation, the number of input and output tokens, and the number of calls needed to complete a task. In a dense architecture, every token uses all model parameters during computation. Stronger models usually have more parameters, so the compute required for a single inference increases, and the price rises accordingly.

    As a result, capability and cost have long been tightly coupled. Many teams can use high-performance models only in a few critical scenarios, while other tasks are handled by weaker, cheaper models. This division of labor is common in engineering, but it also means that how intelligence is used is strictly constrained by budget.

    Once this is understood, the focus should shift from “how strong is the model” to “can the cost per unit of intelligence decrease?” A recent wave of work on model architectures and inference optimization is moving in exactly this direction.

    2. Mixture of Experts: Separating Total and Active Parameters

    Mixture of Experts (MoE) is one of the main technical routes for alleviating this trade-off. Its core idea is to split the feed-forward network into multiple “expert” subnetworks, and then have a router select a small number of experts to participate in computation for each token.

    This design introduces two concepts that need to be distinguished:

    • Total parameters: the sum of all experts and shared layers. This determines the model’s knowledge capacity and storage footprint.
    • Active parameters: the parameters that actually participate in computation for a single token. This determines the compute required for one inference step.

    Once the two are separated, a model can maintain a relatively low per-step compute cost while having a larger knowledge capacity. Consider a hypothetical example: if total parameters are on the order of 100 billion and each token activates only about 10 billion parameters, then the per-step compute is close to that of a dense 10-billion-parameter model, while the overall knowledge coverage is larger. These numbers are used only to illustrate the mechanism and do not correspond to the actual configuration of any specific model.

    MoE also has its own costs:

    1. GPU memory must hold the parameters of all experts. Deployment barriers mainly appear in memory capacity and memory bandwidth.
    2. Routing imbalance can overload some experts, which usually requires load-balancing loss or capacity limits as constraints.
    3. Expert parallelism requires cross-device communication. Network bandwidth and scheduling strategy directly affect actual throughput.

    Therefore, when evaluating an MoE model, teams should look at latency, throughput, and memory usage together, not just parameter scale or the number of active parameters.

    3. Native Multimodality: From Stitched Pipelines to Unified Representations

    The way multimodal capabilities are implemented directly affects engineering complexity. There are two common approaches.

    The first is a stitched approach. An independent vision model first converts an image into a text description or feature vector, which is then passed to a language model. This approach involves many components, and errors propagate from one stage to the next. Details missed by the vision module usually cannot be recovered by the language module.

    The second is native multimodality. During training, modalities such as text and images share the same representation space and attention mechanism, and the model reasons directly over mixed inputs. Its engineering benefits mainly appear in three areas:

    • The chain is shorter, reducing the number of service calls and cumulative latency.
    • Cross-modal reasoning is more coherent, for example answering questions based on values in a chart or locating operation steps based on a UI screenshot.
    • Maintenance cost is lower because only one model version needs to be managed, without coordinating compatibility across multiple components.

    Native multimodality does not automatically produce better results. Image resolution, encoding method, and the number of generated visual tokens directly determine call cost. A high-resolution screenshot may produce a large number of visual tokens, significantly increasing both cost and latency. Therefore, in practice, images should be cropped or compressed according to task requirements.

    4. Rethinking Price: From Per-Token Pricing to Per-Task Cost

    Providers usually quote prices per million tokens, but what a business really cares about is the total cost of completing a task. A more practical metric is cost per successful task:

    Cost per successful task = average cost per attempt × average number of attempts ÷ task success rate + human review and correction cost

    This formula includes several factors that are easy to overlook.

    First, output tokens are usually more expensive than input tokens. Reasoning models also generate longer intermediate content, so actual output volume may far exceed expectations.

    Second, task success rate directly amplifies cost. Suppose the success rate rises from 70% to 90%. Even if unit price stays the same, the average number of attempts needed per successful task drops from about 1.43 to about 1.11, and cost per successful task falls by about 22%.

    Third, retries, validation, and human intervention after failures are often underestimated. In scenarios such as customer service and code review, the cost of an error is often far higher than the model call fee itself.

    Therefore, to judge whether a model is cost-effective, teams should calculate cost per successful task on their own workloads rather than only comparing list prices.

    5. Building Your Own Evaluation Suite

    Public leaderboards can provide reference points, but they have several limitations. Question distribution may not match the business, some data may already appear in training corpora, and a single aggregate score can hardly reflect differences in specific capabilities. A more reliable approach is to build your own evaluation set:

    1. Sample from real business workloads, covering high-frequency scenarios and typical edge cases.
    2. Define auto-checkable criteria for each sample, such as whether structured fields are correct or whether generated code passes tests.
    3. For samples that cannot be automatically judged, define clear human scoring rules and have two reviewers score independently to check consistency.
    4. Freeze the evaluation set version, rerun it after every model or prompt change, and record quality, latency, and cost.

    The vendor-neutral evaluation script below shows the core logic:

    1. from dataclasses import dataclass
    2. from statistics import mean
    3. @dataclass
    4. class EvalResult:
    5. passed: bool
    6. input_tokens: int
    7. output_tokens: int
    8. latency_s: float
    9. def run_candidate(model_fn, cases, price_in, price_out):
    10. """model_fn: calls the candidate model and returns (output text, input tokens, output tokens, latency seconds)"""
    11. results = []
    12. for case in cases:
    13. output, t_in, t_out, latency = model_fn(case["prompt"])
    14. passed = case["checker"](output)
    15. results.append(EvalResult(passed, t_in, t_out, latency))
    16. success_rate = sum(r.passed for r in results) / len(results)
    17. cost_per_attempt = mean(
    18. r.input_tokens * price_in / 1e6 + r.output_tokens * price_out / 1e6
    19. for r in results
    20. )
    21. cost_per_success = cost