DifFRACT:面向电路追踪的扩散特征重建与归因

DifFRACT: Diffusion Feature Reconstruction and Attribution for Circuit Tracing

精选理由

这篇论文教你如何用转码器给FLUX.1模型做电路追踪,比稀疏自编码器更准确,能解释图像生成中的属性绑定错误。

AI 摘要

该论文将基于转码器的电路追踪扩展至多模态扩散Transformer,训练时间步条件转码器以逼近FLUX.1[schnell]中MLP子层的输入输出行为。通过替换MLP并线性化剩余计算,实现了精确的特征到特征归因并恢复紧凑可解释电路。在稀疏性-忠实度权衡上,转码器匹配或略优于稀疏自编码器。所得电路揭示了属性绑定和跨流语义传播机制,为系统生成误差提供了因果解释,且基于电路的干预比标准SAE干预更精准有效。

原文 · arXiv cs.AI

DifFRACT: Diffusion Feature Reconstruction and Attribution for Circuit Tracing

Mechanistic interpretability seeks to explain neural network behavior by decomposing model computations into interpretable features and circuits. While transcoder-based circuit tracing has recently enabled detailed causal analyses of large language models, multimodal diffusion transformers for image generation remain comparatively opaque. We still lack tools for understanding how semantic information propagates across denoising steps and how text and image representations interact within double-stream MM-DiT architectures. Existing methods provide only partial insight: attention maps expose a limited view of token interactions, while sparse autoencoders can discover interpretable features but do not directly reveal how these features are transformed and composed through nonlinear MLP layers. In this work, we extend transcoder-based circuit tracing to multimodal diffusion transformers. We train timestep-conditioned transcoders that faithfully approximate the input-output behavior of MLP sublayers in FLUX.1[schnell]. By replacing MLPs with transcoders and linearizing the remaining computation, we obtain exact feature-to-feature attribution and recover compact, interpretable circuits. Empirically, our transcoders match or slightly outperform sparse autoencoders on the sparsity-faithfulness tradeoff. The resulting circuits reveal mechanisms underlying attribute binding and cross-stream semantic propagation, and provide causal explanations for systematic generation errors. Moreover, circuit-guided interventions are substantially more precise and effective than standard SAE-based steering. Our results demonstrate that transcoder-based circuit analysis is feasible for state-of-the-art diffusion transformers and provides a powerful framework for understanding and controlling multimodal generative models. The code is available at https://github.com/Artalmaz31/DifFRACT