从言语到思想:通过结构化消息传递实现可扩展的多LLM聚合
From Talking Words to Sharing Thoughts: Scalable Multi-LLM Aggregation via Structured Message Passing
AI总结:
提出基于二分因子图的消息传递框架,通过语义层集成多个LLM的输出分布,实现高效、可扩展的多模型聚合,在降低97%令牌使用和6倍API调用的同时,性能优于现有方法。
摘要:
专门的、领域调优的大型语言模型(LLM)的出现表明,较小的模型可以在特定任务中达到专家级性能,但在域外设置中表现不佳。当前结合它们互补专业知识的集成方法主要依赖于迭代重新提示或跨模型细化。这些方法由于需要重复的LLM推理调用而遭受高计算成本和延迟。此外,朴素聚合常常导致锚点污染,其中从较弱模型传播的噪声降低了最准确专家的性能。为了解决这些挑战,我们提出了一个框架,该框架使用二分因子图在语义层集成模型预测。在这种架构中,单个LLM被表示为变量节点,而一组检查节点基于不同的认知标准评估它们的一致性。我们开发了一种受错误恢复系统启发的消息传递协议,以迭代解决分歧。此外,我们引入了一种非对称阻尼机制,保护高可靠性锚点节点不被集成多数覆盖。与现有方法不同,我们的方法在输出分布上操作,并且在细化阶段不需要额外的LLM调用。在包括MMLU、MMLU-Pro、GPQA和MedMCQA在内的四个基准测试上评估,我们的方法展示了97%的令牌使用减少和高达6倍的API调用减少,将推理时间从几分钟缩短到毫秒级,同时始终优于领先的多智能体基线。这些结果表明,基于图的信念传播是当前多智能体LLM系统的一种稳健、高速且可扩展的替代方案。完整的流程和代码将公开。
英文摘要:
The emergence of specialized, domain-tuned Large Language Models (LLMs) has demonstrated that smaller models can achieve expert-level performance in specific tasks, while struggling in out-of-domain settings. Current ensemble methods to combine their complementary expertise primarily rely on iterative re-prompting or cross-model refinement. These approaches suffer from high computational costs and latency because they require repeated LLM inference calls. Furthermore, naive aggregation often leads to anchor corruption, in which noise propagated from weaker models degrades the performance of the most accurate expert. To address these challenges, we propose a framework that integrates model predictions at the semantic layer using a bipartite factor graph. In this architecture, individual LLMs are represented as variable nodes, while a set of check nodes assess their consistency based on diverse epistemic criteria. We develop a message-passing protocol inspired by error-recovery systems to resolve disagreements iteratively. Furthermore, we introduce an asymmetric damping mechanism that protects high-reliability anchor nodes from being overridden by the ensemble majority. Unlike existing methods, our approach operates on output distributions and requires no additional LLM calls during the refinement phase. Evaluating on four benchmarks, including MMLU, MMLU-Pro, GPQA, and MedMCQA, our method demonstrates a 97% reduction in token usage and up to a 6X decrease in API calls, reducing inference time from several minutes to mere milliseconds while consistently outperforming leading multi-agent baselines. These results suggest that graph-based belief propagation is a robust, high-speed, and scalable alternative to the current multi-agent LLM systems. The full pipeline and code will be made public.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。