atlas

Research map / Architectures and efficiency / Attention and transformers

A Training-Free Sub-quadratic Cost Transformer Model Serving Framework with Hierarchically Pruned Attention

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse attention for long-context LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes HiP, a training-free hierarchical tree-search top-k attention approximation (O(T log T) time, O(T) space) with block-wise GPU kernels and KV cache offloading, applied to Llama3.1-8B for long-context serving.

Problem

Quadratic time and space cost of attention limits long-context LLM serving; existing sub-quadratic sparse/linear attention methods usually require retraining and degrade quality.

Approach

Exploits "attention locality" (nearby keys have similar attention scores) to find approximate top-k keys per query via a hierarchical, binary-tree-like search over key chunks represented by their center tokens, implemented block-wise on tensor cores, plus GPU/CPU KV cache offloading that keeps only O(log T) hot tokens on GPU.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use HiP attention instead of FlashAttentionLlama3.1-8B · PG19Perplexity: 8.1151 → 8.6499Hurt
Use HiP attention instead of FlashAttentionLlama3.1-8B · PG19Prefill latency: 9.00× fasterHelped
Use HiP attention instead of FlashAttentionLlama3.1-8B · PG19Decode latency: 29.99× fasterHelped
Use HiP 2k instead of AVD with an 8K windowLlama3.1-8B-Instruct · BookSum (Normal Window)ROUGE-1Helped
Add V 2k and D 1k to HiP 2k (ablation)Llama3.1-8B-Instruct · BookSum (Normal Window)ROUGE-1: 38.84% → 39.98%Helped
Add V 2k and D 1k to HiP 2k (ablation)Llama3.1-8B-Instruct · BookSum (Normal Window)Decode speedup: 7.75x → 7.05xHurt
Use a linear probing hash map instead of a vector map for KV cache indexing (ablation)HiP KV cache offloading · 512k contextGPU memory consumption: 40.8%Helped
Use a linear probing hash map instead of a vector map for KV cache indexing (ablation)HiP KV cache offloading · KV cache offloading benchmarkToken access latencyHurt

Surprising findings

Limitations

Experimental setup

Datasets: PG19 LongBench RULER BookSum Wikitext2

Benchmarks: PG19 LongBench RULER BookSum passkey retrieval

Metrics: perplexity accuracy ROUGE latency decoding throughput speedup

Baselines: FlashAttention StreamingLLM AVD BigBird HyperAttention H2O

Builds on: FlashAttention StreamingLLM H2O BigBird HyperAttention

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy