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

Omni-Flow:面向多模态推理的统一工作流编排与分布式KV缓存共享框架

Omni-Flow: A Unified Workflow Orchestration and Distributed KV Cache Sharing Framework for Multimodal Inference

Meituan(美团);Peking University(北京大学)

Bin Xiao, Jingfu Dong, Changran Wang, Yitian Chen, Xiaoyu Zhao, Yuqi Peng, Jianping Lin, Yuchen Xie

AI总结:

提出Omni-Flow框架,通过三层抽象(控制流、数据流、计算流)统一编排多模态推理工作流,实现异构单元协同、分布式KV缓存共享与高效传输,支持多种多模态场景。

摘要:

随着大语言模型(LLM)推理从纯文本向多模态范式演进,推理系统面临三大挑战:(1)多模态工作流的灵活编排,其中异构计算单元呈现复杂依赖和并发控制;(2)跨进程和节点的大规模中间数据高效传输,张量在异构角色间高速流动;(3)跨角色高效共享KV缓存和模型权重以消除冗余GPU内存。现有解决方案独立部署LLM和扩散模型,缺乏多模态管线的系统级抽象;这导致编排逻辑分散,传输路径与特定模型紧密耦合,且集成新模型成本高昂。为应对这些挑战,我们提出Omni-Flow,一个通过三层抽象实现多模态推理的分布式调度框架。控制流层通过Python DSL定义工作流,将异构单元编排为统一数据流图,支持静态DAG和动态路由,内置服务发现和多种负载均衡策略。数据流层提供超越预填充/解码分离的分布式KV缓存抽象,统一分配并支持跨三层分页存储层次(GPU/CPU/SSD)的直接跨角色传输,基于零拷贝、低延迟通道。计算流层支持多轮对话中的复杂多模态前缀匹配以实现KV重用,并通过统一SGLang接口接管KV缓存和采样逻辑,使扩散模型在统一并行语义下直接重用LLM前向路径。我们证明Omni-Flow通过一致的编程模型支持多种异构场景,包括全模态对话(LongCat-Next)和复杂图像生成管线(HunyuanImage-3)。

英文摘要:

Multimodal models increasingly integrate heterogeneous components, from encoders and LLMs to diffusion models and media decoders. Serving these models efficiently requires flexible workflow orchestration, independent component scheduling, and cross-component state sharing. However, existing multimodal frameworks primarily organize execution as stage-level pipelines, while state ownership remains largely stage-local. We present Omni-Flow, a distributed serving framework built around three cooperating abstractions. Control Flow defines workflows through a Python DSL, organizing heterogeneous components and their dependencies into a unified dataflow graph. The runtime uses these dependencies to determine when each component can execute. Data Flow manages the placement, transfer, and lifetime of shared tensors and paged KV caches across roles, together with same-device weight sharing. Compute Flow matches multimodal conversation histories to reuse KV across turns and integrates framework-managed KV and model-specific sampling with SGLang's execution interfaces. Omni-Flow also enables cross-role prefix-KV reuse between compatible LLM and diffusion components. Together, these abstractions separate model-specific computation from workflow coordination and state management, allowing independently executing roles to share compatible resources through a common programming model. Experiments with Qwen3-Omni show that, across four benchmarks and multiple concurrency levels, Omni-Flow's aggregate job completion time (JCT) is 1.2\% and 4.9\% higher than vLLM-Omni's and SGLang-Omni's, respectively. In a 50-turn multimodal session, Omni-Flow avoids resubmitting accumulated inputs through server-side session state, reducing mean JCT by 7.5\% and 19.3\% relative to vLLM-Omni and SGLang-Omni, respectively.

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

↑