Saved in:
Bibliographic Details
Main Authors: Sun, Desen, Tian, Henry, Lu, Tim, Liu, Sihang
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2501.04012
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917887015387136
author Sun, Desen
Tian, Henry
Lu, Tim
Liu, Sihang
author_facet Sun, Desen
Tian, Henry
Lu, Tim
Liu, Sihang
contents Text-to-Video applications receive increasing attention from the public. Among these, diffusion models have emerged as the most prominent approach, offering impressive quality in visual content generation. However, it still suffers from substantial computational complexity, often requiring several minutes to generate a single video. While prior research has addressed the computational overhead in text-to-image diffusion models, the techniques developed are not directly suitable for video diffusion models due to the significantly larger cache requirements and enhanced computational demands associated with video generation. We present FlexCache, a flexible approximate cache system that addresses the challenges in two main designs. First, we compress the caches before saving them to storage. Our compression strategy can reduce 6.7 times consumption on average. Then we find that the approximate cache system can achieve higher hit rate and computation savings by decoupling the object and background. We further design a tailored cache replacement policy to support the two techniques mentioned above better. Through our evaluation, FlexCache reaches 1.26 times higher throughput and 25% lower cost compared to the state-of-the-art diffusion approximate cache system.
format Preprint
id arxiv_https___arxiv_org_abs_2501_04012
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle FlexCache: Flexible Approximate Cache System for Video Diffusion
Sun, Desen
Tian, Henry
Lu, Tim
Liu, Sihang
Multimedia
Machine Learning
Text-to-Video applications receive increasing attention from the public. Among these, diffusion models have emerged as the most prominent approach, offering impressive quality in visual content generation. However, it still suffers from substantial computational complexity, often requiring several minutes to generate a single video. While prior research has addressed the computational overhead in text-to-image diffusion models, the techniques developed are not directly suitable for video diffusion models due to the significantly larger cache requirements and enhanced computational demands associated with video generation. We present FlexCache, a flexible approximate cache system that addresses the challenges in two main designs. First, we compress the caches before saving them to storage. Our compression strategy can reduce 6.7 times consumption on average. Then we find that the approximate cache system can achieve higher hit rate and computation savings by decoupling the object and background. We further design a tailored cache replacement policy to support the two techniques mentioned above better. Through our evaluation, FlexCache reaches 1.26 times higher throughput and 25% lower cost compared to the state-of-the-art diffusion approximate cache system.
title FlexCache: Flexible Approximate Cache System for Video Diffusion
topic Multimedia
Machine Learning
url https://arxiv.org/abs/2501.04012