Lune

NeurIPS2024顶会

StreamingDialogue: Prolonged Dialogue Learning via Long Context Compression with Minimal Losses

Jianan Li, Quan Tu, Cunli Mao, Zhengtao Yu, Ji-Rong Wen, Rui Yan

摘要

Standard Large Language Models (LLMs) struggle with handling dialogues with long contexts due to efficiency and consistency issues. According to our observation, dialogue contexts are highly structured, and the special token of End-of-Utterance (EoU) in dialogues has the potential to aggregate information. We refer to the EoU tokens as ``conversational attention sinks'' (conv-attn sinks). Accordingly, we introduce StreamingDialogue, which compresses long dialogue history into conv-attn sinks with minimal losses, and thus reduces computational complexity quadratically with the number of sinks (i.e., the number of utterances). Current LLMs already demonstrate the ability to handle long context window, e.g., a window size of 200K or more. To this end, by compressing utterances into EoUs, our method has the potential to handle more than 200K of utterances, resulting in a prolonged dialogue learning. In order to minimize information losses from reconstruction after compression, we design two learning strategies of short-memory reconstruction (SMR) and long-memory reactivation (LMR). Our method outperforms strong baselines in dialogue tasks and achieves a 4 ×\times speedup while reducing memory usage by 18 ×\times compared to dense attention recomputation.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Efficient Streaming Language Models with Attention Sinks 引用了 Big Bird: Transformers for Longer Sequences
  • Efficient Streaming Language Models with Attention Sinks 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Efficient Streaming Language Models with Attention Sinks 引用了 YaRN: Efficient Context Window Extension of Large Language Models
  • Efficient Streaming Language Models with Attention Sinks 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness 引用了 Big Bird: Transformers for Longer Sequences
  • ReFusion: A Diffusion Large Language Model with Parallel Autoregressive Decoding 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning 引用了 Big Bird: Transformers for Longer Sequences
  • FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Exploring Attention Attractors in Large Language Models 引用了 Efficient Streaming Language Models with Attention Sinks
  • Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoning 引用了 Efficient Streaming Language Models with Attention Sinks
  • Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoning 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • ResFormer: All-Time Reservoir Memory for Long Sequence Classification 引用了 Big Bird: Transformers for Longer Sequences
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper6

  1. ReFusion: A Diffusion Large Language Model with Parallel Autoregressive DecodingJia-Nan Li, Jian Guan, Wei Wu, Chongxuan LiICLR 2026 · 17 次引用
  2. Fortify the Shortest Stave in Attention: Enhancing Context Awareness of Large Language Models for Effective Tool UseYuhan Chen, Ang Lv, Ting-En Lin, Changyu Chen 等ACL 2024 · 7 次引用
  3. Exploring Attention Attractors in Large Language ModelsZiheng Wang, Zihao Yue, Wenxuan Wang, Qin JinACL 2026
  4. Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and ReasoningYu Fu, Zefan Cai, Abedelkadir Asi, Wayne Xiong 等ICLR 2025
  5. ResFormer: All-Time Reservoir Memory for Long Sequence ClassificationHongbo Liu, Jia XuEMNLP 2025

它引用的 Paper17

  1. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
  2. Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie 等NeurIPS 2020 · 3,159 次引用
  3. FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningTri DaoICLR 2024 · 2,600 次引用
  4. Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han 等ICLR 2024 · 1,714 次引用
  5. YaRN: Efficient Context Window Extension of Large Language ModelsBowen Peng, Jeffrey Quesnelle, Honglu Fan, Enrico ShippoleICLR 2024 · 508 次引用

相关 Paper

  1. SirLLM: Streaming Infinite Retentive LLMYao Yao, Zuchao Li, Hai ZhaoACL 2024
  2. When Attention Sink Emerges in Language Models: An Empirical ViewXiangming Gu, Tianyu Pang, Chao Du, Qian Liu 等ICLR 2025
  3. Improving Long Dialogue Summarization with Semantic Graph RepresentationBobby Yilun Hua, Zhaoyuan Deng, Kathleen R. McKeownACL Findings 2023 · 7 次引用
  4. Attention Sinks: A 'Catch, Tag, Release' Mechanism for EmbeddingsStephen Zhang, Mustafa Khan, Vardan PapyanNeurIPS 2025 · 18 次引用
  5. Rethinking Token Reduction for Large Vision-Language ModelsYi Wang, Haofei Zhang, Qihan Huang, Anda Cao 等CVPR 2026 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖