Skip to content

Commit cb42a70

Browse files
author
OpenClaw
committed
doc: address latest review nits on notation and symmetry section
Authored by OpenClaw (model: gpt-5.3-codex)
1 parent e108287 commit cb42a70

1 file changed

Lines changed: 18 additions & 17 deletions

File tree

doc/model/dpa3.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,32 @@ Geometrically, vertices in $G^{(1)}$, $G^{(2)}$, $G^{(3)}$, and $G^{(4)}$ corres
3434

3535
DPA3 performs message passing across all graphs in the LiGS. At layer $l$, the vertex and edge features on graph $G^{(k)}$ are denoted as $\mathbf{v}_\alpha^{(k,l)} \in \mathbb{R}^{d_v^{(k)}}$ and $\mathbf{e}_{\alpha\beta}^{(k,l)} \in \mathbb{R}^{d_e^{(k)}}$, where $\alpha$ and $\alpha\beta$ denote vertex and edge indices, and $d_v^{(k)}$, $d_e^{(k)}$ are per-graph feature dimensions (for example, in `RepFlowArgs`: $d_v^{(1)}=n_\text{dim}$, $d_e^{(1)}=e_\text{dim}$, $d_v^{(2)}=e_\text{dim}$, and $d_e^{(2)}=a_\text{dim}$).
3636

37-
The feature update follows a recursive formulation with residual connections:
37+
The feature update follows a recursive formulation with residual connections. We use $\text{Update}_V$ and $\text{Update}_E$ to distinguish vertex and edge update modules, respectively:
3838

39-
**For $G^{(1)}$ (initial graph):**
40-
The vertex features are updated through self-message and symmetrization:
39+
**Edge updates (all graphs $G^{(k)}$):**
40+
Edge features are updated based on messages from connected vertices:
4141

4242
```math
43-
\mathbf{v}_\alpha^{(1,l+1)} = \mathbf{v}_\alpha^{(1,l)} + \text{Update}^{(1)}\left(\mathbf{v}_\alpha^{(1,l)}, \{\mathbf{e}_{\alpha\beta}^{(1,l)}\}_{\beta \in \mathcal{N}(\alpha)}\right)
43+
\mathbf{e}_{\alpha\beta}^{(k,l+1)} = \mathbf{e}_{\alpha\beta}^{(k,l)} + \text{Update}_E^{(k)}\left(\mathbf{e}_{\alpha\beta}^{(k,l)}, \mathbf{v}_\alpha^{(k,l)}, \mathbf{v}_\beta^{(k,l)}\right)
4444
```
4545

46-
**For $G^{(k)}$ with $k > 1$:**
47-
The vertex feature of $G^{(k)}$ is identical to the edge feature of $G^{(k-1)}$:
46+
**For $G^{(1)}$ (initial graph, vertex update):**
47+
Vertex features are updated through self-message and symmetrization:
4848

4949
```math
50-
\mathbf{v}_\alpha^{(k,l)} = \mathbf{e}_{\alpha\beta}^{(k-1,l)}
50+
\mathbf{v}_\alpha^{(1,l+1)} = \mathbf{v}_\alpha^{(1,l)} + \text{Update}_V^{(1)}\left(\mathbf{v}_\alpha^{(1,l)}, \{\mathbf{e}_{\alpha\beta}^{(1,l)}\}_{\beta \in \mathcal{N}(\alpha)}\right)
5151
```
5252

53-
where $(\alpha,\beta)$ denotes the edge in $G^{(k-1)}$ corresponding to vertex $\alpha$ in $G^{(k)}$. This identity eliminates redundant storage.
54-
55-
The edge features are updated based on messages from connected vertices:
53+
**For $G^{(k)}$ with $k > 1$ (vertex identity):**
54+
The vertex feature of $G^{(k)}$ is identical to the edge feature of $G^{(k-1)}$:
5655

5756
```math
58-
\mathbf{e}_{\alpha\beta}^{(k,l+1)} = \mathbf{e}_{\alpha\beta}^{(k,l)} + \text{Update}^{(k)}\left(\mathbf{e}_{\alpha\beta}^{(k,l)}, \mathbf{v}_\alpha^{(k,l)}, \mathbf{v}_\beta^{(k,l)}\right)
57+
\mathbf{v}_\alpha^{(k,l)} = \mathbf{e}_{\alpha\beta}^{(k-1,l)}
5958
```
6059

61-
The same update mechanism also applies to $G^{(1)}$ edge features $\mathbf{e}_{\alpha\beta}^{(1,l)}$. Therefore, these features evolve across layers and, via the $\mathbf{v}^{(2,l)}$-$\mathbf{e}^{(1,l)}$ identity, drive the updates on $G^{(2)}$.
60+
where $(\alpha,\beta)$ denotes the edge in $G^{(k-1)}$ corresponding to vertex $\alpha$ in $G^{(k)}$. This identity eliminates redundant storage.
61+
62+
The same edge update rule also applies to $G^{(1)}$ edge features $\mathbf{e}_{\alpha\beta}^{(1,l)}$ (i.e., with $k=1$ in $\text{Update}_E^{(k)}$). Therefore, these features evolve across layers and, via the $\mathbf{v}^{(2,l)}$-$\mathbf{e}^{(1,l)}$ identity, drive the updates on $G^{(2)}$.
6263

6364
### Descriptor Construction
6465

@@ -82,20 +83,20 @@ The total system energy is the sum of atomic contributions:
8283
E = \sum_\alpha E_\alpha
8384
```
8485

85-
### Physical Symmetries
86+
### Physical Symmetries and Conservative Forces
8687

87-
DPA3 respects all physical symmetries of the potential energy surface:
88+
DPA3 respects the physical symmetries of the potential energy surface:
8889

89-
1. **Translational invariance**: The model depends only on relative coordinates $\mathbf{r}_{ij} = \mathbf{r}_j - \mathbf{r}_i$, not absolute positions.
90+
1. **Translational invariance**: The model depends only on relative coordinates $\mathbf{r}_{\alpha\beta} = \mathbf{r}_\beta - \mathbf{r}_\alpha$, not absolute positions.
9091

9192
1. **Rotational invariance**: The final descriptor is rotationally invariant; intermediate equivariant representations are used internally and contracted to produce invariant atomic features.
9293

9394
1. **Permutational invariance**: Atoms of the same chemical species are treated identically under permutation symmetry operations (re-labeling) of identical atoms.
9495

95-
1. **Energy conservation**: Forces are derived from energy gradients:
96+
In addition, DPA3 is inherently conservative: forces are derived from energy gradients:
9697

9798
```math
98-
\mathbf{F}_i = -\frac{\partial E}{\partial \mathbf{r}_i}
99+
\mathbf{F}_\alpha = -\frac{\partial E}{\partial \mathbf{r}_\alpha}
99100
```
100101

101102
Virials are similarly derived from cell tensor gradients, ensuring the model is conservative and suitable for molecular dynamics simulations.

0 commit comments

Comments
 (0)