Efficient Multimodal LLMs: How 18B Activated Parameters Preserve Coding and Agent Performance

    This article breaks down the architecture and engineering behind a new generation of efficient multimodal large language models. It explains how a 320B-parameter MoE design with only 18B activated parameters per token, alongside hybrid attention mechanisms and KV Cache compression, achieves both low inference cost and strong performance on complex coding and multi-step agent tasks. The analysis covers model architecture, training data, benchmark results, the integration of visual feedback into the coding loop, and practical guidance for local deployment.

    The Shift from Parameter Scale to Architectural Efficiency

    A recent phenomenon in the developer community sparked notable discussion: an anonymously listed model climbed to the top of the weekly usage charts on a major international model aggregation platform. When the identity was later revealed, it turned out to be a lightweight multimodal model that had already been released as open source.

    This “blind test” success carries a meaningful signal for the industry: meaningful breakthroughs in model architecture are now delivering tangible gains in both inference efficiency and capability ceilings — without simply adding more parameters.

    Over the past year, developers have often faced a trade-off. Small models run faster, respond quickly, and cost less, but they tend to struggle with complex coding tasks, multi-step agent orchestration, and visual understanding. Large models offer the capability, but their inference overhead is expensive. This article uses this new generation of efficient models as a case study, examining architecture, training, evaluation, and engineering deployment to show how low activated parameter counts can still preserve frontier-level capabilities.

    Core Architecture: 320B Total Parameters, 18B Activated

    2.1 MoE Foundation

    The model uses a Mixture-of-Experts (MoE) architecture with approximately 320B total parameters, yet only about 18B parameters are activated for each token. Compared to the previous generation, which kept activated parameters at 32B, this is nearly a 50% reduction in activation scale. The direct benefits are threefold:

    • Significantly lower inference cost: Activated parameters determine the floating-point operations (FLOPs) per token. Halving the activation count roughly halves the per-token FLOPs.
    • Reduced memory bandwidth pressure: Inference, especially the decode phase, is often memory-bandwidth-bound. Fewer activated parameters mean fewer weight reads and higher decode throughput.
    • Capability ceiling maintained by total parameters: The 320B total parameters store a richer distribution of knowledge. The routing mechanism selects expert sub-networks on demand, avoiding the capability ceiling typically associated with small models.

    2.2 Fewer Layers and Modified Attention

    Another notable change is model depth: reduced from 92 layers to 45. Fewer layers cut serial computation latency and reduce activation memory usage per layer. However, halving depth usually sacrifices representational capacity, so this requires compensatory changes to the attention mechanism.

    The model employs a hybrid architecture combining sparse attention and linear attention:

    • Sparse attention handles global dependencies by having each query attend only to a selected subset of keys, reducing the computational complexity of long sequences from quadratic toward more manageable levels.
    • Linear attention captures local and high-frequency patterns with near-linear computational complexity, well suited for contiguous segments in the context.

    These two attention types are deployed in a mixed fashion across layers or modules, balancing the “global view” needed for long contexts with the “computational efficiency” required for general generation tasks. According to official figures, compared to the previous generation of the same model series, attention computation is reduced to roughly one-third, and KV Cache is compressed to about 1/4.4 the original size — the latter being particularly critical for agent scenarios, as discussed later.

    2.3 Key Training Components

    Pre-training data reaches 30T tokens of multimodal mixed content. The interleaved composition of text, images, and code lays the groundwork for visual capabilities to be natively integrated into coding workflows. In addition, the model introduces structural components such as mHC (multi-layer hybrid classification routing) and IndexPool (an index-pooling KV management mechanism). The former optimizes routing stability and load balancing among experts; the latter serves KV Cache compression and reuse. Together, these components aim to reduce attention overhead — the primary bottleneck in long-context scenarios — without sacrificing representational capacity.

    2.4 Context Window and Agent Suitability

    The model supports a maximum context of 1M tokens, and with compressed KV Cache, a long-running agent can maintain a complete working history and document context in memory. A rough estimate: if each tool invocation produces several thousand tokens of intermediate results, a 1M context with 1/4.4 KV compression effectively provides several times the “working memory” capacity of traditional architectures under equivalent memory constraints.

    Capability Validation: Does Efficiency Come at the Cost of Performance?

    The aggressive architectural compression ultimately needs to be justified by evaluation results. Public benchmark data shows:

    • Software engineering benchmark: 63.4, up from 46.2 in the previous generation. These benchmarks simulate real repository issue-fixing, testing multi-file comprehension, code location, and patch generation.
    • Automated agent orchestration benchmark: 48.8, nearly doubling from 26.2, reflecting improved reliability in multi-step agent workflows.
    • High-difficulty programming evaluation at the highest thinking setting: 29.0, approaching the 29.5 level of current leading closed-source models.

    These three data points collectively indicate that with activated parameters reduced from 32B to 18B and layers halved, coding and agent capabilities improved rather than declined. A reasonable interpretation is that the efficiency gains from architecture — longer effective context, lower attention overhead, better multimodal fusion — produce benefits on complex tasks that outweigh the losses from parameter compression.

    The Real Value of Vision: Closing the Coding Loop

    Many models claim to be “multimodal,” but in practice, they simply describe images or understand visual content — with vision and code generation running on parallel, disconnected tracks. The key difference in this new generation is integrating visual capability directly into the Coding Loop:

    1. Code: The agent generates or modifies code based on the task.
    2. Run: The agent launches a frontend page, game, or simulation environment.
    3. Observe: The model actively takes a screenshot of the interface and assesses whether the rendering matches expectations and whether interactions work correctly.
    4. Correct: Based on visual feedback, the model identifies issues (e.g., broken layout, animation stutter, stale state) and returns to step 1.

    This creates a closed loop of “doing, seeing, and verifying.” For tasks like frontend development, game logic, and 3D simulation — where the final output is inherently visual — visual feedback is the only reliable acceptance criterion. Text-based unit tests cannot cover UI correctness. Once visual modality enters the loop, an agent gains the potential to autonomously complete the full “code-verify-correct” workflow, rather than leaving the “visual inspection” step to a human.

    Engineering Practice: Local Deployment Notes

    The model is compatible with mainstream open-source inference frameworks and supports local deployment. Key points for developers:

    1. # Example deployment flow with a general inference framework
    2. pip install inference-framework
    3. python -m serve launch model_path \
    4. --max-context-length 262144 \ # Increase context length based on available memory
    5. --kv-cache-quantization on # Enable KV quantization to reduce memory usage
    • Memory planning: Although only 18B parameters are activated, the total weight size is still on the order of 320B. Full deployment requires multiple GPUs. For smaller memory environments, consider quantized versions and expert offloading strategies.
    • Long-context tuning: Start with a smaller context window to verify throughput, then gradually increase, while monitoring KV Cache memory growth.
    • Agent scenarios: Use the compressed KV Cache to store the historical context of multi-turn tool invocations, avoiding repeated pre-filling each turn. This is where this architecture delivers its biggest throughput advantage in agent use cases.
    • Visual input: When integrating with the Coding Loop, balance screenshot resolution against token overhead. Consider cropping interface regions rather than sending full-screen images.

    Conclusion

    The open-source release and blind-test success of this model mark a shift in industry competition — from “parameter scale races” toward “architecture efficiency races.” The combination of three technical directions — sparse/linear hybrid attention, KV Cache compression, and native multimodal integration into agent loops — is likely to become the standard paradigm for the next generation of efficient models. For developers, the point of attention is not any single model release, but the underlying signal: speed and capability are no longer mutually exclusive.