paper-with-me

홈 › Papers

Autoencoding-Free Context Compression for LLMs via Contextual Semantic Anchors

2025-10-10 · Xin Liu, Runsong Zhao, Pengcheng Huang, Xinyu Liu, Junyi Xiao, Chunyang Xiao, Tong Xiao, Shengxiang Gao, Zhengtao Yu, Jingbo Zhu arxiv

Context compression is an advanced technique that accelerates large language model (LLM) inference by converting long inputs into compact representations. Existing methods primarily rely on autoencoding tasks to train special compression tokens to represent contextual semantics. While autoencoding tasks enable compression tokens to acquire compression capabilities, we remark that such capabilities potentially conflict with actual downstream task requirements, prevent the models from learning the features more beneficial for real-world usage. Based on this observation, we propose Semantic-Anchor Compression (SAC), a novel method that shifts from autoencoding task based compression to an architecture that is equipped with this compression capability \textit{a priori}. Instead of training models to compress contexts through autoencoding tasks, SAC directly selects so-called anchor tokens from the original context and aggregates contextual information into their key-value (KV) representations. To ensure that anchors can effectively collect information, SAC introduces two key designs: (1) anchor embedding, a learnable embedding vector attached to the selected anchor tokens to mark compression carriers and (2) bidirectional attention modification, which enables anchor tokens to integrate information from the entire context. Experimental results show that SAC consistently outperforms existing context compression methods across different compression ratios and model sizes on question-answering and long-context summarization tasks. Our data, model and code have been released at \href{https://github.com/lx-Meteors/SAC}{https://github.com/lx-Meteors/SAC}.

📄 PDF Abstract BibTeX arXiv:2510.08907

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Dodo: Dynamic Contextual Compression for Decoder-only LMs

2023-10-03 · Guanghui Qin, Corby Rosset, Ethan C. Chau, Nikhil Rao 외

Transformer-based language models (LMs) are inefficient in long contexts. We propose Dodo, a solution for context compression. Instead of one vector per token in a standard transformer model, Dodo represents text with a …

DecoderLanguage ModelingLanguage ModellingQuestion Answering

Optical Context Compression Is Just (Bad) Autoencoding

2025-12-03 · Ivan Yee Lee, Cheng Yang, Taylor Berg-Kirkpatrick arxiv

DeepSeek-OCR shows that rendered text can be reconstructed from a small number of vision tokens, sparking excitement about using vision as a compression medium for long textual contexts. But this pipeline requires render…

When Do Hallucinations Arise? A Graph Perspective on the Evolution of Path Reuse and Path Compression

2026-04-04 · Xinnan Dai, Kai Yang, Cheng Luo, Shenglai Zeng 외 arxiv

Reasoning hallucinations in large language models (LLMs) often appear as fluent yet unsupported conclusions that violate either the given context or underlying factual knowledge. Although such failures are widely observe…

Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression

2024-08-28 · Haowen Hou, Fei Ma, Binwen Bai, Xinxin Zhu 외

Large Language Models (LLMs) have garnered widespread attention due to their remarkable performance across various tasks. However, to mitigate the issue of hallucinations, LLMs often incorporate retrieval-augmented pipel…

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

2023-07-13 · Tao Ge, Jing Hu, Lei Wang, Xun Wang 외

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 pur…

GPULanguage ModelingLanguage ModellingLarge Language Model+3