In the world of generative AI, bigger is usually better. To get higher-quality images from Diffusion Transformers (DiTs), researchers typically scale up the number of parameters or increase the number of sampling steps. However, a new paper titled LoopREG suggests a more efficient path: reusing the parameters you already have through "test-time recurrence."
TL;DR
LoopREG enables Diffusion Transformers to improve image quality at inference time by repeatedly applying a shared transformer block. By supervising this specific block with a pretrained visual encoder (DINOv2), the authors show that models can successfully "extrapolate" to more recurrent steps than they saw during training, slashing FID scores by up to 67% without adding a single parameter.
What Problem Does This Paper Address?
Standard Diffusion Transformers have a fixed depth. While you can increase computation by taking more sampling steps (more denoiser calls), the "depth" of the network processing each step remains constant. Reusing blocks—recurrent depth—is a known way to increase computation without increasing model size, but it has a major flaw: instability.
If you naively loop a block more times during inference than you did during training, the model’s internal representations often drift into "uncharted territory," causing image quality to collapse. The authors set out to find the "enabling ingredient" that makes recurrent computation stable and beneficial even beyond the training horizon.
Methods
LoopREG is built upon the REG (Representation Entanglement for Generation) framework. The core innovation is representation-supervised recurrence.
- Shared Recurrence: The architecture selects one specific Transformer block (e.g., Block 4 in a 12-block "Base" model) and applies it $K$ times in a row.
- Representation Supervision: During training, the output of this recurrent block is passed through a projector and aligned with features from a frozen DINOv2 teacher. This "anchors" the recurrent state to a meaningful visual representation.
- Co-location: Crucially, the recurrence and the supervision must happen at the same site. The alignment loss is only applied after the final recurrent visit during training.
- Test-Time Extrapolation: Because the block is trained to move the hidden state toward a supervised target, the model can be run with more loops at inference ($K_{infer} > K_{train}$) to further refine the representation.
Datasets
The authors evaluated LoopREG on the standard benchmark for high-fidelity generation: ImageNet 256 × 256 (class-conditional). They tested the approach across three scales of the Scalable Interpolant Transformer (SiT): SiT-B/2, SiT-L/2, and SiT-XL/2.
Key Insights and Ideas
- Supervision is the Anchor: Without the DINOv2 alignment, extra loops at inference time cause the FID to skyrocket (failure). The representation supervision creates a "task-preferred" trajectory that the model can follow for extra steps.
- The "Where" Matters: Useful recurrence follows the supervision. If you move the supervision to a different block, the benefit of recurrence moves with it.
- Finite Horizons: More loops aren't always better. The hidden state trajectory eventually passes through an optimal point and then begins to degrade. This suggests that the recurrent block acts as a refinement operator with a finite "useful" life.
- Training Horizon Shifts the Optimum: Training with more loops ($K_{train}$) moves the optimal inference point ($K_{infer}$) further out. For example, a model trained with 2 visits peaks at 3 inference visits, while one trained with 3 visits peaks at 5.
Key Results
The quantitative gains are massive, particularly for smaller models:
- SiT-B/2: LoopREG reduced the FID from the local REG baseline of 15.08 down to 4.91 (a 67.4% reduction).
- Zero-Cost Improvement: A model trained with only 2 visits ($K_{train}=2$) improved its FID from 14.71 to 5.34 simply by adding one extra visit at inference time—using the exact same weights.
- Training Efficiency: On the XL/2 scale, LoopREG reached the quality of a standard 400K-step model in only 220K steps by utilizing extra inference depth.
Limitations and Future Work
- Recall Trade-off: The authors noted that while FID (fidelity) improves significantly, it often comes at the cost of lower Recall (diversity). The model becomes "opinionated" about the best way to represent a class.
- Manual Tuning: Currently, the optimal number of inference visits ($K_{infer}$) must be found via a sweep. A future "predictive stopping rule" that decides when to stop looping automatically would be a major step forward.
- Scope: The work focuses on class-conditional ImageNet and SiT backbones. Extending this to massive text-to-image models (like Stable Diffusion 3 or Flux) remains an open and exciting challenge.
Summary updated