SparLeak exploits input-dependent key-value cache accesses created by during LLM inference. A co-located attacker observes contention in shared GPU caches and TLBs, then reconstructs approximate token-level sparsity patterns without accessing prompts, outputs, or KV contents.
The attack infers query attributes from prefill activity and reconstructs generated tokens from decoding activity. Across three LLM architectures, three sparse attention mechanisms, and three privacy-sensitive datasets, average attack success was 90.9% for attribute inference and 87.3% for response reconstruction. This identifies sparse attention as a privacy risk in shared-GPU serving, not merely a performance optimization.