Learning Energy-Based Models from Stochastic Interpolants using Spatiotemporal Differences
Hanlin Yu, RuiKang OuYang, Partha Kaushik, Arto Klami, Michael U. Gutmann, Omar Chehab
NeurIPS 2026
Abstract. Learning an energy-based model from data samples is a central problem in machine learning. Many recent and popular methods, such as denoising score matching for training energy-based diffusion models, use stochastic interpolants to corrupt data samples at different noise levels indexed by a time variable. This defines a joint density over both the data space and time, and most methods learn its energy through either spatial or temporal differences. We identify distinct failure modes for both of these approaches. To solve them, we propose Spatiotemporal Noise-Contrastive Estimation (stNCE), a framework for learning the energy through joint spatiotemporal differences. stNCE unifies many existing methods and leads to new training objectives. Experiments on images and molecules demonstrate performance competitive with state-of-the-art density estimation methods.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes stNCE for learning energy-based models over the joint density induced by a stochastic interpolant. The main claim is that joint spatiotemporal differences avoid failure modes of purely spatial or temporal estimators. The paper supports this with a binary-classification formulation, consistency and infinitesimal-limit results, a failure-mode study, Gaussian-mixture experiments, and likelihood experiments on images and molecules.
The main strength is the unifying view. The spatial/temporal/spatiotemporal taxonomy is useful, and Table 5 relates several existing methods. The forward-reverse kernel is sensible. The MNIST mixture results give strong evidence for the self-score variant on a high-dimensional multimodal density; the ImageNet64 and molecule results are promising as likelihood or energy-estimation results.
The consistency guarantees need clear scope. Theorems 1-2 and Appendix A.2 appear to apply to a fixed perturbation kernel, while stNCE-s uses the current model's score in the forward-reverse kernel. If the guarantee covers this moving-kernel variant, give the argument. If not, scope the theorem to the fixed/oracle-kernel case and present stNCE-s as an empirical variant. This also affects Table 1, where stNCE-s outperforms stNCE-o.
The experiments should connect more tightly to the proposed estimator. The 1D figures explain the low-density-path argument, and the MNIST mixture is a relevant high-dimensional test. What remains unclear is which experiments isolate spatial, temporal, and joint comparisons. A compact diagnostic on an existing setup would be enough.
The added DSM component should be separated from stNCE. Several headline results, including ImageNet64 and molecules, use stNCE-s+DSM. State which component is used in each result, which component improves likelihood or sampling, and what standalone stNCE achieves where available. For molecules, state the Chignolin accuracy/runtime tradeoff against FPE accurately.
The sampling claim also needs scope. The paper motivates EBMs through applications that require sampling, but the main evaluation is likelihood-focused. Describe how MNIST and molecule samples are generated, whether sampling uses the learned energy, the DSM-trained score, or both, and whether ImageNet samples or sampling-time numbers are available. A large ImageNet sampling benchmark is secondary if the claims are scoped clearly.
Final justification
Response and discussion. The rebuttal narrows the consistency guarantee to fixed perturbation kernels, reports a high-dimensional diagnostic isolating spatial, temporal, and joint comparisons, separates standalone stNCE from the DSM-augmented results, and clarifies sampling as secondary to density estimation. Reviewer Snpi announced a rating increase from 4 to 5 (although the official field remains 4, likely a mistake); reviewer V4k1 maintained 5, while reviewer Sd3N kept 3 because the extensive rewrite could not be checked.
Final assessment. The response resolves the theory-scope and mechanism questions by narrowing claims and adding evidence, but the adaptive stNCE-s guarantee and ImageNet sample-quality evidence remain absent. Several presentation and attribution changes remain promised rather than visible in a revised manuscript; this limits verification but does not overturn the paper's technical contribution and overall strengths of the paper.
Read meta-review
Meta-review
This paper proposes stNCE for learning energy-based models over the joint density induced by a stochastic interpolant. The main claim is that joint spatiotemporal differences avoid failure modes of purely spatial or temporal estimators. The paper supports this with a binary-classification formulation, consistency and infinitesimal-limit results, a failure-mode study, Gaussian-mixture experiments, and likelihood experiments on images and molecules.
The main strength is the unifying view. The spatial/temporal/spatiotemporal taxonomy is useful, and Table 5 relates several existing methods. The forward-reverse kernel is sensible. The MNIST mixture results give strong evidence for the self-score variant on a high-dimensional multimodal density; the ImageNet64 and molecule results are promising as likelihood or energy-estimation results.
The consistency guarantees need clear scope. Theorems 1-2 and Appendix A.2 appear to apply to a fixed perturbation kernel, while stNCE-s uses the current model's score in the forward-reverse kernel. If the guarantee covers this moving-kernel variant, give the argument. If not, scope the theorem to the fixed/oracle-kernel case and present stNCE-s as an empirical variant. This also affects Table 1, where stNCE-s outperforms stNCE-o.
The experiments should connect more tightly to the proposed estimator. The 1D figures explain the low-density-path argument, and the MNIST mixture is a relevant high-dimensional test. What remains unclear is which experiments isolate spatial, temporal, and joint comparisons. A compact diagnostic on an existing setup would be enough.
The added DSM component should be separated from stNCE. Several headline results, including ImageNet64 and molecules, use stNCE-s+DSM. State which component is used in each result, which component improves likelihood or sampling, and what standalone stNCE achieves where available. For molecules, state the Chignolin accuracy/runtime tradeoff against FPE accurately.
The sampling claim also needs scope. The paper motivates EBMs through applications that require sampling, but the main evaluation is likelihood-focused. Describe how MNIST and molecule samples are generated, whether sampling uses the learned energy, the DSM-trained score, or both, and whether ImageNet samples or sampling-time numbers are available. A large ImageNet sampling benchmark is secondary if the claims are scoped clearly.
Final justification
Response and discussion. The rebuttal narrows the consistency guarantee to fixed perturbation kernels, reports a high-dimensional diagnostic isolating spatial, temporal, and joint comparisons, separates standalone stNCE from the DSM-augmented results, and clarifies sampling as secondary to density estimation. Reviewer Snpi announced a rating increase from 4 to 5 (although the official field remains 4, likely a mistake); reviewer V4k1 maintained 5, while reviewer Sd3N kept 3 because the extensive rewrite could not be checked.
Final assessment. The response resolves the theory-scope and mechanism questions by narrowing claims and adding evidence, but the adaptive stNCE-s guarantee and ImageNet sample-quality evidence remain absent. Several presentation and attribution changes remain promised rather than visible in a revised manuscript; this limits verification but does not overturn the paper's technical contribution and overall strengths of the paper.
2 comments
Summary of rebuttal period
We thank the AC and the reviewers for fruitful discussions throughout the rebuttal period.
We provided detailed responses to the AC and the reviewers' concerns. This includes clarifying the scope of our consistency guarantees and the presentation of our results. We further provided several new empirical results:
- ImageNet sampling. This was motivated by the AC, reviewer V4k1 and reviewer Snpi, and provided in the responses to all of them. Apart from clarifying the sampling algorithm, we reported the sampling-time number as the time it takes to draw a batch of samples.
- Analysis of models trained on MNIST mixture. This was motivated by the AC, reviewer Sd3N and reviewer Snpi. The detailed version was provided in the rebuttal for reviewer Snpi. We provided a fine-grained analysis of the errors of models trained on MNIST mixture, so as to connect empirical results more tightly to the proposed estimators. This experiment was acknowledged by reviewer Sd3N ("This helps to confirm that the good performances on the MNIST mixture are brought upon by the claimed mechanism.") and reviewer Snpi ("The new MNIST mixture analysis is interesting.").
- dimensional molecule experiments on aldp full. This was motivated by discussions with reviewer Sd3N, and provided as an official comment to reviewer Sd3N starting as "We thank the reviewer for their response and their summary of our response. We next provide an explanation...". This experiment aims to provide further insights into the relationship between the performances of different contrastive algorithms and the dimensionalities of the problems.
Reviewer V4k1 maintained their positive rating, and reviewer Snpi raised their score. Both of them acknowledged that their concerns were addressed. We had a fruitful discussion with reviewer Sd3N, where we provided new empirical results (MNIST mixture analysis and aldp full), responses, and detailed the tentative changes we would make to the manuscript in light of their constructive comments. We respectfully believe that we can address reviewer Sd3N's comments through clarifications and presentation revisions.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies how to learn an energy-based model from data using stochastic interpolants, which corrupt data across a range of noise levels indexed by a time t and define a joint density p(x,t). It observes that most existing methods learn the energy by estimating how this density changes, either across space (score matching, CNCE) or across time (NCE, TRE, time-score matching), and that each can be cast as a logistic binary-classification problem distinguishing a data point from a perturbed version of it. From this the authors propose stNCE, a unifying framework that learns the energy by estimating its joint spatiotemporal differences through a single binary-classification task, with specific choices of time prior and perturbation kernel recovering most existing methods (Table 5). They give a path-decomposition argument for why purely spatial methods struggle under multimodality and purely temporal ones under support mismatch, namely that both are forced to compare points across poorly-sampled low-density regions, while joint spatiotemporal differences can stay in high-density regions. They propose three perturbation kernels (mixture, white-noise, and a forward-reverse kernel that keeps the contrastive pairs on the data manifold by perturbing along diffusion trajectories), provide consistency and sample-efficiency results, and show the forward-reverse kernel recovers known score-matching losses in the small-step limit. Experiments on synthetic mixtures, MNIST/ImageNet64, and molecules show the spatiotemporal variants are competitive with state-of-the-art density estimation, with the self-score variant giving a good accuracy/speed trade-off.
Strengths and weaknesses
Strengths: The paper's main strength is unification: it shows that a wide range of EBM-from-interpolant methods (NCE, TRE, CNCE, denoising and sliced score matching, and several recent spatiotemporal variants) are all instances of a single logistic binary-classification problem on the augmented space (x,t), differing only in the time prior and the perturbation kernel. Table 5 makes this concrete and is a useful way to organize the area. The spatial/temporal taxonomy and the path-decomposition view in Figure 2 give a clean account of two known failure modes, multimodality for spatial methods and support mismatch for temporal ones, in a common language. The forward-reverse kernel is a sensible idea, and the consistency distinction from RNE holds up empirically (Table 1). The infinitesimal-limit results (Props. 3–4) connect the framework back to score matching. The evaluation is reasonably broad across synthetic data, images, and molecules, and the ImageNet64 result (2.94 bpd, single-NFE) is solid at non-trivial scale. The relevant prior work is well covered.
Weaknesses:
-
The consistency guarantee may not cover the variant that carries the results. Theorems 1–2 assume a fixed perturbation kernel, but the variant behind most of the strong numbers, stNCE-s, uses the model's own score in the denoising branch of the forward-reverse kernel (Eq. 19), making the kernel depend on θ and turning the contrastive target into a moving one during training. The proof in A.2 doesn't appear to address a θ-dependent kernel; as stated it most cleanly covers the oracle version (stNCE-o). It would help to state explicitly whether the consistency result extends to stNCE-s (e.g. via a fixed-point argument at p_θ=p_d, where the self-score becomes exact), or to scope the theorem to the oracle/fixed-kernel case and present stNCE-s's consistency as empirical.
-
The core explanatory claim is only really shown in 1-D. The central mechanism, that joint space-time differences route the contrastive comparison through high-density regions while purely spatial or temporal paths get forced across low-density voids (Eqs. 8–11, Fig. 2), is doing most of the conceptual work in the paper, but the direct evidence for it is a 1-D toy example (Figs. 1–2), which the authors themselves describe as a conjecture they "empirically validate." Whether such an on-manifold path actually exists is a high-dimensional geometry question, and a 1-D picture can't settle it. A high-dimensional ablation comparing spatial vs. temporal vs. joint on the same task would go a long way here, rather than leaving the mechanism inferred from aggregate benchmark wins. As a smaller related point, "support mismatch" is acknowledged as loose terminology since the Gaussians have full support, so it's worth defining precisely once.
-
Figures 1 is hard to parse on a first read. Figure 1 is the first thing you hit, but it's difficult to understand at that point: the left panel is a density in (x,t) space while the right panels switch to error in (multimodality, support-mismatch) space, with no axis relabeling to signal the change, and the actual quantity being plotted isn't defined until Appendix D.1. In practice you end up needing Figure 2 to grasp what Figure 1 is even showing, and a trip to the appendix to know how the axes were constructed. The paper's central illustration would benefit from being legible on its own, without that round-trip.
-
The competitive results (ImageNet64 2.94 vs Dual SM 3.36, Table 4; the molecule numbers) come from stNCE-s + DSM, which adds a space-score-matching term on top of the framework. Of the three "pure" kernels, stNCE-w fails off-manifold in high-d by the authors' own argument, and stNCE-m is the slow naive tNCE+tCNCE sum. So the framework's standalone contribution and the +DSM-assisted results are a bit blurred, and it would be cleaner to state the dependence on DSM where the results are presented. Relatedly, the molecule claim "competitive with or better than FPE [48]" is generous for Chignolin, where FPE is still clearly ahead (0.0048 vs 0.0074 IID JS, Table 14); the honest and still-good version is comparable accuracy at roughly half the training cost (Table 15).
-
The applications used to motivate EBMs all ultimately need sampling, which the paper concedes is the weaker side. The intro motivates likelihood learning via Boltzmann reweighting, composition, and alignment, but those mostly require sampling from the learned or composed energy at the end, and the limitations paragraph admits NCE recovers energies well while the scores (hence samplers) are noisier. So the motivating use cases sit slightly in tension with the acknowledged gap.
Questions
-
Can you show the central mechanism operates in high dimensions? The claim that joint spatiotemporal differences keep the comparison in high-density regions is currently supported by a 1-D example (Figs. 1–2). A controlled ablation comparing spatial vs. temporal vs. joint on one of your existing higher-dimensional setups (the MNIST mixture would do, since it's built precisely to have both multimodality and support mismatch, and you already run it) would directly test whether the mechanism is what drives the gains, rather than leaving it inferred from aggregate benchmark wins. This reuses an existing dataset, so it shouldn't require heavy new compute.
-
Does the consistency result cover stNCE-s, or only the oracle/fixed-kernel case? Theorems 1–2 assume a fixed perturbation kernel, but stNCE-s plugs the model's own score into the denoising branch of the forward-reverse kernel (Eq. 19), making the kernel θ-dependent. Please clarify whether the A.2 argument extends to this moving-target case, e.g. via a fixed-point argument at where the self-score becomes exact, or whether stNCE-s's consistency should be presented as empirical.
-
Please make the +DSM dependence explicit where results are reported. The strongest numbers (ImageNet64 2.94; the molecule results) come from stNCE-s+DSM, while the three "pure" kernels are individually weaker (stNCE-w off-manifold in high-d, stNCE-m slow). Could you state clearly at each result which component is doing the work, and report stNCE-s without DSM where feasible so the framework's standalone contribution is visible?
-
How is sampling actually done, and how do you reconcile the energy and the score? Sampling is specified for molecules (Langevin, diffusion sampler) but under-specified for the MNIST samples in Fig. 4, and there's no sampling at ImageNet scale. Since you note NCE recovers energies well but scores can be noisier, which object do you sample from for each result, the energy via or the DSM-trained score, and how do you handle any inconsistency between them?
-
A sharper delineation from concurrent spatiotemporal work would help. Several recent papers ([1], [26], [28], [47], [48]) are converging on similar ideas, and they're currently engaged only in passing. A short paragraph or small table separating stNCE from each, especially OuYang et al. [47] which sounds closest, would make the unification contribution land more clearly
Limitations
Mostly yes, the paper has a dedicated limitations paragraph and a broader-impacts section, and it's upfront about the main issue, that NCE recovers energies well but the scores (hence samplers) can be weaker than score-matching variants. Two smaller limitations are worth noting: the perturbation kernel is an important design choice that's currently left to heuristics, also since the strongest results use an added DSM term, it would be worth stating that the best standalone variant doesn't quite reach those numbers on its own.
Final justification
The rebuttal resolved my concerns, including the consistency theorem's scope, stNCE-s's standalone performance, the sampling/likelihood motivation, and the Chignolin phrasing, so I'm raising my score to 5, though I'd encourage adding the new MNIST mixture analysis (or a pointer to it) to the main paper.
Apologies for the late submission of this final review, I left a comment before the deadline, but couldn't locate the final review button and had to contact the Program Chair to resolve it.
Formatting concerns
I noticed no formatting or anonymity violations
3 comments
Rebuttal
We thank the reviewer for their positive evaluation.
Scope of the theorem on the consistency of the estimator (weakness 1 and question 2). The reviewer is correct that our theorem indeed assumes a fixed perturbation kernel. In particular, it does not depend on the model parameters and consequently does not change during optimization. We remark that, for stNCE with forward-reverse kernel induced by some potentially arbitrary score function that is fixed from the onset, our loss is consistent. Nevertheless, we do acknowledge that our approximation of the score is updated during optimization and the property of the resulting algorithm is beyond the scope of our existing theory. We will follow the reviewer's suggestion and distinguish between
- The consistency results for the fixed perturbation kernels, which includes forward-reverse kernels with some score functions that can be arbitrary but fixed,
- The practical stNCE-s algorithm, which uses an adaptive kernel, thus is not covered by our current theory.
The core explanatory claim is really shown in 1D (weakness 2 and question 1). In order to analyze whether the error analysis of spatial, temporal and spatiotemporal methods as shown in Figure 1 and Figure 2 holds for MNIST mixture, we perform a new fine-grained analysis.
We consider a temporal method (tNCE), a spatial method (tCNCE), and spatiotemporal methods (stNCE-m, stNCE-w, stNCE-o and stNCE-s). When applicable, we use the models trained with standard deviation of the spatial and temporal Gaussian perturbation kernels set to . We select pairs of data samples, such that both the first elements and the second elements cover all the modes and no pairs contain points from the same mode. For each pair, we then construct the interpolations as described in Figure 2 and Section 3 with steps. We classify a point as low density if , and an edge as low density if either point is low density.
We next discuss the specific interpolation schemes for between and , using the notation in Section 3. We compute pointwise errors and define the local ratio errors as . The resulting ratio errors telescope across when summed over all , resulting in .
Consider two data points, and . For the temporal method, we fix and and vary . The pointwise error is given by . For the spatial method, we fix , corresponding to data, and linearly interpolate between and using . The pointwise errors are given by . For the spatiotemporal methods, we sample a common standard normal noise . As varies, and interpolate from to and , respectively. The point errors are given by . These point errors correspond to the expressions in Section 3 of the paper.
We measure the proportions of low density edges along each interpolation and compare the models' errors in high and low density regions. As expected, both tNCE and tCNCE, the spatial and temporal methods, traverse low density regions more frequently and exhibit substantially larger errors in such regions than the high density ones. By contrast, spatiotemporal methods encounter few low density edges. This provides a fine-grained and possible explanation for why the spatial and temporal methods fail on the MNIST mixture dataset: their final performance is likely dominated by the estimation errors in low-density regions.
The reported metrics are defined as follows:
high_density_rmse: RMSE of local ratio in high density region, low_density_rmse: RMSE of local ratio in low density region, low_density_rate: proportion of edges classified as low density, NormMSE: the same NormMSE according to the main paper.
| method | high_density_rmse | low_density_rmse | low_density_rate | NormMSE |
|---|---|---|---|---|
| Temporal (tNCE) | 0.41 | 1.00 | 29.69% | 10061.53 |
| Spatial (tCNCE) | 5.79 | 27.54 | 57.47% | 8245.82 |
| Spatiotemporal (stNCE-m) | 0.44 | 0.51 | 1.19% | 2272.55 |
| Spatiotemporal (stNCE-w) | 0.43 | 0.53 | 1.19% | 1310.11 |
| Spatiotemporal (stNCE-o) | 0.20 | 0.19 | 1.19% | 136.89 |
| Spatiotemporal (stNCE-s) | 0.18 | 0.14 | 1.19% | 75.34 |
The role of the score matching loss (weakness 4 and question 3). As the reviewer mentioned, stNCE-s + DSM achieves strong results. stNCE-s and DSM are individually special choices of the perturbation kernel. Arguably, their sum stNCE-s + DSM could be a special case of the perturbation kernel as well. We understand the broader point that adding a score matching loss (DSM) seems to improve results. To answer a remark by the reviewer, we made this explicit by denoting +DSM in the result tables, but agree that this is a bit short and will add some explanations in the main text. The reviewer also specifically brought up the possibility of reporting stNCE-s without DSM where feasible. We reported such results on MNIST, where we observe that while stNCE-s is the best among contrastive algorithms, adding DSM makes it converge notably faster and highly competitive with the baselines, as such we focus on the version with DSM loss for ImageNet-64.
Motivation of energy-based modelling vs. sampling (weakness 5 and question 4). This point has been brought up by reviewers Snpi and Vrk1, as well as the Area Chair. We acknowledge that there is some ambiguity on what the final goal of energy-based modelling is. We gently clarify that, our main goal is to learn the probability density from a complex, high-dimensional dataset of samples. One way to parameterize a probability density using a neural network is as an energy-based model. Estimating such a model is hard and has decades of literature behind it. This is where we position our contribution.
Sampling is one downstream application of learning an energy-based model: in this work, we consider it secondary. The same way that seminal papers for learning energy-based models, such as the original papers on Noise-Contrastive Estimation and on Score-Matching, did not actually consider sampling. We will clarify this. Nevertheless, after learning our energy-based models, we do use sampling as a sanity check, not the primary goal, for the model being correctly learned. To answer the reviewer's question about how sampling is actually done, we obtain the scores by taking gradients of the energy network. We clarify that these are precisely the same score estimates trained by the DSM loss. From the scores, we obtain estimates of flow matching velocities, as explained in Appendix C.4. We can then numerically integrate the velocity field using some ODE solvers. The samples on MNIST and MNIST mixture were drawn using steps of Euler integrator. We will clarify this in the main text. In order to measure the efficiency of sampling, we performed a new experiment. Specifically, we record the time of drawing samples in a single batch using a single NVIDIA GH200. Using steps Euler integrator, it takes less than minute, verifying that sampling remains reasonably efficient.
Reporting results on the Chignolin dataset. We will also take the reviewer's advice in reporting the Chignolin results more modestly: we agree that the baseline FPE still achieves better performance than our method, and we can write, as suggested, that we achieve "comparable accuracy at roughly half the training cost".
Discussing related spatiotemporal works. There are indeed previous works that utilize spatiotemporal notions, while to the best of our knowledge our work is the first to propose such a unifying framework and generalize several of the previous works. [1] and [47] are highly related to our tNCE algorithm, as briefly discussed on Line 107. Both [26] and [48] concern learning the time scores, as such can be interpreted as special instances of our framework, as briefly discussed in Appendix B. [28] is related to stNCE with the forward-reverse kernel, but unlike stNCE, it is not consistent when using the model's own score and used on its own. We agree that [47], proposing diffusive classification loss, is quite relevant to our work. When there are two classes, it essentially reduces to tNCE. As such, it has the same properties as tNCE and suffers from the same pathologies when used on its own. We are happy to include such a discussion in our paper.
Limitations. We thank the reviewer for noting these smaller limitations, and will acknowledge them in the final version.
Anwer to authors
I thank the authors for their thorough rebuttal, which addresses my concerns well. The new MNIST mixture analysis is interesting, I'd encourage including it (or a pointer to it) in the main paper. The clarifications on the consistency theorem's scope, stNCE-s's standalone performance, the sampling/likelihood motivation, and the revised Chignolin phrasing all resolve the points I raised. I am raising my score to 5.
We thank the reviewer for their response and for raising their score, and we are glad that our response addressed the reviewer's concerns. We will update the manuscript accordingly.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work studies the problem of training energy based models from samples, with data corrupted along a time variable, forming an energy function over space and time E(x,t). It categorizes existing approaches as either learning energy differences along either t (temporal) or x (spatial), trained via minimizing a binary classification loss. The paper outlines how these face issues in likelihood estimation: the former under support mismatch (over time), and the latter over multimodal targets. Within this framework it proposes training for energy differences over both x and t (spatiotemporal) to amend these issues. The efficacy of the method is demonstrated for likelihood estimation on synthetic, image and molecule data, where the method obtains performance close to the state of the art.
Strengths and weaknesses
Strengths:
-
The proposed unifying framework is helpful in establishing how methods relate to each other.
- The discussion of the failure modes of various methods, and how spatiotemporal learning solves them is convincing
-
The paper is well written and clear
- Very helpful figures for explanation
-
The likelihood evaluation is fairly thorough
Weakness:
-
The evaluation focuses almost entirely on likelihood estimation. While this is a key aspect of energy based models, I think some validation of the sampling performance of the model on a dataset like ImageNet would better illustrate the method’s limitations and ideal use-cases (particularly since other baselines, such as eg. Glow, FFJORD do qualitatively demonstrate generated samples)
- Additionally, metrics such as roughly how long it takes in wall clock time to generate a reasonable sample, would also help position the method among baselines
-
Some minor typos:
- The perturbation kernel for in Eq 6,
- Table 2 caption “from from”
- Table 3 caption is unclear
Overall the paper is well written and interesting, with my main concern only being that the sampling performance of the model is unclear relative to baselines.
Questions
-
What is the sampling procedure used for extracting samples eg. in the MNIST experiment (Fig 4). What do samples from ImageNet look like compared to samples extractable from other baselines (when applicable). See point 1 in weaknesses.
-
Why does stNCE-s outperform stNCE-oracle frequently in Table 1? This seems counter-intuitive.
Limitations
yes
Final justification
I find the work to be useful in unifying training schemes for EBMs, analyzing their failure modes, and proposing algorithms for correcting these. Overall the work is clearly written and convincing as a method for learning accurate likelihoods. My primary issue was with the lack of sampling results, but I understand that the aim of the work is likelihood-estimation. Due to this, I maintain my positive score.
Formatting concerns
No formatting concerns
3 comments
Rebuttal
We thank the reviewer for their positive evaluation.
Weakness 1 and question 1: goal of density estimation vs. sampling. This point has been brought up by reviewers Snpi and V4k1, as well as the Area Chair. We acknowledge that there is some ambiguity on what the final goal of energy-based modelling is. We will clarify: our main goal is to learn the probability density from a complex, high-dimensional dataset of samples. One way to parameterize a probability density using a neural network is as an energy-based model. Estimating such a model is hard and has decades of literature behind it. This is where we position our contribution.
Sampling is one downstream application of learning an energy-based model: in this work, we consider it as secondary. This is consistent with seminal papers for learning energy-based models, such as the original papers on Noise-Contrastive Estimation and on Score Matching, which did not actually consider sampling. Nevertheless, after learning our energy-based models, we do use sampling as a sanity check, not as the primary goal, for the model being correctly learned. To clarify the sampling procedure for image experiments, we obtain the scores by directly taking gradients of the energy network. From the scores, we obtain the velocity of a flow, as explained in Appendix C.4. We can then numerically integrate the flow using some ODE solvers. Samples on MNIST and MNIST mixture were drawn using steps Euler integrator along the velocity field. We will clarify this in the main text.
On datasets such as MNIST (Figure 4) and MNIST mixture (Figures 6-7), we visualize samples from the energy-based models we trained. On molecule datasets, our results again evaluate the quality of samples from the energy-based models, obtained through either diffusion sampling or Langevin sampling. The reviewer asked about the ImageNet-64 dataset. We did verify that one can obtain reasonable samples from the model trained on ImageNet-64, unfortunately we are unable to visualize them due to guidelines from NeurIPS handbook. We performed a new experiment to benchmark the running times of such sampling on ImageNet-64: using a single NVIDIA GH200, drawing samples in a single batch costs less than minutes with steps Euler integrator. We further note that in order to obtain good samples for datasets like ImageNet-64, one typically needs to use a class conditional network [1][2][3], while following [4], we train an unconditional network. Our goal in this experiment is to perform density estimation, instead of competing with the strong baselines for sample quality.
Weakness 2: minor typos. Many thanks for your careful reading. We will correct these typos.
Question 2: stNCE-s outperform stNCE-oracle. We agree that this observation might seem counter-intuitive. One possible explanation is that, stNCE-s adjusts the denoising kernel as training progresses, making the noise dependent on the current model itself, which may help optimization. Nevertheless, we do not have enough evidence to provide a strong explanation. We further note that this empirical observation motivates practical applications, as oracle access to the ground truth scores is a strong and generally unrealistic scenario in practice, while access to the model's own scores is highly relevant and realistic.
[1] Diffusion Models Beat GANs on Image Synthesis, Dhariwal and Nichol, NeurIPS 2021
[2] Elucidating the Design Space of Diffusion-Based Generative Models, Karras et al., NeurIPS 2022
[3] Flow matching guide and code, Lipman et al., 2024
[4] Learning normalized image densities via dual score matching, Guth et al., NeurIPS 2025
Response to Rebuttal
I thank the authors for their rebuttal. It helped clarify my concerns.
Regarding sampling, I believe the introduction should more clearly emphasize the work’s focus on likelihood estimation over sampling. I think that a method which improves likelihood estimation (at the potential expense of sample quality) is still an important contribution to the field and that the trade-off should be communicated more precisely (for instance with visualized samples, and/or FID numbers compared to pure DSM training).
I also agree with reviewer Snpi that the adaptive-kernel variant used empirically should be distinguished from the assumption of a fixed kernel in the theory.
Overall, I think the work is useful and am maintaining my current positive score.
We thank the reviewer for their reply and for maintaining their positive score. We will update the manuscript to emphasize the focus on likelihood estimation over sampling.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The present paper proposes a unifying reading of the literature of energy based modeling by contrastive estimation. In particular the paper focuses on recent efforts that seek to regress the density of dataset all throughout a noising process, that a time dependent density, where time encodes the corruption level of the noising process.
Based on this reading, the paper proposes an explanation of some failures of the previously proposed contrastive algorithms which compare either only different locations at fixed time or only different times at fixed locations. To ensure that the estimations is attempted along high-density locations along the noising path in spatiotemporal space, the authors advocate for comparison of points different both in location and times, in particular related by the forward noising or backward denoising kernel. The authors show that some previously proposed method of limiting cases of the proposed scheme in the sense of infinitesimal perturbation.
Numerical experiments are provided on Gaussian mixtures, image datasets and molecular datasets, showing that the recently proposed methods relying on spatiotemporal perturbations tend to reach lower negative likelihoods that other generative modeling approaches. Although I did not check it, codes to reproduce the experiments are provided as supplementary material.
Strengths and weaknesses
Strengths:
The paper proposes an interesting unified reading of previous works on constructive learning of EBMs, justifying their success and failures and making clearer the design space in which they operate offering potential opportunities for further improvements.
Weaknesses:
Unfortunately the quality of writing is not satisfactory in the current form of the paper for different reasons.
-
While someone familiar with the literature manages to connect the dots, the authors lack rigor in exposition and use several times notations they do not introduce (see list below).
-
In the same manner as the writing can be lacking in its rigor and clarity for the technical parts, the discussions of the literature are partial in different directions in a way that would mislead a not well informed reader.
2.1) Line 86, the authors introduce SIs as necessarily coupled with an EBM, while this is not necessarily the case. What is much more commonly learned is a velocity field (and optionally a score field) than the marginal distribution. The authors should rephrase to state that this is something one might want to do, but this is not the essence of SIs.
2.2) The description of the background on previously proposed contrastive estimation is quite succinct and maybe stating precisely the training losses could help. In particular, it is not clear upon reading what is a new terminology introduced by the authors and what is already exactly in the literature. Using “we” is not always fortunate in this regard as it is sometimes mean “what is often done” and sometimes “what we, in this work, suggest should be done”.
2.3) The authors also present the literature on energy based models only from the point of view of contrastive estimation and joint modeling of space and time. There is a vast literature on space-only energy based modeling, without any relation to noising-denoising, that precedes, and that typically attempts at maximizing the likelihood. This is an important element of context that should be mentioned even if only to position the paper as not within this literature. For instance, the authors could cite the review [1], as well as recent works using flows in conjonction with EBMs [2,3].
-
Finally the presentation of the experiments is also not precise enough at times.
3.1) Figure (1) is quite illustrative, but at first it is not clear if it should be thought of as a sketch or a proper experiment. It only becomes clear when getting to the numerical experiment section, that this a proper experiment but all the information about the setup in the appendix while the main information should be in the main text.
3.2) On molecules results are not presented in the main text. Even in the appendix, very little information is provided on the setup, the metrics are not detailed and the reader is left to find all of these in reference [48] to be able to form an opinion.
3.3) The main metric of comparison between methods is the negative log likelihood. While for “normalized” “discrete” methods this is straightforward to compute exactly, unless I missed something, the authors do not provide pointers to the technic of estimation for the authors.
Another weakness of the paper is the content of the experiment section. The claim of the paper is that NCE EBM should be trained with spatiotemporal differences. Currenlty different NCE approaches are only extensively compared on the Gaussian mixture datasets, with otherwise only t-CNE compared for MNIST (upon which stNCE-s does seem to improve) and for the molecular dataset where the results are difficult to interpret.
Overall conclusion: For all these reasons, although the paper present an interesting perspective, I cannot recommend acceptance of the paper in its current form.
Minor:
- Notations not introduced: in (4), p_d(x|t) is not introduced, in (8) the x_i are not introduced, in (10) t_i are not introduced , in (14) p_c is not introduced., the def of C1 and C2 (line 182), is \sigma the sigmoid (the notation used in (3) was the fully spelt sigmoid and \sigma is used below as a variance). In propositions 3 and 4, b, g and v are not defined.
- In equation 6, the arguments of the p_n in p_B should be inverted, same for equation 12.
[1] Song, Yang, and Diederik P. Kingma. “How to Train Your Energy-Based Models.” arXiv:2101.03288. Preprint, arXiv, February 17, 2021. http://arxiv.org/abs/2101.03288.
[2] Gao, Ruiqi, Erik Nijkamp, Diederik P. Kingma, Zhen Xu, Andrew M. Dai, and Ying Nian Wu. “Flow Contrastive Estimation of Energy-Based Models.” 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020, 7515–25. https://doi.org/10.1109/CVPR42600.2020.00754.
[3] Grenioux, Louis, Eric Moulines, and Marylou Gabrié. “Balanced Training of Energy-Based Models with Adaptive Flow Sampling.” Paper presented at ICML 2023 Workshop on Structured Probabilistic Inference {&} Generative Modeling. ICML 2023 Workshop on Structured Probabilistic Inference {&} Generative Modeling, July 28, 2023. https://openreview.net/forum?id=AwJ2NqxWlk&referrer=[Author Console](%2Fgroup%3Fid%3DICML.cc%2F2023%2FWorkshop%2FSPIGM%2FAuthors%23your-submissions).
Questions
Limitations
The main limitation is probably the lack of experimental evidence for the main claim of the paper.
Formatting concerns
none
9 comments
Rebuttal
We thank the reviewer for their careful reading.
Weakness 1: lack rigor in exposition and use several times notations they do not introduced. We realize that some notations were not properly introduced in the main text. We apologize: thank you for your careful read and for picking them up. We took note of all of them ( and equations 6 and 12). We will fix the writing issues and ensure that the notations are used consistently and always introduce them when necessary.
Weakness 2: the discussions of the literature are partial. The reviewer mentions that stochastic interpolants can be used to learn velocities of a flow, instead of energy-based models. (#2.1). We agree. We will improve the presentations and clarify that stochastic interpolants have been used for both density ratio / energy estimation and for diffusion / flow matching. We gently remark that, some popular stochastic interpolants (SIs), including the "variance-preserving" one, were introduced and used for estimating energy-based models [1, section 3.1], while subsequent work popularized them in flow models for learning velocities [2, 3]. We will make clear that learning energies and learning velocities are different objectives enabled by SIs, even though they share the same interpolation paths.
The reviewer notes that the description of contrastive objectives for learning energy-based models is succinct (#2.2) and misses likelihood-based objectives (#2.3). We agree that the discussion of objectives for training energy-based models should be broadened and made more precise. The introduction currently organizes contrastive approaches into three categories: temporal, spatial and spatiotemporal. It indeed does not adequately discuss likelihood-based approaches. We gently remark that our focus was on contrastive objectives for learning energy-based models, as these situate our contributions.
We entirely agree with the reviewer's recommendations. We fully agree that stating precisely the training losses is useful. We actually did this in Appendix B., where we wrote out the training losses of all these methods. We wanted to include it in the main text but didn't because of lack of space. We will include it in a camera-ready version to improve clarity. We agree with the reviewer that the usage of "we" can be ambiguous, and we will remove this wording and make unambiguous what are our contributions, our viewpoints, and what are contributions by others. We will include a discussion on likelihood-based objectives and use the references recommended by the reviewer (Song et al., Gao et al., Grenioux et al.). Note that some likelihood-based objectives, such as Contrastive Divergence, can be reformulated as contrastive objectives [4]. A camera-ready version will afford us the extra space to discuss this.
Weakness 3: the presentation of the experiments is also not precise enough at times. We agree that some of the experiment details (setup, metrics) were a bit short in the main text. Although addtional information is provided in the appendix, the main text should contain necessary details. We will move the essential parts of the description of the experiment from the Appendix to the main text. We will in particular make sure that the description of the molecular experiments is self-contained.
Regarding Figure 1, we are encouraged that the reviewer finds it to be quite illustrative. Figure 1 illustrates the two main challenges (support mismatch and multi-modality) for contrastive objectives in 1D. We performed a new analysis, as was also suggested by reviewer Snpi and the area chair, to illustrate these two main challenges also in higher-dimensions. Together, Figure 1 and this new analysis, will make the conclusions stronger. Please find the results at the end of our answer for the limitation that you mentioned.
Regarding the normalized log-likelihood (NLL) as in ImageNet-64 experiment, following [5], we perform normalization based on the learned energy corresponding to noise and report the log-likelihood formula computed as if the learnt energy-based model is perfectly normalized (which it is in the population limit, but may not be in practice). We will clarify this in the main text. We were careful to follow the evaluation procedures from previous literature, to be rigorous. Briefly, for spatiotemporal methods like stNCE, there is a global normalization constant across and , and can be estimated using energy evaluations at the time corresponding to noise. This procedure is further simplifed given our parameterization of the energy network as described in Appendix C.3, as it is available in closed-form. We will state the precise normalization formula in the paper.
Regarding the choice of method across the different experiments, the reviewer notes that an extensive comparison of contrastive objectives (temporal, spatial, and spatiotemporal) is only presented for the MNIST mixture dataset (Section 6.2). This choice is intentional. The MNIST mixture dataset is unique in that it is both challenging (a high-dimensional mixture of realistic images) and synthetic (the ground-truth data distribution is known). It provides an ideal testbed for systematically comparing the different objectives. Our results on this dataset show that the temporal and spatial objectives fail in this setting, whereas spatiotemporal objectives succeed. We additionally compare tNCE with variants of stNCE on MNIST, where we observe that stNCE still yields improvements; tCNCE is not applicable here as it does not learn normalized energies. We therefore believe that these results sufficiently establish the superiority of the spatiotemporal formulation. The remaining experiments (e.g., ImageNet64 and molecule) are not intended to revisit this comparison. Instead, their purpose is to benchmark our best-performing method, a version of our spatiotemporal objective, against existing approaches in the literature.
The main limitation is probably the lack of experimental evidence for the main claim of the paper. This was also noted by reviewer Snpi and the AC. We now present a new, detailed analysis of the behaviors of temporal, spatial and spatiotemporal methods on MNIST mixture using the trained models. We construct interpolations as described in Figure 2 and Section 3 of the paper and compute the errors of the local ratios along the interpolations. As expected, tNCE and tCNCE traverse notably higher proportions of low density regions, and have notably higher errors in low density regions compared to high density ones. Spatiotemporal methods instead avoid the pathology, encountering few low density regions. This provides a fine-grained, possible explanation concerning why the spatial and temporal methods fail on the MNIST-mixture dataset in Table 1: their final performance is likely dominated by the estimation errors in low density regions. For experimental details please refer to the response provided to reviewer Snpi.
| method | high_density_rmse | low_density_rmse | low_density_rate | NormMSE |
|---|---|---|---|---|
| Temporal (tNCE) | 0.41 | 1.00 | 29.69% | 10061.53 |
| Spatial (tCNCE) | 5.79 | 27.54 | 57.47% | 8245.82 |
| Spatiotemporal (stNCE-m) | 0.44 | 0.51 | 1.19% | 2272.55 |
| Spatiotemporal (stNCE-w) | 0.43 | 0.53 | 1.19% | 1310.11 |
| Spatiotemporal (stNCE-o) | 0.20 | 0.19 | 1.19% | 136.89 |
| Spatiotemporal (stNCE-s) | 0.18 | 0.14 | 1.19% | 75.34 |
[1] Telescoping Density-Ratio Estimation. Rhodes et al. NeurIPS 2020.
[2] Flow Matching for Generative Modeling. Lipman et al. Arxiv 2022.
[3] Stochastic Interpolants: A Unifying Framework for Flows and Diffusions. Albergo et al. Arxiv 2023, JMLR 2025.
[4] Contrastive Divergence Learning is a Time Reversal Adversarial Game, Yair and Michaeli, ICLR 2021
[5] Learning normalized image densities via dual score matching, Guth et al., NeurIPS 2025
I thank the authors for their thorough response.
-
Weakness of the experimental demonstration: I thanks the authors for the additional experiments they provided. This helps to confirm that the good performances on the MNIST mixture are brought upon by the claimed mechanism. I further note that the authors did not intend to demonstrate the advantage of spatio-temporal contrastive methods over spatial only or time only contrastive methods on realistic datasets. Is there a reason why it is not doable and can only be done in a mixture of Gaussian setting?
-
Weaknesses in the form (notations, discussion of the literature and presentation of the experiments): I note that the authors acknowledge almost all my concerns about the current form of the paper and claim they would improve in a camera ready version. Given the extent of my concerns, the impossibility to revise the manuscript before final decisions are made and the fruitful discussion this reviewing process is bringing, I am still not in favor of accepting the paper at this conference. Upon implementing the discussed improvements and resubmitting to a later venue, the paper is likely to be accepted and in a form that will be clear and therefore truly useful for the community.
Response part 1 of 2
We thank the reviewer for engaging in discussion, and we are happy to see the reviewer acknowledging our new experiment.
Experimental demonstration. As discussed in our rebuttal, we explicitly compared variants of stNCE (spatiotemporal) against tNCE (temporal) on MNIST, a dataset more realistic than MNIST mixture. Our goal on MNIST is to learn a normalized density using the neural network. Upon optimality, neural networks trained using spatial methods like tCNCE identify the energy up to an unknown normalization constant, as such they are not directly comparable to models trained using tNCE and stNCE, because models trained using temporal methods and spatiotemporal methods can provide such estimates. Furthermore, based on the previous experiment and previous work, one can expect tCNCE to also suffer from multimodality for many real world datasets and learn inferior energy-based models. We focused on MNIST mixture for analysis, as it is challenging, relatively realistic and provides the target quantities in closed-form. Tractability is highly desirable, because when we do not have access to the ground truth density, which is generally the case for real datasets, the errors of the individual ratios, as were reported in the result table in the rebuttal, are generally intractable.
Notations, discussion of the literature and presentation of the experiments. We thank the reviewer for comments on the writing, and we sincerely believe that they are constructive and help improve the paper. In the submitted draft, as the reviewer noted and appreciated, we focused on providing a unified view of contrastive learning algorithms, clarifying how existing algorithms fall under the framework, and providing insights into the design of such algorithms. In doing so, some definitions and implementation details were presented too briefly. While several of these details are already presented in the Appendix, we entirely agree that the main ones should be explained already in the main text.
We respectfully believe that the issues raised by the reviewer can be addressed through clarifications and presentation revisions, as they do not require changes to the proposed methods, main theoretical and experimental results. We regret not being able to provide the revision of the paper via OpenReview: unfortunately, this is not in our control. We therefore clarify the changes we would make to the paper by providing drafts of new texts or details descriptions of the intended improvements, and will incorporate them in the camera-ready version.
Notations they do not introduce.
- is not introduced in (4): "We use to denote the time varying density induced by the stochastic interpolant given the data distribution."
- are not introduced in (8): We will add "where one interpolates between and using a straight line, and discretizes that line into for "
- are not introduced in (10): We will add "discretize the temporal domain of into a grid in the form of with "
- is not introduced in (14): It was a typo, and we will replace with .
- the def of C1 and C2 not introduced on Line 182: The definitions of and are given below Line 182. We will make it explicit by adding "where and are given by".
- being the sigmoid: We will unify the notation, and replace with sigmoid when applicable.
- , and are not defined in proposition 3 and 4: These were mentioned as the parameters of the SDE / ODE. We will make it explicit by noting that and are SDE parameters, and is the velocity.
- Equation and equation : We will fix the typo, and make them contain and respectively.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the AC for their meta review. We are happy to see that the AC finds the unifying view the main strength.
Consistency guarantees need clear scope. This was also weakness 1 and question 2 of reviewer Snpi. We entirely agree with this point, and will distinguish between
Experiments should connect more tightly to the proposed estimator. This was also noted by reviewer Sd3N and reviewer Snpi. In order to tighten the connection, we now present a new compact diagnostic on an existing setup, MNIST mixture, as suggested by the AC and reviewer Snpi. We use checkpoints of models trained using different methods on MNIST mixture, and analyze the models' error behaviors along the different interpolation schemes as described in Figure 2 and Section 3 of the paper. As shown in the result table below, temporal and spatial methods encounter low density regions more often in their interpolation schemes, and have notably higher errors in low density region as opposed to high density ones. This provides a fine-grained explanation as for why the spatial and temporal methods fail on the MNIST mixture dataset in Table 1: their final performance is likely dominated by the estimation errors in low density regions. For further experimental details, please refer to the response to reviewer Snpi.
DSM component should be separated from stNCE. This was also noted by reviewer Snpi. DSM falls under the general framework of stNCE, and arguably its combination with stNCE-s also falls under the framework. In the result tables, we already explicitly indicated this by adding +DSM, but agree that this is a bit short and will add further explanations in the main text. We explored both stNCE-s and stNCE-s+DSM on MNIST, and observed that adding DSM loss enabled stNCE-s, already the best contrastive algorithm, to converge notably faster and to be competitive with the baselines, and therefore focus on the DSM variant for the latter experiments. Intuitively, DSM loss also helps sampling, as arguably the most natural samplers, the ones from diffusion model literature, are based on scores.
State the Chignolin accuracy/runtime tradeoff against FPE accurately.This was also noted by reviewer Snpi. We will modify the description of Chignolin results to reflect such tradeoff, highlighting that we achieve "comparable accuracy at roughly half the training cost".
Sampling claim also needs scope. This was also noted by reviewer V4k1 and reviewer Snpi. We acknowledge that there is some ambiguity concerning the motivation for learning the EBMs. We clarify that our main goal is to use the EBM to model the probability density given empirical samples from a potentially complex and high dimensional data distribution, hence the evaluations often focus on likelihood evaluations. We generally treat sampling as a sanity check after training the models, as opposed to being the main goal. For image experiments, as described in Appendix C.3 and C.4, we parameterize the energy, and obtain an estimate of the score, which in turn leads to an estimate of the velocity. We clarify that DSM loss trains the score estimates induced by the parameterized energy, as such we only have a single estimate of the score even when combining stNCE-s with DSM. We can then use standard samplers from flow matching literature.
Samples for MNIST and MNIST mixture were drawn using 1000 steps of Euler sampler along the velocity field. For molecule experiments, following [1], we draw samples either using a sampler based on diffusion model (IID) or a sampler based on molecular dynamics (Langevin). The former involve the scores at all intermediate times while the latter only involves the scores at the time corresponding to data. We performed a new experiment to benchmark the running times of sampling. Using the pre-trained model on ImageNet-64, we can draw 512 samples in a single batch with 200 steps of Euler integrator in less than a minute using an NVIDIA GH200. We verified that the samples are reasonable, but unfortunately cannot visualize them here as per guidelines from NeurIPS handbook.
[1] Consistent sampling and simulation: Molecular dynamics with energy-based diffusion models, NeurIPS 2025