SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separator

Guoxuan Chen, Han Shi, Jiawei Li, Yihang Gao, Xiaozhe Ren +5 more
2/12/2026

No official code found. Best implementation: HKUDS/SepLLM (571 stars, last commit 2025-07-29).

Abstract

Large Language Models (LLMs) have exhibited exceptional performance across a spectrum of natural language processing tasks. However, their substantial sizes pose considerable challenges, particularly in computational demands and inference speed, due to their quadratic complexity. In this work, we have identified a key pattern: certain seemingly meaningless separator tokens (i.e., punctuations) contribute disproportionately to attention scores compared to semantically meaningful tokens. This observation suggests that information of the segments between these separator tokens can be effectively condensed into the separator tokens themselves without significant information loss. Guided by this insight, we introduce SepLLM, a plug-and-play framework that accelerates inference by compressing these segments and eliminating redundant tokens. Additionally, we implement efficient kernels for training acceleration. Experimental results across training-free, training-from-scratch, and post-training settings demonstrate SepLLM's effectiveness. Notably, using the Llama-3-8B backbone, SepLLM achieves over 50% reduction in KV cache on the GSM8K-CoT benchmark while maintaining comparable performance. Furthermore, in streaming settings, SepLLM effectively processes sequences of up to 4 million tokens or more while maintaining consistent language modeling capabilities.

View on arXivView PDF

Code Implementations(1)

HKUDS/SepLLMCommunity100%

[ICML 2025] "SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separator"

57147C, C++Dec 11, 20241 years ago
inference-speedlarge-language-modelsllms

Similar Papers

Cite this paper

@article{chen2026sepllm,
  title  = {SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separator},
  author = {Guoxuan Chen and Han Shi and Jiawei Li and Yihang Gao and Xiaozhe Ren and Yimeng Chen and Xin Jiang and Zhenguo Li and Weiyang Liu and Chao Huang},
  year   = {2026},
  eprint = {2412.12094},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2412.12094},
  journal = {ICML 2024 2024}
}

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/2412.12094.svg)](https://codeofpaper.com/paper/2412.12094)

Discussion