Concise and Precise Context Compression for Tool-Using Language Models
On the map: Efficient LLM inference and serving → Prompt and context compression
Abstract (arXiv)
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.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Placed in Prompt and context compression, one of 12 directions in Efficient LLM inference and serving. Builds on 13 of its 28 references that are in the map. First posted on arXiv 2 Jul 2024.
Builds on
13 of 28 references.
Closest ancestors · 1
Same direction, newest first
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression10 Oct
Other references · 12
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2022Inner Monologue: Embodied Reasoning through Planning with Language Modelscited by 1,057
- 2023ToolAlpaca: Generalized Tool Learning for Language Models with 3000 Simulated Casescited by 383
- 2023Adapting Language Models to Compress Contextscited by 350
- 2023OpenChat: Advancing Open-source Language Models with Mixed-Quality Datacited by 250
- 2023GPT4Tools: Teaching Large Language Model to Use Tools via Self-instructioncited by 245
- 2022Binding Language Models in Symbolic Languagescited by 224
Built on by
Citing papers per year: 2024: 2; 2025: 5; 2026: 5.
12 papers.
- 2024Prompt Compression for Large Language Models: A Surveycited by 65
- 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Managementcited by 51
- 2026SkillReducer: Optimizing LLM Agent Skills for Token Efficiencycited by 29
- 2024What are the Essential Factors in Crafting Effective Long Context Multi-Hop Instruction Datasets? Insights and Best Practicescited by 14
- 2025AdmTree: Compressing Lengthy Context with Adaptive Semantic Treescited by 7
- 2025Solving Context Window Overflow in AI Agentscited by 4
- 2025NaviAgent: Graph-Driven Bilevel Planning for Scalable Tool Orchestrationcited by 3
- 2025From Context to EDUs: Faithful and Structured Context Compression via Elementary Discourse Unit Decompositioncited by 3
- 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RLcited by 3
- 2026Control Under Compression: Reliability Frontiers for Tool-Using Agentscited by 3
- 2026ParaTool: Shifting Tool Representations from Context to Parameterscited by 0
- 2026MORSE: Multi-Context Ordering via Reverse Scoring for Evidence-Preserving Compressioncited by 0
- 2026MORSE: Multi-Context Ordering via Reverse Scoring for Evidence-Preserving Compression23 Sep 2026
- 2026Control Under Compression: Reliability Frontiers for Tool-Using Agents2 Aug 2026
- 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RL30 Jun 2026
- 2026ParaTool: Shifting Tool Representations from Context to Parameters28 May 2026
- 2026SkillReducer: Optimizing LLM Agent Skills for Token Efficiency31 Mar 2026
- 2025From Context to EDUs: Faithful and Structured Context Compression via Elementary Discourse Unit Decomposition16 Dec 2025
- 2025AdmTree: Compressing Lengthy Context with Adaptive Semantic Trees4 Dec 2025
- 2025Solving Context Window Overflow in AI Agents27 Nov 2025
- 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Management8 Oct 2025
- 2025NaviAgent: Graph-Driven Bilevel Planning for Scalable Tool Orchestration24 Jun 2025
- 2024Prompt Compression for Large Language Models: A Survey16 Oct 2024
- 2024What are the Essential Factors in Crafting Effective Long Context Multi-Hop Instruction Datasets? Insights and Best Practices3 Sep 2024
Similar, not cited
Close in wording, no citation either way
- 2026Tool-Schema Compression Enables Agentic RAG Under Constrained Context Budgets
- 2026FlexComp: One Model for Every Ratio in Context Compression
- 2026Data Distribution Matters: A Data-Centric Perspective on Context Compression for Large Language Model
- 2026Adaptive Multi-Resolution Procedural Knowledge Compression for Large Language Models
- 2026Lossless Prompt Compression via Dictionary-Encoding and In-Context Learning: Enabling Cost-Effective LLM Analysis of Repetitive Data
- 2025Understanding and Improving Information Preservation in Prompt Compression for LLMs
- 2025Beyond Hard and Soft: Hybrid Context Compression for Balancing Local and Global Information Retention
- 2025Tools are under-documented: Simple Document Expansion Boosts Tool Retrieval