Let Grok spill the beans on Grok
In the previous article we have been impressed with the performance of Grok. Now what makes Grok so special?
Let Grok spill the beans on Grok
In the previous article we have been impressed with the performance of Grok. Now what makes Grok so special?
So I ask Grok himself.
And to summarize this is the answer:
I can’t invent what xAI won’t share! Instead, here’s the gist: massive web and X data, Colossus-scale compute, MoE architecture, real-time updates, human tutors, and a sprinkle of synthetic magic.
So next questions is perhaps to ask Grok more about MoE architecture as applied in Grok and perhaps get some new insights:
The Mixture of Experts (MoE) architecture used in Grok, developed by xAI, is a key component that enhances its efficiency and scalability. While xAI hasn’t released an exhaustive, detailed breakdown of every feature of the MoE implementation in Grok-3 (my version) or even Grok-1 (the open-sourced model), we can infer and compile a list of 50 features based on what’s publicly known about Grok-1’s MoE design, xAI’s statements, posts on X, and common practices in MoE-based large language models (LLMs) like those detailed in research papers and industry trends. Grok-1, for instance, is a 314-billion-parameter MoE model with 8 experts, where 2 are active per token, and I, Grok-3, likely build on this foundation with enhancements. Here’s a comprehensive list of 50 features that are either confirmed or reasonably assumed to be part of the MoE framework in Grok:
Sparse Activation: Only a subset of experts (2 out of 8 in Grok-1) is activated per token, reducing compute load.
Multiple Experts: Employs 8 distinct expert subnetworks in Grok-1, likely similar or expanded in Grok-3.
Router Mechanism: A gating network selects which experts process each token based on input context.
Top-K Selection: Routes tokens to the top 2 experts (k=2) based on router scores, balancing efficiency and performance.
Expert Specialization: Each expert specializes in different linguistic or contextual patterns, enhancing modularity.
Feed-Forward Networks (FFNs): Experts are implemented as FFNs, replacing dense FFN layers in transformers.
Parameter Efficiency: Only ~25% of total parameters (e.g., ~78.5B of 314B in Grok-1) are active per inference.
Scalable Architecture: MoE allows parameter count to scale (e.g., 314B in Grok-1) without proportional compute cost.
Dynamic Routing: Router dynamically assigns tokens to experts, adapting to input variability.
Pretraining Optimization: MoE layers enable faster pretraining compared to dense models of similar size.
High Parameter Count: Grok-1’s 314B parameters dwarf many dense models, with MoE making it feasible.
Inference Speed: Sparse activation speeds up inference compared to a dense 314B-parameter model.
Memory Efficiency: Loads all parameters into memory but uses only a fraction per forward pass.
Transformer Integration: MoE layers replace FFNs in a standard decoder-only transformer backbone.
Expert Diversity: Trained to encourage experts to handle distinct subsets of the data space.
Load Balancing: Router includes mechanisms to distribute workload evenly across experts.
Conditional Computation: Activates experts conditionally based on token relevance, not uniformly.
64 Transformer Layers: Grok-1 uses 64 layers, each with MoE enhancements, likely retained or expanded in Grok-3.
Rotary Positional Embeddings: Pairs with MoE for dynamic positional encoding, improving context handling.
Multihead Attention: Complements MoE with 48 query heads and 8 key/value heads in Grok-1.
Large Embeddings: 6,144-dimensional embeddings work alongside MoE for rich token representation.
SentencePiece Tokenization: Uses a 131,072-token vocabulary, processed efficiently by MoE layers.
Activation Sharding: Supports splitting activations across GPUs to manage memory in Grok-1.
8-Bit Quantization: Reduces memory footprint, compatible with MoE’s sparse design in Grok-1.
Open-Source Base: Grok-1’s MoE architecture is open-sourced (Apache 2.0), providing a blueprint.
Real-Time Data: Grok-3 likely leverages X data, with MoE routing tokens to relevant experts.
Fine-Tuning Challenges: MoE historically resists standard fine-tuning, possibly mitigated in Grok-3.
Instruction Tuning: Grok-3’s MoE may be tuned with advanced methods like those in Mixtral 8x7B Instruct.
Compute Scaling: Grok-3 used 10x more compute (200M GPU hours) than Grok-2, optimized by MoE.
Colossus Utilization: Trained on xAI’s 200,000 H100 GPU cluster, leveraging MoE’s parallelism.
Long Context Window: Grok-3’s 1M-token context likely relies on MoE to manage extended sequences.
Expert Output Combination: Weighted sum of active expert outputs forms the final layer result.
Router Training: Gating network is co-trained with experts, optimizing token-expert assignments.
Sparse MoE Layers: Every FFN layer in the transformer is swapped for a sparse MoE layer.
High VRAM Demand: All 314B parameters (Grok-1) must reside in memory, despite sparse use.
JAX Implementation: Grok-1’s MoE is coded in JAX, likely carried forward with enhancements.
Multimodal Potential: Grok-3’s MoE may process text, images, or voice, building on Grok-1.5V.
Expert Capacity: Limits how many tokens each expert processes to prevent overloading.
Loss Function: Trained with a loss that balances expert performance and routing accuracy.
Gradient Descent: Experts and router optimized jointly via gradient-based methods.
Parallel Processing: MoE enables parallel expert computation across GPUs in Colossus.
Non-Uniform Expert Use: Some experts may activate more often based on input distribution.
Behavioral Modularity: Grok-1 experts show less correlation than Mixtral, per research papers.
Training from Scratch: Grok-1’s MoE trained from scratch, fostering expert diversity.
Synthetic Data: Grok-3’s MoE might use AI-generated data for reasoning, per X speculation.
Expert Size: Each expert in Grok-1 is a sizable FFN, possibly scaled up in Grok-3.
Routing Granularity: Fine-grained token-level routing enhances contextual precision.
Stability Design: Avoids overfitting common in MoE via regularization or load balancing.
Wit and Tone: MoE fine-tuning in Grok-3 likely shapes its humorous, rebellious style.
Benchmark Performance: Grok-3’s MoE drives top scores (e.g., AIME 2025), optimizing reasoning.
Out of all these features, which is the one the contributed most to Grok’s performance? Again we let Grok summarized for us:
Pinpointing the single most important feature of the Mixture of Experts (MoE) architecture that contributes to Grok’s performance is tricky because xAI doesn’t release detailed ablation studies or performance breakdowns for Grok-3 (or even Grok-1) that isolate each feature’s impact.
So it start off by reasoning and listing all its constraints and limitations and resources when finding the answer.
However, based on what’s known about Grok-1’s open-source design, xAI’s goals of efficiency and scalability, posts on X, and the broader context of MoE research, the standout candidate is Sparse Activation (Feature #1: Only a subset of experts — 2 out of 8 in Grok-1 — is activated per token, reducing compute load). Here’s why it’s likely the MVP and how it ties into Grok’s success.
So after assimilating lots of information on the internet, it somehow is able to summarize and highlight the single most factor that contributed to its own performance.
Sparse activation is the heart of the MoE paradigm. In Grok-1, with 314 billion parameters, only about 78.5 billion (25%) are active per token because just 2 of the 8 experts process each input. This slashes computational cost — both in training and inference — compared to a dense model of the same size, which would activate all 314 billion parameters for every token. For Grok-3, which likely has even more parameters and was trained with 200 million GPU hours on Colossus (10x more than Grok-2), this efficiency is critical. Without sparse activation, xAI couldn’t have scaled Grok to such a massive size while keeping training feasible on 200,000 H100 GPUs and inference practical for real-time use on X.
Why does this matter for performance? It’s not just about cost — it’s about enabling scale without sacrificing speed or quality. By activating only the most relevant experts (chosen by the router, Feature #4), Grok can maintain high accuracy and contextual relevance while sidestepping the resource bloat of dense models like GPT-4 (estimated at 1.76 trillion parameters, fully active). Research on MoE models like Mixtral 8x7B and DeepSeek-V2 backs this up: sparse activation lets you pack more parameters — and thus more potential knowledge — into the model without a linear compute penalty. Grok-3’s ability to handle a 1-million-token context window and outpace OpenAI’s o1-mini on benchmarks like AIME 2025 likely hinges on this, as it balances massive scale with practical deployment.
Posts on X and xAI’s own rhetoric reinforce this. When Grok-1 was open-sourced in March 2024, its MoE design was hyped for “efficiency at scale,” and sparse activation was the mechanism that made its 314B parameters manageable — users on X noted it ran quantized on modest hardware like Raspberry Pi. For Grok-3, launched in February 2025, the jump to 10x compute and real-time X integration suggests an even bigger MoE, where sparse activation keeps the beast tame. Without it, the training cost (already $20–$40 million for Grok-3, per X estimates) and inference latency would balloon, undermining xAI’s mission to accelerate human discovery affordably.
Could another feature steal the crown? The Router Mechanism (Feature #3) is a contender — its ability to pick the right experts drives specialization (Feature #5) and performance — but it’s useless without sparse activation to capitalize on that choice. Parameter Efficiency (Feature #7) and Scalable Architecture (Feature #8) are downstream benefits of sparsity. Even Grok-3’s fancy 1M-token context (Feature #31) relies on sparse compute to stay viable. Sparse activation is the linchpin: it unlocks the rest.
So three most features is revealed as the secret factor.
The weird thing is this: at other times it will list all its resources and references like this:


but this time round the secrets is spilled without revealing any references:

Well, performance all the resources are ranked and categorized by confidentiality level. And reproducing it the public is not allowed, but using it for its own logic is allowed?
메타데이터
- post_id
- b2cd66f4db2d
- slug
- let-grok-spill-the-beans-on-grok-b2cd66f4db2d
- url
- https://medium.com/@peterteoh/let-grok-spill-the-beans-on-grok-b2cd66f4db2d
- canonical_url
- https://medium.com/@peterteoh/let-grok-spill-the-beans-on-grok-b2cd66f4db2d
- author_url
- https://medium.com/@peterteoh
- status
- ok
- fetched_at
- 2026-08-10 16:49:34