TL;DR
MiMo-V2-Flash is a new 309B parameter Mixture-of-Experts (MoE) language model (with 15B active parameters) from Xiaomi designed for high-speed, high-performance reasoning and agentic tasks. By combining a hybrid sliding window attention mechanism with a novel Multi-Teacher On-Policy Distillation (MOPD) framework, it rivals top-tier open-weight models like DeepSeek-V3.2 and Kimi-K2 while using a fraction of their total parameters. Furthermore, it integrates a lightweight Multi-Token Prediction (MTP) module to achieve up to a 2.6× decoding speedup during inference.
What Problem Does This Paper Address?
As the AI field pushes toward advanced reasoning chains and autonomous agentic workflows, long-context modeling has become a critical bottleneck. Standard Transformer architectures suffer from quadratic computational and memory complexity relative to context length, making long-context inference slow and expensive.
Additionally, post-training large models often introduces a "see-saw" effect: optimizing a model for a specific domain (like coding or mathematics) frequently causes performance regressions in other areas. Existing distillation and fine-tuning methods struggle to efficiently combine distinct expert capabilities from multiple specialized teacher models without sacrificing general performance. MiMo-V2-Flash tackles both the architectural efficiency bottleneck and the post-training capability imbalance.
Methods
The authors introduce several novel architectural and training strategies to optimize performance and speed:
- Hybrid Sliding Window Attention (SWA): The model architecture interleaves local SWA blocks with Global Attention (GA) blocks in a 5:1 ratio. It utilizes an aggressive 128-token sliding window, which yields a nearly 6× reduction in KV-cache storage and attention computation for long contexts. To prevent performance degradation from this tight window, they implement a learnable attention sink bias.
- Lightweight Multi-Token Prediction (MTP): MiMo-V2-Flash incorporates a highly efficient MTP module (0.33B parameters per block) that uses a dense Feed-Forward Network (FFN) and SWA instead of MoE or global attention. During inference, this module acts as a native draft model for speculative decoding, allowing the main model to verify multiple tokens in parallel.
- Multi-Teacher On-Policy Distillation (MOPD): To scale post-training compute efficiently, the authors design a three-stage paradigm:
- General Supervised Fine-Tuning (SFT) to establish foundational instruction-following capabilities.
- Domain-Specialized Training via independent reinforcement learning (RL) to create expert teacher models for specific domains (e.g., math, coding, web search).
- MOPD, where the student model samples from its own evolving distribution and receives dense, token-level KL divergence rewards from the specialized teachers alongside verifiable outcome-based rewards.
Datasets
- Pre-training: The model was pre-trained on 27 trillion tokens from a diverse mix of web content, books, academic papers, code, and STEM materials, with a deliberate emphasis on long-form documents and repository-level code.
- Post-training Environments: For agentic RL training, the authors built massive interactive environments:
- Code Agent: 120K real-world and synthesized GitHub issues across 8 programming languages.
- Search Agent: 150K synthesized tasks for autonomous web exploration.
- Terminal Agent: 30K queries sourced from Stack Overflow/Stack Exchange transformed into computational tasks with Dockerfiles.
- Web Development Agent: A synthetic dataset paired with a multimodal visual verifier using Playwright-rendered videos.
- Evaluation Benchmarks: The model was evaluated across a wide array of standard benchmarks, including MMLU-Pro, GPQA-Diamond, AIME 2025, LiveCodeBench, Arena-Hard, GSM-Infinite, LongBench V2, and SWE-Bench.
Key Insights and Ideas
- Tighter Windows Act as a Regularizer: Counterintuitively, empirical testing showed that a tight sliding window ($W=128$) outperformed a larger window ($W=512$) and even surpassed an all-global attention baseline on long-context tasks. The authors hypothesize that smaller windows force the model to focus on local context, acting as an inductive bias that mitigates overfitting on spurious patterns while delegating long-range dependencies entirely to global layers.
- Attention Sinks are Essential for SWA: Without a learnable attention sink bias, aggressive sliding window attention causes severe performance degradation. The sink bias allows the model to safely assign little or no attention to local tokens when they aren't needed, preserving long-context retrieval capabilities up to 256k tokens.
- Token-Level Parallelism Accelerates RL: Using MTP for speculative decoding shifts the inference bottleneck away from memory-bound batching. By scaling token-level parallelism instead of batch size, MTP significantly accelerates the rollout phase of reinforcement learning, making small-batch on-policy RL training practical and efficient.
Key Results
- State-of-the-Art Agentic Coding: MiMo-V2-Flash establishes itself as a leading open-source model for software engineering, achieving 73.4% on SWE-Bench Verified and 71.7% on SWE-Bench Multilingual, outperforming larger open-weight models and approaching closed-source frontiers.
- Top-Tier Reasoning: The model scores 94.1% on AIME 2025 (Mathematics) and 84.3% on GPQA-Diamond (Scientific knowledge).
- Substantial Inference Speedup: By repurposing the three-layer MTP weights for speculative decoding, the model achieves an average token acceptance length of up to 3.6, resulting in a 2.6× decoding speedup in production environments.
- Long-Context Robustness: The hybrid architecture maintains a near 100% success rate on long-context retrieval (NIAH-Multi) from 32K up to 256K tokens, showing minimal degradation compared to full-attention alternatives.
Limitations and Future Work
Despite its strong reasoning and speed, the authors note a few key limitations:
- Knowledge Capacity Constraints: Due to its compact active parameter size (15B), MiMo-V2-Flash exhibits lower absolute knowledge capacity on purely factual, trivia-style benchmarks (like SimpleQA) when compared to massive closed-source models.
- Preliminary Architectural Exploration: The exploration of the hybrid attention design space and its exact trade-offs remains preliminary.
Future work will focus on scaling up both the model size and the post-training compute, alongside exploring the iterative co-evolution of teachers and students within the MOPD framework to further narrow the gap with the strongest closed-source models.
Summary updated