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

大语言模型作为令牌压缩机和解压机

Large Language Model as Token Compressor and Decompressor

Wenbing Li, Yiran Wang, Zikai Song, Jielei Zhang, Tianhao Zhao, Junkai Lin, Wei Yang

AI总结:

本文研究能否将现成的LLM适配为离散可变长度令牌压缩机和解压机以处理长上下文。设计了自表达自动编码框架,通过轻量LoRA适配器微调预训练LLM,将长文本映射为紧凑的学得潜在代码序列Z-令牌,并解码回自然语言或任务输出。

摘要:

在本文中,我们研究是否可以将现成的LLM适配为离散、可变长度的令牌压缩机和解压机,以处理长上下文。为此,我们设计了一种自表达的自动编码框架,通过轻量级LoRA适配器微调预训练的LLM,将长文本映射为紧凑的学得潜在代码序列,称为Z-令牌,并将其解码回自然语言或任务输出。所得到的表示是内容自适应的:较不可预测或信息密集的段可以接收更多的Z-令牌,而冗余区域则可以通过预算感知的长度正则化以更紧凑的方式表示。我们的方法在长上下文数据集如维基百科、CNN/DailyMail、HotpotQA和QuALITY上进行评估,显示其在减少有效上下文长度、生成阶段内存使用和端到端延迟的同时,保持了重建质量和下游性能。这种简单的设计支持从压缩上下文中直接解码和在Z-令牌空间中进行自回归生成,提供了一个实用的接口,用于高效长上下文推理。

英文摘要:

In this paper, we study whether an off-the-shelf LLM can be adapted into a discrete, variable-length token compressor and decompressor for long-context processing. To this end, we design a self-expressive autoencoding framework that fine-tunes a pretrained LLM with lightweight LoRA adapters to map long texts into compact sequences of learned latent codes, termed Z-tokens, and to decode them back into natural language or task outputs. The resulting representation is content-adaptive: less predictable or information-dense segments can receive more Z-tokens, while redundant regions can be represented more compactly through a budget-aware length regularizer. Our method is evaluated on long-context datasets such as Wikipedia, CNN/DailyMail, HotpotQA, and QuALITY, showing that it preserves reconstruction quality and downstream performance while reducing effective context length, generation-stage memory usage, and end-to-end latency. This simple design supports both direct decoding from compressed contexts and autoregressive generation in the Z-token space, providing a practical interface for efficient long-context inference.

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

↑