FBQ:从首个生成Token学习未来位置探针的LLM KV缓存查询方法
Faster and Better Query (FBQ): Learning Future-Position Probes from the First Generated Token
Faster and Better Query(FBQ)利用prefill阶段末尾已可获得的第一个输出token嵌入,为后续7个位置学习加性偏移,构造低成本伪查询以近似未来解码查询。在LongBench上,FBQ在相同缓存预算下与八步Lookahead Q-Cache表现相当,且仅需一次前向传播即可算出全部探针查询。
arXiv:2611.33679v1 Announce Type: new Abstract: When a large language model (LLM) evicts prompt keys and values at the end of prefill, it must decide what to keep before it sees the queries from subsequent decoding steps. Generating a draft continuation can approximate those queries at the cost of extra autoregressive steps. Can we use the embedding of the first output token, already available from the final prefill logits, to construct low-cost pseudo queries that approximate future decoding queries? We start with FTQ-8, which places eight copies of the first token ID at consecutive future positions and reads their attention to the prompt in one causal forward pass. Each copy sees a different prefix, but a generic opening such as the offers a poor literal guess for seven successive tokens. Faster and Better Query (FBQ) preserves the first embedding and learns an additive offset at each of the seven remaining positions. We train these offsets to predict the average prompt attention of a full-cache continuation. On LongBench, FBQ performs comparably to eight-step Lookahead Q-Cache at the same cache budget, using a single forward pass to compute all probe queries.
来源:arXiv (AI + Vision + Imaging) · arxiv.org