异构群体:联合优化多LLM系统中的模型角色与权重
Heterogeneous Swarms: Jointly Optimizing Model Roles and Weights for Multi-LLM Systems
AI总结:
提出异构群体算法,通过联合优化模型角色(DAG结构)和权重(JFK分数)设计多LLM系统,在12个任务上平均超越15个基线18.5%,实现显著协作增益。
摘要:
我们提出异构群体(Heterogeneous Swarms),一种通过联合优化模型角色和权重来设计多LLM系统的算法。我们将多LLM系统表示为LLM的有向无环图(DAG),并通过拓扑消息传递实现协作生成。给定一个LLM专家池和一个效用函数,异构群体采用两个迭代步骤:角色步骤和权重步骤。对于角色步骤,我们将模型角色解释为学习一个指定LLM之间输入和输出流的DAG。从一组随机连续邻接矩阵开始,我们将其解码为离散DAG,按拓扑顺序调用LLM,在效用函数(例如任务上的准确率)上进行评估,并基于效用分数使用粒子群优化来优化邻接矩阵。对于权重步骤,我们评估多LLM系统中单个LLM的贡献,并使用群体智能优化模型权重。我们提出JFK分数来量化角色步骤中找到的最佳DAG中每个LLM的个体贡献,然后基于JFK分数使用粒子群优化来优化模型权重。实验表明,异构群体在12个任务上平均比15个基于角色和/或权重的基线高出18.5%。进一步分析揭示,异构群体发现了具有异构模型角色和显著协作增益的多LLM系统,并受益于语言模型的多样性。
英文摘要:
We propose Heterogeneous Swarms, an algorithm to design multi-LLM systems by jointly optimizing model roles and weights. We represent multi-LLM systems as directed acyclic graphs (DAGs) of LLMs with topological message passing for collaborative generation. Given a pool of LLM experts and a utility function, Heterogeneous Swarms employs two iterative steps: role-step and weight-step. For role-step, we interpret model roles as learning a DAG that specifies the flow of inputs and outputs between LLMs. Starting from a swarm of random continuous adjacency matrices, we decode them into discrete DAGs, call the LLMs in topological order, evaluate on the utility function (e.g. accuracy on a task), and optimize the adjacency matrices with particle swarm optimization based on the utility score. For weight-step, we assess the contribution of individual LLMs in the multi-LLM systems and optimize model weights with swarm intelligence. We propose JFK-score to quantify the individual contribution of each LLM in the best-found DAG of the role-step, then optimize model weights with particle swarm optimization based on the JFK-score. Experiments demonstrate that Heterogeneous Swarms outperforms 15 role- and/or weight-based baselines by 18.5% on average across 12 tasks. Further analysis reveals that Heterogeneous Swarms discovers multi-LLM systems with heterogeneous model roles and substantial collaborative gains, and benefits from the diversity of language models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。