TensorX
返回文献探索

Paper · arXiv 2502.08690

Skrr: Skip and Re-use Text Encoder Layers for Memory Efficient Text-to-Image Generation

Hoigi Seo, Wongi Jeong, Jae-sun Seo, Se Young Chun

41 upvotesFebruary 12, 2025arXiv 预印本
AI 摘要

Skip and Re-use layers (Skrr) enhance memory efficiency in text encoders of T2I diffusion models without affecting image quality.

large-scale text encoderstext-to-image (T2I) diffusion modelsdenoising modulestext embeddingsfloating-point operations (FLOPs)Skip and Re-use layers (Skrr)transformer blockspruning strategysparsity levelsFIDCLIPDreamSimGenEval scores

Abstract

Large-scale text encoders in text-to-image (T2I) diffusion models have demonstrated exceptional performance in generating high-quality images from textual prompts. Unlike denoising modules that rely on multiple iterative steps, text encoders require only a single forward pass to produce text embeddings. However, despite their minimal contribution to total inference time and floating-point operations (FLOPs), text encoders demand significantly higher memory usage, up to eight times more than denoising modules. To address this inefficiency, we propose Skip and Re-use layers (Skrr), a simple yet effective pruning strategy specifically designed for text encoders in T2I diffusion models. Skrr exploits the inherent redundancy in transformer blocks by selectively skipping or reusing certain layers in a manner tailored for T2I tasks, thereby reducing memory consumption without compromising performance. Extensive experiments demonstrate that Skrr maintains image quality comparable to the original model even under high sparsity levels, outperforming existing blockwise pruning methods. Furthermore, Skrr achieves state-of-the-art memory efficiency while preserving performance across multiple evaluation metrics, including the FID, CLIP, DreamSim, and GenEval scores.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Skrr: Skip and Re-use Text Encoder Layers for Memory Efficient Text-to-Image Generation | TensorX