Hugging Face
Search models, datasets, users... ⌘K
arxiv:2502.13189
Copy markdown
MoBA: Mixture of Block Attention for Long-Context LLMs
Published on Feb 18, 2025
· Submitted by
Adina Yakefu on Feb 24, 2025
· Moonshot AI
Zhejun Jiang ,
Jingyuan Liu ,
Shaowei Liu ,
Enming Yuan ,
Yuzhi Wang ,
Zhiqi Huang ,
Guokun Lai ,
Yanru Chen ,
Huabin Zheng ,
Junjie Yan ,
Jianlin Su ,
Neo Y. Zhang ,
Mixture of Block Attention (MoBA) improves large language models' efficiency and performance on long-context tasks by dynamically switching between full and sparse attention without predefined biases.
Generated by Qwen/Qwen2.5-Coder-32B-Instruct
Scaling the effective context length is essential for advancing large
language models (LLMs) toward artificial general intelligence (AGI). However,
the quadratic increase in computational complexity inherent in traditional
attention mechanisms presents a prohibitive overhead. Existing approaches
either impose strongly biased structures, such as sink or window attention
which are task-specific, or radically modify the attention mechanism into
linear approximations, whose performance in complex reasoning tasks remains
inadequately explored.
In this work, we propose a solution that adheres to the ``less structure''
principle, allowing the model to determine where to attend autonomously, rather
than introducing predefined biases. We introduce Mixture of Block Attention
(MoBA), an innovative approach that applies the principles of Mixture of
Experts (MoE) to the attention mechanism. This novel architecture demonstrates
superior performance on long-context tasks while offering a key advantage: the
ability to seamlessly transition between full and sparse attention, enhancing
efficiency without the risk of compromising performance. MoBA has already been
deployed to support Kimi's long-context requests and demonstrates significant
advancements in efficient attention computation for LLMs. Our code is available
at https://github.com/MoonshotAI/MoBA.
View arXiv page View PDF GitHub 2.2k auto Add to collection
Paper submitter Feb 24, 2025
https://github.com/MoonshotAI/MoBA
librarian-bot
Feb 25, 2025
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
Softplus Attention with Re-weighting Boosts Length Extrapolation in Large Language Models (2025)
SAISA: Towards Multimodal Large Language Models with Both Training and Inference Efficiency (2025)
LServe: Efficient Long-sequence LLM Serving with Unified Sparse Attention (2025)
Round Attention: A Novel Round-Level Attention Mechanism to Accelerate LLM Inference (2025)
ParallelComp: Parallel Long-Context Compressor for Length Extrapolation (2025)
Logarithmic Memory Networks (LMNs): Efficient Long-Range Sequence Modeling for Resource-Constrained Environments (2025)
Diversity Enhances an LLM's Performance in RAG and Long-context Task (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Upload images, audio, and videos by dragging in the text input, pasting, or clicking here.
Tap or paste here to upload images
· Sign up or log in to comment
Get this paper in your agent:
hf papers read 2502.13189
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash
Models citing this paper 1
Datasets citing this paper 0
No dataset linking this paper
Cite arxiv.org/abs/2502.13189 in a dataset README.md to link it from this page.
Spaces citing this paper 0
No Space linking this paper
Cite arxiv.org/abs/2502.13189 in a Space README.md to link it from this page.
Collections including this paper 5