arXiv:2510.16439cs.CL2025-10被引 1

通过筛选关键词元,让大模型用更少输入高效运行

FrugalPrompt: Reducing Contextual Overhead in Large Language Models via Token Attribution

  • 用注意力分析法找出输入中最重要词元
  • 保留仅10%~30%词元仍保持90%以上性能
  • 适合追求推理效率的部署场景

人类沟通依赖简洁与推断,能从简略话语中重构丰富语义。相比之下,大语言模型虽表现优异,但依赖冗长输入,导致成本高、延迟大、碳排放多。这种开销源于典型提示中大量低效词元的存在,仅有少数词元承载主要语义。受认知语言学启发,我们提出FrugalPrompt框架,仅保留最具语义重要性的词元。利用两种先进词元归因方法GlobEnc和DecompX,为每个词元分配显著性得分,按得分排序保留前k%词元,生成精简提示。理论证明方法稳定,并在四项NLP任务上验证效果。实验显示保留率在10%~30%时性能下降小于5%,且不同任务表现不对称,提示可能存在任务干扰。本研究深化了对大模型性能-效率权衡的理解,划清了可容忍上下文稀疏的任务边界。

原文摘要 · Abstract (English)

Human communication heavily relies on laconism and inferential pragmatics, allowing listeners to successfully reconstruct rich meaning from sparse, telegraphic speech. In contrast, large language models (LLMs) owe much of their stellar performance to expansive input contexts, yet such verbosity inflates monetary costs, carbon footprint, and inference-time latency. This overhead manifests from the redundant low-utility tokens present in typical prompts, as only a fraction of tokens typically carries the majority of the semantic weight. Inspired by the aforementioned cognitive psycholinguistic processes, we address this inefficiency by introducing FrugalPrompt, a novel prompt compression framework for LLMs, which retains only the most semantically significant tokens. Leveraging two state-of-the-art token attribution methods, GlobEnc and DecompX, we assign salience scores to every token in an input sequence, rank them to retain the top-k% tokens, and obtain a sparse frugalized prompt. We establish the theoretical stability of our approach and provide strong empirical results across a suite of four NLP tasks to study the trade-off between the portion of retained tokens and performance. Experimental findings across retention settings reveal asymmetric performance patterns that suggest potential task contamination effects. We posit that our work contributes to a more nuanced understanding of LLM behavior in performance-efficiency trade-offs and delineates the boundary between tasks tolerant of contextual sparsity and those requiring exhaustive context.

提示压缩大模型优化词元归因

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