- 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
-
The paper defines the energy in a footnote, so that CPM is somewhat equivalent to a score-based diffusion where the energy gradient is 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?
-
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 has the same parametrization).
-
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?
-
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?
-
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.
-
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?
-
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 does not depend on
-
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.
-
At page 7, Section 4.2: I don't understand what it means to randomly sample the gravitational acceleration in a finite interval. Does the model learn from configurations drawn with different ?
-
I have a question about the notation of the energy function . 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 and that predicts the next state of one of the two (say ). 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 , in others , or . 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 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 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.
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)∣2, where 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 matches the noise ϵ. In this sense, Eθ(x,t) can be interpreted as the score function ∇xlogp(x) of an unnormalized distribution. The energy landscapes shown in Figure 5 are the energy landscapes learned at timestep t=T, namely Eθ(x,T). To plot this image, we sample a grid of all possible positions xj that a neighbor particle j of particle i can have, and then, for each position xj, we compute and plot Eθ(xi,xj,T). That is, for each possible value of xj in the grid, we compute the output of the neural network f(xi,xj,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 and angular velocity ωi,ωj of particles i and j. Specifically, the energy of particle i is defined as:
Eθ(xi,xj,ϕi,ϕj,ωi,ω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.
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 i to also consider the velocity of the particles, not only the position, this is,
Eθ(y,xi,xj,vi,vj)
Where j is a neighbor particle of i. 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)
which models the potential induced by the density-dependent repulsive forces. Here, ϕi denotes the local density around particle i, which we define as
ϕi=∑j∈ZiF(∣xi−xj∣)
where Zi is the neighborhood of particle i and F 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.
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) represents the energy of a given sample y conditioned on the positions of particles i and j, namely xi and xj, respectively. For simplicity, we write this term as Eθ(xi,xj). Regarding Eθ(xt,t), this is the notation we use to represent the energy of a generated sample at timestep t, namely sample xt. We understand that the different uses of x 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 Zi 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 Zi is updated accordingly.