← 研踪 PaperTrailarXiv:2609.39068 · v2
SparseEngine: Sparse-First Inference Engine
首次提交 2026-09-30 14:05
版本更新 2026-11-30 02:34
雷达观测 2026-12-01 13:26
摘要
Long-context LLM agents accumulate tool outputs and reasoning traces across turns, increasing KV-cache memory, limiting concurrency, and slowing decoding. Sparse inference reduces these costs, but engines tied to specific layouts or workflows struggle to support heterogeneous cache representations, metadata, and update rules. The central challenge is to accommodate this diversity while preserving shared scheduling, capacity management, and cache reuse. We introduce SparseEngine, a ground-up, sparse-first inference engine whose shared lifecycle contract combines fine-grained hooks and method-owned cache management to preserve control over KV representations, computation, and state transitions within shared serving infrastructure. It supports 15 cache methods spanning dynamic sparsity, KV eviction, compression, and quantization across diverse architectures, including hybrid attention models. The contract also enables cross-request management: Chain Cache resumes eviction-based methods across turns from compacted KV and method metadata without prefix reconstruction; Prefix Cache Pruning reclaims KV from application-selected regions while preserving logical-prefix matching. Evaluations show that SparseEngine closely preserves reference-method quality. On 128K-token inputs, it delivers 9.8-12.1x vanilla vLLM's aggregate decode throughput with KV eviction at each configuration's largest successfully tested batch and over 2.5x with dynamic sparsity at matched concurrency. Multi-turn agent replay achieves up to 2.24x end-to-end speedup over full attention. The code is available at https://github.com/CURRENTF/SparseEngine.
观测到的版本
相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。
v2 · 2026-11-30 02:34 · 最新观测版本
SparseEngine: Sparse-First Inference Engine
Long-context LLM agents accumulate tool outputs and reasoning traces across turns, increasing KV-cache memory, limiting concurrency, and slowing decoding. Sparse inference reduces these costs, but engines tied to specific layouts or workflows struggle to support heterogeneous cache representations, metadata, and update rules. The central challenge is to accommodate this diversity while preserving shared scheduling, capacity management, and cache reuse. We introduce SparseEngine, a ground-up, sparse-first inference engine whose shared lifecycle contract combines fine-grained hooks and method-owned cache management to preserve control over KV representations, computation, and state transitions within shared serving infrastructure. It supports 15 cache methods spanning dynamic sparsity, KV eviction, compression, and quantization across diverse architectures, including hybrid attention models. The contract also enables cross-request management: Chain Cache resumes eviction-based methods across turns from compacted KV and method metadata without prefix reconstruction; Prefix Cache Pruning reclaims KV from application-selected regions while preserving logical-prefix matching. Evaluations show that SparseEngine closely preserves reference-method quality. On 128K-token inputs, it delivers 9.8-12.1x vanilla vLLM's aggregate decode throughput with KV eviction at each configuration's largest successfully tested batch and over 2.5x with dynamic sparsity at matched concurrency. Multi-turn agent replay achieves up to 2.24x end-to-end speedup over full attention. The code is available at https://github.com/CURRENTF/SparseEngine.
查看此版本解读 →查看此版本原文 ↗