Boosting Long-Context Management via Query-Guided Activation Refilling

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Qian, Hongjin, Liu, Zheng, Zhang, Peitian, Dou, Zhicheng, Lian, Defu
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908375829184512
author Qian, Hongjin
Liu, Zheng
Zhang, Peitian
Dou, Zhicheng
Lian, Defu
author_facet Qian, Hongjin
Liu, Zheng
Zhang, Peitian
Dou, Zhicheng
Lian, Defu
contents Processing long contexts poses a significant challenge for large language models (LLMs) due to their inherent context-window limitations and the computational burden of extensive key-value (KV) activations, which severely impact efficiency. For information-seeking tasks, full context perception is often unnecessary, as a query's information needs can dynamically range from localized details to a global perspective, depending on its complexity. However, existing methods struggle to adapt effectively to these dynamic information needs. In the paper, we propose a method for processing long-context information-seeking tasks via query-guided Activation Refilling (ACRE). ACRE constructs a Bi-layer KV Cache for long contexts, where the layer-1 (L1) cache compactly captures global information, and the layer-2 (L2) cache provides detailed and localized information. ACRE establishes a proxying relationship between the two caches, allowing the input query to attend to the L1 cache and dynamically refill it with relevant entries from the L2 cache. This mechanism integrates global understanding with query-specific local details, thus improving answer decoding. Experiments on a variety of long-context information-seeking datasets demonstrate ACRE's effectiveness, achieving improvements in both performance and efficiency.
format Preprint
id arxiv_https___arxiv_org_abs_2412_12486
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Boosting Long-Context Management via Query-Guided Activation Refilling
Qian, Hongjin
Liu, Zheng
Zhang, Peitian
Dou, Zhicheng
Lian, Defu
Computation and Language
Artificial Intelligence
Information Retrieval
Processing long contexts poses a significant challenge for large language models (LLMs) due to their inherent context-window limitations and the computational burden of extensive key-value (KV) activations, which severely impact efficiency. For information-seeking tasks, full context perception is often unnecessary, as a query's information needs can dynamically range from localized details to a global perspective, depending on its complexity. However, existing methods struggle to adapt effectively to these dynamic information needs. In the paper, we propose a method for processing long-context information-seeking tasks via query-guided Activation Refilling (ACRE). ACRE constructs a Bi-layer KV Cache for long contexts, where the layer-1 (L1) cache compactly captures global information, and the layer-2 (L2) cache provides detailed and localized information. ACRE establishes a proxying relationship between the two caches, allowing the input query to attend to the L1 cache and dynamically refill it with relevant entries from the L2 cache. This mechanism integrates global understanding with query-specific local details, thus improving answer decoding. Experiments on a variety of long-context information-seeking datasets demonstrate ACRE's effectiveness, achieving improvements in both performance and efficiency.
title Boosting Long-Context Management via Query-Guided Activation Refilling
topic Computation and Language
Artificial Intelligence
Information Retrieval
url https://arxiv.org/abs/2412.12486