HGMF: A Hierarchical Gaussian Mixture Framework for Scalable Tool Invocation within the Model Context Protocol
Wenpeng Xing, Zhipeng Chen, Changting Lin, Meng Han

TL;DR
HGMF is a hierarchical probabilistic framework that improves large-scale tool invocation accuracy and efficiency in LLMs by clustering and filtering tools based on semantic similarity, reducing noise and computational costs.
Contribution
The paper introduces HGMF, a novel hierarchical Gaussian Mixture Model-based method for scalable and accurate tool selection in large tool libraries for LLMs.
Findings
Significantly improves tool selection accuracy.
Reduces inference latency in large-scale tool invocation.
Effective in handling large, hierarchically-structured tool libraries.
Abstract
Invoking external tools enables Large Language Models (LLMs) to perform complex, real-world tasks, yet selecting the correct tool from large, hierarchically-structured libraries remains a significant challenge. The limited context windows of LLMs and noise from irrelevant options often lead to low selection accuracy and high computational costs. To address this, we propose the Hierarchical Gaussian Mixture Framework (HGMF), a probabilistic pruning method for scalable tool invocation. HGMF first maps the user query and all tool descriptions into a unified semantic space. The framework then operates in two stages: it clusters servers using a Gaussian Mixture Model (GMM) and filters them based on the query's likelihood. Subsequently, it applies the same GMM-based clustering and filtering to the tools associated with the selected servers. This hierarchical process produces a compact,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Semantic Web and Ontologies
