Abstract
Positional reasoning—the ability to arrange elements into a coherent structure—is a fundamental human skill that presents significant combinatorial challenges for machine learning. We present Positional Diffusion, a unified, "plug-and-play" framework that reframes the ordering of unordered sets as a continuous denoising task. By mapping discrete positions to a continuous Euclidean space and utilizing an attention-based Graph Neural Network (GNN) to reverse a diffusion process, our model achieves state-of-the-art performance across multiple modalities, including jigsaw puzzles, sentence ordering, and visual storytelling, without requiring task-specific architectural modifications.
1. Introduction
Traditional approaches to set ordering often rely on highly specialized, "siloed" solvers tailored to specific data types, such as image patches or text sequences. These methods frequently struggle with permutation invariance and lack generalizability. Positional Diffusion addresses these limitations by treating the problem as a regression task in a continuous space. Instead of generating content (e.g., pixels), the model generates locations, leveraging the structural reasoning capabilities of Diffusion Probabilistic Models (DPMs).
2. Methodology
The Positional Diffusion framework consists of several key components designed to handle the complexity of positional reasoning.
2.1 Continuous Mapping and Diffusion
Discrete positions (e.g., grid indices or sequence order) are mapped into a bounded continuous Euclidean space. During training, a Forward Process injects Gaussian noise into these "correct" positions until they become random. The Reverse Process then learns to recover the original coordinates through iterative denoising.
2.2 Architecture and Task-Agnostic Backbone
The core of the model is an Attention-based Graph Neural Network (GNN). Each element in the set is treated as a node in a fully connected graph, allowing every element to consider the global context during every step of the denoising process. To handle diverse data types, frozen, pre-trained encoders (e.g., EfficientNet for images, BART for text) generate fixed "node features." The GNN iteratively refines the node coordinates while these features remain constant.
2.3 Zero-Centered Initialization
Unlike standard generative diffusion models that begin inference from random noise to ensure diversity, Positional Diffusion utilizes Zero-Centered Initialization. Starting from the mean of the distribution ($x_T = 0$) provides a stable "average" position, removing unnecessary stochasticity and significantly boosting the precision of the final arrangement.
3. Experimental Evaluation
The model was evaluated on three distinct tasks: jigsaw puzzles (up to 12x12 grids), sentence ordering (using Wikipedia and ROCStories), and visual storytelling (VIST dataset).
3.1 Key Results
Positional Diffusion demonstrated significant improvements over existing baselines:
- Visual Puzzles: On the 12x12 PuzzleWikiArts dataset, the model outperformed the leading deep learning method by +18% in piece placement accuracy.
- Textual Coherence: It achieved state-of-the-art results on Wikipedia Movie Plots, showing an 8% improvement over specialized text-ordering methods.
- Scalability: The model maintained high performance even as the number of elements increased, showing minimal degradation when scaling from 6x6 to 12x12 puzzles.
4. Discussion and Limitations
While highly versatile, the model faces challenges in scenarios with weak logical links (e.g., ROCStories), where fine-tuning the underlying language model might be necessary. Additionally, "local collapses" occasionally occur, where clusters of elements are correctly ordered but incorrectly placed within the global structure. Finally, the iterative nature of diffusion results in slower inference speeds compared to one-shot neural networks.
5. Conclusion
Positional Diffusion offers a powerful, task-agnostic approach to structural reasoning. By shifting the focus of diffusion from content synthesis to coordinate regression, it provides a robust solution for complex ordering problems across various domains.
Summary updated