Behavior-Equivalent Token: Single-Token Replacement for Long Prompts in LLMs

Jiancheng Dong, Pengyue Jia, Jingyu Peng, Maolin Wang, Yuhao Wang +5 more
11/28/2025
cs.CL

No confident code implementation found for this paper.

Abstract

Carefully engineered system prompts play a critical role in guiding the behavior of LLM agents, but their considerable length introduces significant drawbacks, including increased inference latency, higher computational cost, and reduced effective context length. This raises the question of whether such lengthy prompts can be replaced by a drastically reduced number of tokens while preserving their behavioral effect on downstream tasks. To enable this, we propose a lightweight three-stage training framework that learns a single prompt-specific Behavior-Equivalent token ([BE]). The framework first trains [BE] to encode the natural-language content of the original system prompt via reconstruction, and then distills the prompt 's downstream behavior into this single token. Importantly, our method requires no access to model internals, no auxiliary compression models, and no labeled responses. Empirical evaluations on three datasets show that a single [BE] token achieves up to a 3000x reduction in prompt length, while retaining about 98% of the downstream performance of the original system prompts. This substantially reduces inference cost and leaves almost the entire context window available for user inputs.

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!

Cite this paper

@article{dong2025behaviorequivalent,
  title  = {Behavior-Equivalent Token: Single-Token Replacement for Long Prompts in LLMs},
  author = {Jiancheng Dong and Pengyue Jia and Jingyu Peng and Maolin Wang and Yuhao Wang and Lixin Su and Xin Sun and Shuaiqiang Wang and Dawei Yin and Xiangyu Zhao},
  year   = {2025},
  eprint = {2511.23271},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.23271v1}
}

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

Discussion