mlsanityData to 7 Oct 2026

ToolWeaver: Weaving Collaborative Semantics for Scalable Tool Use in Large Language Models

arXiv 2601.21947 ↗First posted 29 Jan 2026cs.AIcited by 0

On the map: LLM agents and tool use → Tool learning and function calling

Abstract (arXiv)

Prevalent retrieval-based tool-use pipelines struggle with a dual semantic challenge: their retrievers often employ encoders that fail to capture complex semantics, while the Large Language Model (LLM) itself lacks intrinsic tool knowledge from its natural language pretraining. Generative methods offer a powerful alternative by unifying selection and execution, tasking the LLM to directly learn and generate tool identifiers. However, the common practice of mapping each tool to a unique new token introduces substantial limitations: it creates a scalability and generalization crisis, as the vocabulary size explodes and each tool is assigned a semantically isolated token. This approach also creates a semantic bottleneck that hinders the learning of collaborative tool relationships, as the model must infer them from sparse co-occurrences of monolithic tool IDs within a vast library. To address these limitations, we propose ToolWeaver, a novel generative tool learning framework that encodes tools into hierarchical sequences. This approach makes vocabulary expansion logarithmic to the number of tools. Crucially, it enables the model to learn collaborative patterns from the dense co-occurrence of shared codes, rather than the sparse co-occurrence of monolithic tool IDs. We generate these structured codes through a novel tokenization process designed to weave together a tool's intrinsic semantics with its extrinsic co-usage patterns. These structured codes are then integrated into the LLM through a generative alignment stage, where the model is fine-tuned to produce the hierarchical code sequences. Evaluation results with nearly 47,000 tools show that ToolWeaver significantly outperforms state-of-the-art methods, establishing a more scalable, generalizable, and semantically-aware foundation for advanced tool-augmented agents.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 31 of its 40 references that are in the map. First posted on arXiv 29 Jan 2026.

Builds on

31 of 40 references.

Closest ancestors · 6

Same direction, newest first

  1. 2024ToolPlanner: A Tool Augmented LLM for Multi Granularity Instructions with Path Planning and Feedback23 Sep
  2. 2024Tool-Planner: Task Planning with Clusters across Multiple Tools6 Jun
  3. 2024StableToolBench: Towards Stable Large-Scale Benchmarking on Tool Learning of Large Language Models12 Mar
  4. 2023Confucius: Iterative Tool Learning from Introspection Feedback by Easy-to-Difficult Curriculum27 Aug
  5. 2023Gorilla: Large Language Model Connected with Massive APIs24 May
  6. 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings19 May

Other references · 25

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  4. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  5. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  6. 2016Pointer Sentinel Mixture Modelscited by 2,992
  7. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  8. 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,277
  9. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  10. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  11. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
  12. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
13 more
  1. 2023A Comprehensive Survey of Continual Learning: Theory, Method and Applicationcited by 860
  2. 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
  3. 2022Autoregressive Image Generation using Residual Quantizationcited by 706
  4. 2023Adapting Large Language Models by Integrating Collaborative Semantics for Recommendationcited by 171
  5. 2023How Can Recommender Systems Benefit from Large Language Models: A Surveycited by 141
  6. 2023ToolChain*: Efficient Action Space Navigation in Large Language Models with A* Searchcited by 103
  7. 2024Advancing Tool-Augmented Large Language Models: Integrating Insights from Errors in Inference Treescited by 38
  8. 2025Retrieval Augmented Generation with Collaborative Filtering for Personalized Text Generationcited by 23
  9. 2024Enhancing Tool Retrieval with Iterative Feedback from Large Language Modelscited by 17
  10. 2025OmniChat: Enhancing Spoken Dialogue Systems with Scalable Synthetic Data for Diverse Scenarioscited by 9
  11. 2024Enhancing Collaborative Semantics of Language Model-Driven Recommendations via Graph-Aware Learningcited by 5
  12. 2025Enhancing LLM-based Recommendation through Semantic-Aligned Collaborative Knowledgecited by 3
  13. 2025Bridging the Capability Gap: Joint Alignment Tuning for Harmonizing LLM-based Multi-Agent Systemscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Efficient and Scalable Estimation of Tool Representations in Vector Space
  2. 2024ToolGen: Unified Tool Retrieval and Calling via Generation
  3. 2024Towards Completeness-Oriented Tool Retrieval for Large Language Models
  4. 2025LoSemB: Logic-Guided Semantic Bridging for Inductive Tool Retrieval
  5. 2025Tools are under-documented: Simple Document Expansion Boosts Tool Retrieval
  6. 2024Data-Efficient Massive Tool Retrieval: A Reinforcement Learning Approach for Query-Tool Alignment with Language Models
  7. 2026Semantic Tool Discovery for Large Language Models: A Vector-Based Approach to MCP Tool Selection
  8. 2026CoHyDE: Iterative Co-Training of LLM Rewriter & Dense Encoder for Tool Retrieval