CItruS: 面向长序列建模的分块指令感知状态逐出
CItruS: Chunked Instruction-aware State Eviction for Long Sequence Modeling
AI总结:
针对现有长序列建模状态逐出方法易丢失下游任务关键信息的问题,提出免训练的CItruS技术,结合任务注意力偏好与分块处理,在同内存预算下提升长序列任务性能且维持困惑度。
摘要:
随着大语言模型(LLM)的持续发展,长序列建模受到了广泛关注。近期研究发现,Transformer模型键值缓存中的大部分隐藏状态可以被丢弃(也称为逐出),且不会影响生成长序列时的困惑度性能。但我们发现,这些方法尽管能维持困惑度性能,却往往会丢弃对解决下游任务至关重要的信息,我们将这一问题称为信息忽略。为解决该问题,我们提出了分块指令感知状态逐出(CItruS),这是一种新型建模技术,可将对下游任务有用的注意力偏好整合到隐藏状态的逐出过程中。此外,我们还设计了一种分块序列处理方法以进一步提升效率。我们的免训练方法在相同内存预算下,于长序列理解和检索任务上表现优于多个强基线,同时还能保持语言建模的困惑度。代码和数据已发布于https://github.com/ybai-nlp/CItruS。
英文摘要:
Long sequence modeling has gained broad interest as large language models (LLMs) continue to advance. Recent research has identified that a large portion of hidden states within the key-value caches of Transformer models can be discarded (also termed evicted) without affecting the perplexity performance in generating long sequences. However, we show that these methods, despite preserving perplexity performance, often drop information that is important for solving downstream tasks, a problem which we call information neglect. To address this issue, we introduce Chunked Instruction-aware State Eviction (CItruS), a novel modeling technique that integrates the attention preferences useful for a downstream task into the eviction process of hidden states. In addition, we design a method for chunked sequence processing to further improve efficiency. Our training-free method exhibits superior performance on long sequence comprehension and retrieval tasks over several strong baselines under the same memory budget, while preserving language modeling perplexity. The code and data have been released at https://github.com/ybai-nlp/CItruS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。