Abstract
Modeling exchangeable data—sets where the order of elements is irrelevant and the size varies—remains a significant challenge in machine learning. We introduce Energy-Based Processes (EBPs), a framework that combines the theoretical consistency of stochastic processes with the expressive power of deep energy-based models (EBMs). Unlike Gaussian Processes (GPs) or Neural Processes (NPs) which often assume unimodal likelihoods, EBPs can capture complex, multi-modal distributions. We propose Neural Collapsed Inference (NCI) to efficiently train these models by marginalizing over latent variables. Our results across synthetic regression, image completion, and 3D point cloud tasks demonstrate that EBPs significantly outperform existing methods in capturing data diversity and structural complexity.
Introduction
In many real-world applications, data is naturally represented as an unordered set of elements. Examples include 3D point clouds in computer vision, sets of documents in natural language processing, or collections of measurements in scientific computing. Such data must satisfy two fundamental properties: exchangeability (invariance to the permutation of elements) and varying cardinality (the ability to handle sets of different sizes).
While existing architectures like Recurrent Neural Networks (RNNs) can handle varying sizes, they are not inherently order-invariant. Conversely, stochastic processes like Gaussian Processes (GPs) and Neural Processes (NPs) provide exchangeability but are often limited by simple, predefined likelihood functions (e.g., Gaussians). This limitation prevents them from accurately modeling multi-modal data, where a single input might correspond to multiple valid output configurations.
The Energy-Based Process Framework
The core innovation of this work is the Energy-Based Process (EBP). We leverage a representation theorem stating that any valid stochastic process can be viewed as a mixture of i.i.d. processes governed by a latent variable.
Instead of the standard Gaussian likelihood used in NPs, an EBP employs a Deep Energy-Based Model (EBM) to define the likelihood of an element given a latent state. By using neural networks to define an "energy function," EBPs can represent much more complex and non-linear distributions. Mathematically, the energy function assigns low energy to high-probability configurations, allowing the model to represent multiple "modes" or clusters in the data space simultaneously.
Efficient Training with Neural Collapsed Inference
Training EBPs is computationally demanding due to the need to integrate over latent variables and the presence of the intractable partition function (normalization constant) in EBMs. To address this, we introduce Neural Collapsed Inference (NCI). NCI utilizes a reparameterization trick to "collapse" nuisance variables, significantly streamlining the optimization process. Furthermore, we employ Adversarial Dynamics Embedding (ADE) to manage the partition function, making the training of these deep energy-based processes feasible for high-dimensional data.
Experiments and Results
We evaluated the EBP framework across several domains to test its flexibility and ability to handle multi-modality.
Synthetic 1D Regression
To demonstrate the model's ability to capture multi-modal distributions, we used a synthetic dataset of two-mode sine waves. Traditional methods like GPs and NPs tend to "average" between the two modes, resulting in a single, blurry prediction that fits neither mode well. In contrast, the EBP successfully identifies and models both distinct paths.
As shown in the figure above, while GP and NP produce a diffuse or averaged density, the EBP captures the sharp, multi-modal structure of the ground truth data.
Point Cloud Generation and Representation
On the ShapeNet dataset, EBPs achieved state-of-the-art "Coverage" (COV) scores for categories such as Airplanes, Chairs, and Cars. This indicates that the model generates a wider variety of realistic shapes and is less prone to the "mode collapse" often seen in generative models. For unsupervised representation learning on ModelNet40, EBPs reached an accuracy of 88.3%, performing competitively with specialized, supervised architectures.
Image Completion
When applied to MNIST and CelebA datasets (treating pixels as sets of coordinates and colors), EBPs demonstrated a unique ability to generate multiple valid completions for a single partial image. For instance, given the top half of a digit, the model could generate both a "3" and an "8" as plausible completions, whereas baseline models often produced a blurry hybrid of the two.
Conclusion and Future Work
Energy-Based Processes offer a powerful and flexible framework for modeling exchangeable data. By unifying stochastic processes with energy-based modeling, they overcome the unimodal limitations of previous approaches. While the iterative MCMC sampling required for EBMs introduces a higher computational cost compared to feed-forward models, the gains in representational accuracy and diversity are substantial. Future research will explore extending EBPs to discrete data domains, such as sets of categorical labels or words.
Summary updated