paper-with-me

홈 › Papers

In-context Autoencoder for Context Compression in a Large Language Model

2023-07-13 · Tao Ge, Jing Hu, Lei Wang, Xun Wang, Si-Qing Chen, Furu Wei

We propose the In-context Autoencoder (ICAE), leveraging the power of a large language model (LLM) to compress a long context into short compact memory slots that can be directly conditioned on by the LLM for various purposes. ICAE is first pretrained 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, it is fine-tuned on instruction data for producing desirable responses to various prompts. Experiments demonstrate that our lightweight ICAE, introducing about 1% additional parameters, effectively achieves $4\times$ context compression based on Llama, offering advantages in both improved latency and GPU memory cost during inference, and showing an interesting insight in memorization as well as potential for scalability. These promising results imply a novel perspective on the connection between working memory in cognitive science and representation learning in LLMs, revealing ICAE's significant implications in addressing the long context problem and suggesting further research in LLM context management. Our data, code and models are available at https://github.com/getao/icae.

📄 PDF Abstract BibTeX arXiv:2307.06945

Code (2)

getao/icae 공식 구현 pytorch
srgrace/contextual-compression pytorch

Tasks

GPULanguage ModelingLanguage ModellingLarge Language ModelManagementMemorizationRepresentation Learning

Similar Papers 제목 키워드 기반

Data Distribution Matters: A Data-Centric Perspective on Context Compression for Large Language Model

2026-02-02 · Kangtao Lv, Jiwei Tang, Langming Liu, Haibin Chen 외 arxiv

The deployment of Large Language Models (LLMs) in long-context scenarios is hindered by computational inefficiency and significant information redundancy. Although recent advancements have widely adopted context compress…

GMSA: Enhancing Context Compression via Group Merging and Layer Semantic Alignment

2025-05-18 · Jiwei Tang, Zhicheng Zhang, Shunlong Wu, Jingheng Ye 외

Large language models (LLMs) have achieved impressive performance in a variety of natural language processing (NLP) tasks. However, when applied to long-context scenarios, they face two challenges, i.e., low computationa…

Computational EfficiencyQuestion Answering

PoC: Performance-oriented Context Compression for Large Language Models via Performance Prediction

2026-03-20 · Runsong Zhao, Shilei Liu, Jiwei Tang, Langming Liu 외 arxiv

While context compression can mitigate the growing inference costs of Large Language Models (LLMs) by shortening contexts, existing methods that specify a target compression ratio or length suffer from unpredictable perf…

IPDAE: Improved Patch-Based Deep Autoencoder for Lossy Point Cloud Geometry Compression

2022-08-04 · Kang You, Pan Gao, Qing Li

Point cloud is a crucial representation of 3D contents, which has been widely used in many areas such as virtual reality, mixed reality, autonomous driving, etc. With the boost of the number of points in the data, how to…

Autonomous DrivingMixed Reality

Sentence-Anchored Gist Compression for Long-Context LLMs

2025-11-11 · Dmitrii Tarasov, Elizaveta Goncharova, Kuznetsov Andrey arxiv

This work investigates context compression for Large Language Models (LLMs) using learned compression tokens to reduce the memory and computational demands of processing long sequences. We demonstrate that pre-trained LL…