arXiv:2610.11238cs.CVOct 2026

Manuscript Offprint

arXiv:2610.11238

Attributing HOW, Not Just WHICH: Counterfactual Response Trajectories for Diffusion Models

Haoqian Zhang, Ziyuan Yang, Zerui Shao, Yi Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Diffusion models have achieved remarkable success in image generation, yet tracing their outputs to individual training examples remains challenging. Existing attribution methods often compress factor-specific effects into scalar responses, making distinct internal changes indistinguishable. This is particularly limiting for diffusion models, where semantic factors emerge through evolving representation dynamics during denoising. We therefore reformulate diffusion data attribution as attributing factor-induced internal response trajectories. In this paper, we propose a novel Concept Attribution method through Dynamic Trajectories(CADT). We argue that attribution should therefore ask not only which examples matter, but also how their influence unfolds during generation. Specifically, we construct matched counterfactual pairs at identical noisy states to isolate factor-specific representation displacements, and model their directional and magnitude evolution across denoising as dynamic attribution signatures. For each training example and generated query, CADT extracts stage-wise feature vectors and integrates them along the denoising process to form a trajectory descriptor. Applying the same construction across the training set yields a bank of factor-specific trajectory descriptors. The covariance statistics of this bank are then used to construct a covariance-aware positive-semidefinite kernel. CADT uses this kernel to calibrate the query and training representations, and compares the calibrated query trajectory with each training trajectory to produce the final training-sample attribution scores. Experiments on multiple public datasets show consistent improvements over existing diffusion attribution baselines across hierarchical, compositional, and style attribution.

1 INTRODUCTION

Diffusion models have emerged as a powerful class of generative models, achieving remarkable progress in high-quality image synthesis and enabling flexible control over generated content (Ho et al., 2020; Nichol & Dhariwal, 2021). As their behavior is shaped by large training collections, understanding which training examples contribute to a generated output is important for interpreting model behavior, tracing data provenance, and diagnosing memorization (Somepalli et al., 2023; Carlini et al., 2023). This motivates data attribution for diffusion models, which aims to trace a generated output back to the training examples that contributed to its formation.

Recent diffusion attribution methods extend influence- and gradient-based attribution to generative models through diffusion-specific objectives, and sampling procedures (Dai & Gifford, 2023; Georgiev et al., 2023; Park et al., 2023; Zheng et al., 2024; Xie et al., 2024; Mlodozeniec et al., 2024; Lin et al., 2025). Most, however, ultimately summarize influence through a scalar response associated with the generated image. This is restrictive for factor-specific attribution. Distinct internal responses can collapse to similar scalar values, even when they emerge at different denoising stages or evolve in different directions. Moreover, image-level responses can mix multiple semantic factors.

We therefore argue that factor-specific attribution should characterize not only how much a training example affects a target factor, but also how the corresponding internal response evolves during generation. Two training examples can receive similar scalar attribution scores while supporting the target factor through qualitatively different generative processes: one may contribute primarily during early denoising, another during later refinement, and their internal responses may evolve along different representation directions. More importantly, these differences can correspond to different semantic roles. For a generated watercolor dog, for example, one training image may primarily support object identity whereas another supports artistic style, even if their aggregated scalar responses are similar. Collapsing such trajectories into a single value therefore obscures not only when influence arises, but also what aspect of the generated content that influence supports.

This motivates two requirements for factor-specific diffusion attribution. First, attribution should preserve how the relevant response evolves throughout denoising rather than collapsing it into a single scalar. Second, this response should isolate the target factor from other semantic variations entangled in the same internal representations. We introduce Concept Attribution through Dynamic Trajectories (CADT) to jointly satisfy these requirements. At each selected denoising stage, CADT evaluates the target condition and a matched reference condition at the same noisy latent, and takes their representation difference as a counterfactual response. By holding the diffusion state fixed, this comparison suppresses variations shared by the two conditions and isolates the response associated with the target factor. CADT then traces how this factor-specific response evolves across denoising stages, capturing both its magnitude and directional evolution. Finally, the stage-wise responses are integrated into a trajectory descriptor that characterizes how the target factor progressively emerges during generation, for both training examples and generated queries.

Directly comparing these descriptors, however, can still be dominated by variations that are broadly shared across the training set and are therefore less informative for attribution. CADT consequently uses the training descriptor bank to adapt the comparison geometry itself. Specifically, it constructs a covariance-aware positive-semidefinite kernel KλK_{\lambda} that accounts for shared trajectory variation and emphasizes more discriminative directions. Query and training descriptors are compared under this bank-adaptive metric, and the resulting similarities are converted into attribution scores that identify the training examples most closely associated with the factor-specific generative trajectory. The resulting kernel further admits both a ridge-reconstruction interpretation and a representation-level leave-one-descriptor-out interpretation. We evaluate our proposed CADT on multiple public datasets, covering compositional, hierarchical, corrupted-source, style, and object-style attribution settings. Across these settings, CADT consistently improves factor-specific attribution over existing diffusion attribution baselines. Our contributions are summarized as follows:

• We reformulate factor-specific diffusion attribution in terms of internal response trajectories, preserving denoising dynamics that are lost under scalar attribution responses.

• We construct matched counterfactual responses at identical noisy states to isolate factor-induced internal changes, and model their response magnitude and directional evolution across denoising as dynamic attribution signatures.

• We integrate these dynamics into trajectory descriptors for training examples and generated queries, and compare them through a training-bank-adaptive covariance-aware kernel to obtain attribution scores across diverse factor-specific attribution settings.

References (54)