WhoBuilt

How MiniMax M3 Was Built: Sparse Attention and Native Multimodality

Oct 10, 2026· 15 min· 6.0K views·Watch on YouTube

Speaker

Olive Song, a reinforcement learning researcher at MiniMax, explains how the team built MiniMax M3 with MiniMax Sparse Attention and native multimodal training at AI Engineer.

M3’s three capabilities

Song describes M3 as an open-weight model combining coding and agent capabilities, a one-million-token context window, and vision understanding trained alongside language from the start. She says MiniMax Sparse Attention makes prefill nine times faster and decoding 15 times faster than full attention, enabling long interactions and full-codebase use.

Designing sparse attention for GQA

MiniMax Sparse Attention uses a lightweight index branch to identify important tokens, then a main branch attends to the selected tokens. Song says directly adapting existing designs to grouped-query attention can make different key-value heads select identical tokens and cause inefficient, scattered GPU memory reads. MSA preserves separate selections across KV heads and retrieves blocks instead of individual tokens, reducing top-k overhead while maintaining performance, according to Song.

Training multimodality from the start

MiniMax trained M3 on text and vision data from the beginning. Song says adding multimodal training late can degrade text performance, while introducing it earlier can make results sensitive to data mixtures and learning rates. Under the same text-token budget, native multimodal training nearly avoided hurting text capability; its attention maps also showed more integration between text and visual tokens.

Video attention and frame trade-offs

Images and video are processed by a vision transformer, whose visual tokens are inserted into the language model’s input. Song says 3D attention lets patches from different video frames interact directly and improves visual understanding, with some gains transferring to image benchmarks. Four frames gave the best balance of performance and efficiency in their experiments.

Takeaways

  • When adapting sparse attention to GQA, preserve per-head token selection so KV heads can retain diversity.
  • Block-level retrieval can reduce top-k and memory-access overhead compared with selecting individual tokens.
  • Introducing multimodal data from the start can help integrate vision while preserving text capability.
  • Evaluate multimodal training choices at scale: data mixture and learning rate can make results sensitive.
  • For video attention, test a limited frame count; MiniMax found four frames balanced performance and efficiency.

Mentioned in this talk

Search inside this talk

What was claimed 11

Related talks