LayerSync: Self-aligning Intermediate Layers

Yasaman Haghighi, Bastien Van Delft, Mariam Hassan, Alexandre Alahi

Introduction

Training state-of-the-art diffusion models (and their flow-matching cousins) is notoriously slow and computationally expensive. Recent research has found a shortcut: "external guidance." By forcing a diffusion model's intermediate layers to match the features of a powerful, pre-trained vision model (like DINOv2), researchers can drastically speed up convergence.

However, this approach introduces a dependency on massive external models, adds computational overhead during training, and often doesn't translate to non-visual domains (like audio or motion) where such "teacher" models might not exist. To address this, we introduce LayerSync, a "self-sufficient" regularization technique that accelerates diffusion model training by aligning a model’s shallow layers with its own semantically richer deep layers. By using internal features as "intrinsic guidance," it achieves significant training speedups and better generation quality across multiple modalities—all without requiring external pre-trained models or extra data.

Methods: Intra-Model Self-Alignment

The core idea of LayerSync is intra-model self-alignment. In diffusion transformers, semantic richness isn't distributed evenly; it typically peaks in the deeper layers just before the final decoding blocks. LayerSync leverages this by allowing the model to act as its own teacher.

The approach works through three primary steps:

  1. Identifying "Strong" and "Weak" Layers: The method selects an early "weak" block and a deeper "strong" block within the network.
  2. Feature Alignment: A regularization term is added to the loss function that maximizes the cosine similarity between the patch-wise representations of these two layers.
  3. The Stop-Gradient Trick: Crucially, a stopgrad operation is applied to the deeper layer. This ensures the "strong" layer acts as a stationary target, preventing the "weak" layer from pulling the "strong" one down to its level.

This is a "plug-and-play" solution. It requires no extra parameters, introduces negligible computational overhead, and is added directly to the standard training objective.

Key Results and Multi-Domain Evaluation

LayerSync was evaluated across four distinct modalities to demonstrate its domain-agnostic nature: Images (ImageNet 256×256), Audio (MTG-Jamendo), Human Motion (HumanML3D), and Video (CLEVRER and MixKit).

LayerSync Method and Performance Overview

LayerSync consistently outperformed both baseline models and prior "self-contained" acceleration methods:

  • Massive Speedup: On ImageNet, LayerSync achieved an 8.75× training acceleration compared to the SiT-XL baseline.
  • Quality Boost: It improved generation quality by 23.6% for images (FID), 20.4% for audio (FAD), and 7.7% for human motion (FID).
  • State-of-the-Art: On ImageNet 256×256, it set a new state-of-the-art for purely self-supervised image generation (FID 1.89), narrowing the gap with methods that use external guidance.
  • Better Representations: Internal features showed a 32.4% improvement in linear probing for classification and a 63.3% improvement for semantic segmentation.

Key Insights: Why Does LayerSync Work?

  • The Virtuous Cycle: LayerSync creates a feedback loop. Improving early-layer features makes it easier for deep layers to learn robust representations, which in turn provide an even better target for the early layers to align with.
  • Accelerated Maturation: Probing the model's internal features revealed that LayerSync shifts the "peak" of semantic performance to earlier layers in the network. The model essentially "matures" faster.
  • Structural Equilibrium: Visualization of block correlations shows that LayerSync forces the model into a stable "block structure" (local features $\rightarrow$ global features $\rightarrow$ decoding) much earlier in the training process than standard training.
Block Correlation Heatmap
  • Robustness to Pruning: Models trained with LayerSync are significantly more robust to "block dropping." Intermediate layers can be removed with much less impact on final image quality compared to a baseline model.

Limitations and Future Work

While LayerSync is robust, its performance depends on the selection of layers to align. The current heuristic (e.g., excluding the first few and last 20% of blocks) works well, but a more automated or dynamic selection strategy could be beneficial. Additionally, exploring domain-specific losses—such as those accounting for the hierarchical nature of text or temporal patterns in video—could unlock even further gains. Finally, the long-term effects of this regularization on extremely large-scale "foundation" models remain an open question for future study.

Summary updated

BibTeX
@inproceedings{haghighi2026layersync,
  author = {Yasaman Haghighi and Bastien Van Delft and Mariam Hassan and Alexandre Alahi},
  title = {{LayerSync: Self-aligning Intermediate Layers}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=4itprlvbRQ},
}
Figure