LightningMoBA accelerates long-context attention by 1.2–1.6x via dynamic routing and KV-centric execution
Original titleAccelerating Mixture of Block Attention via Dynamic Routing, KV-Centric Execution and Runtime Pipelining
- Outlet
- Hugging Face
- Published
- Importance
- 2/5
- Trending
- 14
Summary
The authors propose LightningMoBA, which improves Mixture of Block Attention by combining dynamic routing, KV-centric ownership, and runtime pipelining. It replaces fixed Top-k budgets with per-query dynamic thresholds and optimizes KV tile reuse. On Hopper GPUs, LightningMoBA accelerates end-to-end generation by 1.2–1.6x and raises mean RULER score from 74.42 to 75.28.
Original excerpt
Mixture of Block Attention (MoBA) reduces long-context computation by selecting key-value (KV) blocks for each query. FlashMoBA implements MoBA efficiently but retains a fixed Top-k budget and query-centric schedule. Fixed Top-k applies one budget across different score distributions and couples routing to task granularity; query-range ownership fragments K/V reuse when several ranges select the same column. We present LightningMoBA, which co-designs selection and execution through dynamic routing, KV-centric ownership, and runtime pipelining. Dynamic routing thresholds MoBA's per-query block scores and directly emits variable-cardinality sparse metadata. KV-centric ownership groups selected rows by (query head, KV block) column, splits high-fanout columns into bounded tasks, and reuses each task's loaded KV tile. On Hopper, pipelining overlaps regular K/V transfers and irregular query gathers with Tensor Core computation. Together, these mechanisms decouple retention from GPU scheduling granularity. At matched Top-16 retention across five checkpoints, LightningMoBA accelerates end-to-end generation by 1.20 to 1.60x while raising mean RULER score from 74.42 to 75.28.