AI News

MiniMax-01: Scaling Foundation Models with Lightning Attention – Summary

The January 2025 paper “MiniMax-01: Scaling Foundation Models with Lightning Attention” introduces MiniMax-Text-01 and MiniMax-VL-01. For Text-01, the authors report training context up to one million tokens and extrapolation to four million tokens during inference. The architecture mixes lightning and softmax attention. These are reported model capabilities and historical evaluations, rather than a verified four-million-token allowance for every current hosted service or the vision-language variant.

Introduction: Defying the Quadratic Barrier

Standard softmax attention has a quadratic attention-cost term in sequence length: doubling the length roughly quadruples that term, rather than making it grow exponentially. The MiniMax paper discusses this scaling constraint; it does not establish a universal 8K-to-32K context cap for existing language models.

The authors investigate lightning attention and a hybrid architecture to make long contexts more efficient. The paper places this work alongside prior long-context approaches such as Longformer and Big Bird. Any performance or context-length comparison depends on the specific model and evaluation configuration.

MiniMax-01: Scaling Foundation Models with Lightning Attention

Model Overview

MiniMax-Text-01

MiniMax-Text-01 combines 456 billion total parameters with 45.9 billion activated per token. Its model card specifies one softmax-attention layer after every seven lightning-attention layers, training context up to one million tokens, and inference context up to four million. Benchmark results are the authors’ historical measurements, rather than a current ranking.

MiniMax-VL-01

MiniMax-VL-01 adds visual input through continued training with 512 billion vision-language tokens. The paper reports its multimodal benchmark results separately from Text-01’s long-context results. The paper cites BLIP-2 and CoCa as related visual-model work. Text-01’s four-million-token result should not be assumed to apply to the vision-language variant.


Innovations in Attention Mechanisms

Lightning Attention

The core innovation lies in Lightning Attention, which replaces the expensive QK^T computation with a kernel-based transformation, achieving O(N) complexity. Unlike previous linear attention methods (Hua et al., 2022), Lightning Attention incorporates advanced tiling and recurrence strategies to handle long causal sequences efficiently.

Hybrid Architecture

Recognizing the limitations of purely linear attention in retrieval-heavy tasks, the researchers introduce hybrid layers. These strategically deploy softmax attention in select layers, preserving global weighting while maintaining scalability.


Scaling Context to 4 Million Tokens

For MiniMax-Text-01, the paper’s long-context extension recipe uses the following training lengths before extrapolation to four million tokens at inference:

  1. Stage 1: Short and medium contexts up to 128k tokens.
  2. Stage 2: Contexts up to 512k tokens, gradually introducing longer sequences.
  3. Stage 3: A one-million-token training context.

The authors report that this staged extension supports long-context performance and extrapolation beyond the training window. The recipe does not by itself guarantee that catastrophic forgetting is prevented.


Experimental Validation

Benchmark Performance

The paper reports results on particular retrieval, long-context understanding and code-related evaluations. These historical measurements depend on the tested model and configuration; they are not a universal superiority claim across every dialogue or codebase task.

  • The authors report 100% accuracy on their four-million-token vanilla needle-in-a-haystack retrieval test for Text-01. This bounded retrieval result is not a guarantee for every document task or proof that all softmax-based models cannot perform retrieval.

Scaling Laws

The researchers establish that hybrid-linear models follow scaling laws comparable to standard transformers but with significantly reduced computational costs at long contexts.

Comparative Analysis

The paper compares MiniMax-01 with specific contemporary model snapshots and evaluation configurations. Those comparisons should be read alongside their task and context limits; they do not establish that every Llama or Mistral generation fails at long-context work.


Alignment and Safety Protocols

The paper describes the following alignment methods. They are training procedures, rather than a guarantee of safe or correct output:

  • Supervised Fine-Tuning (SFT): Curated high-quality responses from experts.
  • Offline Reinforcement Learning (DPO): Preference-based optimization for reward alignment.
  • Online RL: Fine-tuning via Group Relative Policy Optimization (GRPO).

Safety is reinforced through:

  • Harmlessness training: The authors describe safety rules, a harmlessness reward model and Constitutional AI principles; these do not ensure compliance in every use.
  • Demonstration privacy: The paper says its example requests were written by human evaluators, rather than exposing private user requests. This is a measure for the published demonstrations, not evidence of general resistance to data leakage.

Practical Applications

  1. Book-Length Summarization: Efficiently distills lengthy documents into concise summaries.
  2. Codebase analysis: The paper evaluates long-context tasks that include code repositories. A token-context specification does not establish reliable handling of repositories with millions of lines of code.
  3. Multi-Modal Reasoning: Integrates textual and visual inputs for tasks like diagram interpretation.

Open Resources and Future Directions

The release linked code and model resources and offered Hailuo AI demos and MiniMax APIs in January 2025. The exact Text-01 repository separates an MIT code license from the MiniMax Model License, which includes use restrictions. Those release links do not verify current access, pricing or context limits for Text-01 on a particular account.

Future work aims to:

  • Extend context lengths beyond 4 million tokens.
  • Refine the training pipeline for domain-specific tasks, such as coding and legal analysis.


In redefining scalability, MiniMax-01 opens new horizons for AI, from tackling entire libraries to seamlessly combining text and visuals in multi-modal problem-solving. This work marks a pivotal step toward the future of unbounded-context language models.