HuggingR^4: A Progressive Reasoning Framework for Discovering Optimal Model Companions

Authors: Shaoyin Ma, Chenggong Hu, Huiqiong Wang, Li Sun, Mingli Song, Jie Song

Abstract

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 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 user requests across 37 task categories. Experiments demonstrate that HuggingR^4 achieves 93.01% workability and 84.25% reasonability—outperforming state-of-the-art baselines by absolute margins of 17.81% and 23.13%, respectively, while reducing token consumption by 6.9\times.

PDFOpen original
Find similar papers with AI

Copy this prompt into your assistant

Using Paperlist, find papers similar to "HuggingR^4: A Progressive Reasoning Framework for Discovering Optimal Model Companions" (id: 239921, EMNLP 2026).
set up https://paperlist.ai/SKILL.md

MCP setupCLI