Reproduce “Sentence-Anchored Gist Compression for Long-Context LLMs” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Dmitrii Tarasov, Elizaveta Goncharova, Kuznetsov Andrey

FusionBrainLab and HSE University researchers developed Sentence-Anchored Gist Compression, a method that uses special gist tokens placed at sentence boundaries to reduce memory and computational demands for long-context Large Language Models. This approach achieves KV-cache compression rates up to 8x, notably maintaining strong performance on both short and long-context benchmarks.

Key insights

  • Placing gist tokens at sentence boundaries aligns compression with natural semantic units, enabling more coherent information aggregation.
  • The standard Language Modeling (LM) objective is sufficient for training effective context compression without requiring auxiliary reconstruction losses.
  • A multi-phase training protocol, starting with gist token warm-up, is critical for successfully integrating the compression mechanism into pre-trained LLMs and maintaining performance.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.