Daily Tech Briefing
AI 科技速览
每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。
arXiv Machine Learning · 2026/7/31 13:17:05
OnlineCache: Learning Dynamic Caching Policies with Error Correction for Efficient Diffusion Inference
AI 中文解读
核心亮点:这项技术让AI生成图片和视频的速度提升近3倍,而且画质几乎不受损失,相当于给AI装上了“智能加速器”。
通俗解读:以前AI画一张图,要像画家一样反复修改很多遍,每一步都得重新计算,所以很慢。而OnlineCache这个新方法,就像给AI配了一位“经验丰富的助手”:它学会判断哪些修改步骤可以跳过,哪些必须仔细画,还能自动纠正跳过后产生的小瑕疵。更厉害的是,它会根据每句话的难度灵活分配精力——简单指令快速搞定,复杂指令多花功夫,不再“一刀切”。
实际影响:以后用AI绘画、生成视频时,等待时间会大幅缩短,甚至接近实时。对于普通用户,网页版AI绘图和视频工具会变得更快、更流畅;对于开发者和企业,因为运算量减少,服务器成本也随之降低,未来免费或低价AI创作工具有望更多出现。这项技术还能用在手机等设备上,让AI创作不再依赖昂贵的高性能电脑,普通人上手创作的门槛进一步降低。
Diffusion models have revolutionized generative tasks but incur high latency due to iterative denoising. While cache-based strategies accelerate inference by reusing intermediate features, they largely rely on static, sample-agnostic schedules. We argue that this rigidity overlooks two facts empirically validated in this paper: (i) generation difficulty varies across prompts, requiring adaptive resource allocation--complex inputs demand more computation while simpler ones require less; (ii) error sensitivity fluctuates across timesteps, where static policies may cache high-error steps or waste computation on low-error ones. We therefore propose OnlineCache, a dynamic caching framework that jointly learns when to cache and how to correct approximation errors. We leverage policy gradient to train a lightweight network for adaptive speed-quality trade-offs, and incorporate a learnable corrector to mitigate caching-induced errors. Both modules are jointly optimized under a bilevel optimization framework, with the policy targeting global generation quality and the corrector minimizing local errors. Our method automatically allocates computational resources across both samples and timesteps, improving overall generation quality. Extensive experiments demonstrate clear superiority. On FLUX.1-dev model, OnlineCache achieves nearly 3 speedup while preserving generation fidelity. On DiT and CogVideoX, it similarly delivers competitive acceleration without compromising quality; across all scenarios, it consistently outperforms existing cache-based acceleration baselines.
分享
阅读原文 ↗