Résumé IA · arXiv: 2404.15420v1 · cs.CL

XC-Cache: Cross-Attending to Cached Context for Efficient LLM Inference

João Monteiro, Étienne Marcotte, Pierre-André Noël, Valentina Zantedeschi, David Vázquez, Nicolas Chapados, Christopher Pal, Perouz Taslakian
Article original · DOI 10.18653/v1/2024.findings-emnlp.896 Soumis à arXiv le 23 Avr. 2024 Publié dans Findings of the Association for Computational Linguistics: EMNLP 2024 (2024) Licence : CC BY 4.0 Aussi en : en

Comment lire ce résumé ? Guide illustré

Pour aller plus loin

  • Résumé Complet
  • Résumé vulgarisé
  • Article de blog
  • Abstract original
Le résumé n'est pas encore prêt

Cette synthèse vous a-t-elle été utile ?

Note : 0

Pourquoi avons-nous besoin de votes ?

Les votes sont utilisés pour déterminer si nous devons réexécuter nos outils de synthèse. Si le compte atteint -10, nos outils peuvent être redémarrés.

Figures et graphiques

Posez une question sur une figure en indiquant son numéro ou en utilisant son bouton de question pour demander une analyse visuelle. Au maximum deux figures et quatre panneaux par question. Les valeurs lues sur les graphiques sont approximatives ; vérifiez les données originales.

Instructions pour utiliser l'assistant IA ?

Outils pour cet article

Expliquer autrement 1 réécriture gratuite restante aujourd'hui
Enregistrer dans une collection Regroupez des articles en collections pour les comparer, les interroger et les exporter. Continuer avec Google Créer un compte gratuit Se connecter

Outils avancés Premium

Pour suivre un domaine de près : alertes de citations, diapositives de journal club, comparaison des versions et envoi vers Zotero. Découvrir Premium

Zotero Guide Zotero
Alertes de citation 14 articles le citent déjà : recevez chaque nouveau par email. Guide des alertes de citations
Qui travaille dessus ?

Parmi les 31 articles autour de celui-ci, le nom qui revient le plus : João Monteiro (3 articles)

3 autres personnes en signent plusieurs. La carte complète ajoute leurs institutions et leurs approches, d’après les articles des dernières années.

Continuer avec Google Créez un compte gratuit : votre première carte est offerte
Lettre hebdomadaire La dernière lettre de son domaine, « Intelligence artificielle cette semaine » du 30 novembre 2026 : Intelligence artificielle cette semaine : ce que mesurent vraiment les performances de l’IA · En recevoir une par email gratuitement

Les articles autour de celui-ci

Les voir sur une carte

Classés selon la proximité de leur titre et de leur résumé avec ceux de cet article. Sélectionnez-en pour les lire ensemble.

Les articles les plus proches

  1. Très proche Cite cet article
    KV-Kaizen: Learning Context-Adaptive Cache Compression Choices
    João Monteiro, Louis Béthune, A. Filippova et al. · 2026 · cité 1 fois · Pas encore résumé
    Résumé scientifique

    As the context size of text processed with an LLM grows, the size of KV caches can outstrip the memory allocated for the original model weights. This impacts LLM throughput negatively, since decoding is memory-bound and decode cost grows with cache size. Recent work alleviates this bottleneck by discarding the least relevant tokens. Eviction introduces a tension, since a one-off decision to discard content may prove detrimental later. Instead, we focus on alternative choices that can lead to cache compression without evicting tokens. We achieve this by learning a selector that is able to produce, based on context, a per-layer cache configuration towards an overall compression budget. The sel…

  2. Très proche
    SeDeM: Selective Decompression of Hidden-State Memories for Long-Context Question Answering
    Maryam Haghifam, Jason Cong, Yi-Zhou Sun · 2026 · cité 1 fois · Pas encore résumé
    Résumé scientifique

    Long-context inference with large language models (LLMs) is costly: self-attention during prefill scales quadratically with sequence length, and the key-value (KV) cache grows with the number of processed tokens. Larger context windows also do not ensure reliable evidence use. Context compression reduces this cost, but many soft-compression methods use LLMs as compressors and rely on compact memory tokens both to preserve information and to condition the decoder. We propose SeDeM, a selective decompression framework that decouples compact memory storage from decoder conditioning. SeDeM stores context as compact hidden-state memory blocks, selects query-relevant blocks, and decompresses only …

  3. Très proche
    Exploring Fine-Tuning for In-Context Retrieval and Efficient KV-Caching in Long-Context Language Models
    F. Molfese, Momchil Hardalov, Rexhina Blloshmi et al. · 2026 · Conference of the European Chapter of the Association for Computational Linguistics · cité 1 fois · Pas encore résumé
    Résumé scientifique

    With context windows of millions of tokens, Long-Context Language Models (LCLMs) can encode entire document collections, offering a strong alternative to conventional retrieval-augmented generation (RAG). However, it remains unclear whether fine-tuning strategies can improve long-context performance and translate to greater robustness under KV-cache compression techniques. In this work, we investigate which training strategies most effectively enhance LCLMs'ability to identify and use relevant information, as well as enhancing their robustness under KV-cache compression. Our experiments show substantial in-domain improvements, achieving gains of up to +20 points over the base model. However,…

  4. Proche
    Eliciting In-context Retrieval and Reasoning for Long-context Large Language Models
    Yifu Qiu, Varun Embar, Yi-Zhe Zhang et al. · 2025 · Annual Meeting of the Association for Computational Linguistics · cité 15 fois · Pas encore résumé
    Résumé scientifique

    Recent advancements in long-context language models (LCLMs) promise to transform Retrieval-Augmented Generation (RAG) by simplifying pipelines. With their expanded context windows, LCLMs can process entire knowledge bases and perform retrieval and reasoning directly -- a capability we define as In-Context Retrieval and Reasoning (ICR^2). However, existing benchmarks like LOFT often overestimate LCLM performance by providing overly simplified contexts. To address this, we introduce ICR^2, a benchmark that evaluates LCLMs in more realistic scenarios by including confounding passages retrieved with strong retrievers. We then propose three methods to enhance LCLM performance: (1) retrieve-then-g…

  5. Proche
    Lag-Relative Sparse Attention In Long Context Training
    Manlai Liang, Wanyi Huang, Man-Di Liu et al. · 2025 · arXiv.org · preprint, non relu par les pairs · cité 1 fois · Pas encore résumé
    Résumé scientifique

    Large Language Models (LLMs) have made significant strides in natural language processing and generation, yet their ability to handle long-context input remains constrained by the quadratic complexity of attention computation and linear-increasing key-value memory footprint. To reduce computational costs and memory, key-value cache compression techniques are commonly applied at inference time, but this often leads to severe performance degradation, as models are not trained to handle compressed context. Although there are more sophisticated compression methods, they are typically unsuitable for post-training because of their incompatibility with gradient-based optimization or high computatio…

  6. Proche
    In-context Autoencoder for Context Compression in a Large Language Model
    Tao Ge, Jing Hu, Xun Wang et al. · 2023 · Computation and Language · cité 240 fois · Résumé IA disponible
    Résumé scientifique

    We propose the In-context Autoencoder (ICAE) for context compression in a large language model (LLM). The ICAE has two modules: a learnable encoder adapted with LoRA from an LLM for compressing a long context into a limited number of memory slots, and a fixed decoder which is the target LLM that can condition on the memory slots for various purposes. We first pretrain the ICAE using both autoencoding and language modeling objectives on massive text data, enabling it to generate memory slots that accurately and comprehensively represent the original context. Then, we fine-tune the pretrained ICAE on a small amount of instruct data to enhance its interaction with various prompts for producing …

  7. Proche
    Retrospective Sparse Attention for Efficient Long-Context Generation
    S. Choi, Beomseok Kang, Dongwon Jo et al. · 2025 · arXiv.org · preprint, non relu par les pairs · cité 4 fois · Pas encore résumé
    Résumé scientifique

    Large Language Models (LLMs) are increasingly deployed in long-context tasks such as reasoning, code generation, and multi-turn dialogue. However, inference over extended contexts is bottlenecked by the Key-Value (KV) cache, whose memory footprint grows linearly with sequence length and dominates latency at each decoding step. While recent KV cache compression methods identify and load important few tokens, they focus predominantly on input contexts and fail to address the cumulative attention errors that arise during long decoding. In this paper, we introduce RetroAttention, a novel KV cache update technique that retrospectively revises past attention outputs using newly arrived KV entries …

  8. Proche
    AttnCache: Accelerating Self-Attention Inference for LLM Prefill via Attention Cache
    Dinghong Song, Yuan Feng, Yiwei Wang et al. · 2025 · arXiv.org · preprint, non relu par les pairs · cité 2 fois · Pas encore résumé
    Résumé scientifique

    Large Language Models (LLMs) are widely used in generative applications such as chatting, code generation, and reasoning. However, many realworld workloads such as classification, question answering, recommendation, and text embedding rely solely on the prefill stage of inference, where the model encodes input sequences without performing autoregressive decoding. In these prefill only scenarios, the self-attention computation becomes the primary performance bottleneck due to its quadratic complexity with respect to sequence length. In this paper, we observe that semantically different sentences often produce similar attention maps across layers and heads. Building on this insight, we propose…

Les travaux antérieurs sur lesquels il s’appuie

  1. Proche
    Long-Context Language Modeling with Parallel Context Encoding
    Howard Yen, Tianyu Gao, Danqi Chen · 2024 · Annual Meeting of the Association for Computational Linguistics · cité 106 fois · Pas encore résumé
    Résumé scientifique

    Extending large language models (LLMs) to process longer inputs is crucial for a wide range of applications. However, the substantial computational cost of transformers and limited generalization of positional encoding restrict the size of their context window. We introduce Context Expansion with Parallel Encoding (CEPE), a framework that can be applied to any existing decoder-only LLMs to extend their context window. CEPE employs a small encoder to process long inputs chunk by chunk, enabling the frozen decoder to utilize additional contexts via cross-attention. CEPE is efficient, generalizable, and versatile: trained with 8K-token documents, it extends the context window of LLAMA-2 to 128K…

  2. Proche
    Lost in the Middle: How Language Models Use Long Contexts
    Nelson F. Liu, Kevin Lin, John Hewitt et al. · 2023 · Computation and Language · cité 5 788 fois · Résumé IA disponible
    Résumé scientifique

    While recent language models have the ability to take long contexts as input, relatively little is known about how well they use longer context. We analyze language model performance on two tasks that require identifying relevant information within their input contexts: multi-document question answering and key-value retrieval. We find that performance is often highest when relevant information occurs at the beginning or end of the input context, and significantly degrades when models must access relevant information in the middle of long contexts. Furthermore, performance substantially decreases as the input context grows longer, even for explicitly long-context models. Our analysis provide…

  3. Proche
    Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inference
    Piotr Nawrot, Adrian La'ncucki, Marcin Chochowski et al. · 2024 · International Conference on Machine Learning · cité 145 fois · Pas encore résumé
    Résumé scientifique

    Transformers have emerged as the backbone of large language models (LLMs). However, generation remains inefficient due to the need to store in memory a cache of key-value representations for past tokens, whose size scales linearly with the input sequence length and batch size. As a solution, we propose Dynamic Memory Compression (DMC), a method for online key-value cache compression at inference time. Most importantly, the model learns to apply different compression ratios in different heads and layers. We retrofit pre-trained LLMs such as Llama 2 (7B, 13B and 70B) into DMC Transformers, achieving up to 7x throughput increase during auto-regressive inference on an NVIDIA H100 GPU. DMC is app…

  4. Proche
    Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inference
    Muhammad Adnan, Akhil Arunkumar, Gaurav Jain et al. · 2024 · Conference on Machine Learning and Systems · cité 181 fois · Pas encore résumé
    Résumé scientifique

    Transformers have emerged as the underpinning architecture for Large Language Models (LLMs). In generative language models, the inference process involves two primary phases: prompt processing and token generation. Token generation, which constitutes the majority of the computational workload, primarily entails vector-matrix multiplications and interactions with the Key-Value (KV) Cache. This phase is constrained by memory bandwidth due to the overhead of transferring weights and KV cache values from the memory system to the computing units. This memory bottleneck becomes particularly pronounced in applications that require long-context and extensive text generation, both of which are increa…

  5. Apparenté Une méthode qu’il utilise
    LLM2Vec: Large Language Models Are Secretly Powerful Text Encoders
    Parishad BehnamGhader, Vaibhav Adlakha, Marius Mosbach et al. · 2024 · arXiv.org · preprint, non relu par les pairs · cité 613 fois · Résumé IA disponible
    Résumé scientifique

    Large decoder-only language models (LLMs) are the state-of-the-art models on most of today's NLP tasks and benchmarks. Yet, the community is only slowly adopting these models for text embedding tasks, which require rich contextualized representations. In this work, we introduce LLM2Vec, a simple unsupervised approach that can transform any decoder-only LLM into a strong text encoder. LLM2Vec consists of three simple steps: 1) enabling bidirectional attention, 2) masked next token prediction, and 3) unsupervised contrastive learning. We demonstrate the effectiveness of LLM2Vec by applying it to 4 popular LLMs ranging from 1.3B to 8B parameters and evaluate the transformed models on English wo…

Les articles qui le citent

  1. Proche Utilise cet article en profondeur
    A Survey on Large Language Model Acceleration based on KV Cache Management
    Hao-Yang Li, Yiming Li, An-Xin Tian et al. · 2024 · Trans. Mach. Learn. Res. · cité 182 fois · Pas encore résumé
    Résumé scientifique

    Large Language Models (LLMs) have revolutionized a wide range of domains such as natural language processing, computer vision, and multi-modal tasks due to their ability to comprehend context and perform logical reasoning. However, the computational and memory demands of LLMs, particularly during inference, pose significant challenges when scaling them to real-world, long-context, and real-time applications. Key-Value (KV) cache management has emerged as a critical optimization technique for accelerating LLM inference by reducing redundant computations and improving memory utilization. This survey provides a comprehensive overview of KV cache management strategies for LLM acceleration, categ…

  2. Proche
    Efficient Prompt Compression with Evaluator Heads for Long-Context Transformer Inference
    WeiZhi Fei, Xue-Yan Niu, Guo-Qing Xie et al. · 2025 · Neural Information Processing Systems · cité 15 fois · Pas encore résumé
    Résumé scientifique

    Although applications involving long-context inputs are crucial for the effective utilization of large language models (LLMs), they also result in increased computational costs and reduced performance. To address this challenge, we propose an efficient, training-free prompt compression method that retains key information within compressed prompts. We identify specific attention heads in transformer-based LLMs, which we designate as evaluator heads, that are capable of selecting tokens in long inputs that are most significant for inference. Building on this discovery, we develop EHPC, an Evaluator Head-based Prompt Compression method, which enables LLMs to rapidly"skim through"input prompts b…

  3. Proche
    Cache the Encoder Within:Compact, Reusable Memory across LLM Queries
    Han-Lin Liu, Chun-Yu Liu, Chao-Fan Lin et al. · 2026 · Pas encore résumé
    Résumé scientifique

    Repeated queries over shared documents incur redundant encoding, while caching model states introduces persistent storage costs. Building on CoMem's intermediate-state interface, EncBank treats a pretrained LLM's lower layers as a reusable document encoder and compactly stores their outputs for an adapted upper-layer reader. A self-distilled suffix adapter is shared across storage precisions within each backbone, without quantization-specific retraining. Across five benchmark suites on three Qwen backbones spanning different sizes and full-attention and hybrid architectures, 4-bit storage keeps each reported benchmark aggregate within one score point of native-precision EncBank. In a fixed Q…

  4. Proche
    Stochastic KV Routing: Enabling Adaptive Depth-Wise Cache Sharing
    A. Filippova, D. Grangier, Marco Cuturi et al. · 2026 · arXiv.org · preprint, non relu par les pairs · cité 4 fois · Pas encore résumé
    Résumé scientifique

    Serving transformer language models with high throughput requires caching Key-Values (KVs) to avoid redundant computation during autoregressive generation. The memory footprint of KV caching is significant and heavily impacts serving costs. This work proposes to lessen these memory requirements. While recent work has largely addressed KV cache reduction via compression and eviction along the temporal axis, we argue that the \emph{depth} dimension offers an orthogonal and robust avenue for optimization. Although prior research suggests that a full cache for every layer is redundant, implementing cross-layer cache sharing remains a practical challenge; existing methods typically suffer from re…

  5. Apparenté
    TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Text
    Song-Shuo Lu, Hua Wang, Yu Rong et al. · 2024 · Conference on Empirical Methods in Natural Language Processing · cité 90 fois · Pas encore résumé
    Résumé scientifique

    Current Retrieval-Augmented Generation (RAG) systems concatenate and process numerous retrieved document chunks for prefill which requires a large volume of computation, therefore leading to significant latency in time-to-first-token (TTFT). To reduce the computation overhead as well as TTFT, we introduce TurboRAG, a novel RAG system that redesigns the inference paradigm of the current RAG system by first pre-computing and storing the key-value (KV) caches of documents offline, and then directly retrieving the saved KV cache for prefill. Hence, online computation of KV caches is eliminated during inference. In addition, we provide a number of insights into the mask matrix and positional embe…

Comment ces articles sont-ils trouvés ?

Nous comparons le titre et le résumé de cet article avec ceux de tous les articles résumés sur ce site, et avec les articles que Semantic Scholar recommande, ceux qu’il cite et ceux qui le citent (pour un article très cité, ses citations les plus récentes et, depuis OpenAlex, les plus citées). Parmi les travaux antérieurs et les suites, les articles qui s’utilisent en profondeur, une méthode qu’il utilise et les suites très citées remontent un peu. Les niveaux (très proche, proche, apparenté) viennent de la similarité des textes, pas d’un jugement de qualité ; * signale un article sans résumé, comparé par son titre. La phrase sous un article est écrite par une IA à partir des deux résumés : vérifiez-la dans les articles. Un article jugé hors sujet par trois lecteurs quitte la liste.

Mis à jour le 31 octobre 2026.

Le guide illustré des articles autour d’un article

Le résumé précédent a été créé il y a plus d'un an et peut être réexécuté (si nécessaire) en cliquant sur le bouton Exécuter ci-dessous.

Avertissement : Notre outil de synthèse basé sur l'IA et l'assistant virtuel fournis sur ce site Web peuvent ne pas toujours fournir des résumés complets ou des réponses exactes. Nous vous encourageons à examiner attentivement et à évaluer le contenu généré pour vous assurer de sa qualité et de sa pertinence par rapport à vos besoins.