arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.22955cs.LG
收藏

专家足矣:一种用于大语言模型推理的可组合框架

Experts are all you need: A Composable Framework for Large Language Model Inference

School of Electrical and Computer Engineering(电气与计算机工程学院)

Shrihari Sridharan, Sourjya Roy, Anand Raghunathan, Kaushik Roy

AI总结:

Comp-LLM通过可组合的推理框架实现跨专家协作,提升大语言模型的准确性和效率

摘要:

大型语言模型(LLMs)在多种自然语言处理(NLP)任务中实现了最先进的准确性。然而,这种成功是以增加模型大小为代价的,导致额外的计算负担。混合专家(MoEs)通过将模型容量与计算解耦,仅激活参数或“专家”的子集来克服这一瓶颈。然而,这些模型需要联合预训练这些专家以及路由器,并不建模多步推理。相比之下,多代理框架通过将复杂问题分解为模块化子任务来提高推理能力。然而,这些框架依赖于顺序的“计划-行动-观察”循环,这会引入显著的延迟。我们的工作,Comp-LLM,通过引入一种可组合的推理框架来解决这些挑战,该框架通过显式的子查询依赖图实现跨专家协作。Comp-LLM包括三个组成部分:(1)一个子查询生成器,将输入查询分解,根据嵌入相似性分配每个子查询到合适的专家,并构建依赖图;(2)一个查询执行器,处理图中的节点,并根据依赖关系和资源约束识别并行的机会;(3)一个响应聚合器,将中间专家响应综合成一个连贯的最终答案。在多个基准测试中,Comp-LLM在与相似大小的单体LLMs相比,实现了高达11.01%的准确性提升,同时在模型大小上提供了1.67x至3.56x的减少,与家族中最大的模型相比没有显著退化。此外,Comp-LLM相比顺序子查询处理提供了1.1x至1.7x的延迟改进。

英文摘要:

Large Language Models (LLMs) have achieved state-of-the-art accuracies in a variety of natural language processing (NLP) tasks. However, this success comes at the cost of increased model sizes which leads to additional computational burden. Mixture of Experts (MoEs) overcome this bottleneck by decoupling model capacity from computation by only activating a subset of parameters or "experts". However, these models require joint pretraining of these experts along with the router and do not model multi-step reasoning. In contrast, multi-agent frameworks improve reasoning by decomposing complex problems into modular subtasks. However, these frameworks rely on sequential "plan--act--observe" loops, which introduce significant latency. Our work, Comp-LLM, addresses these challenges by introducing a composable inference framework that enables cross-expert collaboration via an explicit sub-query dependency graph. Comp-LLM consists of three components: (1) A Sub-query Generator that decomposes an input query, assigns each sub-query to an appropriate expert using embedding similarity, and constructs a dependency graph; (2) A Query Executor that processes nodes in the graph and identifies opportunities for parallelism based on dependencies and resource constraints; and (3) A Response Aggregator that synthesizes intermediate expert responses into a coherent final answer. Across several benchmarks, Comp-LLM achieves up to 11.01% accuracy improvement over monolithic LLMs of similar size, while offering 1.67x--3.56x reduction in model size with no significant degradation relative to the largest model in its family. Additionally, Comp-LLM provides 1.1x--1.7x latency improvement compared to sequential sub-query processing.

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

↑