TopoCompress: Long Context Compression via Graph-Wired Semantic Trajectories

Daniel Agyei Asante, Yang Li
8/31/2026
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Long-context compression is essential for reducing the cost and latency of large language model inference. However, existing methods can fragment important evidence, require additional training or alignment, and often depend on the target model for effective compression. We introduce TopoCompress, a training-free and model-agnostic framework that compresses long contexts by selecting coherent semantic spans. TopoCompress first scores each span using dense and lexical query relevance together with semantic acceleration. It then constructs a hybrid graph that connects spans based on semantic similarity and sequential adjacency, and propagates the query-guided relevance scores over the graph. Across five long-context tasks-HotpotQA, 2WikiMQA, MuSiQue, Qasper, and MultiFieldQA-en-TopoCompress consistently outperforms strong compression baselines. Notably, TopoCompress achieves performance comparable to the strongest baseline while using a 4x smaller compression budget, and provides a 1.41x smaller compression time over the fastest baseline.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{asante2026topocompress,
  title  = {TopoCompress: Long Context Compression via Graph-Wired Semantic Trajectories},
  author = {Daniel Agyei Asante and Yang Li},
  year   = {2026},
  eprint = {2608.30811},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.30811v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.30811.svg)](https://codeofpaper.com/paper/2608.30811)

Discussion