SparseEngine: Sparse-First Inference Engine

Jitai Hao, Quansheng Gu, Qiang Huang, Jun Yu
9/30/2026
cs.LG

Official code: CURRENTF/SparseEngine (83 stars, Apache-2.0, last commit 2026-09-26).

Abstract

Long-context LLM agents accumulate interaction histories that strain KV-cache memory and attention computation. Although sparse attention reduces these costs, heterogeneous cache representations and workflows hinder integration with existing inference engines, while prior sparse-serving abstractions support only specific layouts or workflows. We present SparseEngine, a ground-up, sparse-first inference engine whose shared lifecycle contract lets each method control its KV representation and computation while coordinating state transitions with common serving infrastructure. SparseEngine supports 15 methods across four categories and enables cross-request state management through Chain Cache, which resumes KV-eviction methods from retained history, and controllable Prefix-Cache Pruning, which removes KV from selected history regions while preserving logical-prefix matching. While maintaining method quality, SparseEngine delivers over 10x higher throughput with KV eviction, over 2.5x faster decoding at matched concurrency than vLLM, and over 2x end-to-end speedup on agent benchmarks. The code is available at https://github.com/CURRENTF/SparseEngine.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A sparse-first inference engine (SparseEngine).

8313C, C++Jan 29, 20263 weeks agoApache-2.0

Similar Papers

Cite this paper

@article{hao2026sparseengine,
  title  = {SparseEngine: Sparse-First Inference Engine},
  author = {Jitai Hao and Quansheng Gu and Qiang Huang and Jun Yu},
  year   = {2026},
  eprint = {2609.39068},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.39068v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.39068.svg)](https://codeofpaper.com/paper/2609.39068)

Discussion