TIDE: Temporal-Aware Sparse Autoencoders for Interpretable Diffusion Transformers in Image Generation

Victor Shea-Jay Huang, Le Zhuo, Yi Xin, Zhaokai Wang, Fu-Yun Wang, Yuchi Wang, Renrui Zhang, Peng Gao, Hongsheng Li

TL;DR

The authors introduce TIDE (Temporal-aware Sparse Autoencoders), the first framework designed to interpret the internal representations of Diffusion Transformers (DiTs). By adding timestep-dependent modulation, TIDE successfully extracts sparse, human-readable features across the denoising process, revealing that DiTs naturally learn hierarchical 3D and semantic concepts during pre-training.

What Problem Does This Paper Address?

While Diffusion Transformers (DiTs) have become the state-of-the-art backbone for generative image models, they remain a "black box." Mechanistic interpretability tools—like Sparse Autoencoders (SAEs)—have successfully disentangled the internal features of Large Language Models (LLMs) and convolutional U-Net diffusion models. However, applying SAEs to DiTs introduces unique challenges:

  1. No Spatial Maps: Unlike CNNs, DiTs process flattened, token-based representations.
  2. Temporal Dynamics: Unlike LLMs that process static tokens sequentially, DiTs iteratively refine representations across multiple denoising timesteps ($t$), meaning activation patterns shift drastically over time.

Without specialized tools, we cannot easily understand how DiTs organize concepts or safely control their outputs.

Methods

TIDE adapts the $k$-sparse autoencoder architecture to handle the temporal and multimodal complexities of DiTs.

Overview of the TIDE training process

The core innovations include:

  • Temporal-Aware (TA) Architecture: To account for shifting activation distributions across different timesteps, TIDE introduces a timestep-dependent modulation operation: $$x_{\text{mod}} = x \cdot (1 + \text{scale}(t)) + \text{shift}(t)$$ where scale and shift are predicted by a lightweight MLP conditioned on the diffusion timestep $t$.

  • TopK Activation: Instead of relying on heavy $\ell_1$ regularization to enforce sparsity, TIDE directly selects the top-$k$ largest latent activations and zeros out the rest, improving the sparsity-reconstruction trade-off.

  • Token-Level Random Sampling: To prevent overfitting and handle high token dimensionality, the authors train TIDE on a random sample of only 1/16 of the total tokens per layer.

Datasets

The framework was trained and evaluated using several standard vision-language datasets:

  • CC3M (Conceptual Captions): 80K prompt-image pairs were used for training the SAEs, and a separate subset of 500 pairs was used for out-of-distribution (OOD) validation.
  • MS-COCO: Used via the FID-30K protocol to measure downstream image generation quality.
  • T2I-CompBench: A benchmark used to evaluate semantic and compositional alignment (e.g., attribute binding and object relationships).
  • I2P (Inappropriate Image Prompts): Used to evaluate safety and robustness against generating unsafe/NSFW content.

Key Insights and Ideas

  • Hierarchical Feature Organization: TIDE reveals that DiTs naturally learn a structured hierarchy of concepts during generative pre-training. It extracts features at three distinct levels: 3D-level (detecting depth, foreground/background, and shadows), Class-level (identifying broad categories like "bird" or "house"), and Semantic-level (isolating fine-grained details like a bird's "beak").
TIDE extracts multi-level hierarchical features from DiT layers
  • The Power of Token Sampling: Sampling just 1/16 of the tokens during training doesn't hurt performance; instead, it acts as a regularizer that mitigates global noise, significantly improving the model's generalization to unseen data.
  • Penultimate Layer is the Sweet Spot: Ablation studies showed that injecting TIDE at the penultimate block (Block 27 of 28) yields the best balance between preserving image generation quality and extracting rich semantic features. Earlier layers lack the mature semantic concepts found deeper in the network.

Key Results

  • Faster Convergence & Better Fidelity: Integrating temporal modulation allowed TIDE to achieve significantly faster training convergence and lower reconstruction error (MSE) compared to standard vanilla SAEs.
Convergence comparison showing TIDE outperforming standard SAE
  • Minimal Generation Degradation: When replacing original DiT activations with TIDE's reconstructed features, the downstream Fréchet Inception Distance (FID) increased by only a marginal +0.15 (from 7.30 to 7.45), proving that TIDE preserves the essential features needed for high-quality generation.
  • Controllability and Safe Editing: By manipulating the interpretable latent space of TIDE, the authors successfully performed concept erasure (e.g., removing "Rococo" style) and safe image editing. On the I2P benchmark, TIDE achieved a low Attack Success Rate (ASR) of 0.64%, effectively filtering out unsafe content while maintaining visual fidelity.

Limitations and Future Work

While TIDE marks a significant step forward for DiT interpretability, the authors note that its performance in highly complex, multi-concept editing scenarios remains limited by strict sparsity constraints. If the sparsity parameter ($k$) is set too low, subtle expressive details can be lost. The authors suggest that future work should explore more flexible, dynamic sparse mechanisms to enhance feature expressiveness without sacrificing interpretability.

Summary updated

BibTeX
@inproceedings{huang2026tide,
  author = {Victor Shea-Jay Huang and Le Zhuo and Yi Xin and Zhaokai Wang and Fu-Yun Wang and Yuchi Wang and Renrui Zhang and Peng Gao and Hongsheng Li},
  title = {{TIDE: Temporal-Aware Sparse Autoencoders for Interpretable Diffusion Transformers in Image Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i1.37006},
}
Figure