Learning Permutation Distributions via Reflected Diffusion on Ranks
Abstract
Lay Summary
Many important problems in AI involve arranging things in the right order — for example sorting images, reconstructing shuffled puzzles, recommending items, or planning routes. But teaching AI systems to generate good orderings is difficult because even small changes can completely alter the final arrangement. In this work, we introduce a new way to model orderings using diffusion models. Instead of repeatedly “shuffling” items in abrupt ways, we relax the position of each item from a discrete number to a continuous one and gradually adds noise in this smoother space. The intuition is that small changes in the representation should lead to small changes in the ordering, making the learning process much more stable than directly manipulating discrete permutations. This creates more stable learning and makes the model much better at handling long and complicated sequences. We also design the model so that each decision can adapt based on the choices already made, which is especially useful for step-by-step problems like route planning. Across several tasks — including number sorting, image puzzle reconstruction, and traveling salesperson problems — our method consistently performs better than previous approaches, especially on larger and more difficult examples.