TL;DR
The paper introduces Pluggable Pruning with Contiguous Layer Distillation (PPCL), a novel structured compression framework designed specifically for massive Diffusion Transformers (DiTs). PPCL reduces model parameters by up to 50% while maintaining high-quality image generation (<3% performance drop), nearly doubling inference speed and cutting memory usage by a third. Crucially, its "plug-and-play" nature allows engineers to dynamically adjust the model's depth at inference time without any retraining.
What Problem Does This Paper Address?
State-of-the-art Text-to-Image (T2I) generation has shifted from U-Net architectures to Multi-Modal Diffusion Transformers (MMDiTs) like FLUX.1 and SD 3.5. While these models deliver stunning image fidelity and prompt alignment, they come with a massive computational tax—often packing between 8 to 20 billion parameters. This scale makes real-time deployment on consumer hardware or resource-constrained edge devices incredibly difficult.
Existing structured pruning methods fall short in three ways:
- They lack generalizability across different MMDiT architectures.
- They suffer from severe error propagation during standard sequential knowledge distillation.
- They are rigid; you cannot easily change the compression ratio without retraining the entire model from scratch.
PPCL tackles these challenges by uncovering how redundancy actually behaves across the layers of deep diffusion models.
Methods
PPCL compresses models using a two-stage approach: Depth-wise pruning and Width-wise pruning.
1. Depth-wise Pruning & Contiguous Layer Detection
Instead of guessing which layers to cut, the authors train lightweight linear probes on top of each frozen teacher block to approximate its input-output mapping. By analyzing the Centered Kernel Alignment (CKA) similarity metrics and their first-order differences, they pinpoint continuous "phases" or intervals of redundant layers.
To avoid the compounding errors typical of sequential distillation, PPCL introduces Non-Sequential Inter-Layer Distillation. Student blocks are trained independently to map directly from the teacher's preceding layer output to the target layer output. Because the blocks are decoupled, specific layers can be bypassed or reactivated dynamically at inference time.
2. Width-wise Pruning
MMDiTs process text and image tokens via parallel streams. The authors introduce width-wise pruning by replacing highly redundant text streams and over-parameterized Feed-Forward Networks (FFNs) with compact, lightweight linear projectors, further shrinking the model footprint.
Datasets
- Training & Calibration: The authors sampled 100,000 images from the LAION-2B-en dataset. To ensure high-quality text-image alignment, they used Qwen2.5-VL to generate highly detailed, refined descriptions for these images.
- Evaluation Benchmarks: The framework was rigorously tested across multiple standard benchmarks: DPG, GenEval, OneIG-Bench, T2I-CompBench, and LongText-Bench (for evaluating complex, long-form text rendering in both English and Chinese).
Key Insights and Ideas
-
Redundancy is Continuous: A key discovery is that removing contiguous blocks of layers causes significantly less performance degradation than removing random or non-contiguous layers. Layer representations evolve in distinct, smooth phases rather than uniform steps.
Figure 2. Performance of Qwen-Image on LongText-Bench under three layer removal strategies: individual layers, contiguous lay- ers, and non-contiguous layers. The x-axis denotes the index of the removed layer(s), and the y-axis indicates the accuracy. The pale-yellow zone in the lower-left indicates the mean accuracy for each of the three removal strategies. -
Asymmetric Stream Redundancy: CKA analysis revealed that the text stream within MMDiTs exhibits massive cross-layer similarity and very low variability compared to the image stream. This means the text processing components can be compressed much more aggressively without hurting the final image output.
CKA heatmaps demonstrating high cross-layer redundancy in the text stream versus smooth diagonal decay in the image stream.
Key Results
The authors validated PPCL on two major open-source models: Qwen-Image (20B) and FLUX.1-dev (12B).
- Qwen-Image (20B to 10B): Compressing the model by 50% resulted in a tiny 3.29% average performance drop across benchmarks. Inference latency nearly halved, and GPU memory consumption was slashed by roughly 33%.
- FLUX.1-dev (12B to 8B): PPCL achieved an average performance drop of just 4.03%, vastly outperforming existing compression baselines like TinyFusion (13.80% drop) and HierarchicalPrune (13.38% drop).
- Plug-and-Play Flexibility: Thanks to the non-sequential training paradigm, a single deployed 10B student model can dynamically re-incorporate frozen teacher layers on the fly to act as a 12B or 14B model, allowing runtime trade-offs between generation speed and image fidelity.
Limitations and Future Work
While highly effective, the paper notes a few limitations:
- Language Support Constraints: Because the FLUX series does not natively support Chinese text tokens, Chinese-related long-text evaluations could only be performed on the Qwen-Image models.
- Captioning Dependency: The calibration process relies heavily on the descriptive quality of an external vision-language model (Qwen2.5-VL) to build the training pairs.
For future work, exploring how this plug-and-play contiguous distillation framework applies to other large-scale autoregressive or transformer-based generative models remains a promising direction.
Summary updated