arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.13333cs.LGcs.AIcs.CLcs.MA
收藏

AgentRec:使用与人类反馈对齐的句子嵌入进行智能体推荐

AgentRec: Agent Recommendation Using Sentence Embeddings Aligned to Human Feedback

Rutgers University(罗格斯大学)

Joshua Park, Yongfeng Zhang

AI总结:

本文提出AgentRec架构,基于SBERT编码句子嵌入,通过微调与人类反馈强化学习对齐,实现快速(<300ms)且高准确率(92.2%)的LLM智能体推荐,并开源数据集与代码。

摘要:

多智能体系统必须决定哪个智能体最适合给定的任务。我们提出了一种新颖的架构,通过扩展Sentence-BERT(SBERT)编码器模型,根据自然语言提示从众多智能体中推荐应执行任务的LLM智能体。在测试数据上,我们实现了92.2%的top-1准确率,且每次分类耗时不到300毫秒。与传统分类方法相比,我们的架构计算成本低、适应新类别、可解释,并可通过强化学习使用任意指标进行控制。通过将自然语言提示编码为句子嵌入,我们的模型捕获了与推荐智能体相关的语义内容。随后,通过微调最小化属于同一智能体的句子嵌入之间的距离,并通过基于人类反馈的强化学习使其与人类价值观对齐。这允许通过测量嵌入之间的余弦相似度,基于最近邻对自然语言提示进行分类。这项工作得益于为智能体推荐生成的合成数据集,我们已将数据集以及AgentRec推荐系统的代码开源至https://github.com/joshprk/agentrec。

英文摘要:

Multi-agent systems must decide which agent is the most appropriate for a given task. We propose a novel architecture for recommending which LLM agent out of many should perform a task given a natural language prompt by extending the Sentence-BERT (SBERT) encoder model. On test data, we are able to achieve a top-1 accuracy of 92.2% with each classification taking less than 300 milliseconds. In contrast to traditional classification methods, our architecture is computationally cheap, adaptive to new classes, interpretable, and controllable with arbitrary metrics through reinforcement learning. By encoding natural language prompts into sentence embeddings, our model captures the semantic content relevant to recommending an agent. The distance between sentence embeddings that belong to the same agent is then minimized through fine-tuning and aligned to human values through reinforcement learning from human feedback. This allows the classification of natural language prompts based on their nearest neighbors by measuring the cosine similarity between embeddings. This work is made possible through the generation of a synthetic dataset for agent recommendation, which we have open-sourced to the public along with the code for AgentRec recommendation system at https://github.com/joshprk/agentrec.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑