Memory-Efficient Fine-Tuning Diffusion Transformers via Dynamic Patch Sampling and Block Skipping

Sunghyun Park, Jeongho Kim, Hyoungwoo Park, Debasmit Das, Sungrack Yun, Munawar Hayat, Jaegul Choo, Fatih Porikli, Seokeon Choi

TL;DR

Fine-tuning large Diffusion Transformers (DiTs) for image personalization is notoriously memory-intensive, making on-device deployment nearly impossible. This paper introduces DiT-BlockSkip, a framework that slashes training memory by up to 65.8% using two clever tricks: timestep-aware dynamic patch sampling and skipping non-essential transformer blocks via residual feature precomputation. The result is a highly efficient tuning process that maintains state-of-the-art generation quality while fitting within strict edge-device constraints.

What Problem Does This Paper Address?

Personalizing text-to-image models—teaching a model a specific new concept or object from just a few reference images—has become incredibly popular. However, as the field shifts from U-Net architectures to deeper, high-capacity Diffusion Transformers (DiTs) like FLUX, the computational cost has skyrocketed.

Even Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA, which freeze the base model and only update a small fraction of weights, still require full backpropagation through the entire network. This creates a massive bottleneck in activation memory (forward and backward pass memory). Existing memory-saving techniques often sacrifice image quality or suffer from optimization instability. The authors aim to bridge this gap, making the personalization of massive DiT models feasible on consumer edge devices like smartphones.

Methods

DiT-BlockSkip achieves its massive memory reductions through two primary components:

  1. Dynamic Patch Sampling: Instead of fine-tuning on full-resolution images, the authors train on lower-resolution patches (e.g., $256 \times 256$). Crucially, the crop size changes dynamically based on the diffusion timestep $t$. At higher timesteps (high noise), the model samples larger patches to capture global structures. At lower timesteps (low noise), it samples smaller patches to capture fine-grained details. These varying crops are all resized to a fixed low resolution for training, mimicking the benefits of high-resolution training at a fraction of the memory cost.
  2. Block Skipping with Residual Feature Precomputation: Unlike U-Nets, which have a clear spatial hierarchy, DiTs maintain a constant resolution across blocks, making it harder to know which layers are safe to skip. The authors use a cross-attention masking strategy during a validation phase to identify which blocks are critical for personalization. They discovered that mid-level blocks are vital, while early and late blocks can be safely skipped.

To prevent a representation mismatch between training and inference, the features of the skipped blocks are precomputed and stored as a residual map ($\Delta f = f_{i+l} - f_i$). During fine-tuning, the skipped blocks are completely offloaded from the GPU, and their precomputed residuals are simply added back into the pipeline.

Overview of Dynamic Patch Sampling and Block Skipping

Datasets

The authors evaluated their approach on two standard personalization benchmarks:

  • DreamBooth dataset: Consisting of 30 subjects (living beings and objects), with 4–6 images per subject.
  • CustomConcept101: Used primarily for the initial cross-attention masking analysis across 30 randomly selected classes.

Key Insights and Ideas

  • The "Aha!" Moment for DiT Layers: In U-Nets, shallow layers handle low-level features and deep layers handle semantics. In DiTs, this distinction is blurred. By systematically masking cross-attention from image to text across different layers, the authors found a distinct bell-curve relationship: masking the mid-level blocks caused the personalized subject to completely disappear, proving that subject-specific semantics are primarily encoded in the middle of the transformer chain.
Impact of masking cross-attention across different blocks
  • Timestep-Aware Cropping: Rather than randomly cropping images, tying the crop scale to the diffusion timestep exploits the natural curriculum of diffusion models (global structure first, fine details later). This allows a $256 \times 256$ input to effectively teach the model both macro and micro features.

Key Results

The authors integrated DiT-BlockSkip into LoRA training for FLUX.1-dev and SANA models, yielding impressive gains:

  • Memory Reduction: On FLUX, the combination of patch sampling and a 50% block skip ratio reduced peak GPU memory usage by 65.8% (dropping from 35 GiB down to a mere 7.63 GiB), and cut forward/backward activation memory by 46.6%.
  • Computation Speedup: It significantly reduced TFLOPs per training iteration compared to standard LoRA and other baselines like HollowedNet.
  • Fidelity Preserved: Quantitative metrics (DINO and CLIP-I for subject fidelity, CLIP-T for text prompt adherence) showed that DiT-BlockSkip performs on par with full-network LoRA tuning, vastly outperforming other layer-skipping alternatives that suffer from feature drift.
Figure 1. Memory consumption analysis during fine-tuning DiT (i.e., FLUX). (a) We propose DiT-BlockSkip including patch sampling and block skipping, which reducing the training memory usage significantly. (b) Comparison with baselines and DiT-BlockSkip in aspects of GPU memory usage and subject & text fidelity.

Limitations and Future Work

While highly effective, DiT-BlockSkip introduces a precomputation phase to extract the residual features for skipped blocks, which adds a modest storage and time overhead prior to training. Additionally, the method was strictly validated on personalization tasks (DreamBooth style); how well this block-skipping strategy generalizes to broader fine-tuning tasks like ControlNet adaptation or full text-to-image pre-training remains an open question for future research.

Summary updated

BibTeX
@inproceedings{park2026memory,
  author = {Sunghyun Park and Jeongho Kim and Hyoungwoo Park and Debasmit Das and Sungrack Yun and Munawar Hayat and Jaegul Choo and Fatih Porikli and Seokeon Choi},
  title = {{Memory-Efficient Fine-Tuning Diffusion Transformers via Dynamic Patch Sampling and Block Skipping}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=pLct1SM4US},
}
Figure