arXiv:2606.20571cs.CLcs.AI2026-06

不依赖小模型,轻量压缩问答提示,提升边缘设备推理效率

Less is More: Lightweight Prompt Compression for Question Answering Applications on Edge Devices

论文配图:Less is More: Lightweight Prompt Compression for Question Answering Applications on Edge Devices
图 1 · 摘自论文原文
  • 两阶段句级压缩:先用实体识别和语义匹配构建答案与线索集
  • 在2000令牌预算内,准确率提升超30%,内存减少50%以上
  • 无需额外模型,适合手机等资源受限设备部署

在基于代理的问答应用中,检索增强生成(RAG)通过提供额外上下文提升大语言模型(LLMs)的响应准确性。然而,由于检索结果存在固有噪声且文档粒度粗,所获上下文常含大量冗余信息。此时,包含用户查询和相关检索内容的代理提示会导致大模型推理时产生不必要的计算开销。现有提示压缩方法通常依赖小型语言模型(SLMs)评估上下文重要性,但此类方法引入显著内存与计算负担,限制其在资源受限边缘设备上的部署。本文提出CORE,一种两阶段句级提示压缩方法,无需SLMs。第一阶段通过命名实体识别(NER)构建答案集,通过语义匹配构建线索集;第二阶段采用正交残差检索策略优化线索集,并设计基于空间邻近性的度量过滤答案集。两者结合形成最终压缩上下文。我们在NVIDIA Jetson AGX Orin边缘设备和华为Nova智能手机上实现CORE。实验表明,在2000令牌预算下,相比最先进基线,CORE准确率提升至少30.19%,内存使用降低至少50.47%,边缘设备速度提升至少1.94倍。相较于最先进的LLMLingua2方法,CORE在智能手机上能耗降低95.74%,凸显其在移动部署中的实用性和通用性。

原文摘要 · Abstract (English)

In agent-driven question answering (QA) applications, retrieval-augmented generation (RAG) is commonly introduced to enhance the response accuracy of large language models (LLMs) by providing additional context. Due to the inherent noise in retrieval results and the coarse granularity of document-level retrieval, the retrieved context often contains substantial redundant information. In this setting, the agent prompt, consisting of the user query and the associated retrieved context, leads to unnecessary computational overhead during LLM inference. Existing prompt compression methods typically rely on auxiliary small language models (SLMs) to estimate context importance. However, such approaches introduce significant memory and computational overhead, which limits their deployment on resource-constrained edge devices. In this paper, we propose CORE, a two-stage sentence-level prompt compression method that eliminates the need for SLMs. In the first stage, CORE constructs an answer set via named entity recognition (NER) and a clue set via semantic matching. In the second stage, CORE refines the clue set using an orthogonal residual retrieval strategy and designs a spatial proximity-based metric to filter the answer set. The two sets are then combined to form the final compressed context. We implement CORE on an NVIDIA Jetson AGX Orin edge device and a Huawei Nova smartphone. Experimental results demonstrate that within a 2000-token budget, CORE improves accuracy by at least 30.19% compared to state-of-the-art baselines, while reducing memory usage by at least 50.47% and achieving at least 1.94 times speedup on the edge device. Moreover, compared to the state-of-the-art LLMLingua2 method, CORE achieves a substantial energy reduction of 95.74% on the smartphone, highlighting its practicality and generalizability for mobile deployments.

提示压缩边缘计算问答系统轻量化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。