Skip to content

Menu

WorksComputer Science

Semantic State Reading for Joint Image-Semantic Diffusion Transformers

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_6qgwxzhk. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Pretrained visual representations improve diffusion-transformer training, yet exploiting both global context and local spatial structure requires deciding which semantic states to model and how to access them. We introduce Semantic State Reading (SSR), which jointly denoises image latents, a global CLS token encoding image-level context, and a compact patch state preserving spatial correspondence. SSR couples this global-local modeling with distinct reading paths: local states are fused with corresponding image tokens at the input, while independent projections inject the current global state into every transformer block. Both semantic scopes thus remain accessible throughout denoising. Ablations show complementary benefits from local-state modeling and repeated global reading, and semantic-trajectory interventions alter image layout under a fixed class label. On ImageNet 256×256256 \times 256, SiT-XL/2 with SSR reaches or surpasses the reference FIDs of SiT, REPA, and Representation Entanglement for Generation (REG) with 100×100\times, 40×40\times, and 2×2\times fewer training iterations, respectively. SSR achieves unguided FID 1.78 at 2M iterations and FID 1.34 with classifier-free guidance alone. Combining classifier-free guidance with autoguidance yields FID 1.31 at 1M iterations, achieving the best FID in our main comparison table.

Class-conditional image samples generated with Semantic State Reading (SSR)

Figure 1. Class-conditional image samples generated with Semantic State Reading (SSR).

Introduction

Diffusion transformers have become an important architecture for high-quality image generation [3, 5, 8] [28]. Latent diffusion [31] reduces image-modeling costs through a pretrained autoencoder, DiT [28] introduces a scalable transformer backbone, and SiT [23] studies generative paths and sampling through stochastic interpolants. However, these models must still learn complex semantic structure through denoising [9] [12, 25], and high-quality generation often requires millions of training updates. Pretrained visual representations provide semantic priors that can ease this learning burden and accelerate convergence [27, 37, 38].

Existing methods primarily use these representations through alignment or joint generation. REPA [37] aligns intermediate generator features with clean teacher representations, while MaskAlign [27] improves supervision through token mixing and subset alignment and incorporates global-token modeling. Joint-generation methods further introduce semantics into the diffusion state: Representation Entanglement for Generation (REG) [36] jointly denoises image latents and a global CLS token, ReDi [16] introduces PCAcompressed spatial patch features, and REGLUE [29] combines a global token with compressed multilayer spatial features. These studies show that semantics can both supervise training and be generated alongside images.

However, incorporating semantics into generation does not by itself fully exploit their spatial structure or determine how they are accessed. A global CLS token provides image-level context without explicit patch-level spatial correspondence; local patch features describe position-specific content but do not directly replace an image-level summary [4, 7] [26]. REG [36] and ReDi [16] emphasize one type of state, while REGLUE [29] demonstrates the value of joint modeling. Building on these findings, we ask two connected questions: how should global and local semantics be combined, and how should the network access them throughout denoising?

Representation alignment constrains what intermediate features learn, but does not specify how each layer reads the current semantic state. Similarly, after input-level semantic fusion, deeper blocks primarily access semantics through progressively transformed hidden features, a different computational path from directly reading the current state. Joint modeling therefore determines which semantic information is available, while the reading design determines how that information participates in deeper denoising computations.

We introduce Semantic State Reading (SSR), which retains the VAE image space and SiT backbone while jointly denoising image latents, a global DINOv2 [26] CLS token, and a compact spatial patch state. Local states compressed by fixed PCA are fused with spatially corresponding image tokens at the input without increasing sequence length. Independent projections inject the current global state into every transformer block before attention, allowing deeper computations to use spatial information and directly access image-level context. During training, a frozen teacher supplies semantic targets, and the generator receives both joint-denoising and representation-alignment supervision. At inference, all three states evolve jointly from independent Gaussian noise, without a reference image or an additional semantic predictor.

Controlled ablations show that local-state modeling and direct global reading each improve the REG baseline, with their combination achieving the best FID at all three evaluated checkpoints. Reading at every layer also outperforms first-layer and alternating-layer reading. Semantic-trajectory interventions further change image layout while preserving the class label and image-noise path, demonstrating that the generated semantic branch participates in image formation.

We evaluate SiT-B/2, L/2, and XL/2 on ImageNet [32] 256×256256 \times256 and observe improved convergence across all three scales. On XL/2, SSR reaches or surpasses the reference FIDs of SiT, REPA, and REG using 100×100\times, 40×40\times, and 2×2\times fewer training iterations, respectively. SSR achieves unguided FID 1.78 at 2M iterations and FID 1.34 with classifier-free guidance [11] alone. Combining it with autoguidance [14] yields FID 1.31 at 1M iterations, the best FID in our main comparison table. Our contributions are:

  • Complementary global and local semantics. We jointly model CLS and spatial patch states and use controlled ablations to examine the individual and combined benefits of local-state modeling and global reading.

  • Per-layer semantic reading. We fuse local states at corresponding input positions and let every block directly read the current global state, combining spatial correspondence with continuously accessible global context.

  • The SSR joint-generation framework. SSR improves convergence across three SiT scales with modest additional forward-pass overhead and substantially fewer training iterations to reach the reference quality levels above.

Related Work

Diffusion transformers and semantic supervision. Latent diffusion [31] reduces image-generation costs by operating in a pretrained autoencoder space. DiT [28] introduces a scalable transformer backbone, while SiT [23] studies generative paths and sampling through stochastic interpolants. Despite these advances, learning semantic structure through denoising remains computationally demanding [9] [39, 40]. REPA [37] introduces semantic supervision by aligning intermediate generator features with clean pretrained representations. MaskAlign [27] extends this approach through token mixing and subset alignment. These objectives supervise what intermediate features learn, but do not specify how each block accesses the current semantic state. SSR retains alignment while jointly generating global and local states, using spatially matched local input and direct per-layer global reading to make semantics available during both training and sampling.

Joint image–semantic modeling. Representation Entanglement for Generation (REG) [36] jointly denoises image latents and a global CLS token, without an explicit spatially corresponding local state. ReDi [16] jointly generates image latents and PCA-compressed patch features, without including a global CLS state in joint denoising. REGLUE [29] combines global CLS and nonlinearly compressed multilayer spatial features, establishing a precedent for joint global–local modeling. SSR focuses on how these states are read: fixed-PCA patch states are fused with corresponding image tokens at the input, while independent projections give every block direct access to the current global state ctc_t, alongside the evolving CLS hidden token. This additional path complements input fusion and subsequent self-attention. The per-layer injection follows an access pattern related to Astra [41], applied here to internally generated semantics rather than external action conditions. SSR thus combines spatially organized local information with global context that remains directly accessible throughout network depth.

Method

SSR jointly generates image latents, a global CLS state and a spatial patch state; the local state is fused with corresponding image tokens at the input, and the global state is read directly by every block (Figure 2).

Figure 2. Comparison between REG and our Semantic State Reading (SSR). (a) During training, REG jointly denoises image latents and a global CLS token from a pretrained visual encoder, while aligning intermediate features with clean teacher representations. (b) During inference, REG jointly generates image latents and global semantics from random noise. (c) SSR additionally models PCA-compressed spatial patch features as a local semantic state, which is fused with spatially corresponding image tokens at the input. Each transformer block also directly reads the current noisy CLS state through an independent projection EℓE_{\ell}, providing global context throughout the network. (d) During inference, SSR jointly generates image, local and global states from random noise, retaining spatial input fusion and per-layer CLS injection at every sampling step. No reference image or visual encoder is required during sampling.

Preliminaries

We build on SiT [23] and the stochastic interpolant framework [1], using a linear path also employed in flow-matching formulations [20, 21]. Given a clean variable u0u_0 and independent Gaussian noise ϵu\epsilon_u, we use the linear interpolation path

ut=(1−t)u0+tϵu,t∈[0,1].(1)u_t = (1-t)u_0 + t\epsilon_u, \qquad t \in[0,1]. \tag*{(1)}

The model predicts the velocity ϵu−u0\epsilon_u-u_0 from the current state, timestep and class label; sampling integrates the corresponding reverse-time SDE from Gaussian noise [1] [23, 34].

Joint Global and Local Semantic Modeling

A global CLS token provides image-level context without explicit positional correspondence, whereas spatial patch features supply position-specific semantic information. To use both, SSR jointly models image latents, a global CLS state and a local spatial state within a single diffusion process.

Given a clean image II, a frozen VAE encoder [15, 31] extracts image latents x0x_0, and a frozen DINOv2 [26] encoder extracts a global CLS token c0c_0 and spatial patch features F0F_0. Fixed PCA [13, 16] with variance normalization gives a compact local state s0=CPCA(F0)s_0=\mathcal{C}_{\mathrm{PCA}}(F_0). For ImageNet 256 × 256, the image latents have size 32×32×432 \times32 \times4, the CLS state has 768 dimensions, and the local state contains 256 vectors of dimension 16 on a 16×1616 \times16 grid. PCA is fitted beforehand on teacher features from training images and remains frozen together with the teacher.

All three states follow Eq. (1) with a shared timestep tt and independent noise ϵx\epsilon_x, ϵc\epsilon_c, ϵs\epsilon_s. The network takes the joint state (xt,ct,st)(x_t, c_t, s_t) as input and predicts all three velocity components. The global state follows REG’s joint denoising formulation [36], while the local state follows ReDi’s PCA-based feature modeling [16]. Their combination allows the model to generate both image-level context and spatial semantics during sampling, without externally supplied clean semantic conditions.

Semantic State Reading

Local spatial reading. Patch embedding converts image latents into a 16×1616 \times16 token grid, matching the local state position by position. The input image tokens are

Himg(0)=Embed⁡(xt)+ϕf(st)+ϕr(Πst).(2)H_{\mathrm{img}}^{(0)} = \operatorname{Embed}(x_t) + \phi_f(s_t) + \phi_r(\Pi s_t). \tag*{(2)}

Here, ϕf\phi_f is a position-wise affine projection into the backbone hidden dimension. The operator Π\Pi averages contiguous 4×44 \times4 regions and broadcasts their means back to the original grid; ϕr\phi_r is a bias-free linear projection. Both projections are zero-initialized.

The local state is added to corresponding image tokens without increasing the number of sequence positions. The region branch reads means of the same local state and introduces no additional diffusion variable. The global CLS state is projected, normalized [2] and concatenated with the image tokens:

H0=[LN(ϕc(ct));Himg(0)]+Epos,(3)H_0 = \left[\mathrm{LN}(\phi_c(c_t)); H_{\mathrm{img}}^{(0)}\right] + E_{\mathrm{pos}}, \tag*{(3)}

where EposE_{\mathrm{pos}} denotes positional embeddings.

Per-layer global reading. When the global token is introduced only at the input, subsequent blocks access its semantics through progressively transformed hidden features. SSR retains this sequence structure while also letting every block directly read the CLS state ctc_t of the current diffusion timestep.

For block ℓ\ell with modulation condition a=emb⁡(t)+emb⁡(y)a = \operatorname{emb}(t) + \operatorname{emb}(y), an independent projection of the current CLS state is added after AdaLN [28]:

Uℓ=AdaLN⁡ℓ(Hℓ−1;a)+[0;Broadcast⁡(Eℓct+bℓ)].(4)U_\ell= \operatorname{AdaLN}_\ell(H_{\ell-1};a) + [0;\operatorname{Broadcast}(E_\ell c_t + b_\ell)]. \tag*{(4)}

The additional projection is broadcast only to image tokens, not to the CLS position. Every block reads the same current state ctc_t, rather than the CLS hidden feature updated by the preceding block, using its own parameters EℓE_\ell, bℓb_\ell.

Attention and the residual update [35] then give

Hℓ′=Hℓ−1+γℓ⊙Pℓ(Attn⁡ℓ(Uℓ)),(5)H'_\ell= H_{\ell-1} + \gamma_\ell\odot P_\ell(\operatorname{Attn}_\ell(U_\ell)), \tag*{(5)}

followed by the standard MLP branch. Here, γℓ\gamma_\ell is SiT’s conditional gate, and PℓP_\ell is an affine map applied to all tokens. The global projection is zero-initialized; the weight of PℓP_\ell is initialized to the identity and its bias to zero.

This placement follows Astra’s per-layer injection design [41], but the injected signal is an internally generated semantic state. The local path preserves spatial correspondence, while the global path gives deeper blocks direct access to the current image-level context.

Training and Inference

Training objective. Three output heads predict velocities vxv_x, vcv_c and vsv_s for the image, global CLS and local states, conditioned on (xt,ct,st,t,y)(x_t, c_t, s_t, t, y). The image and local heads read the final image tokens, while the global head reads the CLS token. The joint prediction loss is

Lpred=E[MSE⁡(vx,ϵx−x0)+βMSE⁡(vc,ϵc−c0)+μMSE⁡(vs,ϵs−s0)],(6)\mathcal{L}_{\mathrm{pred}} = \mathbb{E}\left[\operatorname{MSE}(v_x,\epsilon_x-x_0) + \beta\operatorname{MSE}(v_c,\epsilon_c-c_0) + \mu\operatorname{MSE}(v_s,\epsilon_s-s_0)\right], \tag*{(6)}

where each MSE is averaged over the elements of its corresponding prediction tensor.

We also retain REPA-style representation alignment [37]. A projector hh maps hidden tokens at block kk to the teacher dimension, aligning them with clean teacher CLS and patch features:

Lalign=−E[1N+1∑i=0Ncos⁡(h(Hk)i,Ti)].(7)\mathcal{L}_{\mathrm{align}} = -\mathbb{E}\left[\frac{1}{N+1}\sum_{i=0}^{N}\cos(h(H_k)_i,T_i)\right]. \tag*{(7)}

Here, N=256N = 256 and T=[c0;F0]T = [c_0;F_0] contains one global CLS token and 256 teacher patch features before PCA compression. Local velocity prediction targets the compressed state, whereas alignment uses the original teacher representations. The total objective is

Ltotal=Lpred+λLalign.(8)\mathcal{L}_{\mathrm{total}} = \mathcal{L}_{\mathrm{pred}} + \lambda\mathcal{L}_{\mathrm{align}}. \tag*{(8)}

The default weights are β=0.03\beta= 0.03, μ=0.25\mu= 0.25 and λ=1\lambda= 1. Alignment is applied after block 4 for B/2 and block 8 for L/2 and XL/2. Training updates the generator and its reading, prediction and alignment modules, while the teacher and PCA remain frozen.

Inference. Image latents, global CLS and local states are initialized from independent Gaussian noise and jointly updated on the same Euler–Maruyama grid under a class label. Every sampling step uses the same reading paths as training. Sampling requires neither a teacher model nor a reference image or a separate semantic prediction network.

We train the unconditional branch with 10% label dropout and optionally apply classifier-free guidance [11] separately to the three velocity components. The final step updates only the image latents, which are decoded by the VAE; the semantic states are then discarded. For deployment, the post-attention affine map can be merged into the attention output projection.

Experiments

Setup

Training. We train class-conditional SiT-B/2, L/2 and XL/2 from scratch on ImageNet [32] 256×256256 \times256, using SD-VAE [31] latents of size 32×32×432 \times32 \times4. Following REG [36], we use batch 256, AdamW [22] with learning rate 10−410^{-4}, gradient clipping 1.0, EMA 0.9999 and 10% label dropout. Alignment depth is 4 for B/2 and 8 for L/2 and XL/2. Each result uses one training seed. Same-platform main comparisons use REG with its published λ=0.5\lambda= 0.5 and official-code REPA on L/2 and XL/2; controlled module ablations instead fix λ=1\lambda= 1 for all four settings. Our REG runs agree with published results: at 200K, 6.54 versus 6.6 on L/2 and 4.86 versus 5.0 on XL/2; at 400K, 15.11 versus 15.2 on B/2.

Evaluation. We evaluate 50K samples using FID [10], spatial FID (sFID) [24], Inception Score (IS) [33], and precision/recall [18], with the ADM evaluation suite [6], EMA weights and a 250-step Euler–Maruyama SDE sampler. Results are unguided unless stated otherwise. Published comparisons are explicitly marked and use the values reported in their source papers. MaskAlign and REGLUE are external baselines with different implementations; neither has been rerun on our platform.

Generation Quality and Convergence

Accelerating training convergence. Table 1 compares SSR with SiT, REPA, REG, REGLUE, and MaskAlign on ImageNet 256 × 256 without classifier-free guidance; Figure 3 shows convergence across model scales. SSR consistently improves FID across model scales and evaluated common checkpoints. At 400K iterations, it achieves FID 9.79, 3.08 and 2.43 on B/2, L/2, and XL/2, respectively. On B/2, SSR improves over REG, MaskAlign and published REGLUE by 5.32, 5.01 and 3.11 FID points, respectively. On XL/2, its 200K, 400K and 1M FIDs of 3.30, 2.43 and 1.97 compare with REGLUE’s published 4.6, 3.2 and 2.5 at the same iterations [29]. On XL/2, the gains emerge early: SSR reduces REG’s FID from 28.03 to 11.61 at 50K and from 8.39 to 4.93 at 100K.

Figure 3. SSR accelerates convergence across model scales. Unguided FID-50K on ImageNet 256×256256 \times256 with SiT-L/2 and XL/2. On XL/2, SSR reaches or surpasses the reference FIDs of SiT, REPA, and REG using 100×100\times, 40×40\times, and 2×2\times fewer training iterations, respectively.

Method#ParamsIter.FID↓\downarrowMethod#ParamsIter.FID↓\downarrow
SiT-B/2†^{\dagger} [23]130M400K33.0SiT-XL/2†^{\dagger}675M400K17.2
+ REPA†^{\dagger} [37]130M400K24.4SiT-XL/2†^{\dagger}675M7M8.3
+ ReDi†^{\dagger} [16, 17]130M400K21.4+ REPA675M100K18.38
+ REG [36]132M100K35.18+ REPA†^{\dagger}675M4M5.9
+ REG132M400K15.11+ REG677M100K8.39
+ MaskAlign†^{\dagger} [27]154M400K14.8+ REG†^{\dagger}677M400K3.4
+ REGLUE†^{\dagger} [29]132M400K12.9+ REG†^{\dagger}677M1M2.7
+ SSR (ours)139M100K21.95+ REG†^{\dagger}677M2.4M2.2
+ SSR (ours)139M400K9.79+ REG†^{\dagger}677M4M1.8
SiT-L/2†^{\dagger}458M400K18.8+ REGLUE†^{\dagger}677M200K4.6
+ REPA458M100K21.88+ REGLUE†^{\dagger}677M400K3.2
+ REPA†^{\dagger}458M400K9.7+ REGLUE†^{\dagger}677M700K2.7
+ REG460M100K11.23+ REGLUE†^{\dagger}677M1M2.5
+ REG†^{\dagger}460M400K4.6+ MaskAlign†^{\dagger}732M200K4.0
+ SSR (ours)479M100K6.56+ MaskAlign†^{\dagger}732M400K2.8
+ SSR (ours)479M400K3.08+ MaskAlign†^{\dagger}732M1M2.4
+ MaskAlign†^{\dagger}732M2.4M2.1
+ SSR (ours)702M70K6.84
+ SSR (ours)702M100K4.93
+ SSR (ours)702M200K3.30
+ SSR (ours)702M400K2.43
+ SSR (ours)702M1M1.97
+ SSR (ours)702M2M1.78

Table 1. FID comparison across training iterations for diffusion transformers with semantic supervision. All results are evaluated on ImageNet 256 × 256 without classifier-free guidance (CFG). † denotes results reported in the original papers.

SSR also reaches the reference quality of longer-trained models with substantially fewer updates. SiT-XL/2 + SSR achieves FID 6.84 at 70K iterations, surpassing SiT at 7M (8.3) [23], and FID 4.93 at 100K, surpassing REPA at 4M (5.9) [37]. These measured checkpoints use 1/100 and 1/40 of the respective reference iteration budgets. With longer training, SSR reaches FID 1.97 at 1M versus MaskAlign’s 2.4 at that budget [27], and 1.78 at 2M versus REG’s 1.8 at 4M [36]. These are ratios of measured checkpoint budgets at reference quality levels, not measured wall-clock speedups or exact threshold-crossing times.

Generation quality. Beyond FID, SSR improves precision, IS, and sFID over REG at 200K on XL/2: precision increases from 0.751 to 0.786, IS increases from 161.7 to 185.8, and sFID decreases from 4.99 to 4.66. With longer training, SSR reaches IS 228.4 and sFID 4.44 at 2M. Figure 5 compares REPA, REG, and SSR at 50K, 100K, and 200K using shared labels and image noise.

Samples across training iterations

Figure 5. Samples across training iterations. Same-platform SiT-XL/2 samples with REPA, REG and SSR at 50K, 100K and 200K iterations. All use the same label and the same initial and per-step image noise; CFG 4.0 on every generated variable, 250-step SDE, EMA. The class (lion) was selected for display from 12 classes fixed before sampling.

Comparison under guided sampling. Table 2 compares guided generation across training budgets. On XL/2, CFG [11, 19] 2.3 applied to all three states for t≤0.85t \le0.85 yields FID 1.51, 1.42, 1.39 and 1.34 at 80, 160, 200 and 400 epochs. At 80/160 epochs, these results improve on the published REG (1.86/1.59) [36],

MethodEpochsFID↓\downarrowsFID↓\downarrowIS↑\uparrowPre.↑\uparrowRec.↑\uparrow
DiT-XL/2 [28]14002.274.60278.20.830.57
SiT-XL/2 [23]14002.064.50270.30.820.59
+ REPA [37]8001.424.70305.70.800.65
+ REG [36]801.864.49321.40.760.63
+ REG1601.594.36304.60.770.65
+ REG4801.404.24296.90.770.66
+ REG8001.364.25299.40.770.66
+ MaskAlign [27]801.824.48310.00.810.63
+ MaskAlign1601.564.37304.10.790.65
+ MaskAlign8001.354.31312.90.780.67
+ REGLUE [29]801.594.22282.90.780.64
+ REGLUE1601.464.23293.90.780.65
+ SSR (ours, CFG)801.514.31289.40.800.62
+ SSR (ours, CFG)1601.424.20297.00.800.64
+ SSR (ours, CFG)2001.394.12300.10.800.63
+ SSR (ours, CFG)4001.344.23303.60.800.65
+ SSR (ours, hybrid)801.474.75266.50.790.64
+ SSR (ours, hybrid)1601.334.80277.50.790.65
+ SSR (ours, hybrid)2001.314.73279.70.790.65

Table 2. Guided generation on ImageNet 256 × 256. Published baselines use their reported guidance settings. SSR (CFG) uses scale 2.3 for t≤0.85t \le0.85; SSR (hybrid) adds autoguidance at extra sampling cost. Arrows indicate the preferred direction.

MaskAlign (1.82/1.56) [27] and REGLUE (1.59/1.46) [29] values. The gaps to REGLUE are 0.08/0.04 FID; repeated-seed uncertainty is not available. This is a comparison of reported protocols: REGLUE uses CFG 2.3 for t≤0.90t \le0.90 [29]. At 400 epochs, SSR is numerically below REG’s 1.36 and MaskAlign’s 1.35 at 800 epochs. Pure CFG attains sFID 4.12 at 200 epochs; IS rises from 289.4 to 303.6 across the four checkpoints, while precision remains 0.80. A separate B/2 test at 400K supports guiding the local state: guiding all three states gives FID 4.44 versus 5.79 without local-state guidance, at the same CFG scale and interval.

We further combine CFG with autoguidance [14]:

d=dCFG+(wag−1)(dcond−dweak),(9)d = d_{\mathrm{CFG}} + (w_{\mathrm{ag}} - 1)(d_{\mathrm{cond}} - d_{\mathrm{weak}}), \tag*{(9)}

using SiT-L/2 + SSR at 100K as the weak model. With CFG 1.8 and wag=1.5w_{\mathrm{ag}} = 1.5, this hybrid configuration achieves FID 1.47, 1.33 and 1.31 at 80, 160 and 200 epochs, respectively: 0.04, 0.09 and 0.08 below the pure-CFG configuration. Because the CFG scale also changes, these gaps do not isolate the effect of autoguidance alone. The measured sampling time is 1.39× that of CFG alone. The 1.31 FID is the lowest among the listed VAE-based comparisons and requires an additional weak model; it is not a claim of state of the art across all image representations. At matched epochs, pure CFG has lower sFID and higher IS and precision than hybrid guidance; the two schemes offer different metric and compute trade-offs.

Ablation Studies

We conduct SiT-B/2 ablations with a shared training seed. Figure 4 evaluates module combinations and reading depth; Table 3 reports five metrics at 200K. Defaults are DINOv2-B, PCA-16, k=4k = 4, β=0.03\beta= 0.03, λ=1\lambda= 1 and μ=0.25\mu= 0.25; the μ\mu sweep uses λ=0.5\lambda= 0.5. Default SSR has the best FID, IS and precision in Table 3, while hidden-state CLS reading has the lowest sFID and REG the highest recall.

Figure 4. Global–local semantic modeling and global reading. Unguided FID-50K on SiT-B/2 with λ=1\lambda= 1. (a) Adding either module improves REG; combining them yields the lowest FID at all three checkpoints. (b) With the local state present, reading the global state at every layer achieves the best FID at 100K iterations.

Table 3. Ablations of semantic representations, reading designs, and training configurations. Unguided results at 200K iterations on SiT-B/2 with a shared seed (FID-50K). The reference configuration is SSR with DINOv2-B, PCA-16, k=4k = 4, β=0.03\beta= 0.03, λ=1\lambda= 1, μ=0.25\mu= 0.25, and per-layer EℓE_\ell, PℓP_\ell. Each group varies the indicated factor; the μ\mu sweep fixes λ=0.5\lambda= 0.5. REG + ReDi [16, 36] omits global reading and the regional-mean branch, which the local-only variant in Figure 4(a) retains; Pre-merged merges PℓP_\ell before training; Read CLS of Hℓ−1H_{\ell-1} lets EℓE_\ell read the normalized CLS row of the preceding hidden state instead of ctc_t. Bold denotes the best value in each column.

AblationSettingFID↓\downarrowsFID↓\downarrowIS↑\uparrowPre.↑\uparrowRec.↑\uparrow
SSR (default)13.746.7499.30.6790.606
BaselinesREG20.226.9878.20.6140.624
BaselinesREG + ReDi, PCA-816.896.7490.60.6580.616
BaselinesREG + ReDi, PCA-1616.846.8093.30.6610.617
PCA channels815.056.9396.20.6650.599
PCA channels1213.946.8298.90.6730.607
PCA channels16 (default)13.746.7499.30.6790.606
Global readShared EE, PP14.616.9395.00.6690.613
Global readShared EE, no PP14.356.9095.80.6680.607
Global readPℓP_\ell pre-merged14.166.8896.10.6730.609
Global readRead CLS of Hℓ−1H_{\ell-1}13.806.5997.60.6690.611
TargetDINOv2-L15.167.2996.90.6660.595
TargetCLIP-L21.187.1871.30.6270.606
Depth kk214.246.7794.90.6750.600
Depth kk615.187.0093.40.6690.595
β\beta0.0514.216.9197.40.6690.610
β\beta0.1015.427.3294.90.6590.601
λ\lambda020.366.6971.20.6470.593
λ\lambda0.2515.526.9191.60.6690.601
λ\lambda0.514.296.8595.30.6740.602
λ\lambda213.766.8599.00.6750.610
μ\mu (λ=0.5\lambda= 0.5)0168.2577.346.40.1030.103
μ\mu (λ=0.5\lambda= 0.5)0.12514.856.8494.40.6700.597
μ\mu (λ=0.5\lambda= 0.5)0.2514.296.8595.30.6740.602
μ\mu (λ=0.5\lambda= 0.5)0.514.757.0494.20.6700.596
μ\mu (λ=0.5\lambda= 0.5)116.357.2588.70.6620.595
μ\mu (λ=0.5\lambda= 0.5)223.668.7270.00.6090.588

Table 3.

Local-state modeling and global reading. Figure 4(a) isolates the two components at λ=1\lambda= 1. At 100K, REG, global reading alone, local-state modeling alone and full SSR yield FID 32.16, 27.72, 26.99 and 21.95. Their corresponding 200K values are 20.22, 17.32, 16.62 and 13.74; at 400K they are 14.35, 12.12, 11.46 and 9.79. Local-state modeling has the larger standalone gain, but global reading improves it further by 5.04/2.88/1.67 FID. The joint gain minus the sum of the standalone gains is +0.60/−0.02/−0.56 at 100K/200K/400K. Thus both paths are useful, while their interaction is not uniformly additive or superadditive. These single-seed results do not establish interaction significance.

Reading across network depth. With the local state present, no direct reading, first-layer reading, alternating-layer reading and all-layer reading yield FID 26.99, 24.54, 22.64 and 21.95 at 100K (Figure 4(b)). Sparse reading also helps; all-layer reading performs best among these choices. The separate source comparison at 200K is less decisive: reading ctc_t gives FID 13.74 versus 13.80 for the normalized CLS row of Hℓ−1H_{\ell-1}, but the hidden-state variant has better sFID (6.59 versus 6.74) and recall (0.611 versus 0.606).

Spatial-state dimension. PCA dimensions 8, 12 and 16 yield FID 15.05, 13.94 and 13.74 at 200K. PCA-16 also has the best IS and precision in this sweep; PCA-12 has slightly higher recall (0.607 versus 0.606). In the separate REG + ReDi baseline, increasing PCA-8 to PCA-16 changes FID only from 16.89 to 16.84, while sFID rises from 6.74 to 6.80. Both REG + ReDi and the local-only variant omit direct global reading, but the latter retains ϕr(Πst)\phi_r(\Pi_{st}) and reaches 16.62 at 200K (Figure 4(a)).

Per-layer parameterization. Independent Eℓ,PℓE_\ell, P_\ell give FID 13.74 at 200K, compared with 14.61 for shared E,PE, P, 14.35 for shared EE without PP, and 14.16 when PℓP_\ell is merged before training. This favors independent projections and a separate training parameterization for PP in FID. Merging PP after training is an algebraic reparameterization of the trained attention output, rather than the pre-merged training variant.

Teacher representations and alignment depth. DINOv2-B gives FID 13.74 at 200K, versus 15.16 for DINOv2-L and 21.18 for CLIP-L [30]. Alignment at layer 4 gives 13.74, versus 14.24 and 15.18 at layers 2 and 6. These results support the default teacher and depth for B/2 under this training setup, not a general ranking of representation quality.

Loss weights. At 200K, β=0.03\beta= 0.03 gives FID 13.74, versus 14.21/15.42 for 0.05/0.10. Raising λ\lambda from 0 to 1 lowers FID from 20.36 to 13.74; λ=2\lambda= 2 gives a similar 13.76. With λ=0.5\lambda= 0.5 fixed, μ=0.25\mu= 0.25 gives the lowest FID (14.29), versus 14.85/14.75 for 0.125/0.5, and 16.35/23.66 for 1/2. Removing local prediction

(μ=0\mu= 0) gives FID 168.25, sFID 77.34 and IS 6.4. This variant retains the joint-state architecture and sampling procedure: it is not equivalent to removing the local module. The severe degradation therefore supports training the sampled local state, without proving a unique mechanism or an optimal loss weight.

How the Generated States Affect the Image

Intervening on generated semantics. A central question in joint image–semantic generation is whether the generated semantic states actively guide image formation or merely serve as auxiliary prediction targets. We address this question by intervening on the semantic branch during sampling. Using SiT-XL/2 + SSR trained for 2M iterations, we sample paired trajectories A and B without guidance with a 250-step SDE sampler. At time tt, we replace A’s local state sts_t, or both its global and local states (ct,st)(c_t, s_t), with B’s states at the same time and continue with B’s semantic noise. A’s class label, image latent at the intervention, and subsequent image noise remain unchanged.

Layout changes under a fixed class label. Figure 6 shows two predetermined class pairs: arctic fox–volcano and loggerhead turtle–geyser. Swapping only sts_t at t=0.7t = 0.7 introduces a volcano-like cone or a geyser-like column despite retaining A’s class label. Joint swaps also change content and structure, with outcomes depending on intervention time. Insets show the final local states through their first three PCA directions. These interventions change the image while its class condition and image-noise realization are held fixed. They also replace subsequent semantic noise, so they test the semantic trajectory rather than isolate a single state value.

Semantic-trajectory swaps

Figure 6. Semantic-trajectory swaps. SiT-XL/2 + SSR at 2M, no guidance, seed 0. Two of the four predetermined class pairs are shown. Except column B, each column keeps A’s label, image latent and image noise. At the indicated time, generated sts_t, or both ct,stc_t, s_t, are replaced with B’s and continue with B’s semantic noise. Insets show the final local state using its first three directions as RGB.

Across four seeds and four class pairs, swapping sts_t at t=0.9t = 0.9 or 0.70.7, or ctc_t alone at t=0.9t = 0.9, displaces the final image latent from the unmodified A by 0.55, 0.43, and 0.36 of the original A–B distance, respectively. Together, these observations show sensitivity to the generated semantic trajectory, including layout changes beyond the class label. They do not establish that global and local states independently control content and layout.

Computational Cost

Table 4 compares same-platform SiT-XL/2 inference costs. At 200K, SSR reduces REG’s FID from 4.86 to 3.30 (32.1%) and increases IS from 161.7 to 185.8 (14.9%). It adds less than 0.1% FLOPs, 2.7% measured latency and 3.7% parameters overall. Each global projection EℓE_\ell is computed once per image and layer, then broadcast across tokens. Thus the reading design improves generation quality at a small arithmetic and measured latency overhead.

MethodParams (M)GFLOPsLatency (s)FIDIS
REPA675.11237.20.58810.44105.7
REG676.89238.20.6634.86161.7
SSR701.75238.30.6813.30185.8

Table 4. Computational cost and generation performance on SiT-XL/2. FID and IS are evaluated at 200K iterations. Parameters and FLOPs exclude the alignment projector. FLOPs are measured per forward pass at batch size 1; latency is the median of 30 FP32 forward passes at batch size 125 on the same device.

Limitations

Due to the substantial computational resources required for training, all training comparisons use a single shared random seed. Although the state-intervention study uses four random seeds, these vary sampling randomness rather than training randomness.

Our experiments are limited to ImageNet 256×256256 \times256, and semantic swaps do not establish fully disentangled global and local control. Future work could evaluate multiple training seeds and extend the experiments to additional datasets and resolutions to further assess robustness and generalization.

Conclusion

We presented SSR to improve diffusion-transformer training through joint global–local semantic modeling and per-layer global reading. Our experiments show that adding spatial patch states to global semantic modeling improves generation, and directly exposing each block to the current global state provides further gains. Together, these findings support combining complementary semantic representations with explicit access throughout network depth. Semantic-trajectory swaps further reveal that the generated states influence image layout even when the class label and image-noise path remain fixed, connecting the jointly learned semantics to the generation process itself. This design improves convergence across three SiT scales with modest inference overhead. On SiT-XL/2, SSR surpasses REPA’s reported reference FID with 40× fewer training iterations and matches REG’s reference quality with half the iterations. SSR thus demonstrates the value of coupling global–local semantic modeling with sustained semantic access for efficient image generation.

Supplementary Material

Sections A and B describe the model and quantify its training and inference costs. Section C compares the reading paths and guidance settings. Section D tests which information the semantic states recover and how changing them affects an image. Section E shows paired samples, including complete sets of draws.

Architecture and implementation

Three states on one image grid. The frozen DINOv2-B/14 encoder [6] receives an ImageNet-normalized RGB crop resized to 224×224224 \times224 by bicubic interpolation. After the encoder’s final LayerNorm, row zero gives the 768-dimensional c0c_0 at its native scale, without further centering, normalization or rescaling. The remaining 256 rows give F0,iF_{0,i} in row-major order on a 16×1616 \times16 grid. A frozen SD-VAE [7] encodes the 256×256256 \times256 image into a 32×32×432 \times32 \times4 latent x0x_0. Each 2×22 \times2 latent patch gives one SiT image token [5] at the corresponding grid location.

Fitting the local state. One PCA basis is fitted across all positions of 20,000 ImageNet training images (5,120,000 patch vectors). With mean mm, covariance eigenvectors qjq_j and eigenvalues νj\nu_j in descending order, the whitened coordinates of patch ii are

s0,i,j=qjT(F0,i−m)νj,j=1,…,16.(10)s_{0,i,j} = \frac{q_j^{\mathsf{T}}(F_{0,i}-m)}{\sqrt{\nu_j}}, \qquad j = 1,\ldots,16. \tag*{(10)}

In an FP32 refit of the PCA basis in Eq. (10) on the same images, the leading 8, 12 and 16 directions explain 13.5%, 16.5% and 19.0% of the total variance before whitening. In the single-seed B/2 comparison at 200K updates, the corresponding unguided FIDs are 15.05, 13.94 and 13.74 (Table 3 of the main paper). The 16-channel choice gives the lowest measured FID in this sweep.

All three backbones use the modules in Table S1. B/2, L/2 and XL/2 use 12, 24 and 28 blocks, widths 768, 1024 and 1152, and 12, 16 and 16 attention heads, respectively. The alignment head reads block 4 in B/2 and block 8 in L/2 and XL/2.

Table S1. Modules of SSR. dd is the backbone width. Every block has its own EℓE_\ell and PℓP_\ell. An affine map includes a bias unless specified otherwise.

ModuleOperation and initialization
Local input ϕf\phi_f, ϕr\phi_rAdd ϕf(st,i)\phi_f(s_{t,i}) and ϕr(sˉt,R(i))\phi_r(\bar{s}_{t,R(i)}) to image token ii, with sˉt,R(i)\bar{s}_{t,R(i)} the mean of its contiguous 4×44 \times4 region. Both maps are 16→d16 \to d and start at zero. Only ϕf\phi_f has a bias.
Input CLS ϕc\phi_cAffine 768→d768 \to d with Xavier-uniform weights and zero bias, followed by learned LayerNorm (ϵ=10−6\epsilon= 10^{-6}). Prepend this row to the 256 image rows. Add a fixed zero position vector to the CLS row and fixed 2D sine–cosine embeddings to the image rows.
Global read EℓE_\ellZero-initialized affine 768→d768 \to d. Broadcast Eℓ(ct)E_\ell(c_t) to the conditioned, normalized image rows immediately before self-attention. The CLS row receives no broadcast.
Attention output PℓP_\ellAffine d→dd \to d on the attention output of all 257 rows, initialized to the identity with zero bias, before the gated residual update.
Velocity headsA final conditioned LayerNorm feeds three zero-initialized affine heads. Image rows give vxv_x (d→16d \to16, reshaped into 2×2×42 \times2 \times4 patches) and vsv_s (d→16d \to16). The CLS row gives vcv_c (d→768d \to768).
Alignment head hhTraining-only MLP d→2048→2048→768d \to2048 \to2048 \to768, with SiLU after each hidden affine layer, Xavier-uniform weights and zero biases. All 257 rows are aligned to the uncompressed teacher features.

Table S1.

Training and sampling

One training update. We draw x0=0.18215(mx+σx⊙η)x_0 = 0.18215\left(m_x + \sigma_x \odot\eta\right), with η∼N(0,I)\eta\sim\mathcal{N}(0,I), from the cached SD-VAE posterior mean and standard deviation in SwayStar123/repa-imagenet-256 (revision 21fc92f23f5f). Draw one t∼U(0,1)t \sim U(0,1) per image independently of the posterior sample. For each u∈{x,c,s}u \in\{x,c,s\}, draw independent standard Gaussian noise ϵu\epsilon_u and set ut=(1−t)u0+tϵuu_t = (1-t)u_0 + t\epsilon_u. The three heads predict ϵu−u0\epsilon_u-u_0 with mean squared error weights 1, 0.03, 0.25 for x,c,sx,c,s. Add the negative cosine alignment loss [9] with weight 1. Drop the class label with probability 0.1. AdamW uses a global batch of 256, constant learning rate 10−410^{-4}, moments (0.9, 0.999), ϵ=10−8\epsilon= 10^{-8}, zero weight decay and gradient-norm clipping at 1. The teacher and student use FP16 autocast. Student parameters, AdamW state, PCA projection and loss reductions use FP32. We use dynamic loss scaling and unscale gradients before clipping. Only successful updates advance the step count and the EMA (decay 0.9999).

One network evaluation. At inference the three initial states are independent standard Gaussians. Each block reads the same current ctc_t through its own EℓE_\ell (Table S1). The hidden CLS row evolves through attention and the MLP. The updated diffusion state supplies ctc_t at the next solver step. The final LayerNorm has no learned affine parameters of its own. A SiLU and a d→2dd \to2d affine map of the timestep and label conditioning supply its shift and scale.

Updating the three states. For a velocity vuv_u at positive tt, the linear interpolation path gives the estimated score q^u\widehat{q}_u, diffusion variance g2g^2 and reverse-time drift dud_u below.

q^u=−ut+(1−t)vut,g2(t)=2t,du=vu−12g2(t)q^u,(11)\widehat{q}_u = -\frac{u_t + (1-t)v_u}{t}, \qquad g^2(t) = 2t, \qquad d_u = v_u - \frac{1}{2}g^2(t)\widehat{q}_u, \tag*{(11)}
ut+Δt=ut+duΔt+2t∣Δt∣ ξu,Δt<0.(12)u_{t+\Delta t} = u_t + d_u\Delta t + \sqrt{2t|\Delta t|}\,\xi_u, \qquad\Delta t < 0. \tag*{(12)}

The Euler–Maruyama grid has 250 positive evaluation times spaced uniformly from 1 to 0.04. For each of the first 249 steps we draw fresh, independent standard Gaussian increments ξu\xi_u. From t=0.04t = 0.04 to zero, we take a deterministic final drift step on xx, divide the resulting latent by 0.18215 and decode it with stabilityai/sd-vae-ft-ema. For guided sampling the drift in Eq. (12) is combined separately for each stream as specified in Section C.3.

Parameter accounting

The XL/2 alignment head has 8.13M trainable parameters. Each of the 28 blocks has a post-attention map with 1152(1152+1)1152(1152+1) parameters, for 37.19M in total before merging (Table S2). Its global read has 1152(768+1)1152(768+1) parameters. Across blocks, these reads retain 24.80M parameters at inference.

Trainable studentUnmerged generatorInference generator
BackboneREGSSRSSRREGSSR (merged)
SiT-B/2138.83153.04145.90131.68138.81
SiT-L/2467.27511.41503.80459.66478.61
SiT-XL/2684.72746.77738.94676.89701.75

Table S2. Student parameters in millions. Trainable counts include the alignment head and exclude fixed position embeddings. Generator counts include fixed positions and exclude the alignment head. Frozen encoders and the EMA copy are excluded throughout.

Training and inference cost

Observed training cost. At its 200K checkpoint, SSR reaches unguided FID 13.74 in 64.11 logical NPU-hours. REG reaches 14.35 in 113.93 NPU-hours at 400K (Table S3). SSR uses 43.7% fewer training-loop NPU-hours for these two measured checkpoints. At equal 400K budgets, SSR uses 8.95% more NPU-hours and lowers FID from 14.35 to 9.79.

Table S3. Observed training-loop cost on Ascend 910C. Cumulative logical NPU-hours and unguided FID-50K for SiT-B/2. Both runs use four logical devices, global batch size 256 and alignment weight λ=1\lambda= 1, as in Figure 4 of the main paper. The REG baseline in Table 1 of the main paper uses λ=0.5\lambda= 0.5.

UpdatesREGREGSSRSSR
FIDNPU-hoursFIDNPU-hours
100K32.1629.2321.9530.59
200K20.2257.4913.7464.11
400K14.35113.939.79124.13

Table S3.

Each B/2 run used four logical Ascend 910C devices on its own host. We sum training-loop elapsed time across three consecutive segments and multiply by four. The logged intervals include skipped mixed-precision update attempts. Model initialization, offline data preparation, gaps between launches, final checkpoint serialization and evaluation fall outside this measure.

Merging PℓP_\ell. Write the attention output projection as WOz+bOW_Oz + b_O and the following map as Pℓ(h)=Aℓh+aℓP_\ell(h) = A_\ell h + a_\ell. After training, one affine map with weights AℓWOA_\ell W_O and bias AℓbO+aℓA_\ell b_O + a_\ell gives the same output. The separate global projection Eℓ(ct)E_\ell(c_t) is evaluated once per sample per block and broadcast over image positions. On XL/2 the resulting generator has 701.75M parameters versus 676.89M for REG (Table S2). A single forward pass at batch size one costs 238.3 vs. 238.2 GFLOPs. At batch size 125 the median of 30 FP32 forward passes is 0.681 s vs. 0.663 s, a 2.7% increase.

XL/2 training measurements. Table S4 reports 1,000-update windows. All runs use a global batch of 256 and 16 images per device per microbatch. The eight-device runs accumulate two microbatches per update. The sixteen-device continuation to 2M uses one.

Table S4. Observed SiT-XL/2 training cost. Time per successful update includes any skipped attempts between the endpoints. Memory is peak allocated tensor memory reported by rank zero up to the end of the window, in GiB.

RunLogical NPUsUpdate intervalms/updatePeak GiB
REG850,100–51,100602.117.88
SSR850,100–51,100593.825.37
SSR continuation16200,100–201,100377.122.58

Table S4.

Table 5.

On eight devices, REG skipped no attempts and SSR skipped one. A single window on each of two different hosts cannot establish a speed advantage from the 8.3 ms difference. The 7.49 GiB increase is 41.9% of the REG peak. SSR adds 62.05M trainable parameters, mostly in EℓE_\ell and the unmerged PℓP_\ell, and stores local-state activations. The rank-zero peak includes the EMA copy and was recorded without a per-component breakdown.

The first 200K SSR updates used 259.62 logical NPU-hours on eight devices. The continuation used 3,126.48 on sixteen devices, totaling 3,386.10 through 2M, including 9,878 updates recomputed after a restart. These training-loop totals exclude downtime and offline evaluation.

XL/2 checkpoint budgets. The ratios in Table S5 compare training updates at evaluated checkpoints. Their wall-clock equivalents depend on per-step throughput and device count.

Table S5. Measured checkpoints at published reference quality levels. Unguided SiT-XL/2, ImageNet 256 × 256. Hours are cumulative logical 910C NPU-hours for SSR. Ratios compare update counts.

Reference modelPublished referencePublished referenceSSR checkpointSSR checkpointSSR checkpointUpdate ratio
StepsFIDStepsFIDNPU-hours
SiT [5]7M8.370K6.8491.40100×
REPA [9]4M5.9100K4.93130.2240×
REG [8]4M1.82M1.783,386.102×

Table S5.

Extended ablations and guidance

Local-state modeling and global reading

REG [8] jointly denoises the image latent and global CLS. The global switch gives every block direct access to the noisy CLS. The local switch adds the PCA patch state to denoising and reads it at the input (Table S6).

ConfigurationLocal stateDirect global read100K200K400K
REGoffoff32.1620.2214.35
REG + global readoffon27.7217.3212.12
REG + local stateonoff26.9916.6211.46
SSRonon21.9513.749.79

Table S6.

Table S6. Which paths are active? SiT-B/2, ImageNet 256 × 256, unguided FID-50K. All four configurations share the training seed and alignment weight λ=1\lambda= 1. The local state uses both input projections in Eq. (2) of the main paper. Table 3 of that paper reports the separate REG + ReDi baseline [4].

Conditional gains.

Let F0F_0, FLF_L, FGF_G, FLGF_{LG} denote the FIDs for REG, local only, global only and full SSR. Adding global reading when the local state is already active reduces FID by 5.04 points at 100K and 1.67 at 400K (Table S7).

ChangeDifference100K200K400K
Add local state to REGF0−FLF_0 - F_L5.173.602.89
Add local state with global read activeFG−FLGF_G - F_{LG}5.773.582.33
Add global read to REGF0−FGF_0 - F_G4.442.902.23
Add global read with local state activeFL−FLGF_L - F_{LG}5.042.881.67
Interaction on the FID scaleFL+FG−F0−FLGF_L + F_G - F_0 - F_{LG}+0.60−0.02−0.56

Table S7.

Table S7. Conditional reductions in FID. Positive entries in the first four rows indicate lower FID after adding the module. The last row subtracts the sum of the standalone gains from the joint gain. All entries are arithmetic differences computed from Table S6.

Each module improves FID with the other already active. The interaction changes sign across budgets and is within 0.02 FID of additivity at 200K.

At which blocks, and from which state?

With the local module active at 100K, using only the input CLS path gives FID 26.99. Adding a direct global read at the first block gives 24.54, at alternating blocks 22.64, and at every block 21.95. Holding all-layer reading fixed, FID for the current diffusion state ctc_t and the preceding block’s normalized hidden CLS row is 40.22 vs. 41.80 at 50K, 21.95 vs. 22.82 at 100K and 13.74 vs. 13.80 at 200K. The FID gap narrows across these shared-seed checkpoints. At 200K the hidden CLS gives the lower sFID (6.59 vs. 6.74). The hidden-CLS run ended at 200K. The 400K results in Table S6 vary whether the local and global paths are active. They leave the relative performance of the two read sources at 400K open.

At 200K, sharing EE, PP, sharing EE and removing PP, or merging PℓP_{\ell} before training gives FIDs 14.61, 14.35 and 14.16. Separate per-block maps give 13.74 (Table 3 of the main paper).

Guiding three denoising predictions

Let du,condd_{u,\mathrm{cond}} and du,uncondd_{u,\mathrm{uncond}} be the conditional and unconditional drifts for u∈{x,c,s}u \in\{x,c,s\}. Within the guidance interval, we apply classifier-free guidance (CFG) [1] to each component as du,uncond+wu(du,cond−du,uncond)d_{u,\mathrm{uncond}} + w_u(d_{u,\mathrm{cond}} - d_{u,\mathrm{uncond}}). Outside that interval the CFG correction is zero. Equation (11) gives du=ut+(2−t)vud_u = u_t + (2-t)v_u. At fixed utu_t, tt, the guidance weights sum to one, so applying them to velocities before computing the drift gives the same update as combining drifts.

For B/2, full-interval CFG at 1.8 gives the lowest measured FID of 3.93 (Table S8). Holding the strength at 1.5 and shortening the interval raises FID from 4.12 to 6.87. Within the shorter interval, keeping wx=wc=2.3w_x = w_c = 2.3 and raising wsw_s from 1 to 2.3 lowers FID from 5.79 to 4.44. For the XL/2 pure-CFG comparison, we carried over the image and CLS settings w=2.3w = 2.3, tmax⁡=0.85t_{\max} = 0.85 from an earlier REG-based sampler, used the same weight for the local stream and held all three fixed across checkpoints.

wx=wcw_x = w_cwsw_stmax⁡t_{\max}FID ↓\downarrowsFID ↓\downarrowIS ↑\uparrowPrec. ↑\uparrowRec. ↑\uparrow
1.31.31.005.115.69183.60.7720.565
1.51.51.004.125.53220.50.8010.526
1.81.81.003.935.48266.70.8300.482
2.02.01.004.225.51289.70.8410.459
1.51.50.856.875.99155.00.7260.605
2.31.00.855.795.90176.00.7300.604
2.32.30.854.445.73207.40.7470.592

Table S8. Guidance sensitivity at one checkpoint. Every row uses the same SiT-B/2 SSR 400K EMA weights, 50,000 samples, seed convention and 250-step sampler. CFG is active at evaluation times 0<t≤tmax⁡0 < t \le t_{\max}. A patch strength of one uses the ordinary class-conditional local prediction.

Pure CFG on XL/2 reaches FID 1.34 at 400 epochs. For the hybrid sampler, let du+d_u^{+} and du∅d_u^{\varnothing} denote the XL/2 conditional and unconditional drifts. The weak drift duweakd_u^{\mathrm{weak}} comes from the 100K-step SiT-L/2 SSR EMA evaluated at the same joint state, time and class label as du+d_u^{+}. At every positive grid time we use

duhyb=du++0.8 1{t≤0.85}(du+−du∅)+0.5(du+−duweak),u∈{x,c,s}.d_u^{\mathrm{hyb}} = d_u^{+} + 0.8\,\mathbf{1}_{\{t\le0.85\}}\left(d_u^{+} - d_u^{\varnothing}\right) + 0.5\left(d_u^{+} - d_u^{\mathrm{weak}}\right), \qquad u \in\{x,c,s\}.

Thus CFG has scale 1.8 inside its interval. Autoguidance [3] remains active above and below the cutoff on all three streams. The final deterministic step uses only the image drift. We selected this setting by FID at 400K updates and reused it at 800K and 1M. For the 1M evaluation, four ranks sampled batches of 125 each, using FP32 model and VAE evaluations and FP64 integration. Rank r=0,…,3r = 0,\ldots,3 used CPU seed rr for the image, label and CLS draws and 777+r777+r for local noise. At 1M (200 epochs), FID falls from 1.39 to 1.31 and recall rises from 0.63 to 0.65, while sFID rises from 4.12 to 4.73 (Table S9). Both the CFG scale and the additional model change in this comparison. Measured hybrid sampling time is 1.39× that of pure CFG.

EpochsΔ\DeltaFIDΔ\DeltasFIDΔ\DeltaISΔ\DeltaPrecisionΔ\DeltaRecall
80−0.04-0.04+0.44+0.44−22.9-22.9−0.01-0.01+0.02+0.02
160−0.09-0.09+0.60+0.60−19.5-19.5−0.01-0.01+0.01+0.01
200−0.08-0.08+0.61+0.61−20.4-20.4−0.01-0.01+0.02+0.02

Table S9. Change in XL/2 metrics at fixed training budgets. Each entry subtracts pure CFG from CFG with autoguidance using the reported values in Table 2 of the main paper. Both settings use the same EMA checkpoint, 50,000 samples and 250 sampling steps.

Probing the semantic states

Recovering semantics from partially corrupted images

We use the 400K-step SiT-B/2 EMA checkpoints for REG and SSR from the λ=1\lambda= 1 ablation in Table S6. Following REG [8], we test on 10,000 ImageNet validation crops, ten per class. The two models share the corrupted image, class label, Gaussian CLS draw and subsequent image and CLS noise. SSR uses independent noise for its local state. Frozen DINOv2-B [6] supplies the clean scoring targets.

Recovery protocol. At t=0.498795t = 0.498795 the image is a linear interpolation of the scaled SD-VAE posterior mode of the 256×256256 \times256 center crop and Gaussian noise. The semantic states start from pure Gaussian noise at this same time, with no clean semantic component. We run the remaining unguided steps of the 250-point grid and read u^0=ut−tvu\hat{u}_0 = u_t - t v_u at t=0.04t = 0.04.

Global and local comparisons. The small cosines in Table S10 compare a recovered CLS with a clean target under this initialization. Scoring two clean CLS vectors for the same cyclic within-class pairs gives mean cosine 0.430. CKNNA [2] uses ten neighbors per unit-normalized CLS among all 10,000 crops, excluding the query. We score each recovered patch against its corresponding whitened PCA target, then circularly shift the reference grid by eight cells on both axes as a control.

Image-specific CLS recovery. Each predicted CLS is scored against the DINOv2-B CLS of its input. The different-image control uses the next validation image of the same class in cyclic order. Brackets give paired 95% bootstrap intervals over the 1,000 classes.

MeasureREGSSRSSR − REG
CLS cosine, corresponding image0.04940.0383−0.0111 [−0.0117, −0.0103]
CLS cosine, different image of the same class0.04180.0365−0.0053 [−0.0060, −0.0046]
Corresponding minus different image0.00760.0018−0.0058 [−0.0061, −0.0054]
Neighborhood alignment (CKNNA, k=10k = 10)0.002770.00177−0.00100

Table S10. Image-specific CLS recovery. Each predicted CLS is scored against the DINOv2-B CLS of its input. The different-image control uses the next validation image of the same class in cyclic order. Brackets give paired 95% bootstrap intervals over the 1,000 classes.

Across the 10,000 SSR reconstructions, mean patch cosine is 0.184 at corresponding positions and −0.120 after shifting. The paired difference is +0.303 (95% class-bootstrap interval [+0.302, +0.305]). The intervals use 2,000 resamples with fixed model weights.

Retrieving an image among ten of the same class. We rank ten clean candidates by CLS cosine, mean cosine of 256 corresponding patches, or their prespecified equal-weight mean (Table S11). Chance is 10%. The rerun that saved the grids reproduced the original CLS vectors and both patch scores for every image.

Within-class instance retrieval under partial corruption. Top-1 accuracy on 10,000 queries. Brackets give 95% class-bootstrap intervals. The last column gives the paired difference from REG CLS in percentage points.

ModelScoring featureTop-1 accuracy (%)Difference from REG CLS (pp)
REGGlobal CLS14.27 [13.55, 14.97]Reference
SSRGlobal CLS10.74 [10.13, 11.35]−3.53 [−4.12, −2.96]
SSRLocal patch grid35.56 [34.64, 36.48]+21.29 [20.12, 22.45]
SSREqual-weight CLS and grid23.76 [22.88, 24.70]+9.49 [8.60, 10.36]

Table S11. Within-class instance retrieval under partial corruption. Top-1 accuracy on 10,000 queries. Brackets give 95% class-bootstrap intervals. The last column gives the paired difference from REG CLS in percentage points.

Adding the CLS score overturns 1,978 correct patch-only matches and recovers 798 misses, a net loss of 11.80 percentage points (paired 95% interval [−12.83, −10.80]). All ten candidates share a class label, so this task rewards features that distinguish individual instances.

Class information in the recovered CLS. In each of ten folds we hold out one image per class in image-ID order and rank 1,000 prototypes by cosine. Each prototype averages the nine other unit-normalized clean CLS vectors of its class. Over the same 10,000 queries, top-1 accuracy is 75.92% using the clean query CLS, 4.92% using recovered REG CLS and 2.77% using recovered SSR CLS (chance 0.10%). This weak above-chance class signal is compatible with a coarse-context role. Both models receive the true label, and this probe does not isolate the effect of initialization or explain the FID gains from per-layer reading in Table S7.

Intervening on the generated semantic trajectory

We sample trajectories A and B with different labels and noise. At the first solver grid point at or below the specified tt, we replace A’s local state sts_t, global state ctc_t, or both with B’s corresponding state. Each transferred stream uses B’s subsequent noise. A retains its label, its image trajectory up to the swap and its subsequent image noise. Any semantic stream that was kept continues with A’s noise.

In Figure S1, the red panda stays on a branch after the global-only swap at t=0.9t = 0.9. The local-only swap at the same time places it on a box under overhead wires. With a joint swap at t=0.7t = 0.7, a balloon appears above the rooftops.

Figure S1. Global, local and joint swaps. The two class pairs here complement those in Figure 6. Each intervention starts from A and transfers the indicated state from B. Insets share one three-component projection of the final local state. The 2M-step XL/2 EMA uses 250 unguided evaluations with seed 4. Table S12 reports seeds 0–3.

Table S12 reports distances from A in the final image latent, normalized by D=∥xB−xA∥2D = \lVert x_B - x_A \rVert_2 for each pair and seed. Additional runs reproduced every A and B endpoint exactly. Local-only swaps move farther from A than global-only swaps at all three times. At t=0.9t = 0.9, 0.70.7, 0.50.5, adding the global swap to the local swap increases mean distance from A by only 0.029, 0.009 and 0.010. Yet the mean distance between those two endpoints, ∥xc,s−xs∥2/D\lVert x_{c,s} - x_s \rVert_2/D, is 0.441, 0.266 and 0.152, respectively. Changing the global trajectory still changes the final image latent even when its distance from A barely changes. These distances measure neither class identity nor a specific visual attribute.

Transferred statet=0.9t = 0.9t=0.7t = 0.7t=0.5t = 0.5
Local ss0.548 ± 0.0800.433 ± 0.0440.313 ± 0.039
Global cc0.364 ± 0.0900.226 ± 0.0460.130 ± 0.028
Joint c,sc, s0.577 ± 0.0770.442 ± 0.0470.323 ± 0.039

Table S12. Displacement of the final image latent. Each cell reports the mean and sample standard deviation over four class pairs and four seeds (16 observations).

Additional qualitative results

Training checkpoints under matched image noise

Figure S2 extends the checkpoint comparison in Figure 5 to two additional ImageNet classes, African elephant and school bus. Each class uses identical initial image noise and noise increments across all nine method–checkpoint combinations. Sampling uses SiT-XL/2 EMA weights, 250 SDE steps and CFG 4.0 throughout on every generated variable. At 50K, the SSR elephant has a visible eye, tusk and hanging trunk. The trunk is less distinct in both baseline samples. The SSR school bus shows a row of windows above two visible wheels, while the baseline views show smaller sections of the vehicle. Table S9 compares two other XL/2 guidance settings at matched checkpoints.

Selected examples of African elephant and school bus generations at 50K, 100K and 200K training iterations

Figure S2. Figure S2. Selected examples at 50K, 100K and 200K training iterations. We show two of 32 matched class–noise pairs (16 classes, two draws each), selected for clearer subject structure in early SSR samples. The image seeds are 100773 (left) and 101558 (right). The CLS and local streams, when present, use seed offsets of 10,000 and 20,000.

Paired noise with and without guidance

Figure S3–Figure S6 show five of sixteen draws for each of twelve ImageNet classes. We selected the 60 pairs from the 192 generated pairs for subject visibility and variety of composition. The draw numbers are the original within-class indices. Each pair uses the same initial Gaussian states and subsequent noise increments for all three streams, the 2M-step XL/2 EMA checkpoint, and 250 sampling evaluations. The lower row applies wx=wc=ws=2.3w_x = w_c = w_s = 2.3 for t≤0.85t \le0.85.

Goldfish, bald eagle and tarantula

Figure S3. Goldfish, bald eagle and tarantula. Bald eagle draw 6 retains the close-up of the eye and hooked beak under both settings. Goldfish draw 3 retains the blue aquarium, while the arrangement of the fish changes.

Balloon, mountain bike and volcano

Figure S6. Balloon, mountain bike and volcano. In mountain bike draw 2 the cyclist leans over the same rocky step in both rows. Volcano draw 4 retains the dark plume rising above the vent under both settings.

In the selected pairs, matched noise can preserve the framing of a subject while guidance changes its color, pose or the number of objects. The selection illustrates these differences without estimating their frequency. Figure S7 shows all sixteen draws for the first and last classes in the fixed list, in draw order. For volcano draw 4 the ash plume occupies much the same part of the frame in both images. In goldfish draw 7 the number and placement of visible hands change. Figure S8 enlarges three cases where a foreground subject or its surroundings are difficult to resolve.

Uncurated paired samples for Goldfish and Volcano across sixteen draws, comparing Unguided and CFG 2.3

Figure S7. Uncurated paired samples. All 32 pairs are shown in draw order. Goldfish draw 9 remains soft in both rows. Volcano draw 4 preserves the ash plume under guidance, while draw 16 has little visible detail outside the glow.

Figure S8. Three difficult draws from the same sample pool. The goldfish has indistinct fins in both images. In the mountain-bike pair the waterfall dominates the unguided image, and a bicycle wheel becomes visible near the right edge under CFG. In the volcano pair the scene is nearly dark except for a small glow. These examples illustrate specific limitations. Their selection does not measure how often each occurs.

Koala, flamingo and golden retriever comparison

Figure S4. Figure S4. Koala, flamingo and golden retriever. In koala draw 1 the animal clings to the same forked tree in both rows. In flamingo draw 8 the waterline persists, while the number and spacing of the birds change.

Red fox, lion and giant panda

Figure S5. Red fox, lion and giant panda. Red fox draw 1 retains the upright pose against green ground, with more saturated orange fur under CFG. In lion draw 5 the head remains in profile, but the mouth opens wider under guidance.

All draws for two classes

We show the first and last classes in the fixed twelve-class list. Each class contributes all sixteen consecutive draws. The upper and lower rows of each group share the noise realization for the indicated draw.

Difficult examples

References

  1. [1]Jonathan Ho and Tim Salimans. Classifier-Free Diffusion Guidance. arXiv:2207.12598, 2022.arxiv.org/abs/2207.12598
  2. [2]Minyoung Huh, Brian Cheung, Tongzhou Wang, and Phillip Isola. Position: The Platonic Representation Hypothesis. In ICML, pages 20617–20642, 2024.arxiv.org/abs/2405.07987
  3. [3]Tero Karras, Miika Aittala, Tuomas Kynkäänniemi, Jaakko Lehtinen, Timo Aila, and Samuli Laine. Guiding a Diffusion Model with a Bad Version of Itself. In NeurIPS, 2024.arxiv.org/abs/2406.02507
  4. [4]Theodoros Kouzelis, Efstathios Karypidis, Ioannis Kakogeorgiou, Spyros Gidaris, and Nikos Komodakis. Boosting Generative Image Modeling via Joint Image-Feature Synthesis. In NeurIPS, 2025.arxiv.org/abs/2504.16064
  5. [5]Nanye Ma, Mark Goldstein, Michael S. Albergo, Nicholas M. Boffi, Eric Vanden-Eijnden, and Saining Xie. SiT: Exploring Flow and Diffusion-based Generative Models with Scalable Interpolant Transformers. In ECCV, 2024.arxiv.org/abs/2401.08740
  6. [6]Maxime Ouab, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haz-iza, Francisco Massa, Alaeldin El-Nouby, Mahmoud Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Hervé Jegou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. DINOv2: Learning Robust Visual Features without Supervision. Transactions on Machine Learning Research, 2024.
  7. [7]Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-Resolution Image Synthesis with Latent Diffusion Models. In CVPR, 2022.arxiv.org/abs/2112.10752
  8. [8]Ge Wu, Shen Zhang, Ruijing Shi, Shanghua Gao, Zhenyuan Chen, Lei Wang, Zhaowei Chen, Hongcheng Gao, Yao Tang, Jian Yang, Ming-Ming Cheng, and Xiang Li. Representation Entanglement for Generation: Training Diffusion Transformers Is Much Easier Than You Think. In NeurIPS, 2025.arxiv.org/abs/2507.01467
  9. [9]Sihyun Yu, Sangkyung Kwak, Huiwon Jang, Jongheon Jeong, Jonathan Huang, Jinwoo Shin, and Saining Xie. Representation Alignment for Generation: Training Diffusion Transformers Is Easier Than You Think. In ICLR, 2025.arxiv.org/abs/2410.06940

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type