paper-with-me

Papers

TinyServe: Query-Aware Cache Selection for Efficient LLM Serving

2025-08-28 · Dong Liu, Yanxuan Yu arxiv

Serving large language models (LLMs) efficiently remains challenging due to the high memory and latency overhead of key-value (KV) cache access during autoregressive decoding. We present \textbf{TinyServe}, a lightweight and extensible serving system for deploying tiny LLMs (e.g., TinyLLaMA, GPT2-345M) with support for structured KV sparsity, plugin-based token selection, and hardware-efficient attention kernels. Unlike prior simulation frameworks, TinyServe executes real-time decoding with configurable sparsity strategies and fine-grained instrumentation. To reduce decoding cost, we introduce a \textit{query-aware page selection} mechanism that leverages bounding-box metadata to estimate attention relevance between the query and KV cache blocks. This enables selective KV loading with minimal overhead and no model modifications. Our fused CUDA kernel integrates page scoring, sparse memory access, and masked attention in a single pass. Experiments show that TinyServe achieves up to \textbf{3.4x} speedup and over \textbf{2x} memory savings with negligible accuracy drop. Additional analysis of cache reuse, page hit rate, and multi-GPU scaling confirms its practicality as an efficient system-level design for LLM training and inference research on resource-constrained hardware.

📄 PDF Abstract BibTeX arXiv:2509.12211

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

QCFuse: Query-Aware Cache Fusion via Compressed View for Efficient RAG Serving

2026-06-04 · Jianxin Yan, Wangze Ni, Zhenxin Li, Jiabao Jin 외 arxiv

Retrieval-augmented generation (RAG) improves large language model (LLM) answer quality by grounding generation in external evidence, but processing retrieved contexts makes the prefill stage a dominant serving cost. RAG…

Kalypso: Relational LLM Serving

2026-07-26 · Hojae Son, Md Ashraful Islam, Huy Gia Cao, Hui Guan 외 arxiv

Large language models are increasingly used as semantic operators for filtering, extracting, ranking, joining, and transforming unstructured data. Existing semantic query processing systems invoke request-centric LLM ser…

AsyncSpade: Efficient Test-Time Scaling with Asynchronous Sparse Decoding

2025-10-08 · Shuqing Luo, Yilin Guan, Pingzhi Li, Hanrui Wang 외 arxiv

Test-time scaling (TTS) boosts LLM reasoning via long chain-of-thought (CoT), but the linear KV-cache growth amplifies the memory-bound bottleneck of LLM decoding. Query-aware page-level sparse decoding can achieve state…

A$^2$ATS: Retrieval-Based KV Cache Reduction via Windowed Rotary Position Embedding and Query-Aware Vector Quantization

2025-02-18 · Junhui He, Junna Xing, Nan Wang, Rui Xu 외

Long context large language models (LLMs) pose significant challenges for efficient serving due to the large memory footprint and high access overhead of KV cache. Retrieval-based KV cache reduction methods can mitigate …

CPUPositionQuantizationRetrieval

Cache-Aware Prompt Compression:A Two-Tier Cost Model for LLM API Caching

2026-07-17 · Yan Song arxiv

Production LLM deployments combine two cost-reduction primitives: prompt caching (a discounted rate for re-used token prefixes) and prompt compression (fewer tokens sent). The compression literature has standardized on q…