# SFA: A Statistical Physics-Inspired Diffusion Transformer for Efficient and High-Quality Image Generation

DevFeed: [SFA: A Statistical Physics-Inspired Diffusion Transformer for Efficient and High-Quality Image Generation](<https://devfeed.tech/articles/sfa-a-statistical-physics-inspired-diffusion-transformer-for-efficient-and-high-quality-image-generation-114966.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.00027>)

Author: Zixuan Huang (School of Computer Science, Peking University, Beijing, China, School of Physics, Peking University, Beijing, China), Tianhao You (School of Computer Science, Peking University, Beijing,

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [diffusion-transformers](<https://devfeed.tech/topics/diffusion-transformers.md>), [stable-diffusion](<https://devfeed.tech/topics/stable-diffusion.md>), [ImageNet](<https://devfeed.tech/topics/imagenet.md>)

Tags: [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cv](<https://devfeed.tech/tags/cs-cv.md>), [cs-gr](<https://devfeed.tech/tags/cs-gr.md>), [diffusion](<https://devfeed.tech/tags/diffusion.md>), [diffusion-transformers](<https://devfeed.tech/tags/diffusion-transformers.md>), [eess-iv](<https://devfeed.tech/tags/eess-iv.md>), [generation](<https://devfeed.tech/tags/generation.md>), [image](<https://devfeed.tech/tags/image.md>), [image-generation](<https://devfeed.tech/tags/image-generation.md>), [physics](<https://devfeed.tech/tags/physics.md>), [quality](<https://devfeed.tech/tags/quality.md>), [transformer](<https://devfeed.tech/tags/transformer.md>)

## AI overview

Scale-Free Attention (SFA) reduces diffusion-transformer attention cost to O(N log N) in both forward and backward passes by preserving fine local interactions while pooling distant regions at progressively coarser scales, with token-count correction and a shared softmax. Its Triton implementation reports 357.3x forward and 265.6x backward attention speedups over FlashAttention at 262,144 tokens. In PixelFlow trained from scratch on ImageNet at 256x256, SFA achieved FID-50k 12.51 after 40 epochs, compared with 13.25 for full attention; its reported advantage persisted through 80 epochs. It also had the best generation quality among compared efficient-attention methods on FFHQ. Replacing attention with SFA in Stable Diffusion 3.5 Medium retained full-attention quality under matched fine-tuning budgets; similar results were reported for pretrained PixelFlow fine-tuned on ImageNet.

## Source excerpt

arXiv:2611.00027v1 Announce Type: cross Abstract: Diffusion transformers have achieved remarkable success in image generation, but accelerating attention while preserving generation quality remains a major challenge at high resolutions. Inspired by statistical physics and the widespread occurrence of scale-free laws in nature, we introduce Scale-Free Attention (SFA), which preserves fine local interactions while summarizing distant regions at progressively coarser scales. For $N$ tokens, mean pooling, token-count correction, and a shared softmax over a scale-free spatial hierarchy give SFA $O(N\log N)$ complexity in both forward and backward passes. Our Triton implementation achieves $357.3\times$ forward and $265.6\times$ backward attention speedups over FlashAttention at 262,144 tokens. After 40 epochs of PixelFlow training from scratch on ImageNet at $256\times256$ resolution, SFA achieves the best generation quality among five attention mechanisms, including full attention. Fr\'echet inception distance evaluated on 50,000 generated samples (FID-50k) improves from 13.25 for full attention to 12.51, and the advantage over full attention persists through 80 epochs. SFA also achieves the best generation quality among the compared efficient-attention methods on Flickr-Faces-HQ (FFHQ). Beyond training from scratch, Stable Diffusion 3.5 Medium with attention replaced by SFA retains the generation quality of its full-attention counterpart under matched fine-tuning budgets. We obtain similar results when fine-tuning pretrained PixelFlow on ImageNet. SFA establishes scale-free structure as an effective design principle for efficient, high-quality diffusion transformers.