AgentVocab: Structure-Aware Vocabulary Adaptation for Efficient LLM Agents
Abstract
Lay Summary
Modern AI assistants increasingly need to use outside tools, such as databases, search systems, or service platforms, to help people complete real tasks. These assistants often repeat the same kinds of structured messages when choosing tools, sending requests, and reading tool results. However, current language models usually break these repeated patterns into many tiny pieces of text, making each interaction longer and slower. We introduce AgentVocab, a method that teaches the model to treat common tool-use patterns as reusable text units. Instead of changing what the assistant is asked to do, AgentVocab changes how repeated tool-related text is represented, so the assistant can process and generate it more efficiently. In experiments on standard tests for tool-using AI assistants, this makes interactions about one fifth faster while keeping task performance at a similar level. This work shows that improving the way AI assistants represent repeated tool-use patterns can make them faster, cheaper to run, and more practical for real-world applications.