PCToolkit: A Unified Plug-and-Play Prompt Compression Toolkit of Large Language Models
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Demo Track. Pages 11127-11131.
https://doi.org/10.24963/ijcai.2025/1277
Keywords
- Natural Language Processing: NLP: Language models
- Natural Language Processing: NLP: Applications
Abstract
Prompt engineering enables Large Language Models (LLMs) to perform a variety of tasks. However, lengthy prompts significantly increase computational complexity and economic costs. To address this issue, prompt compression reduces prompt length while maintaining LLM response quality. To support rapid implementation and standardization, we present the Prompt Compression Toolkit (PCToolkit), a unified plug-and-play framework for LLM prompt compression. PCToolkit integrates state-of-the-art compression algorithms, benchmark datasets, and evaluation metrics, enabling systematic performance analysis. Its modular architecture simplifies customization, offering portable interfaces for seamless incorporation of new datasets, metrics, and compression methods. Our code is available at https://github.com/3DAgentWorld/Toolkit-for-Prompt-Compression. Our demo is at https://huggingface.co/spaces/CjangCjengh/Prompt-Compression-Toolbox.
@inproceedings{ijcai2025p1277,
title = {PCToolkit: A Unified Plug-and-Play Prompt Compression Toolkit of Large Language Models},
author = {Zhang, Zheng and Li, Jinyi and Lan, Yihuai and Wang, Xiang and Wang, Hao},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {11127--11131},
year = {2025},
month = {8},
note = {Demo Track},
doi = {10.24963/ijcai.2025/1277},
url = {https://doi.org/10.24963/ijcai.2025/1277},
}
TY - CPAPER TI - PCToolkit: A Unified Plug-and-Play Prompt Compression Toolkit of Large Language Models AU - Zhang, Zheng AU - Li, Jinyi AU - Lan, Yihuai AU - Wang, Xiang AU - Wang, Hao T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 11127 EP - 11131 DO - 10.24963/ijcai.2025/1277 UR - https://doi.org/10.24963/ijcai.2025/1277 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: