Dynamic Routing, KV‑Centric Execution and Runtime Pipelining Accelerate Block Attention
| Source: HF Papers | Original article
A new system, FlashMoBA, accelerates Mixture of Block Attention with dynamic routing, KV‑centric execution and runtime pipelining, improving on fixed Top‑k constraints.
A research team from Tencent has unveiled **LightningMoBA**, a new implementation of Mixture of Block Attention (MoBA) that tackles the inefficiencies of earlier sparse‑attention schemes. MoBA already cuts the cost of long‑context processing by selecting only the most relevant key‑value (KV) blocks for each query, but the first‑generation system, FlashMoBA, relied on a fixed Top‑k budget and a query‑centric execution order. That approach forces a single budget onto wildly varying score distributions and fragments KV reuse when multiple query ranges target the same column.
LightningMoBA re‑thinks the pipeline on three fronts. First, it swaps the static Top‑k limit for a **dynamic, threshold‑based routing** that emits variable‑cardinality sparse metadata per query. Second, it adopts a **KV‑centric ownership model**, grouping queries that select the same KV block and applying fan‑out‑aware work partitioning to preserve reuse. Third, it introduces **runtime pipelining** that overlaps data movement with Tensor‑Core computation on Nvidia’s SM90 GPUs, effectively hiding memory latency.
The redesign promises faster, more scalable attention for models that need to handle thousands of tokens, a capability increasingly critical as LLMs grow in size and application scope. By reducing the overhead of block selection and improving GPU utilisation, LightningMoBA could lower inference costs and enable richer context windows without a proportional rise in hardware demand.
The next steps to watch are benchmark releases and integration into major model libraries. If the authors open‑source the code, developers will be able to test the gains on real‑world workloads, and hardware vendors may optimise future GPU architectures to exploit the KV‑centric, pipelined execution model.
Sources
Back to AIPULSEN