DiffusionBlocks: Block-wise Neural Network Training via Diffusion Interpretation
Train each block of a network on its own, as a denoiser for one range of noise levels.
A residual layer adds a small update to its input, and so does one Euler step of a diffusion model's reverse process. DiffusionBlocks uses that correspondence to split a deep network into independent blocks so no gradient crosses between them and training memory drops by the number of blocks.
Explaining the paperDiffusionBlocks: Block-wise Neural Network Training via Diffusion InterpretationA 24-layer image generator trained as three separate 8-layer blocks scored a test FID of 10.63 on ImageNet 256×256 (Fréchet Inception Distance, where lower means generated images match real photographs more closely), beating the same network trained end to end at 12.09 while using one-third the training memory.
Why backpropagation memory scales with depth
Standard neural network training runs backpropagation from the final loss all the way back to layer 1. By the chain rule of calculus, computing the parameter gradient for layer 1 requires multiplying local derivatives from layer 24, layer 23, and every layer in between, and each local derivative depends on the exact numerical tensor that entered that layer during the forward pass. Those saved intermediate tensors are called activations. Because layer 1's activations have to sit in GPU memory until the backward sweep returns to layer 1, memory consumption grows linearly with depth. A 24-layer Transformer must hold 24 layers of activations at peak memory, alongside 24 layers of weights, gradients, and optimizer buffers.
If you could slice a deep network into smaller blocks and train each block with its own loss, only one block would need to live in GPU memory at a time. Researchers have tried this for decades, from greedy layer-wise pretraining in 2006 to Geoffrey Hinton's Forward-Forward algorithm in 2022. Every earlier attempt hit the same wall: what should a middle block output? Layer 4 does not produce a finished image or a final class label, so earlier methods had to invent heuristic local objectives, such as a contrastive score asking whether an internal vector came from a real input or a corrupted one. Without a mathematically grounded target for intermediate blocks, accuracy lagged far behind end-to-end training, and most local losses only applied to classification. On CIFAR-100 (a benchmark of 60,000 tiny 32×32 color images across 100 object categories), a 12-layer Vision Transformer (ViT), which splits an image into small square patches and runs Transformer layers over those patch vectors, reaches 60.25% accuracy with ordinary backpropagation, while the same ViT trained with Forward-Forward scores only 7.85%.
DiffusionBlocks (Makoto Shing, Masanori Koyama, and Takuya Akiba; Sakana AI and the University of Tokyo; ICLR 2026) replaces ad-hoc local losses with a derived objective from diffusion models. A diffusion model trains by adding random noise at many different strengths and asking a network to remove the noise, and its training objective separates across noise levels. Because a stack of residual layers has the same additive update form as the step-by-step reverse process of a diffusion model, DiffusionBlocks assigns each consecutive block of layers its own interval of noise levels and trains that block directly against real, noise-free data. On that same CIFAR-100 benchmark, the 12-layer ViT split into three 4-layer blocks reaches 59.30%, within a point of end-to-end training while holding gradients for only four layers at a time.
Forward noising: burying data in Gaussian noise
Before splitting a network, we need four pieces of diffusion geometry: how data is corrupted, how a denoiser gives the direction back toward real data, how reversing noise becomes an ordinary differential equation, and how residual layers mirror discrete steps of that equation. Start with corruption. Take any real data point (a photograph, a compressed image grid, or a vector representing a word) and blur it by adding independent Gaussian random numbers scaled by a noise level :
Here has the same shape as , with every coordinate drawn independently from a standard normal bell curve (mean 0, standard deviation 1). Multiplying by controls the size of the corruption: at , equals the original data; as grows, random static overwhelms the signal. This additive form is the variance-exploding (VE) convention, adopted from Karras et al.'s EDM (Elucidating the Design Space of Diffusion-Based Generative Models) framework. The signal is never shrunk, so the total variance grows unboundedly with . (By contrast, Denoising Diffusion Probabilistic Models (DDPM) uses a variance-preserving convention that shrinks as it adds noise so total variance stays near 1; formulas from the two conventions differ by rescaling factors and cannot be mixed.) In EDM and DiffusionBlocks, data coordinates are scaled to a standard deviation of about 0.5, and spans from (virtually pristine) up to . At , the noise is 160 times wider than the data itself, so every corrupted example looks statistically indistinguishable from a pure Gaussian cloud.
Geometrically, real data occupies a thin region of its ambient space. If you pick random RGB values for a 256×256 grid of pixels, you get static, never a dog or a coffee cup; real photographs sit on a low-dimensional curved surface (a manifold) embedded inside the vastly larger space of all possible pixel arrays. Adding noise via equation (1) kicks points off that thin surface into the surrounding empty space. Drag the slider in Figure 1 to watch how quickly a 2D spiral dissolves as increases.
Once is large enough to drown out the spiral, any starting point drawn from a broad Gaussian cloud has the same distribution as a heavily noised data point. Generation reverses that journey: start in that featureless cloud at and steer points back onto the data manifold as falls toward zero.
Score functions and why a denoiser gives the direction
Picture the probability density of noisy points at level as a terrain of hills over the data space. Where many noisy copies of real data land, the terrain rises into a peak; in empty regions far from any data, the terrain drops nearly to zero. To steer a noisy point back toward realistic data, you want an uphill compass arrow at every location. That compass arrow is the score function, defined as the gradient of the log-density with respect to the spatial point :
Two properties explain why generative models work with rather than itself. First, the gradient is taken with respect to the point , not neural network weights (statisticians also call a parameter gradient a score, which is a different object). Second, taking the logarithm eliminates the normalizing constant. Any probability density can be written as an unnormalized shape divided by its total volume, . Taking logs turns division into subtraction, , and differentiating with respect to kills because is constant across space. A network can learn the uphill direction without ever computing the intractable high-dimensional integral .
Look at how the noise scale reshapes that uphill compass in Figure 2. At tiny , the density consists of narrow, isolated peaks around each data cluster, so the arrows pull tightly toward whichever cluster sits closest. At large , Gaussian blurring merges all the peaks into a single wide dome, so every arrow points gently toward the global average of the whole dataset.
Still, you cannot train a network directly on the score because you never have the true formula for on real images or text. Instead, you have an easy supervised task: take a real data point , add noise yourself to make , and train a denoiser to predict from . Notice what the optimal denoiser has to output under squared error. Many different original points could have produced the same noisy if each had a different noise draw; the single prediction that minimizes average squared distance to all plausible origins is their probability-weighted center of mass, the posterior mean .
Now connect that center of mass to the uphill slope. Standing at , the vector points straight from your current location to the center of mass of the real data points that could have created , matching the direction of higher density. How steep is the log-density hill along that arrow? Each Gaussian blur has variance : when is small, even a tiny step away from the data falls steeply down a narrow bell curve, so dividing by makes the slope huge; when is large, the bell curve is broad and flat, so dividing by shrinks the slope. This exact identity is Tweedie's formula (from Herbert Robbins's 1956 work on empirical Bayes, connected to denoising autoencoders by Pascal Vincent in 2011):
Check the denominator carefully: in this VE convention it is the noise variance , not the standard deviation . The algebra behind equation (2) takes two lines of calculus. The blurred density averages a Gaussian centered at every real point :
Because appears only inside the Gaussian exponent , differentiating with respect to brings down the factor . Dividing by gives:
By Bayes' rule, the Gaussian kernel times divided by equals the posterior probability , so the integral evaluates to , the ideal denoiser . Equation (2) is exact for the ideal posterior mean. The paper writes instead of because a trained neural network only approximates that ideal denoiser. Drag the white probe in Figure 3 across the three-cluster density to verify that the exact denoiser formula and the exact score gradient point in the same direction with the same magnitude everywhere.
Equation (2) turns density estimation into ordinary supervised regression. To train a parameterized denoiser , pick a training example , draw a noise level and random Gaussian vector , form , and penalize the squared error between the network's prediction and the original :
The positive weight balances gradient magnitudes across noise scales so neither extreme dominates training. Notice that predicts the uncorrupted data directly (DDPM predicts the noise instead, and since , either target converts algebraically into the other). Because is a posterior average, a single high-noise prediction looks blurry: at , many photographs could have produced , and the pixel-wise average of a hundred faces is a smooth grey oval, not a crisp face.
Look closely at the structure of the expectation in equation (3). Every sample evaluates its own squared-error term independently, so nothing in equation (3) couples the denoising task at to the denoising task at except the choice to route both through the same shared weights , which is the separability DiffusionBlocks uses to split the backpropagation chain.
Reversing noise with the probability-flow ODE
If a single jump from high noise produces a blurry average, how does a diffusion model generate detailed samples? It removes the noise gradually, re-evaluating the denoiser at every step as the state becomes clearer. Picture a drop of ink spreading through still water: individual ink molecules execute random jittery walks (forward noising), yet the macroscopic ink cloud expands according to the heat equation. Song et al. (2021) proved that any Gaussian noising process has a deterministic counterpart, the probability-flow ODE (ordinary differential equation): a continuous velocity field that moves particles outward without randomness while preserving the exact same marginal density at every noise level . Run that velocity field backward from down to 0, and a Gaussian cloud flows back onto the data manifold. In the VE convention, the paper's Eq. (1) is:
Check the sign and the single factor of intuitively. As increases (forward noising), probability mass must flow downhill, from crowded peaks out into empty space, to blur the density; since points uphill, the minus sign points downhill. Writing the heat equation as a continuity equation (density changes only because probability mass moves with velocity ) pins the exact speed to . Running time backward (decreasing ) reverses that velocity, pulling points uphill back toward the data.
Now substitute Tweedie's formula (2) into equation (4). One factor of cancels with the in the denominator, and the minus sign flips into :
A computer integrates this ODE in discrete steps. Euler's method approximates a curved path across a small interval from to a lower by holding the current derivative constant and multiplying by the change in :
Pay close attention to the two negative signs during generation. Because generation lowers the noise level, is negative. Meanwhile, points from the denoiser's guess toward the noisy point, away from the data. Multiplying those two negatives produces a step toward . Writing the positive step size as , the signs cancel into:
In words, equation (5) slides by the fraction of the remaining distance toward the denoiser's current guess . Plug in concrete numbers from a four-block noise schedule: suppose , , our coordinate sits at , and the denoiser predicts . The positive step is , so the fraction is . Equation (5) moves 55.5% of the way from 5.0 toward 2.0, landing at . If , the fraction becomes 1 and the step jumps straight to .
The DiffusionBlocks paper prints this update with the wrong sign. Its Eq. (4) defines the same positive but writes (and its Eqs. (3) and (5) carry the same sign flip). With our numbers, that printed formula sends to , pushing it away from the denoiser's guess. The authors' official implementation uses the correct sign in equation (5), documented in the Provenance panel below.
If stays constant across the step, solving analytically yields a straight line reaching at , where the offset shrinks in exact proportion to . Equation (5) lands directly on that exact line: reducing from 0.677 to 0.301 shrinks the initial offset of 3.0 to , giving . Euler discretization error therefore enters only because changes as the trajectory moves, shrinking like globally as you take more steps. Drag and in Figure 4 to inspect both the corrected step and the paper's printed sign.
Over a full generation trajectory, changes dramatically. At high noise, the denoiser cannot distinguish individual modes, so hovers near the dataset mean and every particle drifts inward together. As passes through the middle range, the density splits into separate basins with clear boundaries, shifts toward the nearest cluster, and trajectories curve into distinct samples. Because noise of width blurs out details finer than , high noise determines coarse layout, middle noise determines the specific object or semantic structure, and low noise resolves fine texture.
Why a residual layer looks like an Euler step
Now leave diffusion for a moment and look inside an ordinary deep neural network. Ever since ResNet (2015) and the original Transformer (2017), deep networks have been built out of residual layers. Instead of asking layer to compute a brand-new representation from scratch, a residual connection adds a computed correction to the tensor entering the layer:
In a Transformer, is a matrix of shape representing tokens (image patches or text tokens), each encoded as a -dimensional vector, and applies self-attention and a multi-layer perceptron (MLP, a small feed-forward network run independently on every token) using parameters . Adding the update to lets information pass straight through dozens of layers while each layer nudges the state.
Place the residual layer (6) right beside the reverse-diffusion Euler step (5):
Both equations advance a state vector by adding a small update. Treating a stack of residual layers as Euler's method stepping through continuous time (with layer index playing the role of time and step size 1) is the dynamical systems view behind Neural ODEs (Chen et al., 2018) and Haber and Ruthotto's work on stable architectures (2017). Drag the layer count in Figure 5 from 1 up to 60 to see how a stack of discrete residual updates converges to a continuous ODE curve as depth grows.
That structural similarity is not yet an exact match, because two pieces differ. First, an ordinary residual layer has fixed step size 1, whereas Euler step (5) multiplies its update by the schedule-dependent fraction . Second, a standard residual layer receives no noise level , whereas a denoiser must adapt its behavior depending on how much noise is present. DiffusionBlocks does not force the layers to guess either quantity. Instead, it asks each block to predict only the denoised target , feeds into the block as an explicit conditioning signal, and wraps the block's output inside the exact Euler update (5) using the known schedule.
How DiffusionBlocks trains each block independently
Converting an existing -layer residual network into DiffusionBlocks takes three modifications (§3.1 of the paper). First, partition the layers into consecutive blocks of roughly equal depth, so a 12-layer network with becomes four 3-layer blocks, writing block 's composed layers as . Second, assign noise intervals by cutting into contiguous bands; the paper numbers blocks from the noisy end down, so block 1 handles the highest noise where generation begins and block handles the lowest noise near zero.
Third, feed the noisy target and the noise level into every block. Each block receives a pair : the task conditioning (an image to classify, a class label, or earlier tokens in a sentence) alongside the current noisy estimate of the target. To tell the block which noise level it is handling, the authors add AdaLN (Adaptive Layer Normalization), the conditioning mechanism from Diffusion Transformers (DiT): a tiny projection network maps into per-channel scale and shift vectors applied at every layer normalization inside the block. That lets one 3-layer block adjust its denoising strength continuously across its entire noise interval, acting differently at than at .
Because the global denoising loss (3) is an average over noise levels, splitting the noise range splits the loss into completely separate objectives. Block optimizes only its own parameters on noise levels drawn from its own band (paper Eq. 6):
In equation (7), is the training noise distribution restricted to block 's interval and renormalized to integrate to 1. The inner loss is squared error for continuous image targets and cross-entropy for discrete labels or text tokens (detailed below). Notice what is absent from equation (7): block never takes block 's output as input. It receives the true target corrupted with fresh Gaussian noise, predicts , and backpropagates solely through its own layers. No activations from any other block ever enter GPU memory, and no gradient ever crosses a block boundary.
Trace a concrete training step with real numbers and tensor shapes. Take a 12-layer Transformer split into blocks of 3 layers each, processing tokens of width , using the squared error loss of equation (7). Under EDM's noise schedule (derived in the partitioning section below), the four equal-probability bands sit at , so block 1 owns , block 2 owns , block 3 owns , and block 4 owns . Suppose this iteration picks block 2:
- Sample a training batch , where the target tensor has shape .
- Sample one noise level from block 2's band , say .
- Draw Gaussian noise of shape and form via equation (1).
- Apply EDM's preconditioning (with ): scale the noisy input by so it has near-unit variance, run block 2's three layers with fed to AdaLN, and blend the raw output with a skip connection to get , shape .
- Compute the weighted loss , using EDM's loss weight (formula in the listing below).
- Call backward and step block 2's optimizer. Gradients touch only ; blocks 1, 3, and 4 are not even in the computation graph.
Why include EDM's preconditioning factors , , and instead of feeding raw straight into the block? Across , the scale of changes by more than two orders of magnitude. Preconditioning normalizes the network's input to near unit variance at every and mixes in so that at tiny noise the block only predicts a small residual while at huge noise it predicts directly, as written in the complete training step below using the official code's constants.
# One training step for block b of B = 4 (12 layers, 3 per block)
x, y = sample_batch() # x: input, y: target [n, d]
b = 2 # paper samples b uniformly each step
sigma = sample_lognormal(band[b]) # scalar in [0.301, 0.677], say 0.45
z = y + sigma * randn_like(y) # eq (1): noised target [n, d]
# EDM preconditioning around the 3 layers (sigma_data = 0.5)
c_in = 1 / sqrt(sigma**2 + 0.25) # scalar: 1.487 at sigma = 0.45
c_skip = 0.25 / (sigma**2 + 0.25) # scalar: 0.553
c_out = 0.5 * sigma * c_in # scalar: 0.335
F = block[b](x, c_in * z, log(sigma) / 4) # [n, d]; AdaLN reads sigma
y_hat = c_skip * z + c_out * F # [n, d]: denoised prediction D(z, sigma)
w = (sigma**2 + 0.25) / (0.5 * sigma)**2 # scalar: 8.94 at sigma = 0.45
loss = w * ((y_hat - y)**2).mean() # eq (7): L2 (cross-entropy for classes/text)
loss.backward() # gradients flow into block[b] only
opt[b].step()In the paper's single-GPU training loop, each iteration selects one block uniformly at random and runs this step. Because blocks never exchange activations or gradients during training, you can equally well train one block to completion before moving to the next, or place each block on a separate GPU and train all blocks in parallel with zero communication. Figure 6 contrasts the live activation footprint of standard backpropagation against DiffusionBlocks on a 12-layer network; drag across the divisors of 12 to see peak memory shrink as the active slice narrows.
If block 2 never sees block 1's output during training, why do the blocks compose when chained together at inference? Solving the reverse ODE (5) requires only one quantity at each noise level : the ideal posterior mean for data corrupted to level . That target function depends only on the data distribution, not on whether one 24-layer network approximates it across or three 8-layer blocks each approximate one piece.
Training and inference still differ because of exposure bias. During training, block 2 always sees real data plus exact Gaussian noise at . During generation, block 2 receives whatever tensor block 1 produced, carrying block 1's approximation errors, which can push a bit off the true noised distribution . A single monolithic diffusion model faces the exact same mismatch between consecutive sampling steps. To cushion handoffs at block boundaries, DiffusionBlocks stretches adjacent training ranges so neighboring blocks overlap during training (quantified in the partitioning section below).
How generation chains the trained blocks together
At inference time, the independently trained blocks finally run in sequence. Start by sampling pure Gaussian noise (the official code scales by , virtually identical at ), and choose a descending list of noise levels down to followed by 0. At step , look up the unique block whose assigned interval contains , run that block alone on to obtain its preconditioned guess , and advance via Euler step (5). Only the state passes from step to step, while the conditioning is supplied to every call.
# Generation: N Euler steps, each handled by the block owning sigma[i]
sig = equal_mass_levels(N, 80, 0.002) + [0] # N+1 descending scalars
z = 80 * randn(n, d) # [n, d]: pure noise at sigma_max
for i in range(N):
b = owner(sig[i]) # block index whose band holds sig[i]
y_hat = D(block[b], x, z, sig[i]) # [n, d]: preconditioned block output
step = (sig[i] - sig[i+1]) / sig[i] # positive fraction Delta_s / s
z = z + step * (y_hat - z) # [n, d]: Euler update (5) toward y_hat
return z # [n, d]; N=50 for images, N=4 for AR LMNotice that the number of sampling steps and the number of blocks are independent knobs. You do not have to take exactly one Euler step per block. In the official code, the sampling levels sit at evenly spaced quantiles of EDM's log-normal training distribution (derived in the partitioning section below, so the levels align with the block boundaries), so each block handles roughly steps (and the final call at returns its denoised prediction directly, equivalent to taking the final Euler step to ). For image generation on CIFAR-10 and ImageNet, the paper runs Euler steps with classifier-free guidance at scale 2.0 (which amplifies the difference between a class-conditioned prediction and an unconditional prediction to sharpen class fidelity), so each of the blocks handles about 16 or 17 steps. For the 12-layer autoregressive language model with , generation uses steps, one per block, keeping total inference layers per token equal to the original 12 layers. (For the ViT classifier, the paper has a minor internal mismatch: Appendix E.1 reports 4 denoising steps, while Appendix H reports 3 steps, one per block, matching the official code's default .)
Figure 7 simulates this reverse ODE on 240 particles heading toward four 2D clusters, coloring each trajectory segment by the block that generated it. Try two experiments. First, drag all the way down to 1: a single Euler step jumps every particle directly to its high-noise denoiser guess, collapsing the cloud into the empty center between clusters and proving why multi-step refinement is essential. Second, click the error button to inject a fixed offset of magnitude 0.63 into either block 1 (high noise) or the last block (low noise).
The error button exposes how responsibility splits across the chain. Corrupting block 1 (high noise) leaves samples landing on valid clusters (only 1 of 240 misses, the same as with zero error), because the later uncorrupted blocks still pull each particle onto the manifold; however, the upper-right cluster in the direction of the bias now absorbs 107 of the 240 samples instead of 68. High-noise blocks decide which mode a sample enters, and later blocks rarely reverse that global choice. Corrupting the final block produces the opposite failure: all 240 samples miss the clusters entirely, because the final Euler step to moves straight to that block's faulty prediction with no downstream block left to correct it.
Extending denoising to images, classes, and text
Diffusion models naturally generate continuous grids like images, where adding Gaussian noise to pixels or latent features makes direct sense. Appendix B extends DiffusionBlocks to classifiers and language models with discrete outputs by running diffusion in the model's continuous embedding space while keeping the input embedder and final output readout head shared outside the blocks.
For image generation on ImageNet at 256×256 resolution, the paper follows DiT and Latent Diffusion: a frozen, pretrained Variational Autoencoder (VAE) compresses each 256×256×3 RGB image into a compact 32×32×4 latent grid so the Transformer avoids raw pixel cost. Each block denoises that continuous latent grid directly with squared error (equation 7), conditioned on the class label.
For image classification with a ViT, there is no image target to denoise, so the paper noises a learned continuous embedding vector representing the true class label. To stop the network from shrinking all class embeddings toward zero, every class embedding is L2-normalized to unit length. The noisy class vector is concatenated into the Transformer's token sequence in the [CLS] position alongside the noise-free image patch tokens . In the authors' official ViT code, rather than minimizing squared error on the embedding vector as in the paper's generic Eq. (6), each block passes its denoised output through the shared classification head to produce class logits (unnormalized log-probabilities) and minimizes -weighted cross-entropy loss against the true class index. At inference, the code converts predicted logits into probabilities via softmax and forms the continuous denoised vector as the probability-weighted average of the class embedding table before taking the Euler step.
For autoregressive language modeling with a 12-layer Llama-2-style Transformer (32,000-token vocabulary), the model must predict token from uncorrupted past tokens without leaking future tokens. Adding Gaussian noise to the embedding of token creates a subtlety: a naive forward pass over the noisy sequence would condition token on noisy past tokens instead of uncorrupted ones. Borrowing the sequence-concatenation trick from Block Diffusion (Arriola et al., 2025), DiffusionBlocks feeds both the original sequence and the noisy sequence side by side during training, with a modified causal attention mask so noisy token attends only to original tokens . That preserves exact autoregressive conditioning and trains with cross-entropy over the vocabulary, at the cost of doubling sequence activation memory during training.
For masked diffusion language modeling (built on MD4, a discrete masked-diffusion Transformer by Shi et al., 2024, for character-level text), corruption is discrete token masking rather than Gaussian noise: at time , each token stays intact with probability and turns into [MASK] with probability . In MD4's continuous-time objective, each masked token's cross-entropy loss carries the weight . Appendix D shows that because the expected number of masked tokens scales with , multiplying the two cancels that denominator and leaves an effective density , meaning training loss mass accumulates uniformly in rather than . DiffusionBlocks therefore cuts the masking schedule into equal probability decrements, . With , one block handles mask rates from 0 to 1/3, one handles 1/3 to 2/3, and one handles 2/3 to fully masked.
Because Euler step (5) adds and , every block across the tasks above must preserve tensor shape. A Transformer satisfies this automatically because every layer maps tokens to tokens. Architectures that downsample and upsample spatial grids across stages, such as a U-Net, do not fit the recipe as written.
Why equal-probability noise splitting matters
Once you decide to split across blocks, where should you place the cut points? During training, diffusion models do not sample uniformly. Following EDM, follows a normal bell curve, with and , centering most training draws around . That bell curve matches where denoising is hardest: at extreme high noise the optimal prediction stays close to the dataset mean, and at extreme low noise the input is barely corrupted, whereas in the middle band coarse shapes resolve into distinct objects.
Now see what happens if you try the obvious split: dividing into equal linear segments of width (§3.3 of the paper). With , the lowest block covers , which swallows 99.98% of all log-normal training draws; the other three blocks cover and see virtually no data or gradient signal. Even a stronger baseline that makes equal-width cuts in (used in the paper's ablation study, Appendix E.6.2) badly starves the outer blocks: for , log-uniform cuts land at and , giving the three blocks roughly 11%, 85%, and 4% of the training samples.
DiffusionBlocks solves this with equi-probability partitioning: choose the boundaries so every block receives exactly of the training probability mass. Because is Gaussian, we convert the endpoints into cumulative probabilities and using the standard normal cumulative distribution function (CDF) (the fraction of draws below a threshold), space evenly between them, and map back through the inverse CDF :
The endpoint probabilities are evaluated with the standardized log-noise bounds:
For , equation (8) puts the boundaries at (equation (8) orders the cut points from low to high, while the block-interval notation reverses the indices so ). Look at the resulting widths: the two middle blocks each span a compact factor of 2.25 in , concentrating half of the network's layers right where the score field splits into clusters, while the tail blocks stretch across factors of 67 (block 4) and 118 (block 1) where the denoising task is simpler. Drag and toggle the dashed comparison cuts in Figure 8 to compare equal-probability bands against both linear-uniform and log-uniform splits.
The paper's ablation on CIFAR-10 (a dataset of 60,000 32×32 color images across 10 object classes) tests a 12-layer DiT split into three blocks against the stronger uniform baseline, equal widths in . With an even 4-4-4 layer split (and block overlap disabled), log-uniform partitioning reaches FID 43.53 while equi-probability partitioning drops FID to 38.03 (5.5 points better). Equi-probability wins across every uneven layer allocation tested as well: 3-6-3 layers scores 41.64 vs 43.59, 6-4-2 scores 45.42 vs 47.49, and 2-4-6 scores 40.40 vs 42.37. Moreover, the equal 4-4-4 split beats every uneven split, confirming that once noise boundaries equalize task difficulty, you can divide layers evenly without manual tuning.
To soften boundary handoffs and fight exposure bias, DiffusionBlocks adds a small block overlap during training (Appendix C). For a block owning , define a multiplicative stretch factor and train the block on the wider interval (clamped to ). Because scales a fixed fraction of the block's width in , wide tail blocks stretch farther in absolute terms than narrow middle blocks. The paper uses by default for vision and masked diffusion (matching the official ViT code) and for autoregressive text generation and the comparison against NoProp (a concurrent block-wise denoising method covered in the results section below). For our language model at , the middle blocks get (8.4% past each edge), expanding block 3's training window from to , while the tails get and . At default , middle blocks stretch by about 4.1% (). When block 2 hands an imperfect state to block 3 near , block 3 has already trained on inputs noisier than 0.30 (such as ). On ImageNet with , turning on improves test FID from 11.11 (no overlap in the ablation) to 10.63 (main table).
Training memory, checkpointing, and compute
Where exactly does GPU memory go during training, and why does DiffusionBlocks behave differently from standard memory-saving tricks? Break each layer's footprint into two pieces (Appendix G): parameter memory and saved forward activation memory . Under the Adam optimizer, which stores two running-average vectors (momentum and squared gradient) per parameter, every active layer requires for weights, for gradients, and for optimizer state, totaling before counting activations. Across an -layer network:
- End-to-end training keeps every layer live: .
- Activation checkpointing (also covered in activation recomputation) discards intermediate activations during the forward pass and recomputes them during backprop, shrinking the activation term to roughly (an optimistic lower bound that omits the stored checkpoint boundaries) while leaving all of weights, gradients, and optimizer state intact: .
- DiffusionBlocks keeps only one block of layers active on the GPU at a time, dividing every term by : . On a single GPU, you avoid shuffling inactive weights across PCIe on every step by training block 1 to completion, saving it, and moving to block 2; across GPUs, each device holds and trains one block in parallel with zero gradient communication.
- Combining DiffusionBlocks with activation checkpointing applies both savings together: .
Drag and the ratio (which climbs with larger batch sizes or longer sequences) in Figure 9 to see where each strategy wins.
At the default setting ( and activations twice parameter size, ), checkpointing cuts total memory by 32% while DiffusionBlocks cuts it by 67%, because parameter-side state dominates. Push up to 16 (long contexts or huge batches) and activations dominate instead: checkpointing alone saves 77%, DiffusionBlocks alone still saves 67%, and using both together cuts memory by 90%. Checkpointing also carries a compute penalty of roughly one-third: a normal forward pass costs and backward costs about ( total), whereas recomputing activations adds a second forward pass ( total).
DiffusionBlocks pays no recomputation penalty. Training all blocks of layers for steps each executes layer evaluations, identical to steps of end-to-end training. Benchmarked on a single NVIDIA H100 80 GB GPU with a 12-layer ViT (Appendix H, Table 12), one end-to-end iteration took 0.0507 seconds and one 4-layer block iteration took 0.0181 seconds, so three block steps total 0.0543 seconds. The authors attribute the 7% overhead to the added AdaLN noise conditioning.
Sampling speed for image generation improves directly by a factor of . A standard 12-layer DiT evaluates all 12 layers at every one of its 50 Euler steps, totaling 600 layer evaluations per image. With , each Euler step invokes only the single 4-layer block owning the current , totaling 200 layer evaluations per image for a 3× inference speedup.
Experimental results, surprises, and limits
Shing, Koyama, and Akiba test DiffusionBlocks across five distinct Transformer architectures, comparing each against the same network trained end to end with standard backpropagation.
In image classification, a 12-layer ViT split into blocks (4 layers active at a time) reaches 59.30% test accuracy on CIFAR-100, less than a point behind end-to-end backprop at 60.25% and far ahead of Forward-Forward at 7.85%. On Tiny ImageNet (100,000 training images at 64×64 resolution across 200 classes, Appendix F.1), a 12-layer ViT split into blocks edges past end-to-end training, scoring 36.16% against 35.32%.
In image generation, the paper evaluates FID on 50,000 generated samples (reporting the minimum of three evaluations, following EDM) against both the training split and the held-out test split, using blocks (3× less training memory and 3× fewer layer calls at inference). A 12-layer DiT-S/2 (Small Diffusion Transformer with 2×2 patches) on CIFAR-10 improves from 32.84 / 39.83 (train / test) end to end to 30.59 / 37.20 with DiffusionBlocks. On ImageNet 256×256 (1.28 million natural photographs across 1,000 classes), a 24-layer DiT-L/2 (Large Diffusion Transformer with 2×2 patches) scores 9.00 / 10.63 block-wise against 9.01 / 12.09 end to end: tied on the training distribution and 1.46 points better on the held-out test split.
In masked diffusion language modeling, a 12-layer DiT-based Transformer (MD4) trained on text8 (100 million characters of cleaned English Wikipedia text) with blocks achieves 1.45 bits per character (BPC, measuring average compression bits per character; lower is better) compared to 1.56 BPC for the end-to-end baseline, while using 3× less training memory.
In autoregressive language modeling, a 12-layer Llama-2-style Transformer split into blocks of 3 layers trains on LM1B (the One Billion Word news benchmark) and OpenWebText (an open reproduction of GPT-2's web corpus). Because this continuous-embedding diffusion model does not optimize a standard token log-likelihood bound, ordinary perplexity is undefined; instead, the paper evaluates generated text with two standard metrics: MAUVE (a 0-to-1 score comparing the distribution of generated text against human reference text in quality and diversity, where higher is better) and generative perplexity measured by two frozen teacher models, Llama-2-7B and GPT2-XL (roughly the average number of equally likely next tokens the teacher expects, where lower indicates more fluent text). On LM1B, block-wise training beats end-to-end on all three metrics: MAUVE 0.71 vs 0.50, Llama-2 perplexity 12.32 vs 14.58, and GPT2-XL perplexity 30.99 vs 38.87. On OpenWebText, the two stay close: MAUVE 0.82 vs 0.85, Llama-2 perplexity 14.99 vs 15.05, and GPT2-XL perplexity 26.33 vs 25.24.
Recurrent-depth language models show the largest compute reduction. Huginn (Geiping et al., 2025) places a single 4-layer recurrent block between 2 prelude and 2 coda layers and loops that block an average of times per forward pass starting from noise. Full backpropagation through time (BPTT) across 32 loops would require 32× activation memory, so Huginn truncates BPTT to only the last 8 iterations, discarding gradients from the first 24 loops. Because looping already matches the Euler form (5), DiffusionBlocks trains that shared recurrent block as a single-pass denoiser: sample a random , run one forward pass instead of 32, and match the uncorrupted target (cutting per-step training compute by up to 32×). At inference, the model still loops 32 times. Even after training for 15 epochs against Huginn's 5 epochs, total training compute drops by roughly 10× (), and on LM1B DiffusionBlocks improves every score: MAUVE 0.70 vs 0.49, Llama-2 perplexity 16.08 vs 17.04, and GPT2-XL perplexity 42.43 vs 46.73.
The authors also compare directly against concurrent NoProp (Li, Teh, and Pascanu, 2025), which independently proposed training layers as denoisers inside its own custom convolutional neural network (CNN) for classification. Evaluating on NoProp's exact CNN architecture on CIFAR-100 (Table 6, using 1,000 Euler steps to match NoProp's protocol, , ), DiffusionBlocks reaches 46.88%, beating all three NoProp variants: discrete-time NoProp-DT (46.06%), continuous-time NoProp-CT (21.31%), and flow-matching NoProp-FM (37.57%), while sitting under end-to-end backprop (47.80%). Because NoProp-DT is discrete-time and the continuous-time variants lag far behind when trained block by block (21.31% and 37.57%), the paper characterizes DiffusionBlocks as the only method that successfully combines continuous-time formulation with block-wise training.
How far can you push the block count before quality breaks down? Figure 10 plots the paper's block-count ablations (with overlap switched off, ) across ImageNet, CIFAR-10, and LM1B. Switch datasets and click columns to trace the trade-off between quality, memory, and step speed relative to the dashed end-to-end baseline.
Both image benchmarks trace a clear U-shaped curve. On ImageNet (24 layers total), splitting into blocks drops FID from 12.09 down to 9.90, sits at 11.11, and (11.90) still edges out end-to-end training. Pushing to cuts each block to 4 layers and degrades FID to 14.43. CIFAR-10 repeats the exact same curve: is best (35.47 vs 39.83 end to end), stays ahead (38.03), and (45.43) and (53.32) fall behind. On LM1B text generation, MAUVE climbs from 0.61 at to a peak of 0.67 at before slipping to 0.62 at , which is why the main autoregressive experiments use four blocks.
Why moderate splits ( or on images) outperform end-to-end backpropagation remains an open scientific question, and the authors carefully label their explanation a hypothesis rather than a theorem. They point to two factors: every block receives direct supervision against the uncorrupted target instead of attenuated gradients passed through a deep stack, and equi-probability noise bands allocate equal training difficulty across blocks, acting like an implicit curriculum. Conversely, once gets too large, each block loses the representational capacity needed to denoise accurately across its noise range (only 2 to 4 layers per block at ).
The method also comes with concrete limits noted in Section 6 and the appendices. Every block must preserve tensor dimensions from input to output, excluding multi-resolution architectures like U-Net without structural changes. Autoregressive training has to concatenate original and noisy token sequences to prevent causal leakage, doubling sequence activation memory relative to a standard causal LM forward pass (partially offsetting the -fold depth saving when sequences are long). Inference uses first-order Euler steps because Euler matches residual connections; plugging in higher-order diffusion samplers would require modifying how blocks connect. Finally, every experiment trains from scratch up to the 24-layer DiT-L/2 scale, so converting existing pretrained large language models into DiffusionBlocks via fine-tuning remains untested future work.
Questions you might still have
Why does a sample change direction partway through generation?
The velocity is (z − D)/σ, and the denoiser prediction D depends on σ. At high noise, D stays close to the average of the entire dataset, so every sample drifts toward the global center. As σ falls, z sits clearly closer to one cluster than the others, so D shifts toward that cluster and the trajectory bends into it.
If a block never sees another block during training, why do the handoffs line up at generation?
Every block trains against the same fixed ground truth: real data with fresh Gaussian noise drawn from its own noise band. The reverse ODE needs only the accurate denoiser at each noise level, and that target function is identical whether one big network or B separate blocks supply it. Exposure bias can still occur because block b+1 receives block b’s imperfect output rather than freshly noised real data; a single diffusion model faces the same mismatch between steps, and DiffusionBlocks softens block boundaries by adding a small overlap γ during training.
How does this differ from gradient checkpointing?
Gradient checkpointing (covered in the gradient checkpointing and activation recomputation explainers) discards intermediate activations during the forward pass and recomputes them during backprop. It cuts activation memory, but it still holds every layer’s weights, gradients, and optimizer state in GPU memory and adds about a third more compute. DiffusionBlocks divides all four memory components by B at the same total compute, and the two techniques combine.
Does block-wise training run faster in wall-clock time?
On one GPU, total compute stays nearly the same: B blocks of L/B layers each, trained for K steps apiece, perform L·K layer evaluations, identical to end-to-end training. Measured on one NVIDIA H100 GPU with a 12-layer ViT, one end-to-end step took 0.0507 s and one 4-layer block step took 0.0181 s, so three block steps take 0.0543 s (7% overhead from noise conditioning). Because blocks share no gradients, they can train in parallel on separate GPUs with zero gradient communication.
Why can splitting a network into independent blocks sometimes beat end-to-end training?
The paper treats this as an empirical finding with an untested hypothesis rather than a theorem. Each block gets direct supervision against the true target instead of waiting for gradients passed down through dozens of layers, and equal-probability noise bands give every block a task of balanced difficulty, acting like a curriculum. Beyond B = 2 or 3 on images (or B = 4 on text), each block has too few layers and quality drops.
Can you convert a pretrained model like Llama into DiffusionBlocks?
Not with anything shown in this paper. Every experiment trains from scratch, and converting pretrained checkpoints by fine-tuning is left for future work. The recipe also requires every block to preserve tensor shape (n tokens of width d to n tokens of width d), which rules out multi-resolution architectures such as U-Net without further design changes.
Footnotes & further reading
- The paper: Makoto Shing, Masanori Koyama, Takuya Akiba, DiffusionBlocks: Block-wise Neural Network Training via Diffusion Interpretation (Sakana AI / University of Tokyo, ICLR 2026). Official code (ViT classification).
- VE noising, log-normal noise sampling, loss weighting, and preconditioning: Karras et al., Elucidating the Design Space of Diffusion-Based Generative Models (EDM, 2022); explained on this site at EDM.
- The probability-flow ODE: Song et al., Score-Based Generative Modeling through Stochastic Differential Equations (2021); explained on this site at Score SDEs.
- Residual networks as discretized ODEs: Chen et al., Neural Ordinary Differential Equations (2018; explainer), and Haber & Ruthotto, Stable Architectures for Deep Neural Networks (2017). Residual connections: He et al., Deep Residual Learning (2015; explainer).
- Tweedie's formula and denoising score matching: Vincent, A Connection Between Score Matching and Denoising Autoencoders (2011), building on Robbins (1956, reprinted in Breakthroughs in Statistics, 1992) and Hyvärinen (2005).
- AdaLN noise conditioning and latent diffusion Transformers: Peebles & Xie, Scalable Diffusion Models with Transformers (DiT, 2022; explainer).
- Earlier and concurrent block-wise methods: Hinton, The Forward-Forward Algorithm (2022), and Li, Teh, & Pascanu, NoProp (2025).
- Autoregressive sequence concatenation: Arriola et al., Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Models (ICLR 2025). Masked diffusion baseline: Shi et al., MD4 (2024).
- Recurrent-depth language model: Geiping et al., Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach (Huginn, 2025).
- Memory comparison in Appendix G: Adam, gradient checkpointing, and activation recomputation.
How could this explainer be improved? Found an error, or something unclear? I read every message.