paper-with-me

홈 › Papers

Activation-aware Probe-Query: Effective Key-Value Retrieval for Long-Context LLMs Inference

2025-02-19 · Qingfa Xiao, Jiachuan Wang, Haoyang Li, Cheng Deng, Jiaqi Tang, Shuangyin Li, Yongqi Zhang, Jun Wang, Lei Chen

Recent advances in large language models (LLMs) have showcased exceptional performance in long-context tasks, while facing significant inference efficiency challenges with limited GPU memory. Existing solutions first proposed the sliding-window approach to accumulate a set of historical \textbf{key-value} (KV) pairs for reuse, then further improvements selectively retain its subsets at each step. However, due to the sparse attention distribution across a long context, it is hard to identify and recall relevant KV pairs, as the attention is distracted by massive candidate pairs. Additionally, we found it promising to select representative tokens as probe-Query in each sliding window to effectively represent the entire context, which is an approach overlooked by existing methods. Thus, we propose \textbf{ActQKV}, a training-free, \textbf{Act}ivation-aware approach that dynamically determines probe-\textbf{Q}uery and leverages it to retrieve the relevant \textbf{KV} pairs for inference. Specifically, ActQKV monitors a token-level indicator, Activation Bias, within each context window, enabling the proper construction of probe-Query for retrieval at pre-filling stage. To accurately recall the relevant KV pairs and minimize the irrelevant ones, we design a dynamic KV cut-off mechanism guided by information density across layers at the decoding stage. Experiments on the Long-Bench and $\infty$ Benchmarks demonstrate its state-of-the-art performance with competitive inference quality and resource efficiency.

📄 PDF Abstract BibTeX arXiv:2502.13542

Code (0)

등록된 구현이 없습니다.

Tasks

GPURetrieval

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

LIRA: A Learning-based Query-aware Partition Framework for Large-scale ANN Search

2025-03-30 · Ximu Zeng, Liwei Deng, Penghao Chen, Xu Chen 외

Approximate nearest neighbor search is fundamental in information retrieval. Previous partition-based methods enhance search efficiency by probing partial partitions, yet they face two common issues. In the query phase, …

Information Retrieval

Where and What Matters: Sensitivity-Aware Task Vectors for Many-Shot Multimodal In-Context Learning

2025-11-11 · Ziyu Ma, Chenhui Gou, Yiming Hu, Yong Wang 외 arxiv

Large Multimodal Models (LMMs) have shown promising in-context learning (ICL) capabilities, but scaling to many-shot settings remains difficult due to limited context length and high inference cost. To address these chal…

Reinforcement Learning

Detecting High-Stakes Interactions with Activation Probes

2025-06-12 · Alex McKenzie, Urja Pawar, Phil Blandfort, William Bankes 외

Monitoring is an important aspect of safely deploying Large Language Models (LLMs). This paper examines activation probes for detecting "high-stakes" interactions -- where the text indicates that the interaction might le…

Breaking the Pre-Sampling Barrier: Activation-Informed Difficulty-Aware Self-Consistency

2026-02-10 · Taewoong Yoon, Geunyeong Jeong, Geon Park, Sihyeong Yeom 외 arxiv

Self-Consistency (SC) is an effective decoding strategy that improves the reasoning performance of Large Language Models (LLMs) by generating multiple chain-of-thought reasoning paths and selecting the final answer via m…

Detection Without Correction: A Robust Asymmetry in Activation-Based Hallucination Probing

2026-03-20 · Dip Roy, Rajiv Misra, Sanjay Kumar Singh, Anisha Roy arxiv

Activation-based linear probing is widely proposed as a method for both detecting and correcting hallucinations in autoregressive language models. We present an empirical study across seven models spanning 117M to 7B par…