DiffusionBlocks: Block-wise Neural Network Training via Diffusion Interpretation

Makoto Shing, Masanori Koyama, Takuya Akiba
6/17/2025
13 citations
cs.LGcs.AIstat.ML
transformer-attention

Official code: SakanaAI/DiffusionBlocks (325 stars, Python, Apache-2.0, last commit 2026-02-18).

Abstract

End-to-end backpropagation requires storing activations throughout all layers, creating memory bottlenecks that limit model scalability. Existing block-wise training methods offer means to alleviate this problem, but they rely on ad-hoc local objectives and remain largely unexplored beyond classification tasks.

Show full abstract

We propose $\textit{DiffusionBlocks}$, a principled framework for transforming transformer-based networks into genuinely independent trainable blocks that maintain competitive performance with end-to-end training. Our key insight leverages the fact that residual connections naturally correspond to updates in a dynamical system. With minimal modifications to this system, we can convert the updates to those of a denoising process, where each block can be learned independently by leveraging the score matching objective. This independence enables training with gradients for only one block at a time, thereby reducing memory requirements in proportion to the number of blocks. Our experiments on a range of transformer architectures (vision, diffusion, autoregressive, recurrent-depth, and masked diffusion) demonstrate that DiffusionBlocks training matches the performance of end-to-end training while enabling scalable block-wise training on practical tasks beyond small-scale classification. DiffusionBlocks provides a theoretically grounded approach that successfully scales to modern generative tasks across diverse architectures. Code is available at https://github.com/SakanaAI/DiffusionBlocks .

View on arXivView PDF

Code Implementations(1)

Apache-2.0

DiffusionBlocks: Block-wise Neural Network Training via Diffusion Interpretation

32538PythonSep 17, 20259 months agoApache-2.0

Similar Papers

Cite this paper

@article{shing2025diffusionblocks,
  title  = {DiffusionBlocks: Block-wise Neural Network Training via Diffusion Interpretation},
  author = {Makoto Shing and Masanori Koyama and Takuya Akiba},
  year   = {2025},
  eprint = {2506.14202},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.14202v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.14202.svg)](https://codeofpaper.com/paper/2506.14202)

Discussion