Search arXiv⌕ Search

arXiv · 2611.39931

SparseWafer: Fast Dynamic Sparse Prefill on a Wafer-Scale Accelerator

Abstract

Dynamic block-sparse attention skips most of the attention work of a long prompt. On accelerators whose multicast is statically routed and flow-controlled, such as wafer-scale engines, the pruning gains far less than the skipped work suggests: with the conventional placement, sparse attention that skips most of the blocks still takes most of the dense attention time. The cause is multicast backpressure: a route advances only when every destination has a free buffer, so processing elements (PEs) that receive the same key-value stream stall each other when their work falls at different points of it. We present SparseWafer, which reduces this stall by placing query rows. The rows that share one selection decision select the same key blocks, so spreading them cyclically over the PEs of a stream gives every PE the same work on every block, and we prove that such PEs run as fast as one PE alone, for any buffer depth. A per-head start offset, which starts each query head at a different set of PEs, extends this balance across the multicast routes that share one key-value stream; it depends only on tensor shapes and is fixed before run time. We evaluate SparseWafer on the Cerebras SDK's WSE-3 simulator and a model calibrated on it, with selection and data movement included. With the masks of a published selection method (XAttention), SparseWafer is 1.31-1.49x faster than sparse prefill with the conventional placement at each model's longest context. With these masks, sparse prefill loses at most 1.8 points of accuracy on the RULER long-context benchmark, and on the denser masks of RULER prompts SparseWafer is still 1.28-1.54x faster than dense prefill at 128K. It is also faster than mask-aware load balancers and within 5-10% in attention time of an idealized, zero-cost one: on such networks, the shape of the computation decides almost all of where each row belongs.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Jianchang Su, Yifan Zhang, Wei Zhang. 2026-11-29. SparseWafer: Fast Dynamic Sparse Prefill on a Wafer-Scale Accelerator. https://searcharxiv.org/abs/2611.39931

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Pudding: A Retargetable Compiler for Processing-Using-DRAM Systems

Processing-Using-DRAM (PUD) architectures exploit the physics of DRAM arrays to perform Boolean operations directly in memory, eliminating the data movement bottleneck in memory-intensive workloads. Several PUD architectures have been recently proposed which differ in their primitive operation sets, row allocation models, and execution metrics. These architectural differences are today hard-coded in emerging PUD-aware compilers, making crossarchitecture reuse impossible. We present a retargetable, end-to-end compilation framework for PUD architectures. The central idea is to make the architecture description a first-class object in the compilation pipeline: retargeting to a new PUD architecture only requires supplying its description. Built upon the MLIR framework, our compiler operates at two coupled levels. At the tensor level, it lowers high-level programs through bit-slicing, mixed-precision assignment, and integer-linear-programming (ILP) based placement to reduce the number of PUD commands and inter-bank data movement. At the logic level, it employs equality saturation to explore Boolean network implementations, with rewrite rules and cost functions derived directly from the architecture description. Evaluated on representative workloads across multiple PUD targets with the same compiler passes, our framework matches (and in several cases surpasses) architecture-specific hand-optimized compilers, while delivering retargetability and extensibility.

cs.AR↗

Sattva: A Hardware-Algorithm Co-Designed SAT Solving Accelerator with Off-Chip Scalability

Boolean Satisfiability (SAT) solvers underpin verification, scheduling, and security, and hard problems can take years of CPU time. Yet solvers improve by only 4.6% per year on average, and their core algorithm, Conflict-Driven Clause Learning (CDCL), has remained unchanged for three decades, which makes it an ideal target for hardware specialization. Still, CDCL runs only on single-threaded CPUs in practice: its fine-grained data dependencies preclude effective parallelization, and industrial problems demand off-chip memory that no prior complete CDCL accelerator supports. Our insight is that these dependencies are structural, so custom hardware can parallelize CDCL safely with lightweight synchronization, while direct control over memory layout and prefetching hides the off-chip latency of CDCL's pointer chasing. The resulting parallelism further unlocks algorithmic improvements that do not pay off on sequential processors. We present Sattva, the first hardware-algorithm co-designed CDCL accelerator with off-chip scalability, and the first to run most of Kissat's search heuristics in hardware. It propagates literals in parallel across cores and threads, learns from several conflicts per round, decides through a SAT-tailored priority queue, and selects MiniSat's or most of Kissat's search heuristics. Built on an FPGA and measured at 206 MHz, Sattva is 5-793x faster than each prior SAT accelerator on that accelerator's own benchmarks, and 3-454x faster than CPU solvers on them. Per cycle, it does 6-8x as much search work as a CPU core. Projected to 3 GHz, it solves 49 of 100 randomly sampled SAT Competition 2026 instances, where MiniSat solves 22 and Kissat 36, and is 41x and 4x faster than them. In Samsung 8 nm, Sattva delivers 13x Kissat's performance per mm^2 of CPU.

cs.AR↗

PACER: Accelerating Mixture-of-Experts LLM Inference on High Bandwidth Flash Memory via Resource-Aware Expert Prefetching and Caching

The weights of frontier mixture-of-experts (MoE) large language models (LLMs) exceed the on-package memory capacity of modern accelerators. High bandwidth flash (HBF) addresses this capacity gap by stacking NAND flash dies in the form factor of high bandwidth memory (HBM). However, the sparse and dynamic expert selection of MoE models limits the performance of a demand-driven HBF controller. One possible solution is to prefetch experts ahead of time, as MoE offloading systems do. Our goal is to increase the decode throughput of MoE LLM inference on an HBF-equipped inference accelerator by efficiently prefetching experts from HBF into HBM. To this end, we propose PACER (Prefetching And Caching of Experts under Read disturb). The key idea of PACER is to make expert prefetching resource-aware, so that a prefetch uses only the HBM bandwidth that the inference accelerator leaves idle, the HBM capacity that the KV cache does not occupy, and the flash reads that storing experts in HBM saves. PACER leverages this key idea in software and in hardware. In software, the PACER runtime manages an HBM expert cache with a hint-protected replacement policy, which protects prefetched experts from eviction until the expert kernels of their layer finish. In hardware, the PACER controller comprises (i) a copy-preserving read unit, which serves demand reads from prefetched experts instead of reading these experts from HBF, (ii) an HBM write throttling engine, which throttles the HBM writes of prefetched experts, and (iii) a lifetime control engine, which limits the flash reads of useless prefetches to the flash reads that storing experts in HBM saves.

cs.AR↗