Small Activated-Parameter LLMs: Architecture Evolution and Cost Optimization Guide

    The LLM industry is shifting toward models with massive total parameters but far fewer activated parameters per inference. This article explains the technical logic behind Mixture-of-Experts (MoE) architectures and native multimodality, breaks down where low API pricing comes from, and provides practical methods for estimating per-task costs and routing workloads—helping teams make better model selection and cost optimization decisions.

    Small Activated-Parameter LLMs: Architecture Evolution and Cost Optimization Guide

    A clear trend is emerging in the LLM industry: total model parameters keep growing, while the fraction of parameters actually used in each inference keeps shrinking. Some publicly reported model families follow this pattern—for example, around 320 billion total parameters with only about 18 billion activated per inference. These figures are used here only to illustrate the order of magnitude, not to represent the final specifications of any specific product. This article does not target any particular vendor. Instead, it unpacks the technical logic behind this approach and offers general methods for model selection and cost optimization.

    1. Mixture of Experts: Why Small Activated Parameter Counts Work

    In a traditional dense model, every parameter in every layer participates in computation during inference, so compute cost scales roughly linearly with the total parameter count. A Mixture-of-Experts (MoE) architecture splits the feed-forward network into multiple expert sub-networks, with a gating router selecting a small number of experts to process each token.

    This design delivers two immediate benefits.

    First, capacity is decoupled from compute. The total parameter count determines how much knowledge the model can store, while the activated parameter count determines the compute per inference. Using the figures above as an example, the model retains large capacity while its inference compute approaches that of a mid-sized dense model.

    Second, load balancing is an engineering challenge. If the router consistently sends tokens to a small subset of experts, those experts become overloaded while the rest sit idle, and actual throughput drops noticeably. Common mitigations include auxiliary load-balancing losses, capping the token capacity of each expert, and dynamic batch scheduling on the inference side.

    The code below illustrates the basic flow of one routing computation:

    1. import numpy as np
    2. def moe_forward(h, router_w, experts, k=2):
    3. logits = router_w @ h # router scoring
    4. probs = softmax(logits) # normalize to probabilities
    5. topk_idx = np.argsort(probs)[-k:] # select the k highest-scoring experts
    6. weights = probs[topk_idx] / probs[topk_idx].sum() # re-normalize over selected experts
    7. return sum(w * experts[i](h) for w, i in zip(weights, topk_idx))

    Two caveats apply. First, this example does not account for inter-expert communication overhead. In multi-GPU deployments, experts are distributed across devices and tokens must be transferred between cards—this latency can offset part of the compute savings. Second, fewer activated parameters does not mean proportionally lower memory usage. All expert weights must still reside in GPU memory or distributed memory, so memory footprint is primarily determined by the total parameter count.

    2. Native Multimodality: Unified Handling from Pretraining

    There are two common paths to multimodal capability. One attaches a vision encoder to an already-trained text model, followed by alignment training. The other processes tokens from multiple modalities—text, images, and more—jointly during pretraining. The latter is typically called native multimodality.

    Native multimodality offers three main advantages:

    1. More unified representations across modalities, making cross-modal reasoning more natural. Tasks such as writing code from a chart or locating UI issues from a screenshot tend to be handled more coherently.
    2. A shorter inference pipeline. No extra bridging modules are needed, which reduces both latency and engineering complexity.
    3. A simpler developer experience. A single interface accepts both text and images, simplifying application architecture.

    Note that not every model family unifies multimodality at the pretraining stage, and approaches—and how much is publicly disclosed—vary across vendors. When evaluating options, rely on official technical documentation and your own test results rather than marketing claims.

    3. Cost Logic: Where Does Low Per-Token Pricing Come From?

    API pricing varies widely among models of similar capability. Low prices typically stem from three sources:

    1. Cheaper inference compute. Fewer activated parameters mean fewer FLOPs per token, so the same hardware can support higher concurrency and throughput.
    2. Stacked engineering optimizations. KV cache compression, quantized inference, speculative decoding, and more aggressive batch scheduling all amortize the cost of each request.
    3. Market strategy. Low prices drive usage growth and create economies of scale—a common commercial practice. Prices can change with market conditions, so a quote at one point in time should not be treated as a long-term cost baseline.

    A common mistake in cost estimation is calculating only the daily expense and forgetting to multiply by the number of days, underestimating the result by roughly 30x. The function below accounts for days, retries, caching, and image tokens:

    1. # Monthly API cost estimate; prices are per million tokens
    2. def monthly_cost(daily_requests, days, avg_in, avg_out,
    3. price_in, price_out,
    4. cache_hit_rate=0.0, cache_price_ratio=0.1,
    5. retry_rate=0.0):
    6. calls = daily_requests * days * (1 + retry_rate)
    7. # Cache-hit input tokens are billed at a discounted rate
    8. billable_in = avg_in * (cache_hit_rate * cache_price_ratio + (1 - cache_hit_rate))
    9. cost_in = calls * billable_in * price_in / 1_000_000
    10. cost_out = calls * avg_out * price_out / 1_000_000
    11. return cost_in + cost_out

    Here, avg_in should include the token count after images are converted to tokens. The following walkthrough uses hypothetical numbers. Assume 10,000 calls per day, an average input of 3,000 tokens, an average output of 500 tokens, an input price of 1 unit per million tokens, an output price of 4 units per million tokens, no caching or retries, and a 30-day month:

    • Daily input: 10,000 × 3,000 = 30 million tokens → 30 units
    • Daily output: 10,000 × 500 = 5 million tokens → 20 units
    • Daily total: 50 units; monthly total: 1,500 units

    These prices are hypothetical and used only to demonstrate the calculation method. For actual pricing, refer to the rates published by your provider.

    4. Per-Task Cost: More Important Than Per-Token Price

    End-to-end tasks often require multiple calls—for example, retrieve first, then reason, then validate the output format. A low per-token price does not guarantee a low overall task cost, so you should measure the cost of completing one task.

    When measuring, record the following:

    • Task type and sample size;
    • Median and P90 of input and output tokens;
    • Number of calls per task;
    • Retry counts and cache hit rate;
    • Model version used and test date.

    Only with a consistent measurement methodology does comparison across models become meaningful. If someone simply claims that the cost of a certain task category dropped from a higher level to a lower one, readers cannot judge its applicability—run the numbers against your own logs first.

    5. A General Approach to Enterprise Model Selection

    1. Define evaluation benchmarks first. Don’t rely on leaderboard totals; build evaluation sets around your business. Customer service scenarios should focus on instruction following and refusal accuracy; coding scenarios should focus on whether the code runs and whether fixes succeed.
    2. Tier your scenarios. Use flagship models for complex reasoning and long-chain agent tasks. For high-frequency, structured calls—classification, information extraction, formatting—use cost-effective small-activated-parameter models.
    3. Decide based on per-task cost, not per-token price alone.
    4. Build a unified model gateway. Add an abstraction layer between your application and the models to hide interface differences across providers, making it easy to switch and run A/B comparisons. The gateway should log latency, error rates, per-task cost, and cache hit rate.

    The key to routing is judging task difficulty. The routing example below includes decision rules and a fallback strategy:

    1. def route(task):
    2. # Rule 1: long-chain reasoning or agent steps go directly to the flagship model
    3. if task.requires_long_reasoning or task.is_agent_step:
    4. return flagship_model
    5. # Rule 2: structured tasks with short inputs go to the high-cost-performance
    6. # small-activated-parameter model; on failure or low confidence, fall back
    7. # to the flagship model
    8. ...