arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.02631cs.CL
收藏

跨家族推测预填:无训练长上下文压缩与小型草稿模型

Cross-Family Speculative Prefill: Training-Free Long-Context Compression with Small Draft Models

Shubhangi Upasani, Ravi Shanker Raju, Bo Li, Mengmeng Ji, John Long, Chen Wu, Urmish Thakker, Guangtao Wang

AI总结:

本文研究跨家族推测预填技术,利用不同模型家族的轻量草稿模型实现无训练提示压缩,保留90-100%的完整提示性能并显著降低TTFT,表明推测预填依赖任务先验和语义结构。

摘要:

提示长度是代理大语言模型(LLM)工作负载的主要瓶颈,重复推理步骤和多调用循环导致预填成本高。近期研究表明,基于注意力的token重要性估计可实现无训练提示压缩,但假设存在与目标模型相同分词器的草稿模型。然而,代理流水线常使用无较小同族草稿模型的模型。本文研究跨家族推测预填,利用不同模型家族的轻量草稿模型对目标模型进行提示压缩。使用与前期工作相同的推测预填机制,评估了多种跨家族草稿-目标组合,包括Qwen、LLaMA和DeepSeek模型。在广泛的任务中发现,基于注意力的token重要性估计在不同模型家族间可靠转移,尽管模型架构和分词器存在差异。跨模型提示压缩几乎保留90~100%的完整提示基线性能,并在某些情况下因去噪效应略微提高精度,同时显著降低时间到第一个token(TTFT)。这些结果表明,推测预填主要依赖任务先验和语义结构,因此成为通用的提示压缩原语。我们讨论了这些发现对代理系统的影响,其中重复长上下文推理和异构模型堆栈使跨模型提示压缩既必要又可行。

英文摘要:

Prompt length is a major bottleneck in agentic large language model (LLM) workloads, where repeated inference steps and multi-call loops incur substantial prefill cost. Recent work on speculative prefill demonstrates that attention-based token importance estimation can enable training-free prompt compression, but this assumes the existence of a draft model that shares the same tokenizer as the target model. In practice, however, agentic pipelines frequently employ models without any smaller in-family draft model. In this work, we study cross-family speculative prefill, where a lightweight draft model from one model family is used to perform prompt compression for a target model from a different family. Using the same speculative prefill mechanism as prior work, we evaluate a range of cross-family draft-target combinations, including Qwen, LLaMA, and DeepSeek models. Across a broad diversity of tasks, we find that attention-based token importance estimation transfers reliably across different model families despite differences in model architectures and tokenizers between draft and target models. Cross-model prompt compression largely retains 90~100% of full-prompt baseline performance and, in some cases, slightly improves accuracy due to denoising effects, while delivering substantial reductions in time to first token (TTFT). These results suggest that speculative prefill depends mainly on task priors and semantic structure, thus serving as a generalizable prompt compression primitive. We discuss the implications of our findings for agentic systems, where repeated long-context inference and heterogeneous model stacks make cross-model prompt compression both necessary and practical.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑