arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.22109cs.CLcs.AI
收藏

渐进遗忘:用于扩展Transformer上下文窗口的对数压缩

Gradual Forgetting: Logarithmic Compression for Extending Transformer Context Windows

Department of Computer Science, Indiana University Bloomington(计算机科学系,印第安纳大学布卢明顿分校);Department of Psychological and Brain Sciences, Indiana University Bloomington(心理学与脑科学系,印第安纳大学布卢明顿分校)

Billy Dickson, Zoran Tiganj

AI总结:

提出一种修改输入表示而非架构的对数压缩方法,受人类记忆模型启发,在WikiText-103和PG-19上降低困惑度,有效扩展Transformer长距离记忆。

摘要:

大多数长上下文处理方法通过集成循环机制或辅助记忆模块等机制来增加Transformer内部架构的复杂性。在这项工作中,我们提出了一种替代方法,该方法修改输入表示本身,而非Transformer架构。受人类记忆认知模型的启发,我们的方法对输入令牌应用尺度不变的对数压缩。生成的压缩表示由标准的、未修改的Transformer处理,保持了架构的简洁性。我们在WikiText-103和PG-19语言建模基准上评估了这种方法,与未压缩的基线相比,困惑度有所降低。此外,随着压缩时间上下文的延长,性能持续提升,这表明输入级别的对数压缩是扩展Transformer长距离记忆的一种简单有效的方法。

英文摘要:

Most approaches to long-context processing increase the complexity of the transformer's internal architecture by integrating mechanisms such as recurrence or auxiliary memory modules. In this work, we introduce an alternative approach that modifies the input representation itself, rather than the transformer architecture. Inspired by cognitive models of human memory, our method applies a scale-invariant logarithmic compression to the input tokens. The resulting compressed representation is processed by a standard, unmodified transformer, preserving architectural simplicity. We evaluate this approach on the WikiText-103 and PG-19 language modeling benchmarks, showing a reduction in perplexity compared to uncompressed baselines. Moreover, performance improves consistently with longer compressed temporal contexts, showing that input-level logarithmic compression is a simple and effective way to extend a transformer's long-range memory.

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

↑