用于高效服务扩散模型的近似缓存
Approximate Caching for Efficiently Serving Diffusion Models
AI总结:
针对扩散模型服务资源消耗高、延迟大的问题,提出近似缓存并构建 Nirvana 系统,复用相似提示的中间噪声状态,结合 LCBFU 策略显著降低延迟与成本。
摘要:
使用扩散模型进行文本到图像生成因其能够生成符合文本提示的高质量图像而呈现爆发式流行。然而,生产级扩散模型服务是一项资源密集型任务,不仅需要昂贵的高端 GPU,还会产生相当大的延迟。在本文中,我们介绍了一种称为近似缓存(approximate-caching)的技术,该技术可以通过复用先前为相似提示生成图像时创建的中间噪声状态,来减少基于提示的图像生成所需的此类迭代去噪步骤。基于这一思想,我们提出了一个端到端的文本到图像系统 Nirvana,该系统使用近似缓存以及一种新颖的缓存管理策略——最低计算收益且最频繁使用(Least Computationally Beneficial and Frequently Used,LCBFU),在两个真实生产工作负载上平均实现了 GPU 计算节省、19.8% 的端到端延迟降低以及 19% 的美元成本节省。我们还从缓存、流行度以及大型生产环境中中间状态复用的角度,对真实生产文本到图像提示进行了广泛的特征分析。
英文摘要:
Text-to-image generation using diffusion models has seen explosive popularity owing to their ability in producing high quality images adhering to text prompts. However, production-grade diffusion model serving is a resource intensive task that not only require high-end GPUs which are expensive but also incurs considerable latency. In this paper, we introduce a technique called approximate-caching that can reduce such iterative denoising steps for an image generation based on a prompt by reusing intermediate noise states created during a prior image generation for similar prompts. Based on this idea, we present an end to end text-to-image system, Nirvana, that uses the approximate-caching with a novel cache management-policy Least Computationally Beneficial and Frequently Used (LCBFU) to provide % GPU compute savings, 19.8% end-to-end latency reduction and 19% dollar savings, on average, on two real production workloads. We further present an extensive characterization of real production text-to-image prompts from the perspective of caching, popularity and reuse of intermediate states in a large production environment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。