LatentPress: Context Compression Beyond Text and Vision

Zhengze Zhou, Hejian Sang

arXiv:2609.01507 · 2026-09-04 공개 · arXiv · PDF

long-context language-models context-compression memory-tokens ultrachat longbench-qa soft-tokens latent-press

Abstract

Compressed context is usually carried as human-readable text or as rendered images that must be decoded, even when its consumer is a language model. We introduce LatentPress, which writes conversational histories and long documents into a third representation: continuous memory tokens that a frozen decoder reads directly through its input-embedding interface, with no text reconstruction at inference. A small reader-matched writer compresses 4-16times while training only an adapter (4.2M-26.2M parameters, sim!0.1% of the decoder). On LongMemEval, LatentPress reaches 0.504 accuracy at 7.70times compression versus 0.490 for uncompressed evidence, outperforming text summaries (0.184) and OCR-based compression (0.426 to 0.312). On LongBench-QA, in-domain writers match or exceed raw-context reading at 4-8times compression, while 16times trails raw. Writing takes 43ms per conversation, roughly an order of magnitude faster than text summarization or OCR reconstruction, and reading is 5-9times faster than raw context or cached OCR. We validate the interface under two transfer settings, zero-shot from UltraChat to LongMemEval memory QA and from LongMemEval-derived QA to unseen LongBench document domains, establishing direct soft tokens as a practical machine-facing context interface beyond text and vision. The implementation of the experiments could be found at: https://github.com/xuyd16ai/context_softtoken_compress .

한국어 요약

한 줄 요약

LatentPress는 언어 모델이 텍스트 복원 없이 직접 읽을 수 있는 연속 메모리 토큰을 생성하여 대규모 컨텍스트를 압축하는 새로운 인터페이스를 제시한다.

핵심 기여도

핵심 아이디어

기존의 압축 컨텍스트는 텍스트나 이미지 형태로 저장되어 언어 모델이 사용하기 전에 복호화가 필요했다. LatentPress는 이 문제를 해결하기 위해 **연속 메모리 토큰**(continuous memory tokens)이라는 새로운 표현 방식을 도입한다. 이 토큰은 언어 모델의 입력 임베딩 인터페이스를 통해 직접 읽히며, 텍스트 복원 과정이 필요 없다.

**Writer-Reader 구조**에서 Writer는 텍스트를 연속 벡터로 매핑하고, Reader는 이 벡터를 디코더의 입력 임베딩에 직접 전달한다. 이 구조는 대화 기록과 긴 문서 모두에 적용 가능하며, 압축률은 입력의 구조에 따라 조절된다. 예를 들어, 대화는 구조화된 기반 일정에 따라, 문서는 일관된 비율로 압축된다.

기술적 접근법

주요 결과

의의 및 한계

LatentPress는 언어 모델이 텍스트나 이미지 없이 직접 연속 토큰을 읽는 기반 인터페이스를 제시하며, **UltraChat → LongMemEval**, **LongMemEval → LongBench**의 두 가지 전이 설정에서 검증되었다. 이는 기계 중심 컨텍스트 인터페이스의 실용성을 입증한다.

하지만, **압축률 할당**은 여전히 수작업 휴리스틱에 의존하며, 자동화된 방식은 미래 연구 주제로 남아 있다. 또한, 16× 압축 시 성능 저하가 발생해 극한 압축 상황에서는 한계가 있다.

실용적 활용

LatentPress는 대화형 에이전트, 긴 문서 QA 시스템, 실시간 컨텍스트 압축이 필요한 산업 분야에 적용 가능하다. 특히, **UltraChat**과 **LongBench**와 같은 대규모 컨텍스트를 다루는 시스템에서 실시간 성능 향상과 저장 공간 절약에 기여할 수 있다.