potentialpaper

SparCas: A Dimension-First Cascade for Efficient Long-Context LLM Inference

Guoxin Sun, Ming Zhao

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Large language models (LLMs) have demonstrated strong capability in handling long-context sequences, but inference efficiency is bottlenecked by the continuously growing KV cache. KV cache selection methods mitigate this by retaining only "important" tokens for attention, yet existing solutions face a fundamental dilemma: they either rely on coarse page-level heuristics (sacrificing precision) or expensive token-wise approximation or scanning (sacrificing speed). We introduce Sparsity Cascade (SparCas), a novel dimension-first cascade that resolves this trade-off. SparCas is grounded in the empirical discovery that token importance ranking is remarkably stable to dimension pruning. Leveraging this, we instantiate a prune-in-prune cascade: (i) intra-token sparsity first prunes the feature space to identify critical dimension indices using a lightweight queryonly proxy, and (ii) cross-token sparsity then prunes the context length by using this tiny subset of dimensions to efficiently filter for salient token indices. This approach effectively decouples the cost of ranking from the context length. Across extensive evaluations on PG-19, LongBench, and RULER, SparCas consistently matches or outperforms dense attention and prior baselines, achieving oracle-level accuracy with budgets as few as 1% of tokens at a 32K-token context. Integrated into FlashInfer, SparCas delivers up to 3.01× faster selfattention and 1.64× end-to-end speedups. Our project is anonymously available at https://anonymous.4open.science/r/sparcas/.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…