Introduction
The landscape of generative artificial intelligence is currently divided between two dominant paradigms: Autoregressive (AR) models and Diffusion models. AR models, exemplified by Large Language Models (LLMs) like GPT-4, excel at sequential reasoning and long-form coherence by predicting the next token in a sequence. Conversely, Diffusion models, such as Stable Diffusion, are the state-of-the-art for high-fidelity visual synthesis, iteratively refining data from pure noise.
Researchers from ByteDance Research have introduced CausalFusion, a framework designed to unify these two approaches. By employing a "dual-factorization" strategy, CausalFusion bridges the gap between sequential token prediction and hierarchical noise reduction within a single decoder-only transformer architecture.
The Dual-Factorization Framework
The fundamental distinction between AR and Diffusion lies in their data factorization methods. AR models treat data as an ordered sequence ($x_1 \rightarrow x_2 \rightarrow \dots \rightarrow x_n$), while Diffusion models treat it as a hierarchy of noise levels ($z_T \rightarrow \dots \rightarrow z_0$). CausalFusion identifies a "2-D factorization plane" where one axis represents the sequence steps and the other represents noise levels.
In this framework, the model predicts a subset of tokens at a specific noise level, conditioned on all previously "cleaned" tokens. This allows the model to explore the space between pure AR and pure Diffusion, leveraging the strengths of both.
Architectural Innovations
CausalFusion moves away from the standard Diffusion Transformer (DiT) architecture, which often relies on specialized layers like Adaptive Layer Norm (AdaLN) for conditioning. Instead, it adopts a LLaMA-style decoder-only structure.
- In-Context Conditioning: Class labels, time steps, and image tokens are treated as a unified sequence. This "in-context" approach simplifies the architecture and, according to the authors, reduces parameter count by approximately 33% while improving performance.
- Generalized Causal Attention: A custom attention mask ensures that the model can attend to all previously generated clean tokens but is restricted from looking ahead at future tokens or the specific noise it is currently tasked with predicting.
- Training Stability: To address the vanishing training signal in early AR steps (where predicting a few tokens is trivial), the researchers implemented Exponential Decay Sampling and AR Loss Weighting. These techniques ensure the model focuses on challenging parts of the generation process.
Key Insights: Locality and In-Context Reasoning
A significant finding in the development of CausalFusion was the "Locality Trap." Standard raster-order prediction (top-to-bottom, left-to-right) often causes models to over-rely on local pixel correlations. By utilizing random token ordering, CausalFusion is forced to learn global dependencies, resulting in a more robust generative model.
Furthermore, the model's ability to treat conditions as context enables "LLM-like" flexibility. This is most evident in its zero-shot image editing capabilities.
Because CausalFusion is trained to predict tokens based on visible context, it can perform complex edits—such as changing a subject's head or clothing—without specialized fine-tuning. One simply masks the target area and allows the model to "predict" the missing tokens in-context.
Quantitative Results
CausalFusion was evaluated on standard benchmarks including ImageNet-1K and MSCOCO.
- ImageNet Generation: CausalFusion-XL achieved a state-of-the-art FID of 1.77 on 256x256 resolution, outperforming the original DiT (2.27). It also demonstrated strong scalability at 512x512 resolution with an FID of 1.98.
- Multimodal Performance: On MSCOCO, a single CausalFusion model demonstrated the ability to perform both text-to-image generation and image captioning. It achieved an FID of 7.1, surpassing specialized hybrid models like TransFusion-L (8.1).
Conclusion
CausalFusion represents a significant step toward a unified generative foundation model. By integrating the sequential reasoning of AR models with the high-fidelity synthesis of Diffusion, it achieves superior performance and introduces flexible, in-context capabilities to visual modeling. Future research aims to scale this dual-factorization approach to video generation, where the temporal dimension will add a third axis to the factorization plane.
Summary updated