Neural Permutation Processes

Ari Pakman, Yueqi Wang, Liam PaninskiAABI 2019

Introduction

Many fundamental problems in machine learning and computer vision—such as multi-object tracking, feature matching, and neural decoding—rely on finding the correct correspondence between two sets of objects. These are essentially problems of latent permutations. However, Bayesian inference over permutations is notoriously difficult due to two primary factors: combinatorial explosion and the computational intractability of the "permanent."

For a set of $N$ objects, there are $N!$ possible matchings, a space that grows too quickly for exhaustive search. Furthermore, calculating the exact probability of a specific matching requires computing the permanent of a matrix. Unlike the determinant, which can be computed in polynomial time, computing the permanent is #P-hard, making it practically impossible for even moderately sized datasets. Traditional methods like Markov Chain Monte Carlo (MCMC) are often slow and fail to provide normalized probability estimates for their samples.

Neural Permutation Processes (NPP)

To address these challenges, the authors introduce Neural Permutation Processes (NPP), an amortized approach to Bayesian inference. Instead of solving each matching problem from scratch, NPP trains a neural network to learn the underlying distribution of permutations, allowing for fast, high-quality inference at test time.

Architectural Innovations

The NPP architecture relies on several key design choices to ensure efficiency and theoretical soundness:

  1. Sequential Decomposition: The model breaks down the joint probability of a permutation into a sequence of conditional matching choices. When selecting the $n$-th match, the model considers the current pair $(x_n, y_n)$ in the context of all remaining unmatched items.
  2. Permutation Invariance via Deep Sets: To represent the pool of unmatched items, the authors employ architectures inspired by "Deep Sets." These functions are permutation-invariant, ensuring that the order in which unmatched items are processed does not affect the final output.
  3. Neural Approximation of the Permanent: The core innovation is replacing the intractable permanent calculation with a neural network approximation, $e^{f(H_x, H_y)}$, where $H_x$ and $H_y$ are compressed representations of the remaining sets.
  4. Simulation-Based Training: The model is trained by minimizing the KL divergence between the true posterior and the neural approximation. By using a generative model to synthesize training data, the authors have access to ground-truth permutations during the learning phase.
Figure 1: The NPP architecture (left) uses sequential decomposition and Deep Sets to approximate the permanent. The training curves (right) show that component-wise multiplication of set representations outperforms additive methods.

Experimental Evaluation

The authors evaluated NPP on two distinct tasks: synthetic noisy 2D point matching and MNIST digit matching.

Noisy 2D Point Matching

In this task, $N$ points are sampled from a Gaussian distribution, and their counterparts are noisy, permuted versions. NPP successfully captured the inherent ambiguity of the data. Rather than collapsing to a single "best" matching, the model provided several high-probability samples in regions where points were clustered closely together. In small-scale tests ($N=6$) where the exact permanent could be calculated, NPP’s approximate probabilities closely tracked the ground-truth values.

MNIST Digit Matching

A more complex challenge involved matching pairs of handwritten digits that share the same label. Despite variations in handwriting style, the model successfully matched digits by their semantic labels. Notably, the model's uncertainty reflected human-like confusion, such as assigning similar probabilities to matchings involving a '4' that looks like a '9'.

Figure 2: Qualitative results showing NPP's ability to handle ambiguity in 2D point clouds (left) and perform semantic matching on MNIST digits (right), providing calibrated probability estimates.

Key Insights

A significant finding of the research is the importance of the symmetry function used to combine set representations ($H_x$ and $H_y$). The authors discovered that component-wise multiplication ($\odot$) yielded significantly higher likelihoods than standard additive encoding. This suggests that multiplicative interactions may be better suited for capturing the relationships between sets in matching problems.

Furthermore, unlike MCMC methods, NPP provides a normalized probability estimate for every permutation it samples. This capability is invaluable for evaluating matching confidence and allows NPP to serve as a powerful proposal generator for other algorithms like Metropolis-Hastings.

Conclusion

Neural Permutation Processes offer a promising path forward for complex matching problems. By amortizing the cost of inference and leveraging permutation-invariant architectures, NPP provides fast, probabilistic solutions that were previously computationally out of reach. Future work will focus on scaling these methods to more complex generative models, such as 3D scene understanding and temporal tracking in video.

Summary updated

BibTeX
@inproceedings{pakman2019neural,
  author = {Ari Pakman and Yueqi Wang and Liam Paninski},
  title = {{Neural Permutation Processes}},
  booktitle = {AABI},
  year = {2019},
}
Figure