Reproduce “MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

MiniMax, Aili Chen, Aonian Li, Bangwei Gong, Binyang Jiang, Bo Fei, Bo Yang, Boji Shan and 119 more

MiniMax-M1 combines Lightning Attention with periodic softmax attention to reduce theoretical inference cost on long sequences, while CISPO clips importance-sampling weights in reinforcement learning. The model supports up to 1M input tokens and 80K output tokens. At 100K generated tokens, its estimated FLOPs are about 25% of DeepSeek R1’s; separately, CISPO matches DAPO on AIME 2024 using half the training steps.

Key insights

  • Efficient linear attention mechanisms, when integrated into a hybrid architecture, can achieve competitive performance at frontier model scales while providing substantial efficiency gains for long-context reasoning.
  • The novel CISPO reinforcement learning algorithm, which clips importance sampling weights instead of token updates, significantly improves training efficiency and stability for complex reasoning behaviors.
  • Scaling context lengths during training for hybrid attention models requires a gradual, multi-staged approach and careful management of precision mismatches and pathological generation patterns to ensure stability.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.