acceptodds
Published as a conference paper at NeurIPS 2026

Generalizable Physics Simulation through Compositional Energy Minimization

Alexandru Oarga, Yilun Du

Abstract

Learning the dynamics of interacting physical systems is a central challenge in machine learning for the physical sciences. Prevailing architectures such as Graph Neural Networks (GNNs) and feedforward models often fail to explicitly capture the compositional nature of physical laws. Instead of modeling the forces that govern a system, these networks learn to approximate aggregate state transitions. As a result, they lack a causal understanding of the underlying physics interactions, leading to poor generalization in out-of-distribution systems with varying numbers of entities or novel configurations. In this work, we introduce Compositional Potential Minimization (CPM), a framework that casts simulation as an energy minimization procedure over a composition of learned force potentials. Each force component is represented as a separate, interpretable energy landscape, and interaction dynamics emerge from their addition. Inference in CPM is framed as a global energy minimization problem over an arbitrary number of composed functions. Because CPM learns to disentangle separate forces during training, it enables seamless generalization during test time to larger-scale systems and unseen configurations through straightforward compositions of the learned energy components. Our experiments show that CPM significantly outperforms previous state-of-the-art GNN-based solutions in 2D, 3D, and particle-based simulations.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_QJhoOpenReview ↗
Rating
5
Clarity
2
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This work addresses the problem of learning dynamics of physical systems using automated machine learning tools, an important research topic in the context of physics simulations. In particular, the authors propose a novel method, called Compositional Potential Minimization (CPM) which parametrizes physics interactions as a sum of learned pairwise energy functions, where inference amounts to minimizing this composed energy landscape via iterative gradient descent. The key advantage of this method, e.g. with respect to existing architectures (e.g. Graph Neural Networks, GNNs) is the "compositional generalization": because the same pairwise potential is reused for any number of particles, the system can be used to simulate dynamics of more entities than those seen during training (zero-shot generalization). The authors also propose augmenting standard MCMC sampling with inner gradient descent steps to handle the more complex landscapes that arise with many particles. Experimental validation is done in three cases: i) 2D billiard-style simulations, ii) 3D rigid-body stacking/falling, and iii) fluid-rigid particle interaction (BoxBath). In all cases, the proposed method consistently outperforming GNN baselines both in-distribution and — more importantly — out-of-distribution (that is, when the number of particles used is different from the number used for the training).

Strengths and weaknesses

The framing of physics simulation as energy minimization is principled: additive composition of potentials is a natural match for how physical forces actually combine through superposition principle. The experimental results are positive, and the zero-shot particle-count generalization is convincing at least in the settings discussed by the authors. It is particularly interesting that the model proposed is much more stable than other baselines in the fluid+box setting, which is a strong result.

That said, there are some conceptual issues that in my opinion reduce confidence in the theoretical story. Most importantly, the paper frames CPM as learning energy functions, but the training objective (Eq. 4) is essentially a denoising diffusion/score-matching loss; furthermore, in the footnote at page 4 it is written that the energy parametrization is given in terms of a neural network: this seems not a transparent energy landscape in an interpretable physics sense. The claim about learning "interpretable energy landscapes" therefore feels a bit overstated. Maybe a more detailed explanation about what energy the model is actually learning could strengthen the overall presentation of the work.

Another weakness is related to computational cost for the training (as briefly stated by the authors in the Supporting information) which can be a limitation for applications on large physical systems.

Overall, I like the idea behind this work, but I feel that many details are missing or some conceptual parts are not very well explained in the text. Additional details are given in the "Questions" section.

Questions
  1. The paper defines the energy Eθ(xt,t)=∣∣sθ(xt,t)∣∣2E_{\theta} (x_t, t) = ||s_\theta (x_t, t)||^2 in a footnote, so that CPM is somewhat equivalent to a score-based diffusion where the energy gradient is ∣∣sθ∣∣|| s_\theta || itself. Is that correct? How then are the potential maps in Figure 5 obtained and what do they represent? Is there a sense in which these are genuine energy landscapes, or are they post-hoc visualizations of the score norm?

  2. Another question regards the choice of the energy. Is there a simple experimental setup where e.g. one could use a "real" functional form of an interacting potential and check if the model is able to learn it? I am thinking for instance at a set of charged particles moving subject to pairwise Coulomb potentials. This could be a ground truth experiment where you could actually compute back the potential strength (e.g. assuming that the energy EθE_{\theta} has the same parametrization).

  3. In the experimental setup of the cube interacting with the fluid (Section 4.3), is it assumed in the training that there are two species of entities i (i.e. one belonging to the cube and another one e.g. to the particles of the fluid?) Or does the algorithm automatically learn that? I ask this because when you generalize by adding more (fluid) particles in the system the algorithm should "know" that the new particles are of type "fluid", right?

  4. Connected to the above question, do you learn all the interactions between the particles in the cube or it is manually imposed to behave as a rigid body?

  5. One of the concerns (see Limitations) address scalability to large physical systems. Can the authors provide a concrete runtime CPM and the other baselines? The paper frames CPM as a practical simulator, but without this it is hard to assess whether the accuracy gains come at prohibitive cost.

  6. The out-of-distribution evaluation only considers systems with more particles of the same type. Does CPM generalize to genuinely novel configurations — e.g., different masses, different interaction radii, or new physical regimes?

  7. Connected to the Question 6, the compositional generalization requires the interaction potential to be independent on the site. Is it correct then to assume that systems with e.g. anisotropic interactions cannot be accurately described by the algorithmic method presented in this form? In this form I mean by assuming that θ\theta does not depend on ii

  8. A last question on the implementation. The authors propose this method in analogy with learning energy potential between particles. But this is in turn connected to the fact that the dynamics is governed by conservative forces. Is it correct to say that e.g. dissipative forces cannot be "learnt" by this method? A practical question related to this point relates to e.g. the experimental setup of 4.1 and whether it can be generalized to e.g. anelastic collisions between balls.

  9. At page 7, Section 4.2: I don't understand what it means to randomly sample the gravitational acceleration gg in a finite interval. Does the model learn from configurations drawn with different gg?

  10. I have a question about the notation of the energy function EθE_\theta. In physics, an energetic term that depends on 3 objects like at the r.h.s. of Eq. 1 seems to be encoding for a third-order interactions. But the authors use it to model a pairwise interaction between say ii and jj that predicts the next state of one of the two (say ii). Is this correct? Maybe an additional clarification on this would be helpful. For instance, I don't understand the change of notation between e.g. Eq. 1, Algorithm 1, Figure 2 and the footnote at page 4, there are several expressions with different parametrization. In some cases we have Eθ(y,xi,xj)E_\theta (y, x_i, x_j) , in others Eθ(xi,xj)E_\theta (x_i, x_j), or Eθ(xt,t)E_\theta (x_t,t). I ask the authors to please clarify this.

Minor points

  • In Eq. 1, maybe a superscript (i) is missing at the lhs to emphasize that this is the total energy acting on i.
  • Is Zi\mathcal{Z}_i static or it changes over time?
  • Algorithm 1 has no caption, it should be cited in the text
  • Figures 1 and 2 are not cited in the text
  • In algorithm 1 it could be clearer to specify w.r.t. to what object the gradient ∇Eθ\nabla E_\theta is taken in the two cases
  • Colorbar is missing in Figure 5
  • Line 183, it should be "Figure 4" instead of "Table 4"
Limitations

The authors identify the main limitations reasonably well: quadratic inference cost with particle count, inability to capture higher-order interactions, and the absence of control task extensions. These are honestly stated. One limitation I would encourage the authors to add is the parametrization issue discussed above — specifically, that the "learned energy" is a squared score norm rather than a physically grounded potential, and what this implies for the interpretability claims. The current limitations section is adequate but would be strengthened by this addition.

Another limitation concerns the training time which seems to be very high (as stated in the Supporting Information). Could such training time be reduced e.g. using a shallower architecture for the energy or another parametrization?

Another limitation that could be there relates to the issue about conservative forces that I was raising in the previous section.

Paper formatting concerns

I don't see any violation of formatting / anonymity

Final justification

I thank again the reviewers for having carefully answered to the points raised in my report. I understood that the method presented by the authors is more general than what I previously thought (see e.g. the possible generalization to anisotropic potentials and dissipative scenarios). I also think that despite the slight overstatement about interpretability, one could at least use the learnt score function to visualize inferred potential maps, which can be of use in applications. The novelty issue still stands, but from the point of view of the answers to my report I believe there is sufficient conditions to increase my score. However, I will keep my confidence, for the aforementioned reasons about familiarity with the sub-field of interest.

1 comment

We thank the reviewer for finding our approach principled, and our results positive and strong. We thank the reviewer for their time in reviewing and raising multiple questions that will help us improve the overall quality of the work. We address the questions raised by the reviewer below:

—

Score and energy landscapes plots

We are sorry that there’s a misunderstanding. In our paper, we follow the same setting as previous works and define energy to be Eθ(x,t)=∣f(x,t)∣2E_{\theta}(x, t) = |f(x, t)|^2, where f(x,t)f(x, t) is a neural network. That is, the energy scalar value is obtained through the norm operation using the output of the neural network. The network is trained using a diffusion objective so that ∇xEθ(x,t)=∇x∣f(x,t)∣2\nabla_x E_{\theta}(x, t) = \nabla_x |f(x, t)|^2 matches the noise ϵ\epsilon. In this sense, Eθ(x,t)E_{\theta}(x, t) can be interpreted as the score function ∇xlog⁡p(x)\nabla_x \log p(x) of an unnormalized distribution. The energy landscapes shown in Figure 5 are the energy landscapes learned at timestep t=Tt=T, namely Eθ(x,T)E_{\theta}(x, T). To plot this image, we sample a grid of all possible positions xjx_j that a neighbor particle jj of particle ii can have, and then, for each position xjx_j, we compute and plot Eθ(xi,xj,T)E_{\theta}(x_i, x_j, T). That is, for each possible value of xjx_j in the grid, we compute the output of the neural network f(xi,xj,T)f(x_i, x_j, T), which returns a vector, and then we compute the norm to obtain a scalar, which represents the energy. We will include this clarification in the figure description. Moreover, for more clarity, we will also include a colormap in this figure. Finally, we want to clarify that the term energy used through the paper does not necessarily refer to the physics intuition, but instead it refers to the concept of Energy Based Models (EBM) (e.g. see [1]).

[1] Yann LeCun, Sumit Chopra, Raia Hadsell, M Ranzato, Fujie Huang, et al. A tutorial on 347 energy-based learning. Predicting structured data, 1(0), 2006. 3

Recovering a real potential

Thank you for suggesting the Coulomb experiment. This is indeed an interesting future direction to study. Technically speaking, if the ground truth energy function is knowns, then it is feasible to consider that the model should be able to learn it. This ground truth energy could be used directly to supervise the training of the neural network.

Particle type attribute clarification

Thank you for pointing out the ambiguity in the fluid/cube particles experiment. We want to clarify that, in this experiment, the model receives the type of particle (cube or fluid) as an input. We do this to follow the same approach as in previous baselines. We will include this technical clarification in the paper.

Rigid body operation

We agree that the rigid body modelling detail needs clarification. We follow the same setting as DPI here; that is, during training, we learn all the interactions of the particles within the cube. However, during inference, we treat the cube as a rigid body and transform the predicted velocities into rigid body transformations using the Kabsch algorithm.

Anisotropic interactions

As the reviewer rightly points out, our method is, by default, dependent on position and cannot accommodate anisotropic interactions without modification. However, we would like to point out that the framework can be extended to also model anisotropic interactions.

To demonstrate this, we have extended the 2D experiment presented in the paper. In addition to the elastic interactions between the balls, we define a bipolar magnetic field for each ball and an angular velocity for each particle. That is, the movement of the balls is governed by elastic interactions that depend on position, while the angular velocity depends exclusively on the orientation of the balls, introducing an anisotropic interaction.

To model this behavior, we extend our definition of energy to also include the orientation ϕi,ϕj\phi_i, \phi_j and angular velocity ωi,ωj\omega_i, \omega_j of particles ii and jj. Specifically, the energy of particle ii is defined as:

Eθ(xi,xj,ϕi,ϕj,ωi,ωj,t)E_{\theta}(x_i, x_j, \phi_i, \phi_j, \omega_i, \omega_j, t)

In the tables below, we report the MSE in both the in-distribution and OOD settings, respectively. Similar to the other settings, without extensive hyperparameter tuning, we obtain results that are competitive with baseline.

ModelMSE PositionMSE VelocityMSE Angular VelocityMSE Orientation
GNS$ 0.6124 \pm 0.5380$$ 1.4436 \pm 0.9623$$ 2.3182 \pm 2.6870$3.0987±1.88163.0987 \pm 1.8816
CPM (Ours)$ 0.2757 \pm 0.4598$$ 1.0328 \pm 1.0845$$ 1.9143 \pm 2.2490$2.3568±1.53942.3568 \pm 1.5394
ModelMSE PositionMSE VelocityMSE Angular VelocityMSE Orientation
GNS$ 1.0456 \pm 0.5644$$ 2.3311 \pm 1.0092$$ 7.8641 \pm 2.5361$5.3005±1.16845.3005 \pm 1.1684
CPM (Ours)$ 0.5258 \pm 0.3785$$ 1.9790 \pm 1.1114$$ 6.3207 \pm 2.4042$4.3532±1.24444.3532 \pm 1.2444

Anaelastic interactions

We agree with the reviewer that our approach benefits in scenarios where forces are conservative. However, this does not mean that the framework cannot be extended to learn anelastic interactions.

As an example, consider an environment as our 2D experiment with a viscosity term that forces particles moving at different velocities to match velocities. To incorporate this interaction into our framework, we can extend the energy definition of particle ii to also consider the velocity of the particles, not only the position, this is,

Eθ(y,xi,xj,vi,vj)E_{\theta}(y, x_i, x_j,v_i, v_j)

Where jj is a neighbor particle of ii. By doing so, the model is able to learn a potential that is dependent on how close particles are and whether their velocities match, which is enough to model viscosity in this case.

We now provide experimental results where we show that CPM framework can be extended to model both anelastic interactions and high-order interactions, using the 2D experiment from our work. In addition to the elastic particle interactions, we have introduced a repulsive force in the simulation based on the density of the particles in the neighborhood of a given particle. In other words, we are also modeling pressure, which cannot be represented using pairwise interactions alone. Additionally, we include a viscosity term discussed previously. To incorporate this higher-order interaction into the CPM framework, we use the velocity-dependant energy term introduced above and leverage the compositional nature of our approach by introducing an additional energy term,

Eθ(y,xi,xj,ϕi,ϕj)E_{\theta}(y, x_i, x_j, \phi_i, \phi_j)

which models the potential induced by the density-dependent repulsive forces. Here, ϕi\phi_i denotes the local density around particle ii, which we define as

ϕi=∑j∈ZiF(∣xi−xj∣)\phi_i = \sum_{j \in Z_i} F(|x_i - x_j|)

where ZiZ_i is the neighborhood of particle ii and FF is an MLP that learns a density kernel. Below, we report the average MSE of our approach compared with GNS baseline on in-distribution (4 balls) and out-of-distribution setting (8-12 balls). Similar to what we observed in the paper, CPM outperforms the baselines in-distribution and is able to demonstrate better generalization to OOD settings. We will include these additional results in the paper.

ModelMSE PositionMSE Velocity
GNS1.2700±1.31941.2700 \pm 1.31942.6994±2.08872.6994 \pm 2.0887
CPM (Ours)0.7465±1.09790.7465 \pm 1.09792.3902±3.45002.3902 \pm 3.4500
ModelMSE PositionMSE Velocity
GNS2.4535±1.14482.4535 \pm 1.14487.0928±3.75417.0928 \pm 3.7541
CPM (Ours)1.1905±0.73411.1905 \pm 0.73416.0060±3.69466.0060 \pm 3.6946

Gravitational acceleration sample

We agree that the gravitational acceleration sample needs clarification. Here, we follow the same approach as in the original RigidFall paper [1]. In this setting, the falling cubes can fall under different magnitudes of gravity, which affects the acceleration at which the blocks fall. We follow the same approach and randomly sample the gravity acceleration that is applied to the simulation.

[1] Yunzhu Li, Toru Lin, Kexin Yi, Daniel Bear, Daniel Yamins, Jiajun Wu, Joshua Tenenbaum, and Antonio Torralba. Visual grounding of learned physical models. In International Conference on Machine Learning, pages 5927–5936. PMLR, 2020. 6, 10, 19

Energy notation clarification

We are sorry for the confusion regarding energy notation. We will clarify this in the paper. Here, Eθ(y,xi,xj)E_{\theta}(y, x_i, x_j) represents the energy of a given sample yy conditioned on the positions of particles ii and jj, namely xix_i and xjx_j, respectively. For simplicity, we write this term as Eθ(xi,xj)E_{\theta}(x_i, x_j). Regarding Eθ(xt,t)E_{\theta}(x_t, t), this is the notation we use to represent the energy of a generated sample at timestep tt, namely sample xtx_t. We understand that the different uses of xx might be confusing and will rewrite this using different letters to avoid any misunderstanding. Additionally, we will clarify when we use abbreviated notation for the energy function.

Minor points

Thank you for pointing out these minor issues. We will fix them in the paper. We would like to clarify that ZiZ_i does change over time. This occurs in both the 2D and particle experiments, since each particle has a predefined interaction radius, and only particles within that radius are considered neighbors. As the particles move throughout the simulation, the set of neighboring particles ZiZ_i is updated accordingly.

Reviewer_fuJXOpenReview ↗
Rating
3
Clarity
3
Confidence
4
Originality
3
Quality
2
Significance
2
Read review
Summary

This paper proposes Compositional Potential Minimization (CPM), a framework for learning neural physics simulators through learning energy-like potentials. The key idea is to decompose the potential between objects into pairwise interactions that are additively composed. CPM learns these pairwise energies using a diffusion-style scheduled denoising scheme. Moreover, for each diffusion step, the model performs gradient descent to minimise the energy potential. The key claim is that, because the same learned potential can be reused for each interaction, the model can generalize zero-shot to systems with more objects or particles than those seen during training. The paper evaluates CPM on 2D ball simulations, 3D rigid-body simulations, and BoxBath particle simulations, reporting improved in-distribution performance and stronger out-of-distribution generalization than several GNN-based baselines.

Strengths and weaknesses

Strengths

  • The overall idea of incorporating interaction structures directly into the architecture via energy decomposition is clean and intuitive. This directly targets the challenge of extrapolating learned simulators to larger systems.
  • Empirical results show that the inductive bias of pairwise interaction improves simulation accuracy. The result on improved data efficiency, in particular, is promising, showing that the imposed structure is effective for the problem of particle simulations.

Weaknesses

  • [Expressivity tradeoff] Conceptually, a key limitation of the approach is that the additive pairwise energy decomposition explicitly excludes the possibility of higher-order interactions. This is not necessarily a dealbreaker and is acknowledged by the authors in the conclusion. But this does make the empirical results less surprising than it seems at first glance: this is analogous to the classical bias-variance tradeoff where gains in generalisation are due to restricting the model class. Through this lens, the claim that CPM learns “a causal understanding of the underlying physics interactions” seems like a slight overreach.
  • [Optimisation scheme] In terms of the methodology, the paper does not fully justify the use of a denoising scheme together with an inner gradient descent loop. The paper motivates CPM as energy minimisation, but then introduces a sequence of denoising energy landscapes rather than directly optimise over the learned energy. As far as I can tell, this design decision is not fully motivated.
  • [Lack of Statistical Evidence] The quantitative results report mean ± error values, but the paper does not clearly specify whether these are standard deviations or confidence intervals. The reported variability is large relative to the differences between methods, especially in the 2D experiment. While the mean results consistently favor CPM, the absence of statistical tests or confidence intervals makes it difficult to assess whether the improvements are statistically robust. In fact, the qualitative rollout in Figure 8 appears to show that CPM produces more artifacts (floating particles) for the OOD case.
  • [Generalisation vs In-distribution Performance] The paper claims that CPM’s main strength is its ability to generalise to a larger number of objects. However, if one looks at the 2D result, for example, the relative increase in MSE from in-distribution to OOD is roughly 2 to 3 times for all of the models. While CPM has the best performance in absolute terms, its relative performance degradation when more objects are introduced is actually not better than the baselines. This suggests that the reported OOD gains might be entangled with in-distribution gains, which is possibly due to the iterative inference procedure rather than stronger generalisation.
Questions

Below I list several questions that the authors can address. I have structured the questions to cover all the weaknesses mentioned above, so that the authors can feel free to address the questions directly without separately responding to the weaknesses. The questions are roughly ranked in terms of importance.

  1. Does CPM improve relative OOD robustness, or mainly absolute prediction accuracy? It would be useful to report normalized degradation metrics such as OOD error divided by ID error for each method as the central claim of the paper is about generalisation rather than absolute performance.
  2. Can the authors clarify what the plus-minus range in the result tables refer to? It would strengthen the work if statistical evidence is available.
  3. How much test-time compute does CPM use relative to the GNN baselines? It would be interesting to have a way to compare performance with the baselines in a matched-compute setting to gauge whether the performance gain is due to extra compute, although it is understandable that this might not be possible.
  4. Can the authors offer more discussion on whether CPM can capture higher-order interactions? If not, some discussion on how much this limits the usefulness of the approach would be helpful. For example, one might make the case that most of the interactions we care about in physical simulations are pairwise, but it is worth making this more explicit in the text.
  5. Can the authors explain why the time-scheduled denoising scheme is needed, as opposed to a single energy function that is minimised?

Overall, the paper puts forward an intuitive and promising approach, and the empirical results indicate that the proposed method improves simulation performance. However, there are several open questions about the central claim that the pairwise additive decomposition improves generalisation. Overall, I find the idea promising, but the current empirical evidence and framing are not yet strong enough for a clear accept.

Limitations

yes

Paper formatting concerns

no

Final justification

I maintain my original recommendation. I appreciate the authors' rebuttal work and I do believe the clarification helps improve the framing of the paper. My primary concern is still that the paper is slightly over claiming with the generalisation claims. In a way, the improved performance in distribution is expected due to the huge computational burden required by the proposed method, and it is still not entirely clear that this particular decomposition of dynamics leads to improved generalisation. On top of this, I also agree with the AC and the other reviewers that the novelty here is slightly overstated.

1 comment

We thank the reviewer for finding our approach clear and intuitive. We also thank the reviewer for taking the time to review the paper and raise questions that we consider relevant for the work. We believe that the feedback will help us improve the paper. As suggested by the reviewer, we address the questions raised below:

—

Out-of-distribution performance

Generally, as the reviewer rightly points out, we observe a larger degradation in OOD scenarios in the case of CPM compared to the in-distribution setting. While this apparently contrasts with the generalization claim, we want to remark that, as the number of interacting particles increases, the systems become more chaotic, and it is easier for smaller errors to accumulate. It is therefore expected that with a larger number of interacting particles, all systems will show degradation, even when generalization is modeled by design. Besides this, we agree that further empirical evidence will help improve the clarity of the paper. We will provide more detailed results on the performance in and out of distribution.

Plus-minus sign clarification

We are sorry for the lack of clarity here. The plus-minus range reported throughout the whole paper represents mean and standard deviation. We will explicitly state in the tables and figures that these signs represent this.

Inference time compute and performance

To provide performance metrics compared to the baselines, we measure the average wall-clock time in seconds per simulation step for both the 2D experiment and the particles experiment, while increasing the number of interacting bodies. We will include these additional measurements in the paper, and we report the results in the two tables below.

Regarding the reviewer’s question, we acknowledge that whether the observed performance gains are due to additional computation is a reasonable and important point. We would like to emphasize that, within the CPM framework, we formulate physical simulation as an optimization problem. As a direct consequence of this formulation, minimizing the energy of the generated samples leads to improved sample quality. Therefore, performing more optimization steps naturally results in better performance, as demonstrated in our ablation study on the number of optimization steps. In this sense, CPM is inherently expected to benefit from additional computation, since increased optimization allows for better minimization of the learned energy function.

Num. ballsGNSCPM
40.0143330.730929
60.0146660.776999
80.0138080.768707
100.0143900.786674
120.0135730.775219
140.0137200.786415
Num. particlesGNSCPM
9160.012857s0.88459
15000.0120830.96245
21600.014071.3489

High-order potentials

We acknowledge that, by definition, CPM models pairwise interactions and does not directly extend to higher-order interactions. We also agree with the reviewer that most interactions in physical simulations are mostly pairwise and we will explicitly state this limitation and discussion in the review manuscript.

Besides this, we also want to highlight that the CPM framework itself is not inherently restricted to pairwise interactions and can be naturally extended to capture higher-order effects.

To demonstrate this, we have extended our 2D experiment. In addition to the elastic particle interactions, we have introduced a repulsive force in the simulation based on the density of the particles in the neighborhood of a given particle. In other words, we are also modeling pressure, which cannot be represented using pairwise interactions alone. Additionally, we include a viscosity term that forces particles that are close to move to similar velocities. To incorporate this higher-order interaction into the CPM framework, we retain the learned pairwise interaction terms and leverage the compositional nature of our approach by introducing an additional energy term,

Eθ(y,xi,xj,ϕi,ϕj)E_{\theta}(y, x_i, x_j, \phi_i, \phi_j)

which models the potential induced by the density-dependent repulsive forces. Here, ϕi\phi_i denotes the local density around particle ii, which we define as

ϕi=∑j∈ZiF(∣xi−xj∣)\phi_i = \sum_{j \in Z_i} F(|x_i - x_j|)

where ZiZ_i is the neighborhood of particle ii and FF is an MLP that learns a density kernel. Below, we report the average MSE of our approach compared with GNS baseline on in-distribution (4 balls) and out-of-distribution setting (8-12 balls). Similar to what we observed in the paper, CPM outperforms the baselines in-distribution and is able to demonstrate better generalization to OOD settings. We will include these additional results in the paper.

ModelMSE PositionMSE Velocity
GNS1.2700±1.31941.2700 \pm 1.31942.6994±2.08872.6994 \pm 2.0887
CPM (Ours)0.7465±1.09790.7465 \pm 1.09792.3902±3.45002.3902 \pm 3.4500
ModelMSE PositionMSE Velocity
GNS2.4535±1.14482.4535 \pm 1.14487.0928±3.75417.0928 \pm 3.7541
CPM (Ours)1.1905±0.73411.1905 \pm 0.73416.0060±3.69466.0060 \pm 3.6946

Time-schedule denoising scheme

Thank you for bringing this up. This is a relevant question that should be clarified in the paper. The reason we perform time-schedule denoising instead of optimizing a single energy function is that the approximated schedule provides a smoother approximation of the prediction and is less sensitive to the initialization of the samples. This also enables for a more efficient exploration of the energy landscape and help escape local minima, since this approach is close to simulated annealing. Additionally, training energy-based models is known to be unstable; therefore, using a time-scheduled procedure instead allows for more stable training of EBMs. Previous works such as [1] follow a similar intuition.

[1] Du, Yilun, Jiayuan Mao, and Joshua B. Tenenbaum. "Learning iterative reasoning through energy diffusion." arXiv preprint arXiv:2406.11179.

Reviewer_dUAvOpenReview ↗
Rating
4
Clarity
4
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper proposes Compositional Potential Minimization (CPM), an energy-based framework for physics simulation that models system dynamics as the minimization of a composed energy landscape. Instead of directly predicting state transitions, CPM learns reusable pairwise interaction potentials and composes them to simulate systems with arbitrary numbers of entities. The method is trained using an energy-based diffusion objective and evaluated on 2D, 3D, and particle-based simulation benchmarks. Experimental results demonstrate improved accuracy and substantially better zero-shot generalization to larger systems than existing GNN-based simulators.

Strengths and weaknesses

Strengths

  1. Well-motivated formulation: Models physical interactions through compositional energy functions rather than direct state-transition prediction.

  2. Strong generalization: Demonstrates impressive zero-shot scaling to significantly larger systems than those seen during training.

  3. Strong empirical results: Consistently outperforms NPE, GNS, DPI, EGNN, and SGNN across multiple simulation benchmarks.

Weaknesses

  1. Lack of theory: No theoretical analysis explains why compositional energy minimization should improve generalization.

  2. Inference overhead: Requires iterative optimization and multiple energy evaluations, making computational cost significantly higher than feedforward simulators.

  3. Limited interaction modeling: Current formulation mainly considers additive pairwise interactions and may not readily capture higher-order physical dependencies.

Questions
  1. How does inference runtime scale compared with GNS and SGNN as the number of particles increases?

  2. Can CPM handle genuinely non-additive interactions or higher-order potentials?

  3. How much of the performance gain comes from the compositional formulation versus the diffusion-based energy training procedure?

  4. Have the authors evaluated CPM on systems where the interaction graph changes substantially over time?

Limitations

n/a

Paper formatting concerns

n/a

Final justification

The rebuttal and additional experiments have strengthened my assessment, and I raise my score from 4 to 5.

The composition ablation substantially resolves my main concern about attribution. CPM consistently outperforms a GNS-parameterized diffusion EBM in both ID and OOD settings, while additional optimization steps do not close the gap. This provides meaningful evidence for the benefit of CPM’s compositional inductive bias, although architectural differences prevent a complete isolation of compositionality.

The authors satisfactorily clarified that the interaction graphs change during rollout and provided additional experiments involving density-dependent, anisotropic, and dissipative interactions. These results broaden the empirical scope beyond the original pairwise, isotropic setting.

The runtime analysis resolves the question of computational cost but confirms a substantial inference overhead relative to feedforward simulators. I view this as an important accuracy–compute trade-off rather than a resolved limitation.

A theoretical explanation for CPM’s size generalization remains absent, and the new higher-order experiments demonstrate extensibility rather than a general treatment of arbitrary non-additive interactions.

Overall, the strong empirical performance, convincing OOD size generalization, and responsive additional experiments now outweigh the remaining limitations.

1 comment

We thank the reviewer for finding our work well formulated and for highlighting the strong generalization in empirical results. We also thank the reviewer for taking the time to review the paper. We believe that the questions raised are relevant and will help us improve the paper. We address the concerts raised by the reviewer below:

—

Inference-time overhead

We agree with the reviewer that the proposed method introduces an overhead during inference, resulting in a higher computational cost compared to feedforward approaches. We would like to argue that this is the tradeoff we make in exchange for stronger generalization. Standard feedforward networks perform the same amount of computation regardless of the input data. In our setting, however, when the model is presented with a larger or more complex scenario (e.g., a larger number of interacting particles), our approach constructs a new energy landscape tailored to that specific input, which can be significantly more complex than the landscapes encountered in simpler settings. In other words, constructing a new energy function for each input enables the model to represent more complex scenarios than those seen during training. The drawback is that these newly constructed energy landscapes may also be more difficult to optimize, requiring a larger number of optimization steps. As a result, our approach explicitly assumes a tradeoff: it gains the ability to model more complex and previously unseen scenarios at the cost of additional computation during inference. To provide a comparison of the inference cost of the different methods, we report below the average inference wall-clock time on both the 2D experiment and the particles experiment as the number of interacting bodies increases. We report the average inference wall-clock time in seconds for a simulation timestep. Below, in the tables, we report the inference cost for both the 2D experiment and the particles experiment, respectively. We will include these additional metrics in the paper.

In the 2D experiment, we do not observe any visible increase when increasing the number of interacting balls. We observe an overhead in the case of CPM compared to GNS, which is expected considering that we run multiple optimization steps. In the case of the particles experiment, we observe an increasing inference cost with more particles, which is expected considering that the number of particles doubles.

Num. ballsGNSCPM
40.0143330.730929
60.0146660.776999
80.0138080.768707
100.0143900.786674
120.0135730.775219
140.0137200.786415
Num. particlesGNSCPM
9160.012857s0.88459
15000.0120830.96245
21600.014071.3489

High-order potentials

We acknowledge that, by definition, CPM models pairwise interactions and does not directly extend to higher-order interactions. However, the CPM framework itself is not inherently restricted to pairwise interactions and can be naturally extended to capture higher-order effects.

To demonstrate this, we have extended our 2D experiment. In addition to the elastic particle interactions, we have introduced a repulsive force in the simulation based on the density of the particles in the neighborhood of a given particle. In other words, we are also modeling pressure, which cannot be represented using pairwise interactions alone. Additionally, we include a viscosity term that forces particles that are close to move to similar velocities. To incorporate this higher-order interaction into the CPM framework, we retain the learned pairwise interaction terms and leverage the compositional nature of our approach by introducing an additional energy term,

Eθ(y,xi,xj,ϕi,ϕj)E_{\theta}(y, x_i, x_j, \phi_i, \phi_j)

which models the potential induced by the density-dependent repulsive forces. Here, ϕi\phi_i denotes the local density around particle ii, which we define as

ϕi=∑j∈ZiF(∣xi−xj∣)\phi_i = \sum_{j \in Z_i} F(|x_i - x_j|)

where ZiZ_i is the neighborhood of particle ii and FF is an MLP that learns a density kernel. Below, we report the average MSE of our approach compared with GNS baseline on in-distribution (4 balls) and out-of-distribution setting (8-12 balls). Similar to what we observed in the paper, CPM outperforms the baselines in-distribution and is able to demonstrate better generalization to OOD settings. We will include these additional results in the paper.

ModelMSE PositionMSE Velocity
GNS1.2700±1.31941.2700 \pm 1.31942.6994±2.08872.6994 \pm 2.0887
CPM (Ours)0.7465±1.09790.7465 \pm 1.09792.3902±3.45002.3902 \pm 3.4500
ModelMSE PositionMSE Velocity
GNS2.4535±1.14482.4535 \pm 1.14487.0928±3.75417.0928 \pm 3.7541
CPM (Ours)1.1905±0.73411.1905 \pm 0.73416.0060±3.69466.0060 \pm 3.6946

Composition ablation

We agree that we should clarify the extent to which the performance gains come from the compositional formulation versus the diffusion-EBM training procedure. To address this, we propose an ablation study to the 2D experiment reported in the paper. In this ablation, instead of training a compositional EBM, we train a diffusion-EBM in which Eθ(x,y)E_{\theta}(x,y) is parameterized by a GNS model. We will share the results of this experiment in the following days.

Dynamic interacting graph

We would like to highlight that, in both the 2D and particle experiments, the interaction graphs change over time. This is because each particle has a predefined interaction radius, and only particles within that radius are considered neighbors of the given particle. As a result, the interaction graphs seen by the models during inference can change throughout the simulation rollout.

Comments on the paper

1 comment
Meta-review

The paper proposes to learn the right-hand side of the unknown dynamical system (particles) with a sum of potentials. Comparison to neural network/GNN based method is provided. The reviewers have mixed opinion about the paper, and I would like to see the answers to those comments. In my opinion, the idea is not novel; maybe it has not been considered in the framework of physics simulations, but for sure has been addressed in molecular dynamics simulations with learned machine learning potentials. Many important references from that field are missing, (see https://www.sciencedirect.com/science/article/abs/pii/S0927025617304536 and references to these papers).

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.