Saved in:
Bibliographic Details
Main Authors: Ma, Shaoyin, Hu, Chenggong, Wang, Huiqiong, Sun, Li, Song, Mingli, Song, Jie
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.18715
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908818851495936
author Ma, Shaoyin
Hu, Chenggong
Wang, Huiqiong
Sun, Li
Song, Mingli
Song, Jie
author_facet Ma, Shaoyin
Hu, Chenggong
Wang, Huiqiong
Sun, Li
Song, Mingli
Song, Jie
contents Building effective LLM agents increasingly requires selecting appropriate AI models as tools from large open repositories (e.g., HuggingFace with > 2M models) based on natural language requests. Unlike invoking a fixed set of API tools, repository-scale model selection must handle massive, evolving candidates with incomplete metadata. Existing approaches incorporate full model descriptions into prompts, resulting in prompt bloat, excessive token costs, and limited scalability. To address these issues, we propose HuggingR$^4$, the first framework to recast model selection as an iterative reasoning process rather than one-shot retrieval. By synergistically integrating Reasoning, Retrieval, Refinement, and Reflection, HuggingR$^4$ progressively decomposes user intent, retrieves candidates through multi-round deliberation, refines selections via fine-grained analysis, and validates results through reflection. To facilitate rigorous evaluation, we introduce a large-scale benchmark comprising 14,399 diverse user requests across 37 task categories. Experiments demonstrate that HuggingR$^4$ achieves 92.03% workability and 82.46% reasonability-outperforming current state-of-the-art baselines by 26.51% and 33.25%, respectively, while reducing token consumption by $6.9 \times$.
format Preprint
id arxiv_https___arxiv_org_abs_2511_18715
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle HuggingR$^{4}$: A Progressive Reasoning Framework for Discovering Optimal Model Companions
Ma, Shaoyin
Hu, Chenggong
Wang, Huiqiong
Sun, Li
Song, Mingli
Song, Jie
Artificial Intelligence
Building effective LLM agents increasingly requires selecting appropriate AI models as tools from large open repositories (e.g., HuggingFace with > 2M models) based on natural language requests. Unlike invoking a fixed set of API tools, repository-scale model selection must handle massive, evolving candidates with incomplete metadata. Existing approaches incorporate full model descriptions into prompts, resulting in prompt bloat, excessive token costs, and limited scalability. To address these issues, we propose HuggingR$^4$, the first framework to recast model selection as an iterative reasoning process rather than one-shot retrieval. By synergistically integrating Reasoning, Retrieval, Refinement, and Reflection, HuggingR$^4$ progressively decomposes user intent, retrieves candidates through multi-round deliberation, refines selections via fine-grained analysis, and validates results through reflection. To facilitate rigorous evaluation, we introduce a large-scale benchmark comprising 14,399 diverse user requests across 37 task categories. Experiments demonstrate that HuggingR$^4$ achieves 92.03% workability and 82.46% reasonability-outperforming current state-of-the-art baselines by 26.51% and 33.25%, respectively, while reducing token consumption by $6.9 \times$.
title HuggingR$^{4}$: A Progressive Reasoning Framework for Discovering Optimal Model Companions
topic Artificial Intelligence
url https://arxiv.org/abs/2511.18715