mlsanityData to 7 Oct 2026

Concise and Precise Context Compression for Tool-Using Language Models

arXiv 2407.02043 ↗First posted 2 Jul 2024cs.CLcited by 12

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

  1. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression10 Oct

Other references · 12

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  3. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
  4. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
  5. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
  6. 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
  7. 2022Inner Monologue: Embodied Reasoning through Planning with Language Modelscited by 1,057
  8. 2023ToolAlpaca: Generalized Tool Learning for Language Models with 3000 Simulated Casescited by 383
  9. 2023Adapting Language Models to Compress Contextscited by 350
  10. 2023OpenChat: Advancing Open-source Language Models with Mixed-Quality Datacited by 250
  11. 2023GPT4Tools: Teaching Large Language Model to Use Tools via Self-instructioncited by 245
  12. 2022Binding Language Models in Symbolic Languagescited by 224

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 5; 2026: 5.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Tool-Schema Compression Enables Agentic RAG Under Constrained Context Budgets
  2. 2026FlexComp: One Model for Every Ratio in Context Compression
  3. 2026Data Distribution Matters: A Data-Centric Perspective on Context Compression for Large Language Model
  4. 2026Adaptive Multi-Resolution Procedural Knowledge Compression for Large Language Models
  5. 2026Lossless Prompt Compression via Dictionary-Encoding and In-Context Learning: Enabling Cost-Effective LLM Analysis of Repetitive Data
  6. 2025Understanding and Improving Information Preservation in Prompt Compression for LLMs
  7. 2025Beyond Hard and Soft: Hybrid Context Compression for Balancing Local and Global Information Retention
  8. 2025Tools are under-documented: Simple Document Expansion Boosts Tool Retrieval