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

位置ID至关重要:一种增强的位置布局用于大语言模型的高效上下文压缩

Position IDs Matter: An Enhanced Position Layout for Efficient Context Compression in Large Language Models

NLP Lab, School of Computer Science and Engineering, Northeastern University, Shenyang, China(东北大学计算机科学与工程学院自然语言处理实验室);NiuTrans Research, Shenyang, China(NiuTrans研究院)

Runsong Zhao, Xin Liu, Xinyu Liu, Pengcheng Huang, Chunyang Xiao, Tong Xiao, Jingbo Zhu

AI总结:

本文提出增强位置布局(EPL),通过调整位置ID最小化上下文与特殊标记距离,提升大语言模型上下文压缩能力,在问答和视觉任务上分别获得1.9 ROUGE-1和2.6%准确率提升。

摘要:

使用特殊标记(例如,要点、记忆或压缩标记)来压缩上下文信息是大语言模型(LLMs)的常见做法。然而,现有方法常常忽略了位置编码在模型中固有地引入局部归纳偏差,导致压缩过程忽略整体的上下文依赖关系。我们提出了增强位置布局(EPL),一种简单而有效的方法,仅通过调整位置ID(指定标记位置的数值标识符)来提升LLMs的上下文压缩能力。EPL最小化上下文标记与其对应的特殊标记之间的距离,同时保持上下文标记、特殊标记和后续标记之间位置ID的序列顺序。将EPL集成到我们性能最佳的上下文压缩模型中,在域外问答数据集上平均实现了1.9的ROUGE-1 F1提升。当扩展到多模态场景时,EPL使视觉压缩LLMs的平均准确率提高了2.6个百分点。

英文摘要:

Using special tokens (e.g., gist, memory, or compressed tokens) to compress context information is a common practice for large language models (LLMs). However, existing approaches often neglect that position encodings inherently induce local inductive biases in models, causing the compression process to ignore holistic contextual dependencies. We propose \textbf{Enhanced Position Layout (EPL)}, a simple yet effective method that improves the context compression capability of LLMs by only adjusting position IDs, the numerical identifiers that specify token positions. EPL minimizes the distance between context tokens and their corresponding special tokens and at the same time maintains the sequence order in position IDs between context tokens, special tokens, and the subsequent tokens. Integrating EPL into our best performing context compression model results in a 1.9 ROUGE-1 F1 improvement on out-of-domain question answering datasets on average. When extended to multimodal scenarios, EPL leads to an average accuracy gain of 2.6 points for vision compression LLMs.

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

↑