ACL Findings2024
Concise and Precise Context Compression for Tool-Using Language Models
Yang Xu, Yunlong Feng, Honglin Mu, Yutai Hou, Yitong Li, Xinghao Wang, Wanjun Zhong, Zhongyang Li, Dandan Tu, Qingfu Zhu, Min Zhang, Wanxiang Che
Abstract
Through reading the documentation in the context, tool-using language models can dynamically extend their capability using external tools. The cost is that we have to input lengthy documentation every time the model needs to use the tool, occupying the input window as well as slowing down the decoding process. Given the progress in general-purpose compression, soft context compression is a suitable approach to alleviate the problem. However, when compressing tool documentation, existing methods suffer from the weaknesses of key information loss (specifically, tool/parameter name errors) and difficulty in adjusting the length of compressed sequences based on documentation lengths. To address these problems, we propose two strategies for compressing tool documentation into concise and precise summary sequences for tool-using language models. 1) Selective compression strategy mitigates key information loss by deliberately retaining key information as raw text tokens. 2) Block compression strategy involves dividing tool documentation into short chunks and then employing a fixed-length compression model to achieve variable-length compression. This strategy facilitates the flexible adjustment of the compression ratio. Results on API-Bank and APIBench show that our approach reaches a performance comparable to the upper-bound baseline under up to 16x compression ratio.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- NaviAgent: Graph‑Driven Bilevel Planning for Scalable Tool Orchestration cites Toolformer: Language Models Can Teach Themselves to Use Tools
- NaviAgent: Graph‑Driven Bilevel Planning for Scalable Tool Orchestration cites GPT4Tools: Teaching Large Language Model to Use Tools via Self-instruction
- ParaTool: Shifting Tool Representations from Context to Parameters cites Gorilla: Large Language Model Connected with Massive APIs
- ParaTool: Shifting Tool Representations from Context to Parameters cites Toolformer: Language Models Can Teach Themselves to Use Tools
- ParaTool: Shifting Tool Representations from Context to Parameters cites GPT4Tools: Teaching Large Language Model to Use Tools via Self-instruction
- ParaTool: Shifting Tool Representations from Context to Parameters cites ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs
- Gorilla: Large Language Model Connected with Massive APIs cites PAL: Program-aided Language Models
- Gorilla: Large Language Model Connected with Massive APIs cites Toolformer: Language Models Can Teach Themselves to Use Tools
- Toolformer: Language Models Can Teach Themselves to Use Tools cites PAL: Program-aided Language Models
- ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs cites Gorilla: Large Language Model Connected with Massive APIs
- ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs cites Toolformer: Language Models Can Teach Themselves to Use Tools
Cited by top-tier papers4
- AdmTree: Compressing Lengthy Context with Adaptive Semantic TreesYangning Li, Shaoshen Chen, Yinghui Li, Yankai Chen et al.NeurIPS 2025 · 8 citations
- Learning to Compress: Unlocking the Potential of Large Language Models for Text RepresentationYeqin Zhang, Yizheng Zhao, Chen Hu, Binxing Jiao et al.AAAI 2026 · 2 citations
- NaviAgent: Graph‑Driven Bilevel Planning for Scalable Tool OrchestrationYan Jiang, HAO ZHOU, Lizhong Gu, Tianlong Li et al.ICML 2026 · 1 citation
- ParaTool: Shifting Tool Representations from Context to ParametersZekai Yu, Qi Meng, Qizhi Chu, Yu Hao et al.ICML 2026
Builds on14
- Toolformer: Language Models Can Teach Themselves to Use ToolsTimo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu et al.NeurIPS 2023 · 5,989 citations
- Gorilla: Large Language Model Connected with Massive APIsShishir G. Patil, Tianjun Zhang, Xin Wang, Joseph E. GonzalezNeurIPS 2024 · 1,715 citations
- ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIsYujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu et al.ICLR 2024 · 1,469 citations
- PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon et al.ICML 2023 · 700 citations
- GPT4Tools: Teaching Large Language Model to Use Tools via Self-instructionRui Yang, Lin Song, Yanwei Li, Sijie Zhao et al.NeurIPS 2023 · 340 citations
Related papers
- Toolscaler: Scalable Generative Tool Calling via Structure-Aware Semantic TokenizationYunyue Su, Zhang Jinshuai, Bowen Fang, Wen Ye et al.EMNLP Findings 2025
- LongCodeZip: Compress Long Context for Code Language ModelsYuling Shi, Yichun Qian, Hongyu Zhang, Beijun Shen et al.ASE 2025
- Adapting Language Models to Compress ContextsAlexis Chevalier, Alexander Wettig, Anirudh Ajith, Danqi ChenEMNLP 2023 · 34 citations
- ACON: Optimizing Context Compression for Long-horizon LLM AgentsMinki Kang, Wei-Ning Chen, Dongge Han, Huseyin Inan et al.ICML 2026
- DAST: Context-Aware Compression in LLMs via Dynamic Allocation of Soft TokensShaoshen Chen, Yangning Li, Zishan Xu, Yongqin Zeng et al.ACL Findings 2025 · 2 citations
