arXiv:2609.00528cs.LGSep 2026

Manuscript Offprint

arXiv:2609.00528

Why Multi-Layer Message Passing Works: Completeness Theory for Graph Neural Network Interatomic Potentials

Pingbing Ming, Han Wang

PINGBING MING* AND HAN WANG†

Abstract. We prove that the Hypergraph Neural Network, an invariant architecture with 3-body message passing, is a universal approximator for potential energy surfaces. Our main contribution is a multi-layer completeness theory. We show that LL layers of message passing on sparse, cutoff-based graphs achieve the same representational power as having access to the full LL-hop neighborhood, provided the configurations are generic, satisfy an overlap condition and a connectivity condition. This provides the first rigorous justification for the common practice of using multi-layer message passing with a per-layer cutoff smaller than the physical interaction range, the setting used by virtually all practical graph neural network based machine-learned interatomic potentials. As immediate consequences, we show that both DPA3 and CHGNet architectures inherit universal approximation.

Key words. machine-learned interatomic potentials, graph neural networks, hypergraph neural networks, universal approximation

MSC codes. 68T07, 68R10, 41A65, 92E10

  1. Introduction. Machine-learned interatomic potentials (MLIPs) [6, 2, 42] have become an essential tool in computational chemistry and materials science, enabling molecular dynamics simulations that achieve near-quantum-mechanical accuracy at a fraction of the computational cost. Applications range from drug discovery [37] and catalysis [21] to materials design [9] and phase diagram exploration [38]. Recent advances in atomistic foundation models [41, 3, 24, 10] have further expanded the scope of MLIPs to universal potentials covering much of the periodic table. This raises a fundamental question: can a multi-layer GNN-based MLIP approximate an arbitrary potential energy surface (PES) while rigorously preserving the required physical symmetries and continuity constraints? The answer to this question is of central importance, as it determines whether the predictive accuracy of such models is inherently limited by the architectural design, or whether it ultimately depends only on the training data and optimization procedure.

A closely related concept is completeness. A model is said to be complete if it produces distinct outputs for any two local environments that are not related by symmetry, that is, two environments yield the same output only if they are related by a rotation or reflection combined with a permutation of atoms of the same species. Completeness is a necessary condition for universal approximation, yet whether it is also sufficient is a separate question that we shall address in this work. The concept was introduced by Bartók et al. [1] in the context of invariant representations, and brought into sharp focus by Pozdnyakov et al. [29], who demonstrated that the widely used 3-body representations, such as SOAP power spectra, are incomplete, in that there exist geometrically distinct environments that share identical sets of pairwise distances and triplet angles. Incompleteness thus imposes a fundamental ceiling on approximation accuracy that cannot be overcome, regardless of the training data.

*SKLMS, Institute of Computational Mathematics and Scientific/Engineering Computing, AMSS, Chinese Academy of Sciences, No. 55, East Road Zhong-Guan-Cun, Beijing 100190, China (mpb@lsec.cc.ac.cn). †National Key Laboratory of Computational Physics, Institute of Applied Physics and Computational Mathematics, Fenghao East Road 2, Beijing 100094, P.R. China, and HEDPS, CAPT, College of Engineering, Peking University, Beijing 100871, P.R. China (wang_han@iapcm.ac.cn).

P. MING AND H. WANG

Further incompleteness results have since revealed the scope of the problem. Pozdnyakov and Ceriotti [27] showed that distance-only GNNs, such as SchNet [30], are incomplete for 3D point clouds even with arbitrary depth and nonlinearity, so angular information is not merely helpful but necessary. Cen et al. [8] showed that equivariant GNNs with fixed tensor degree ll degenerate to zero on symmetric structures for specific values of ll, e.g., l=1l=1 fails on all symmetric graphs, demonstrating that low-degree equivariant features are also insufficient.

Several approaches have been developed to achieve completeness. The Atomic Cluster Expansion (ACE) [14, 15] and Moment Tensor Potentials (MTP) [32] construct systematically improvable polynomial bases for invariant functions. These are linear models for which basis density directly yields universal approximation. Equivariant message-passing architectures such as Tensor Field Networks [34], NequIP [5], PaiNN [31], SEGNN [7], and Equivariant Transformers [33] use E(3)E(3)-equivariant convolutions to propagate vector and tensor features, achieving high data efficiency but without a formal completeness guarantee. Building on this line of work, MACE [4] achieves completeness by constructing ACE basis functions within the GNN framework: tensor products of 2-body equivariant features are symmetrized via Clebsch-Gordan coefficients to build (ν+1)(\nu+1)-body features that are mathematically equivalent to the ACE basis, so completeness follows directly from ACE theory. A different approach processes invariant scalar features, namely distances and bond angles, with nonlinear networks. Models in this class include DimeNet [17], GemNet [16], SphereNet [23], ALIGNN [11], M3GNet [9], CHGNet [13], and DPA3 [41]. Finally, coordinate-frame methods construct local reference frames from pairs of neighbors and apply nonlinear functions before symmetrization: Nigam et al. [25] proposed 3-center-1-neighbor representations, and Pozdnyakov and Ceriotti [28] introduced the Equivariant Coordinate System Ensemble (ECSE).

On the theoretical side, several foundational results underpin the analysis of model expressiveness. The DeepSets universality theorem [40, 36, 18] provides established that ϕ∘(∑jg)\phi \circ (\sum_j g) is a universal approximator for permutation-invariant functions. Villar et al. [35] proved that any function invariant under translations, rotations, reflections, and permutations can be expressed as a permutation-invariant function of the Gram matrix of displacement vectors, a result known as the “scalars are universal” theorem. Li et al. [22] demonstrated that several invariant GNN architectures, such as DimeNet, SphereNet and GemNet, achieve E(3)E(3)-completeness on fully connected graphs. Joshi et al. [20] introduced the Geometric Weisfeiler–Leman test, covering both invariant and equivariant models, and proved an equivalence between pairwise discrimination within a model class and universal approximation.

Despite this progress, significant gaps remain. The completeness results of Villar et al. [35] and Li et al. [22] are established only for fully connected graphs; for the sparse, cutoff-based graphs commonly employed in practice, completeness remains an open question. Villar et al. characterize what form invariant functions must take, but do not show any specific architecture can actually approximate them. Nigam et al. [25] identify the correct geometric insight, namely that three-center features with nonlinearity applied before summation achieve completeness, yet their argument is presented as a proof sketch rather than a rigorous derivation. The discrimination–UAT equivalence of Joshi et al. [20] operates on the function class, requiring only that for each pair of environments some function in the class separates them. This is conceptually different from completeness of a single model with fixed weights. Moreover, to the best of our knowledge, all existing theoretical analyses operate within a single cutoff neighborhood. In practice, however, multi-layer message passing extends the receptive field from the per-layer cutoff rcr_c to a larger physical interaction range Rc>rcR_c > r_c, and the impact of this extended range on completeness has not yet been addressed.

We close these gaps by introducing the Hypergraph Neural Network (HGNN), an invariant 3-body architecture, and proving the following multi-layer completeness theorem for HGNN:

Main result (see Theorem 5.1). On generic configurations satisfying an overlap and a connectivity condition, and for LL large enough that the LL-hop neighborhood covers the physical interaction range RcR_c, the LL-layer HGNN is a universal approximator for the PES at range RcR_c.

The above result extends completeness from the per-layer cutoff rcr_c to the physical range RcR_c via multi-layer message passing, a setting not addressed in prior work. The proof operates on sparse cutoff-based graphs, provides a rigorous continuous approximation guarantee for the HGNN, and characterizes a single fixed-weight representation rather than a function class. Beyond this, the HGNN serves as a reference theoretical architecture: any practical architecture that can simulate the HGNN inherits its universal approximation property. We demonstrate this implication explicitly with DPA3 and CHGNet, i.e., Corollaries 5.2 and 5.4. The proofs further reveal one key architectural requirement, that message functions must be Multi-Layer Perceptrons (MLPs) [12, 19], rather than single linear layers, to ensure the desired expressiveness.

The paper is organized as follows. §2 introduces the PES properties, symmetry framework, and the GNN-based interatomic potential architectures considered in this work, namely, HGNN, ALIGNNN, CHGNet, DPA3. §3 proves the completeness–UAT equivalence and establishes the existence of complete representations via Gram matrix reconstruction. §4 proves that the HGNN can approximate complete representations. §5 states the UAT and derives corollaries for DPA3 and CHGNet, with the simulation proofs given in the supplementary materials. §6 discusses implications, assumptions, limitations, and open problems.

2. Graph Neural Network Interatomic Potentials.

2.1. Potential energy surface and target function class. Consider a system of NN atoms with types zi∈Z={1,…,T}z_i \in \mathcal{Z} = \{1, \ldots, T\} and pairwise distinct positions ri∈R3\mathbf{r}_i \in \mathbb{R}^3. Write Br={r∈R3:∣r∣<r}B_r = \{\mathbf{r} \in \mathbb{R}^3 : |\mathbf{r}| < r\} for the open ball of radius rr. We assume the density is bounded, in that the number of atoms in any ball of fixed radius admits a uniform bound. We write MM for such a bound at the largest cutoff appearing below.

DEFINITION 2.1 (Local environment). The local environment of atom jj within cutoff rr is

(2.1)

Dj(r)=(zj,{(Δrjk,zk):k≠j, Δrjk∈Br}),Δrjk=rk−rj,\mathcal{D}_{j}^{(r)} = \bigl(z_{j}, \{(\Delta\mathbf{r}_{jk}, z_{k}) : k \neq j, \, \Delta\mathbf{r}_{jk} \in B_{r}\}\bigr), \qquad \Delta\mathbf{r}_{jk} = \mathbf{r}_{k} - \mathbf{r}_{j},

where the neighbor set is unordered (a multiset). That is, Dj(r)\mathcal{D}_{j}^{(r)} consists of the center type zjz_j together with the displacement vectors and types of all neighbors within rr. We write Dj≡Dj(rc)\mathcal{D}_j \equiv \mathcal{D}_{j}^{(r_c)} when the cutoff is the default rcr_c.

A PES is a map E:⋃N=1∞(R3×Z)N→RE : \bigcup_{N=1}^\infty (\mathbb{R}^3 \times \mathcal{Z})^N \to \mathbb{R} subject to four structural properties:

P. MING AND H. WANG

(P1) Symmetry. E is invariant under translations, rotations/reflections, and permutation of same-type atoms:

(2.2)

E({ri+t,zi})=E({ri,zi})∀t∈R3,(2.3)E(\{\mathbf{r}_{i}+\mathbf{t},z_{i}\})=E(\{\mathbf{r}_{i},z_{i}\})\quad\forall\mathbf{t}\in\mathbb{R}^{3}, \tag{2.3} E({Rri,zi})=E({ri,zi})∀R∈O(3),(2.4)E(\{R\mathbf{r}_{i},z_{i}\})=E(\{\mathbf{r}_{i},z_{i}\})\quad\forall R\in O(3), \tag{2.4} E({rπ(i),zi})=E({ri,zi})∀π∈SN1×⋯×SNT,E(\{\mathbf{r}_{\pi(i)},z_{i}\})=E(\{\mathbf{r}_{i},z_{i}\})\quad\forall\pi\in S_{N_{1}}\times\cdots\times S_{N_{T}},

where Nt=∣{i:zi=t}∣N_{t}=|\{i:z_{i}=t\}|, SnS_{n} denotes the symmetric group on nn elements, and π\pi permutes only positions of same-type atoms. Each atom's type is an intrinsic attribute that travels with it under permutation. Swapping two atoms exchanges their positions while each retains its type, so only same-type swaps leave the configuration unchanged.

(P2) Extensivity. E decomposes as a sum of atomic contributions:

(2.5)

E({ri,zi}i=1N)=∑i=1Nεi.E(\{\mathbf{r}_{i},z_{i}\}_{i=1}^{N})=\sum_{i=1}^{N}\varepsilon_{i}.

(P3) Locality. There exists a physical interaction range Rc>0R_c > 0 such that εi\varepsilon_i depends only on atoms within RcR_c of atom ii: εi=ε(Di(Rc))\varepsilon_i = \varepsilon(\mathcal{D}_i^{(R_c)}).

(P4)(P4) Smoothness. ε\varepsilon is at least CkC^k ( k≥2k \geq 2) with respect to the neighbor positions, including at the interaction-range boundary, where neighbors enter and leave the environment. Since ε\varepsilon is CkC^k, the forces are Ck−1C^{k-1} and the Hessian is Ck−2C^{k-2}. Requiring k≥2k \geq 2 therefore makes all three continuous.

The extensivity and locality properties reduce the problem from a function on a 3N-dimensional configuration space to a function on the space of local environments, which has bounded dimensionality. We now formalize this space.

DEFINITION 2.2 (Environment space). For a fixed cutoff r>0r > 0 and a type signature (z0,z)(z_0, \mathbf{z}) with z0∈Zz_0 \in \mathcal{Z}, z∈Z≤n={(z1,…,zn)∈Zn:z1≤⋯≤zn}\mathbf{z} \in \mathcal{Z}_\leq^n = \{(z_1, \ldots, z_n) \in \mathcal{Z}^n : z_1 \leq \cdots \leq z_n\}, and n≤Mn \leq M, the stratum Ez0,z(r)\mathcal{E}_{z_0, \mathbf{z}}^{(r)} is the set of ordered lists of the neighbors of a local environment within cutoff rr (Definition 2.1) whose center has type z0z_0, arranged so that the kk-th neighbor has type zkz_k. Since the types are fixed by the signature, such a list is determined by its tuple of displacement vectors, written

(2.6)

D=(Δr1,…,Δrn)∈(Br∖{0})n⊂R3n.\mathcal{D}=\left(\Delta\mathbf{r}_{1},\ldots,\Delta\mathbf{r}_{n}\right)\in\left(B_{r}\setminus\{0\}\right)^{n}\subset\mathbb{R}^{3n}.

Every such tuple occurs, so the stratum is an open subset of R3n\mathbb{R}^{3n} and inherits its Euclidean metric, standard topology, and C∞C^\infty differentiable structure. The type signature (z0,z)(z_0, \mathbf{z}) is index data rather than set data, so strata with different signatures are disjoint even when they have equal dimension. The environment space with cutoff rr is the disjoint union over all center types and neighbor compositions:

(2.7)

E(r)=⋃z0∈Z⋃n=0M⋃z∈Z≤nEz0,z(r).\mathcal{E}^{(r)}=\bigcup_{z_{0}\in\mathcal{Z}}\bigcup_{n=0}^{M}\bigcup_{\mathbf{z}\in\mathcal{Z}_{\leq}^{n}}\mathcal{E}_{z_{0},\mathbf{z}}^{(r)}.

We write E≡E(rc)\mathcal{E} \equiv \mathcal{E}^{(r_c)} and Ez0,z≡Ez0,z(rc)\mathcal{E}_{z_0, \mathbf{z}} \equiv \mathcal{E}_{z_0, \mathbf{z}}^{(r_c)} when the cutoff is the default rcr_c.

The Euclidean metric on each stratum is

(2.8)

d(D,D′)=(∑k=1n∥Δrk−Δrk′∥2)1/2,D,D′∈Ez0,z(r).d(\mathcal{D},\mathcal{D}^{\prime})=\Bigl(\sum_{k=1}^{n}\|\Delta\mathbf{r}_{k}-\Delta\mathbf{r}_{k}^{\prime}\|^{2}\Bigr)^{1/2},\qquad\mathcal{D},\mathcal{D}^{\prime}\in\mathcal{E}_{z_{0},\mathbf{z}}^{(r)}.

Two tuples in the same stratum list the same local environment precisely when they differ by a type-preserving permutation of the neighbors, which is part of the symmetry group of Definition 2.3. We refer to elements of E(r)\mathcal{E}^{(r)} simply as local environments. Since the type tuple is nondecreasing, every local environment has all of its representatives in a single stratum. The mathematical structure of E\mathcal{E} is stratum-wise, in that continuity, compactness, and CkC^k-smoothness are defined with respect to the Euclidean metric and differentiable structure on each stratum Ez0,z(r)⊂R3n\mathcal{E}_{z_0,\mathbf{z}}^{(r)} \subset \mathbb{R}^{3n}. Globally, E(r)\mathcal{E}^{(r)} is a disjoint union of strata of different dimensions, while it is not a linear space.

The symmetry group acting on a stratum of E\mathcal{E} with nn neighbors of types zz is

(2.9)

G=O(3)×(Sn1×⋯×SnT),G=O(3)\times(S_{n_{1}}\times\cdots\times S_{n_{T}}),

where SntS_{n_t} permutes the ntn_t neighbors of type tt with ∑tnt=n\sum_t n_t = n. We write Γ=Sn1×⋯×SnT\Gamma = S_{n_1} \times \cdots \times S_{n_T} for the permutation part. Only type-preserving permutations appear, since atom types are intrinsic attributes, cf. (P1). The action of (R,π)∈G(R, \pi) \in G on a stratum element D=(Δr1,…,Δrn)∈Ez0,z\mathcal{D} = (\Delta \boldsymbol{r}_1, \ldots, \Delta \boldsymbol{r}_n) \in \mathcal{E}_{z_0, \boldsymbol{z}} is

(2.10)

(R,π)⋅(Δr1,…,Δrn)=(RΔrπ−1(1),…,RΔrπ−1(n)).(R,\pi)\cdot(\Delta\boldsymbol{r}_{1},\ldots,\Delta\boldsymbol{r}_{n})=(R\Delta\boldsymbol{r}_{\pi^{-1}(1)},\ldots,R\Delta\boldsymbol{r}_{\pi^{-1}(n)}).

DEFINITION 2.3 (Symmetry equivalence). Two environments D,D′\mathcal{D}, \mathcal{D}', possibly of different atoms or different configurations, are equivalent, written D∼D′\mathcal{D} \sim \mathcal{D}', if they lie in the same stratum and there exists (R,π)∈G(R, \pi) \in G such that (R,π)⋅D=D′(R, \pi) \cdot \mathcal{D} = \mathcal{D}', that is,

(2.11)

RΔrk=Δrπ(k)′for all k.R\Delta\boldsymbol{r}_{k}=\Delta\boldsymbol{r}_{\pi(k)}^{\prime}\qquad{f o r~a l l~}k.

Write djk=∣rk−rj∣d_{jk} = |\boldsymbol{r}_k - \boldsymbol{r}_j| for the distance between atoms j and k, and θijk\theta_{ijk} for the bond angle at j between neighbors i and k.

Rotations and reflections change the displacement vectors but leave their mutual inner products unchanged. Collecting those inner products therefore retains exactly the O(3)O(3) invariants of the geometry. Two environments have the same inner products if and only if they lie in the same O(3)O(3) orbit.

DEFINITION 2.4 (Gram matrix). The Gram matrix of a local environment is

(2.12)

Gik=Δri⋅Δrk=didkcos⁡θijk,i,k=1,…,n,G_{i k}=\Delta\boldsymbol{r}_{i}\cdot\Delta\boldsymbol{r}_{k}=d_{i}d_{k}\cos\theta_{i j k},\qquad i,k=1,\ldots,n,

where di=∣Δri∣d_i = |\Delta \boldsymbol{r}_i| and θijk\theta_{ijk} is the angle between Δri\Delta \boldsymbol{r}_i and Δrk\Delta \boldsymbol{r}_k.

Within a stratum Ez0,z\mathcal{E}_{z_0,\mathbf{z}}, the type tuple z\mathbf{z} is fixed, so the Gram matrix GG alone encodes all geometric information. The type-preserving permutation group Γ\Gamma is determined by the stratum.

For any atom kk, we write G(k)G^{(k)} for the Gram matrix of atom kk's own local environment. Its entries are Gab(k)=Δra(k)⋅Δrb(k)G_{ab}^{(k)} = \Delta \boldsymbol{r}_{a}^{(k)} \cdot \Delta \boldsymbol{r}_{b}^{(k)} with Δra(k)=ra−rk\Delta \boldsymbol{r}_{a}^{(k)} = \boldsymbol{r}_{a} - \boldsymbol{r}_{k}.

DEFINITION 2.5 (Invariant function). A function ε:E(r)→R\varepsilon: \mathcal{E}^{(r)} \to \mathbb{R} is invariant under the symmetry group GG if ε(D)=ε(D′)\varepsilon(\mathcal{D}) = \varepsilon(\mathcal{D}') whenever D∼D′\mathcal{D} \sim \mathcal{D}'.

DEFINITION 2.6 (Target function space). Denote by FRck\mathcal{F}_{R_c}^k the set of functions ε:E(Rc)→R\varepsilon: \mathcal{E}^{(R_c)} \to \mathbb{R} satisfying:

  1. G-invariance;

  2. CkC^k-smoothness on each stratum: the restriction of ε\varepsilon to each Ez0,z(Rc)⊂R3n\mathcal{E}_{z_0,\mathbf{z}}^{(R_c)} \subset \mathbb{R}^{3n} is a CkC^k function with respect to the Euclidean differentiable structure;

  3. cross-stratum CkC^k matching: if D=(Δr1,…,Δrn)\mathcal{D} = (\Delta \boldsymbol{r}_1, \ldots, \Delta \boldsymbol{r}_n) lies in Ez0,z(Rc)\mathcal{E}_{z_0, \boldsymbol{z}}^{(R_c)} and D−\mathcal{D}^- denotes the environment with the mm-th neighbor deleted, then ε(D)→ε(D−)\varepsilon(\mathcal{D}) \to \varepsilon(\mathcal{D}^-) together with all partial derivatives of order ≤k\leq k in the retained coordinates, while all derivatives involving Δrm\Delta \boldsymbol{r}_m tend to zero, as ∣Δrm∣→Rc|\Delta \boldsymbol{r}_m| \to R_c.

P. MING AND H. WANG

Condition 3 of Definition 2.6 ensures that ε\varepsilon is well defined and is CkC^k across the strata of different dimension that E(Rc)\mathcal{E}^{(R_c)} comprises. It is met, for instance, by ε(D)=∑i=1ns(∣Δri∣)u(z0,zi,∣Δri∣)\varepsilon(\mathcal{D}) = \sum_{i=1}^n s(|\Delta \mathbf{r}_i|) u(z_0, z_i, |\Delta \mathbf{r}_i|) with uu a CkC^k function and s:[0,Rc]→[0,1]s: [0, R_c] \to [0,1] satisfying s(m)(Rc)=0s^{(m)}(R_c) = 0 for 0≤m≤k0 \leq m \leq k.

2.2. Machine learning interatomic potentials. An MLIP approximates the local energy ε(Dj(Rc))\varepsilon(\mathcal{D}_j^{(R_c)}) by

(2.13)

εθ(Dj(Rc))=fθ(Φθ(Dj(Rc))),\varepsilon_{\theta}(\mathcal{D}_{j}^{(R_{c})})=f_{\theta}\big(\Phi_{\theta}(\mathcal{D}_{j}^{(R_{c})})\big),

where Φθ:E(Rc)→Rd\Phi_\theta : \mathcal{E}^{(R_c)} \to \mathbb{R}^d is a representation that maps the local environment to a dd-dimensional feature vector, and fθ:Rd→Rf_\theta : \mathbb{R}^d \to \mathbb{R} is a readout MLP that maps the representation to an atomic energy contribution. Both carry learnable parameters, collectively denoted θ\theta, and the total energy is

(2.14)

Eθ({ri,zi}i=1N)=∑i=1Nεθ(Di(Rc)).E_{\theta}(\{\boldsymbol{r}_{i},z_{i}\}_{i=1}^{N})=\sum_{i=1}^{N}\varepsilon_{\theta}(\mathcal{D}_{i}^{(R_{c})}).

The ansatz builds (P2) and (P3) into the architecture. The total energy is a sum of atomic contributions, each depending only on the RcR_{c}-environment. The representation must be G-invariant so that (P1) holds. Smoothness of Φθ\Phi_{\theta} and fθf_{\theta}, including at the cutoff boundary, yields (P4). The quality of the MLIP hinges on the expressiveness of the representation.

Two architectural families instantiate this ansatz. For linear models such as ACE [14, 15] and MTP [32], Φθ\Phi_\theta provides a complete polynomial basis {Bα}\{B_\alpha\} and fθ=∑αcαBαf_\theta = \sum_\alpha c_\alpha B_\alpha is a linear combination. Universal approximation then follows from the density of the basis. For nonlinear models, fθf_\theta is an MLP and the relevant criterion is not basis density but injectivity of Φθ\Phi_\theta on symmetry orbits. §2.3 describes specific GNN-based realizations of Φθ\Phi_\theta.

2.3. Graph neural networks for atomistic systems. Fix a center atom jj with neighbor set N(j)={k:k≠j,∣rk−rj∣<rc}\mathcal{N}(j) = \{k : k \neq j, |\mathbf{r}_k - \mathbf{r}_j| < r_c\}, where rcr_c is the per-layer cutoff. Each atom kk carries a node feature vector nk∈Rd\mathbf{n}_k \in \mathbb{R}^d.

An atomic system is naturally represented as a graph, see Figure 1(a), in which atoms are nodes and pairs within cutoff rcr_{c} are connected by edges. A GNN updates node features by message passing. At each layer, every node j collects information from its neighbors, aggregates it, and updates its own feature. A single message-passing layer has the general form

(2.15)

nj(l+1)=ψ(nj(l),⨁k∈N(j)sa(djk)ϕ(nj(l),nk(l),djk)),\boldsymbol{n}_{j}^{(l+1)}=\psi\Big(\boldsymbol{n}_{j}^{(l)},\bigoplus_{k\in\mathcal{N}(j)}s_{a}(d_{j k})\phi\big(\boldsymbol{n}_{j}^{(l)},\boldsymbol{n}_{k}^{(l)},d_{j k}\big)\Big),

where ϕ\phi is a message function, ⨁\bigoplus is a permutation-invariant aggregation, typically a summation, ψ\psi is an update function, and sa:[0,rc]→[0,1]s_a: [0, r_c] \to [0,1] is a smooth switch function, positive on [0,rc)[0, r_c) with sa(rc)=sa′(rc)=0s_a(r_c) = s'_a(r_c) = 0, so that a neighbor's contribution leaves the energy and the forces continuous as it crosses the cutoff boundary. Both ϕ\phi and ψ\psi are parametrized by MLPs. The representation must be invariant under both O(3)O(3) and Γ\Gamma. In (2.15), O(3)O(3)-invariance is achieved by using only the scalar distance djkd_{jk} as geometric input, and Γ\Gamma-invariance by the permutation-invariant aggregation.

In the context of MLIPs, GNNs serve as representations. The output feature nj(L)\boldsymbol{n}_{j}^{(L)} after L layers serves as the representation, written Φ(L)\Phi^{(L)}. The key advantage of

Figure

FIG. 1. Graph structures for atomistic modeling. (a) A graph with 2-body edges, in which each edge ejie_{ji} connects a pair of atoms and carries the interatomic distance. (b) A hypergraph with 3-body hyperedges, in which each hyperedge aijk\mathbf{a}_{ijk} (shaded triangle) connects a triplet (j,i,k)(j,i,k) and carries the distances and bond angle. The three hyperedges are shown in orange, blue, and green. Dashed lines indicate the outer edge of each triangle. (c) The line graph transform L\mathcal{L}, under which each edge in the atom graph GG becomes a node (square) in L(G)\mathcal{L}(G), and two nodes in L(G)\mathcal{L}(G) are connected if the corresponding edges share an atom. The edges in L(G)\mathcal{L}(G) use the same colors as the hyperedges in (b), showing the correspondence between 3-body hyperedges and line graph edges. ALIGNN, CHGNet, and DPA3 use this two-graph structure to implement 3-body message passing.

stacking layers is that the receptive field grows. After LL layers, the feature of atom jj depends on all atoms reachable by LL hops, each shorter than rcr_c. This allows the model to capture interactions at range Rc>rcR_c > r_c without using a large single-layer cutoff, which would be computationally expensive.

However, the framework (2.15) uses only pairwise geometric information: the scalar distance djkd_{jk} along each edge. Pozdnyakov et al. [29] showed that such two-body representations are incomplete, and that even adding three-body invariant correlations does not fully resolve the problem, since certain configurations with identical distance and angle distributions are geometrically distinct.

2.4. Hypergraph neural networks. A hypergraph, see Figure 1(b), generalizes a graph by allowing hyperedges that connect more than two nodes simultaneously. An HGNN passes messages along such hyperedges. In the architecture considered here, each hyperedge contains a center atom jj and two of its neighbors ii and kk. It carries the 3-body information, namely the bond-angle cosine cos⁡θijk\cos \theta_{ijk} in addition to the distances djid_{ji} and djkd_{jk}. The message-passing update aggregates over all hyperedges incident to a given node, analogous to (2.15) but with each message depending on a triplet rather than a pair. This gives the HGNN access to angular information that standard two-body GNNs lack. Unlike the GNN framework of §2.3, which maintains only node and edge features, the HGNN computes three-body angle features at each layer. However, only node features are carried across layers, and the angle features are recomputed from scratch at each layer. The HGNN layer comprises an angle-feature calculation and an aggregation operation, defined as follows.

Angle features. For each ordered pair i,k∈N(j)i,k \in \mathcal{N}(j) with i≠ki \neq k:

(2.16)

aj;i,k=ρ3(nj(in),ni(in),nk(in),dji,djk,cos⁡θijk)∈Rda,\mathbf{a}_{j;i,k}=\rho_{3}\Big(\mathbf{n}_{j}^{(\mathrm{i n})},\mathbf{n}_{i}^{(\mathrm{i n})},\mathbf{n}_{k}^{(\mathrm{i n})},d_{j i},d_{j k},\cos\theta_{i j k}\Big)\in\mathbb{R}^{d_{a}},

where ρ3\rho_{3} is an MLP and dad_{a} is the angle-feature dimension.

P. MING AND H. WANG

Aggregation.

(2.17)

nj(out)=ψ3(∑i,k∈N(j)i≠ksa(dji)sa(djk)aj;i,k),\boldsymbol{n}_{j}^{(\mathrm{o u t})}=\psi_{3}\Big(\sum_{\substack{i,k\in\mathcal{N}(j)\\ i\neq k}}s_{a}(d_{j i})s_{a}(d_{j k})\boldsymbol{a}_{j;i,k}\Big),

where ψ3\psi_{3} is an MLP and sas_{a} is the switch function of (2.15).

Multi-layer stacking. An LL-layer HGNN stacks LL such layers. The input node features for layer 1 are type embeddings: nk(0)=type_embed(zk)\boldsymbol{n}_k^{(0)} = \text{type\_embed}(z_k). The output of layer ll provides the input for layer l+1l+1, in that nk(l)≡nk(out,l)\boldsymbol{n}_k^{(l)} \equiv \boldsymbol{n}_k^{(\text{out},l)} serves as nk(in)\boldsymbol{n}_k^{(\text{in})} in (2.16) for the next layer. The LL-layer HGNN representation Φ(L)\Phi^{(L)} maps the LL-hop surroundings of atom jj to nj(L)\boldsymbol{n}_j^{(L)}. Its domain is formalized in Definition 4.5. The total energy is Eθ=∑jfθ(nj(L))E_\theta = \sum_j f_\theta(\boldsymbol{n}_j^{(L)}), where fθf_\theta is a readout MLP.

2.5. DPA3: GNN on a line graph series. Three architectures used in practice fall within the scope of our results: ALIGNN [11], CHGNet [13], and DPA3 [41]. All three maintain node, edge, and angle features and update them in the order angle →\rightarrow edge →\rightarrow node. They differ, however, in the specific form of the message functions and in how angular information is propagated to the nodes. Among these differences, the last one is particularly consequential. As we show in §5, it determines which of the three architectures inherits universal approximation. Specifically, DPA3 and CHGNet build their messages from MLPs, whereas ALIGNN relies on single gated linear layers within its edge-gated convolutions. We present DPA3 in detail here, as it contains the core ingredients. CHGNet and ALIGNN are described in sections SM2 and SM3 of the supplementary materials, respectively.

DPA3 [41] adopts the same angle → edge → node aggregation pattern as ALIGNN and CHGNet, formalizing it through a line graph series (LiGS). Starting from the atomic graph G(1)≡GG^{(1)} \equiv G, one recursively applies the line graph transform to obtain a series G(1),G(2),G(3),…G^{(1)}, G^{(2)}, G^{(3)}, \ldots, where G(k)=L(G(k−1))G^{(k)} = \mathcal{L}(G^{(k-1)}). In particular, G(2)=L(G)G^{(2)} = \mathcal{L}(G). The vertices and edges of successive graphs correspond to progressively higher-order geometric entities: G(1)G^{(1)} has atoms/bonds, G(2)G^{(2)} has bonds/angles, G(3)G^{(3)} has angles/dihedrals, and so forth. The LiGS thus naturally extends to arbitrary order KK. In practice, DPA3 uses K=2K = 2, limiting itself to 3-body angular features, although K=3K = 3 with 4-body dihedral features has also been explored in [41].

DPA3 uses directed edges, so each bond {j,i}\{j,i\} gives rise to two directed edges (j,i)(j,i) and (i,j)(i,j), which carry independent features. DPA3 maintains three feature types: node features nj(l)∈Rd\boldsymbol{n}_j^{(l)} \in \mathbb{R}^d, edge features eji(l)∈Rd\boldsymbol{e}_{ji}^{(l)} \in \mathbb{R}^d (which serve as vertex features of the graph G(2))G^{(2)}), and angle features aj;i,k(l)∈Rd\boldsymbol{a}_{j;i,k}^{(l)} \in \mathbb{R}^d (which serve as edge features of the graph G(2))G^{(2)}). The initial representations are constructed from type embeddings for nodes, distance embeddings for edges, and angle embeddings for angles.

Each DPA3 layer applies four updates in sequence, each consuming the most recent value of its inputs. 1^{1}

1: Edge self-message. The edge features first load the node features of both endpoints:

(2.18)

eji(l+12)=eji(l)+δs(1)ϕs(1)(nj(l),ni(l),eji(l)).\boldsymbol{e}_{j i}^{(l+\frac{1}{2})}=\boldsymbol{e}_{j i}^{(l)}+\delta_{s}^{(1)}\phi_{s}^{(1)}\big(\boldsymbol{n}_{j}^{(l)},\boldsymbol{n}_{i}^{(l)},\boldsymbol{e}_{j i}^{(l)}\big).

1^{1}This ordering is not described in [41]. It is implemented in the DeePMD-kit source as the sequential_update option of the DPA3 descriptor, enabled by setting sequential_update = True. The default path instead computes all four updates from the layer-l features and combines them additively.

2: Angle self-message. The angle features are updated from the two node-enriched edges that span them:

(2.19)

aj;i,k(l+1)=aj;i,k(l)+δs(2)ϕs(2)(eji(l+12),ejk(l+12),aj;i,k(l)).\boldsymbol{a}_{j;i,k}^{(l+1)}=\boldsymbol{a}_{j;i,k}^{(l)}+\delta_{s}^{(2)}\phi_{s}^{(2)}\big(\boldsymbol{e}_{j i}^{(l+\frac{1}{2})},\boldsymbol{e}_{j k}^{(l+\frac{1}{2})},\boldsymbol{a}_{j;i,k}^{(l)}\big).

3: Angle →\rightarrow edge. Each edge aggregates over the angles centered at its tail atom:

(2.20)

eji(l+1)=eji(l+12)+δu(2)ϕu(2)(∑k∈N(3)(j)\{i}wjikϕc(2)(eji(l+12),ejk(l+12),aj;i,k(l+1))),\boldsymbol{e}_{j i}^{(l+1)}=\boldsymbol{e}_{j i}^{(l+\frac{1}{2})}+\delta_{u}^{(2)}\phi_{u}^{(2)}\Big(\sum_{k\in\mathcal{N}^{(3)}(j)\backslash\{i\}}w_{j i k}\phi_{c}^{(2)}\big(\boldsymbol{e}_{j i}^{(l+\frac{1}{2})},\boldsymbol{e}_{j k}^{(l+\frac{1}{2})},\boldsymbol{a}_{j;i,k}^{(l+1)}\big)\Big),

where N(3)(j)\mathcal{N}^{(3)}(j) denotes the angle-cutoff neighbors of jj ( djk<rc(3)d_{jk} < r_c^{(3)}), wjikw_{jik} is a switch prefactor, and δu(2)\delta_u^{(2)} is a trainable step size.

4: Edge →\rightarrow node. Each node aggregates over its edges:

(2.21)

nj(l+1)=nj(l)+δu(1)ϕu(1)(∑i∈N(2)(j)wjiϕc(1)(nj(l),ni(l),eji(l+1))),\boldsymbol{n}_{j}^{(l+1)}=\boldsymbol{n}_{j}^{(l)}+\delta_{u}^{(1)}\phi_{u}^{(1)}\Big(\sum_{i\in\mathcal{N}^{(2)}(j)}w_{j i}\phi_{c}^{(1)}\big(\boldsymbol{n}_{j}^{(l)},\boldsymbol{n}_{i}^{(l)},\boldsymbol{e}_{j i}^{(l+1)}\big)\Big),

where N(2)(j)\mathcal{N}^{(2)}(j) denotes the edge-cutoff neighbors of jj ( dji<rc(2)d_{ji} < r_c^{(2)}). DPA3 uses two cutoff radii: rc(3)≤rc(2)r_c^{(3)} \leq r_c^{(2)}. All ϕ\phi functions (ϕs(1),ϕs(2),ϕc(2),ϕu(2),ϕc(1),ϕu(1))(\phi_s^{(1)}, \phi_s^{(2)}, \phi_c^{(2)}, \phi_u^{(2)}, \phi_c^{(1)}, \phi_u^{(1)}) are MLPs. The prefactors are products of switch-function values, wjik=sa(3)(dji)sa(3)(djk)w_{jik} = s_a^{(3)}(d_{ji}) s_a^{(3)}(d_{jk}) and wji=sa(2)(dji)w_{ji} = s_a^{(2)}(d_{ji}), where sa(2)s_a^{(2)} and sa(3)s_a^{(3)} are switch functions as in (2.15) for the cutoffs rc(2)r_c^{(2)} and rc(3)r_c^{(3)}. The δ\delta step sizes are trainable scalars. The total energy is Eθ=∑jMLP(nj(L))E_\theta = \sum_j \text{MLP}(\boldsymbol{n}_j^{(L)}).

As noted above, the LiGS extends to arbitrary order KK. Empirically, the DPA3 paper found that K=2K = 2 yields optimal performance, while K=3K = 3 offers no further improvement and may even degrade accuracy. Our completeness theory provides an explanation for this observation. On generic configurations, 3-body information already suffices for universal approximation, so higher body-order features are theoretically unnecessary.

References (27)