GLM-5.3-Flash Explained: How Hybrid Attention in a 320B Sparse MoE Model Approaches Top Closed-Source Performance

    This article breaks down the architecture of GLM-5.3-Flash, a sparse Mixture-of-Experts model with 320B total parameters and 18B active parameters. It covers the 3:1 hybrid attention design that combines linear and sparse attention, the adjustable thinking intensity settings, benchmark results against top closed-source models, and the API pricing strategy.

    From an Anonymous Release to an Official Launch

    Recently, one of the most talked-about events in the AI community was the anonymous release of a model by a cloud provider. Codenamed “Ox Alpha,” the model launched without any background information. It quickly ranked first on the weekly call-volume charts of several open-source model aggregation platforms, and traffic on both platforms reached record highs. Even more notable, all the compute behind these requests came from domestically produced AI chips, which was hard to imagine until recently.

    The model was later officially announced as GLM-5.3-Flash. It is a sparse MoE architecture with 320B total parameters and 18B active parameters. It is a base model trained from scratch, not an incremental upgrade of its predecessor, and its pretraining data covers roughly 30T tokens. It natively accepts text, image, and video input, supports a context window of 1,048,576 tokens (about one million), and is released under the MIT open-source license.

    This positioning is disruptive in itself. Until now, models at this level of intelligence were either closed-source commercial flagships or open-source giants with enormous parameter counts and high inference costs. GLM-5.3-Flash suggests that frontier intelligence and affordable cost do not have to be mutually exclusive.

    Architecture Breakdown: How 320B Parameters Achieve More With Less

    Machine learning expert Sebastian Raschka published an architecture analysis shortly after the release. Combined with the official technical report, it helps explain how the model is built.

    Hybrid Attention: A Mix of Linear and Sparse Attention

    The core of the Transformer is the attention mechanism. However, standard full attention scales quadratically with sequence length in long-context scenarios, and its KV cache consumes a large amount of memory. To handle long contexts while keeping inference efficient, GLM-5.3-Flash uses a hybrid attention design with a 3:1 ratio:

    • 34 layers of Kimi Delta Attention (KDA): KDA is a linear attention variant whose main advantage is that its computational complexity grows linearly with sequence length. It uses a specific kernel-based approximation to reorder the attention computation into an associative matrix multiplication form, which significantly reduces compute and KV cache usage. KDA layers mainly compress and extract information from long contexts, serving as the workhorse for processing million-token inputs.
    • 11 layers of Multi-head Latent Attention (MLA) / DeepSeek Sparse Attention (DSA): MLA uses low-rank compression to shrink the KV cache several times over. DSA introduces sparsity, so each attention computation focuses only on the most relevant tokens. These layers preserve precise long-range dependency capture, offsetting the accuracy loss of linear attention on complex reasoning tasks.

    The two layer types divide the work. Linear attention provides broad coverage at low cost, while sparse attention provides high precision and strong recall. According to official data, compared with a predecessor using the same architecture, this design reduces attention compute by about 3x and shrinks the KV cache by about 4.4x. On the same hardware, this supports longer contexts or higher concurrent throughput.

    A Lean Sparse MoE Backbone

    The MoE structure is also worth a closer look. The model scales down from roughly 744B total parameters and 40B active parameters in the previous generation to 320B total parameters and 18B active parameters.

    The reasoning behind this change is that, once pretraining data quality improves substantially, a larger number of active parameters does not always produce a proportional gain in intelligence. It can, however, significantly raise inference costs. With more refined expert routing and better expert specialization, 18B active parameters are enough to match or exceed the previous 40B active parameter model on most tasks. This reflects a broader trend in LLM development: a shift from scaling brute force toward more careful engineering, with a focus on maximizing efficiency per parameter and per unit of compute.

    Performance: How Close It Gets to Top Closed-Source Models

    Parameter count is a specification on paper. Benchmarks are the real test. Based on published evaluation data, GLM-5.3-Flash performs strongly on coding and agent tasks.

    Table: Benchmark comparison

    Benchmark GLM-5.3-Flash GLM-5.2 Top closed-source model (reference)
    Terminal-Bench 2.1 84.3 77.8 85.0
    DeepSWE v1.1 63.4 46.2 65.3
    AutomationBench 48.8 39.1 50.2
    Toolathlon Verified 78.4 70.5 80.1

    Reading the results: On Terminal-Bench, which measures terminal operation, GLM-5.3-Flash scores 84.3, within 1% of the reference model’s 85.0. On DeepSWE v1.1, a demanding evaluation of real software engineering problems, it scores 63.4. That is well above GLM-5.2 and only about 2 points below the top closed-source reference. AutomationBench (automation tasks) and Toolathlon Verified (tool use) also place the model in the top tier.

    In practical development, these results suggest the model can handle most complex programming tasks:

    • Code generation and completion: Provides high-quality multi-line code suggestions in the