Diverse capability and scaling of diffusion and auto-regressive models when learning abstract rules

Binxu Wang, Jiaqi Shang, Haim Sompolinsky · DOI

Abstract

This study evaluates the abstract reasoning capabilities of Diffusion and Autoregressive (AR) models using GenRAVEN, a novel benchmark derived from Raven’s Progressive Matrices. We identify a significant performance trade-off: Diffusion models excel at holistic, unconditional generation with high global consistency, whereas AR models are superior at conditional panel completion but prone to compounding errors and "malignant" memorization. Our findings suggest that while both model families can learn abstract rules given sufficient data, they exhibit divergent scaling behaviors and failure modes.

Introduction

The ability to perform abstract reasoning—often referred to as "System 2" thinking—is a hallmark of human intelligence. While Large Language Models (LLMs) and Diffusion-based image generators have shown remarkable pattern-matching skills, their capacity for logical rule induction remains a subject of intense debate. This research investigates this gap using Raven’s Progressive Matrices (RPM), a classic non-verbal IQ test requiring the identification and application of underlying relational rules within a grid.

Methodology: The GenRAVEN Benchmark

To isolate abstract reasoning from the complexities of raw computer vision, the authors introduced GenRAVEN. In this framework, each puzzle is represented as a 3×9×9 integer array encoding object attributes such as shape, size, and color. This symbolic representation allows for a direct comparison between two dominant architectural paradigms:

  1. Diffusion Models: Including UNet (EDM), Diffusion Transformer (DiT), and Scalable Interpolant Transformer (SiT). These models learn to reverse a Gaussian noise process to generate valid samples.
  2. Autoregressive Models: Including GPT-2 and Mamba. These models treat the puzzle as a sequence, predicting subsequent attributes based on previous context.
The GenRAVEN framework: (A) RPM task example, (B) Diffusion denoising process, (C) Autoregressive sequential prediction, and (D) Compositional rule structure.

The models were trained on a dataset of 1.2 million samples covering 40 relational rules, including progressions, arithmetic operations, and logical gates (XOR, OR, AND). Evaluation focused on two primary tasks: unconditional generation (creating a puzzle from scratch) and conditional sampling (filling in a missing panel).

Results: The Creativity vs. Logic Dichotomy

The evaluation revealed a striking divergence in how these models handle abstract rules. Diffusion models proved to be "holistic" thinkers. By processing the entire grid simultaneously, they achieved an unconditional consistency rate of 70.9% (using the SiT model), significantly outperforming the best AR model (GPT2-M), which managed only 34.6%.

Conversely, AR models excelled at "filling in the blanks." In panel completion tasks, GPT2-M reached 62.4% accuracy, while Diffusion models lagged at 45.2%, even when utilizing advanced "Twisted Diffusion" sampling techniques. This suggests that while AR models are better at local logical inference, they struggle to maintain the global coherence required to generate a complete puzzle from zero.

Performance comparison of Autoregressive models (GPT-2 and Mamba) across different scales on row validity and sample consistency.

Scaling and Memorization Dynamics

A key finding of the study is the nature of memorization. Diffusion models exhibited "benign" memorization, where they recalled individual panels but successfully recombined them into novel, rule-abiding configurations. AR models, however, suffered from "malignant" memorization, often regurgitating entire training sequences rather than learning the underlying abstract logic.

Furthermore, rule learning was found to be an emergent property. Neither model family showed significant progress until reaching a critical data threshold of approximately 1,000 examples per rule. Interestingly, as AR models scaled with more data, their completion accuracy improved, but their ability to generate consistent unconditional samples actually declined—a phenomenon attributed to compounding errors, or the "LeCun" failure mode, where a single early mistake leads to total logical collapse.

Conclusion

The study highlights that current generative architectures possess complementary strengths in abstract reasoning. Diffusion models offer superior global consistency and creative recombination, while AR models provide stronger conditional logic. Future research should explore hybrid architectures or advanced prompting techniques to bridge the gap between sequential prediction and holistic consistency, ultimately moving closer to human-level sample efficiency in rule induction.

Summary updated

BibTeX
@inproceedings{wang2024diverse,
  author = {Binxu Wang and Jiaqi Shang and Haim Sompolinsky},
  title = {{Diverse capability and scaling of diffusion and auto-regressive models when learning abstract rules}},
  booktitle = {Sys2-Reasoning @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=FNFxd2mV2U},
}
Figure