LLMSteer:通过在重用上下文上引导注意力改进长上下文LLM推理
LLMSteer: Improving Long-Context LLM Inference by Steering Attention on Reused Contexts
AI总结:
本文提出无需微调的LLMSteer框架,通过查询无关的注意力引导在重用上下文上改进长上下文LLM推理,将性能差距缩小65.9%并将延迟降低最多4.8倍。
摘要:
尽管大语言模型(LLMs)在复杂任务上表现出色,但它们仍面临较长上下文理解能力不足和计算成本高的问题。为了平衡效率与质量,我们提出了LLMSteer,一个无需微调的框架,通过查询无关的注意力引导来增强LLMs。在流行的LLMs和数据集上测试表明,与最近的注意力引导方法相比,LLMSteer将性能差距缩小了65.9%,并将运行时延迟降低了最多4.8倍。
英文摘要:
As large language models (LLMs) show impressive performance on complex tasks, they still struggle with longer contextual understanding and high computational costs. To balance efficiency and quality, we introduce LLMSteer, a fine-tuning-free framework that enhances LLMs through query-independent attention steering. Tested on popular LLMs and datasets, LLMSteer narrows the performance gap with baselines by 65.9% and reduces the runtime delay by up to 4.8x compared to recent attention steering methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。