HuggingR$^{4}$: 一种用于发现最优模型伙伴的渐进推理框架
HuggingR$^{4}$: A Progressive Reasoning Framework for Discovering Optimal Model Companions
AI总结:
HuggingR$^4$通过渐进推理框架提升模型选择效率,实现更高的可行性与合理性,同时降低token消耗。
摘要:
构建有效的LLM代理越来越多地需要根据自然语言请求从大型开放存储库(例如,HuggingFace,拥有超过200万种模型)中选择合适的AI模型作为工具。与调用固定API工具集不同,存储库级模型选择必须处理大量、不断变化的候选者,这些候选者具有不完整的元数据。现有方法将完整的模型描述整合到提示中,导致提示膨胀、过度的token成本和有限的可扩展性。为了解决这些问题,我们提出了HuggingR$^4$,这是第一个将模型选择重新表述为迭代推理过程而非一次性检索的框架。通过协同整合推理、检索、细化和反思,HuggingR$^4$逐步分解用户意图,通过多轮讨论检索候选者,通过细粒度分析细化选择,并通过反思验证结果。为了促进严格评估,我们引入了一个大规模基准,包含14,399个多样化的用户请求,涵盖37个任务类别。实验表明,HuggingR$^4$实现了92.03%的可行性和82.46%的合理性,比当前最先进的基线高出26.51%和33.25%,同时将token消耗减少了6.9倍。
英文摘要:
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$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。