TL;DR
Scaling up Diffusion Transformers (DiTs) makes them better at generating images, but also turns them into 20B–33B parameter behemoths that are painful to deploy. XSP is a training-free structural pruning framework that shrinks these models by up to 50%—cutting a 33B model down to 16B—with negligible quality loss and zero post-pruning fine-tuning or distillation.
What Problem Does This Paper Address?
Modern text-to-image Diffusion Transformers like Qwen-Image 1.0 (20B) and MiniMax-H3-Image (33B) produce stunning visuals, but their size makes them difficult to run on consumer-grade GPUs. Structural pruning—physically removing parts of the network—is a natural fix, yet most existing pruning methods cause a sharp drop in image quality. To recover, they rely on expensive post-pruning training such as knowledge distillation or further fine-tuning. The authors ask: can we prune a massive DiT by up to 50% and keep its performance intact without any gradient-based recovery training?
Methods
XSP compresses a pretrained DiT in three sequential stages, keeping the original block count and residual interfaces intact so the pruned model remains a clean, static, dense architecture:
- Low-Rank AdaLN Compression: Adaptive LayerNorm (AdaLN) projections modulate timestep embeddings and account for a surprising 33% of Qwen-Image 1.0's parameters. XSP factorizes each AdaLN linear layer into two smaller consecutive matrices using covariance-weighted truncated SVD on calibration inputs, slashing AdaLN parameters by 98.2% (e.g., down to rank 48 on Qwen-Image 1.0 and rank 16 on MiniMax-H3-Image) with minimal reconstruction error.
- Whole-Head Attention Pruning + Least-Squares Reconstruction (LSR): Rather than pruning individual weights, XSP removes entire attention heads. It scores heads using activation-weighted output-column $L_2$ norms (extending structured Wanda/GRAIL to dual-stream DiTs) and then refits the remaining output projection using regularized least-squares reconstruction on calibration activations to compensate for the missing heads.
- Heterogeneous FFN Width Allocation via Dynamic Programming: Instead of trimming every Feed-Forward Network (FFN) uniformly, XSP ranks FFN channels by the product of their input- and output-weight norms, refits candidate widths with LSR, and measures the remaining block-output error on a probe set. It then solves a Multiple-Choice Knapsack Problem (MCKP) via dynamic programming to allocate exact-budget, heterogeneous widths across layers and modalities.
Datasets
- Calibration & Probing: XSP uses 512 calibration examples and 128 disjoint probe examples drawn from a fixed internal image–caption pool, replayed at four fixed noise positions.
- Evaluation Benchmarks: Pruned models are evaluated on five established text-to-image benchmarks—DPG, GenEval, LongText (EN/ZH), OneIG (EN/ZH), and T2I-CompBench (B-VQA, UniDet, S-CoT). No new benchmarks are introduced.
Key Insights and Ideas
- AdaLN is massively over-parameterized: Even after cutting 98.2% of AdaLN parameters, the conditioning pathway's reconstruction MSE stays remarkably low, making it an easy first target for compression.
- FFN energy is wildly uneven: Across Qwen-Image 1.0's blocks, anywhere from 18.2% to 65.7% of FFN channels are needed to capture 90% of activation energy. Uniform pruning hits a wall because it starves important layers while over-provisioning redundant ones; heterogeneous allocation via dynamic programming fixes this.
- Closed-form local reconstruction beats gradient descent (for pruning recovery): Refitting output projections with FP64 least-squares reconstruction on calibration moments restores lost capacity in seconds, eliminating the need for costly distillation or fine-tuning.
Key Results
- Qwen-Image 1.0 (20B → 14B and 10B): Without any knowledge distillation or fine-tuning, XSP-14B (AdaLN-pruned) and XSP-10B (50% pruned) rank first on 3 to 4 out of 5 benchmarks against prior methods (TinyFusion, HierarchicalPrune, PPCL, Amber-Image). They also achieve the lowest average performance drop rates: 0.23% for XSP-14B and 0.52% for XSP-10B.
- MiniMax-H3-Image (33B → 20B and 16B): A 50%-pruned XSP-16B model suffers virtually no degradation (average drop rate 0.03%) and even edges out the 33B base model on GenEval (0.836 vs. 0.827, +0.9%).
- Uniform vs. Heterogeneous FFN Pruning: On 10B Qwen-Image 1.0, MCKP-allocated FFN widths consistently outperform uniform pruning at the exact same parameter count (e.g., 0.8471 vs. 0.8186 on GenEval for 20-head models), while visibly reducing structural artifacts like malformed hands or duplicated objects.
Limitations and Future Work
The authors note that XSP's compression operators and structural constraints are tied to the target backbone, so extending it to other DiT architectures may require corresponding adaptations. Additionally, because XSP relies on calibration and probing data, its reconstruction and capacity allocation are influenced by the calibration distribution; specialized application domains may benefit from tailored calibration mixtures.
Summary updated