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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Jia-Nan, Tu, Quan, Mao, Cunli, Yu, Zhengtao, Wen, Ji-Rong, Yan, Rui
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917826169667584
author Li, Jia-Nan
Tu, Quan
Mao, Cunli
Yu, Zhengtao
Wen, Ji-Rong
Yan, Rui
author_facet Li, Jia-Nan
Tu, Quan
Mao, Cunli
Yu, Zhengtao
Wen, Ji-Rong
Yan, Rui
contents 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 \textit{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.
format Preprint
id arxiv_https___arxiv_org_abs_2403_08312
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle StreamingDialogue: Prolonged Dialogue Learning via Long Context Compression with Minimal Losses
Li, Jia-Nan
Tu, Quan
Mao, Cunli
Yu, Zhengtao
Wen, Ji-Rong
Yan, Rui
Computation and Language
Artificial Intelligence
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 \textit{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.
title StreamingDialogue: Prolonged Dialogue Learning via Long Context Compression with Minimal Losses
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2403.08312