Kimi K3 Open Model Surpasses Closed AI Leaders with Million-Token Context and 896 Experts

Kimi K3 is an open-weights model that outperforms closed systems from GPT and Anthropic on several independent benchmarks. Developers achieved this by scaling three dimensions simultaneously: one million tokens of context, deeper layers, and 896 Mixture-of-Experts specialists. The team replaced the standard KV-cache with a fixed-size state matrix updated via the delta-rule, solving numerical instability by clamping the forgetting coefficient alpha between e^-5 and 1. Sequential state updates were parallelized across chips, GPUs, and multi-GPU nodes using the open-source FlashKDA kernel built on CUTLASS. Inter-layer information flow was preserved through learned pseudo-queries that selectively retrieve relevant outputs from prior blocks rather than passing full activations. Load balancing across 896 routed experts uses per-expert quantile thresholds and a distributed histogram method to guarantee fair token allocation without full sorting.

HabrTranslated from Russian

Read at source

Kimi K3 is an open-weights model that outperforms closed systems from GPT and Anthropic on several independent benchmarks. Its weights are publicly available for local deployment, yet the model leads on key metrics despite the typical resource disadvantages faced by open projects.

Developers scaled three architectural dimensions at once: context length reaching one million tokens, increased layer depth, and a Mixture of Experts design with 896 specialists. Each direction introduced distinct engineering challenges that were solved without sacrificing training stability or inference efficiency.

Handling One Million Tokens with a Fixed-Size State Matrix

Standard transformers rely on a growing KV-cache whose memory footprint scales linearly with sequence length. For a million tokens this cache would exhaust available GPU memory. Kimi K3 replaces the KV-cache with a fixed-size state matrix S updated by the delta-rule. Two learned scalars control the update: beta governs how strongly new information overwrites old values, while alpha controls forgetting. To prevent underflow and overflow in BF16 arithmetic during long sequences, alpha is clamped between e^-5 and 1.

Parallelizing Sequential State Updates

The delta-rule update is inherently sequential, conflicting with GPU parallelism. The team introduced the open-source FlashKDA kernel built on NVIDIA CUTLASS. Inside each chip, tokens within a chunk are processed in parallel before state hand-off occurs across attention heads. An automatic scheduler further distributes long-context prefill across multiple streaming multiprocessors on a single card. Across cards, the computation is split into local state increments and transition matrices; an all-gather followed by prefix-scan reconstructs the exact sequential states with communication volume independent of context length.

Preserving Information Across Deep Layers

Deeper networks risk losing early-layer features as activations propagate through many transformations. Each layer in Kimi K3 maintains a learned pseudo-query that retrieves a weighted combination of outputs from all preceding blocks rather than receiving only the immediate predecessor. Layers are grouped into eight blocks of twelve layers each; intra-block connections remain standard while inter-block selection uses the pseudo-query mechanism, dramatically reducing memory required to store prior activations.

Scaling to 896 Experts with Stable Training

The model employs two always-active shared experts operating on full-dimensional tokens and 896 routed experts that receive compressed latent representations. For every token only 16 routed experts are selected. To prevent activation explosion across four consecutive matrix multiplications, the team inserted normalization before one multiplication and replaced SwiGLU with the custom SiTU-GLU activation whose branches are mathematically bounded. Load balancing is achieved by per-expert quantile thresholds that guarantee each expert receives a predefined share of tokens; these thresholds are computed efficiently via distributed histograms rather than full sorting. Experts are never split across GPUs, and a small per-GPU reserve ensures every card receives exactly its planned token volume.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Other

Mail.ru Reduces Lifetime 1TB Cloud Storage Promo to Standard 8GB Quota for Select Users
Innostage Completes Functional Testing of PT NGFW 1.10.3 Across 156 Criteria
MITRE ATT&CK in Detective Settings: Avito Launches Cyberdetective Game for Security Awareness Training