paper-with-me

Papers

Compressed Context Memory For Online Language Model Interaction

2023-12-06 · Jang-Hyun Kim, Junyoung Yeom, Sangdoo Yun, Hyun Oh Song

This paper presents a context key/value compression method for Transformer language models in online scenarios, where the context continually expands. As the context lengthens, the attention process demands increasing memory and computations, which in turn reduces the throughput of the language model. To address this challenge, we propose a compressed context memory system that continually compresses the accumulating attention key/value pairs into a compact memory space, facilitating language model inference in a limited memory space of computing environments. Our compression process involves integrating a lightweight conditional LoRA into the language model's forward pass during inference, without the need for fine-tuning the model's entire set of weights. We achieve efficient training by modeling the recursive compression process as a single parallelized forward computation. Through evaluations on conversation, personalization, and multi-task learning, we demonstrate that our approach achieves the performance level of a full context model with $5\times$ smaller context memory size. We further demonstrate the applicability of our approach in a streaming setting with an unlimited context length, outperforming the sliding window approach. Codes are available at https://github.com/snu-mllab/context-memory.

📄 PDF Abstract BibTeX arXiv:2312.03414

Code (1)

snu-mllab/context-memory 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingmodelMulti-Task Learning

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Residual Connection 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…

Similar Papers 제목 키워드 기반

Remember what you did?: Learning Behavioral Memories for Partially Observable Object Manipulation

2026-06-19 · Kuancheng Wang, Seungho Yeom, Jinglin Cao, Yuheng Zhi 외 arxiv

Long horizon, contact-rich manipulation is inherently partially observable. This is as a single visual observation rarely captures a robot's full action context, including prior attempts, interactions, or progress. Conse…

Deep Context-Aware Recommender System Utilizing Sequential Latent Context

2019-09-09 · Amit Livne, Moshe Unger, Bracha Shapira, Lior Rokach

Context-aware recommender systems (CARSs) apply sensing and analysis of user context in order to provide personalized services. Adding context to a recommendation model is challenging, since the addition of context may i…

Collaborative FilteringDecoderRecommendation Systems

State Contamination in Memory-Augmented LLM Agents

2026-05-16 · Yian Wang, Agam Goyal, Yuen Chen, Hari Sundaram arxiv

LLM agents increasingly rely on persistent state, including transcripts, summaries, retrieved context, and memory buffers, to support long-horizon interaction. This makes safety depend not only on individual model output…

Trellis: Learning to Compress Key-Value Memory in Attention Models

2025-12-29 · Mahdi Karami, Ali Behrouz, Praneeth Kacham, Vahab Mirrokni arxiv

Transformers, while powerful, suffer from quadratic computational complexity and the ever-growing Key-Value (KV) cache of the attention mechanism. This paper introduces Trellis, a novel Transformer architecture with boun…

Lightweight LLM Agent Memory with Small Language Models

2026-04-09 · Jiaquan Zhang, Chaoning Zhang, Shuxu Chen, Zhenzhen Huang 외 arxiv

Although LLM agents can leverage tools for complex tasks, they still need memory to maintain cross-turn consistency and accumulate reusable information in long-horizon interactions. However, retrieval-based external memo…