MARA: Continuous SE(3)-Equivariant Attention for Molecular Force Fields Francesco Leonardi, Boris Bonev, Kaspar Riesen Abstract Machine learning force fields (MLFFs) have become essential for accurate and efficient atomistic modeling. Despite their high accuracy, most existing approaches rely on fixed angular expansions, limiting flexibility in weighting local geometric interactions. We introduce Modular Angular-Radial Attention (MARA), a module that extends spherical attention – originally developed for SO(3) tasks – to the molecular domain and SE(3), providing an efficient approximation of equivariant interactions. MARA operates directly on the angular and radial coordinates of neighboring atoms, enabling flexible, geometrically informed, and modular weighting of local environments. Unlike existing attention mechanisms in SE(3)-equivariant architectures, MARA can be integrated in a plug-and-play manner into models such as MACE without architectural modifications. Across molecular benchmarks, MARA improves energy and force predictions, reduces high-error events, and enhances robustness. These results demonstrate that continuous spherical attention is an effective and generalizable geometric operator that increases the expressiveness, stability, and reliability of atomistic models. 1 Introduction Figure 1 : Illustration of a Machine Learning Force Field (MLFF) modeled with Equivariant Graph Neural Networks (EGNNs). Given a molecular configuration at a specific temperature, the model predicts the forces acting on each atom, which are then used to estimate the molecule’s subsequent configuration. Molecular configurations that occur more frequently are captured more accurately by the model, while less frequent configurations, which can be visualized through the interatomic distribution, are inherently more uncertain. Machine Learning Force Fields (MLFFs) have become a central tool for atomistic simulations in chemistry and materials science ( 13 ; 43 ) , offering an effective compromise between the accuracy of ab initio electronic structure methods, such as Density Functional Theory (DFT), and the computational efficiency required for large-scale simulations ( 16 ; 19 ) . Although early MLFF approaches included neural networks ( 8 ) or fixed parametric forms ( 42 ; 40 ) , recent advances leverage SE(3)-equivariant graph neural networks to encode physical symmetries and capture complex geometric interactions ( 15 ) . Models such as NequIP ( 7 ) and MACE ( 6 ) trained on high-quality quantum datasets, achieve near-DFT accuracy and the scalability required for larger systems and longer simulations ( 9 ; 17 ) . Despite their expressivity, most SE(3)-equivariant model angular dependencies using fixed basis expansions or discrete neighbor sets, limiting flexibility in weighting continuous directional contributions ( 7 ) . Inspired by the success of attention mechanisms ( 44 ) in other domains, recent work has proposed SE(3)-equivariant Transformers ( 31 ; 32 ) , but these typically operate over discrete atomic neighborhoods rather than the continuous spatial domain. A complementary approach leverages attention directly on the sphere, providing efficient approximations to SO(3)-equivariant operators and enabling flexible modeling of angular dependencies without relying on high-order tensor products ( 12 ) . Such spherical attention mechanisms have achieved strong results in geometric tasks, including spherical image segmentation and physical simulations ( 20 ; 10 ; 12 ) . Despite their advantages, they have not been explored in the context of atomistic modeling. In particular, it is unclear how these approaches can be extended to approximate SE(3) equivariance – requiring the joint treatment of angular and radial degrees of freedom – or how they can be integrated into existing MLFF architectures without compromising computational efficiency. Our contributions In this work, we introduce a continuous spherical attention mechanism that operates directly on local atomic environments and provides an efficient approximation to SE(3)-equivariance. Our approach reformulates attention as an operator over directions and distances, using a structured spherical discretization that naturally separates angular and radial dependencies. This formulation enables flexible, geometry-aware weighting of local atomic environments. Moreover, we demonstrate a plug-and-play integration of this module into existing SE(3)-equivariant MLFFs, instantiated in MACE to validate its integration, while remaining fully compatible with SE(3)-equivariant message passing. Finally, we evaluate the effectiveness of our approach on representative molecular benchmarks, showing consistent improvements over current baselines with a controlled computational overhead. Figure 2 : The molecule is represented as a 3D molecular graph, in which the nodes are characterized by scalar features and spatial coordinates. Different equivariant graph neural networks process this information using different message passing mechanisms: Equivariant Graph Neural Networks (EGNN), SE(3)-equivariant networks (SE(3)-GNN), and SE(3)-GNN enriched with MARA. 2 Related Work Equivariant graph neural networks for MLFFs. Early MLFFs relied on neural networks ( 9 ) or fixed parametric forms ( 3 ; 42 ; 40 ) , achieving moderate accuracy and scalability. Graph-based models such as SchNet ( 39 ) and DimeNet ( 28 ) are invariant to translations, rotations, and atom permutations. More recent approaches explicitly enforce SE(3) equivariance ( 15 ; 23 ) . These include Tensor Field Network (TFN)-based architectures ( 41 ) as well as other SE(3)-equivariant graph neural networks, such as the E(n)-equivariant GNN ( 37 ) . Prominent SE(3)-equivariant message-passing models include NequIP ( 7 ) , Allegro ( 35 ) , BOTNet ( 4 ) , MACE ( 6 ) , UNiTE ( 36 ) , QuinNet ( 47 ) , and VisNet ( 46 ) , which leverage equivariant message passing and higher-order geometric representations to achieve strong performance across molecular and materials benchmarks. While highly expressive, many of these architectures rely on fixed angular basis expansions or predefined correlation orders, which can increase model complexity when modeling flexible angular interactions. Transformer-based approaches in MLFFs. Motivated by the success of attention-based models in other domains ( 44 ) , several works have introduced SE(3)-equivariant Transformer architectures, including the SE(3)-Transformer ( 27 ) , Equiformer ( 31 ) , EquiformerV2 ( 32 ) , and SO3krates ( 25 ) . These models apply attention mechanisms over local atomic neighborhoods while preserving equivariance through tensor representations and spherical harmonics. Attention is defined over discrete sets of neighboring atoms, with angular dependencies handled explicitly via spherical-harmonic–based equivariant features, rather than through attention operators acting continuously over the angular domain. In contrast, Equivariant Spherical Transformer ( 1 ) applies a Transformer-like architecture in the spherical Fourier domain aiming approximate equivariance via uniform spherical sampling. Spherical attention mechanisms. Recent work has explored attention mechanisms defined directly on the sphere ( 12 ) . Such spherical Transformers have demonstrated strong performance in geometric tasks, including simulations of shallow water equations and spherical image segmentation ( 12 ) . By operating on spherical signals, these methods provide an efficient way to model angular dependencies and to construct operators with rotational equivariance, without explicitly relying on high-order irreducible tensor representations. To our knowledge, attention on the sphere has not yet been applied to atomistic modeling, providing an opportunity to extend these ideas to SE(3)-equivariant MLFFs, which we explore in this work. 3 Method Graph representation. A molecule is represented as a graph G=(V,E) , where V=\{1,\dots,N\} denotes the set of nodes corresponding to atoms, and E\subseteq V\times V denotes the set of edges encoding pairwise interactions, such as chemical bonds or neighborhood relations. Each node i\in V is associated with a feature vector \mathbf{h}_{i}\in\mathbb{R}^{d_{h}} , while each edge (i,j)\in E may be associated with an edge feature vector \mathbf{e}_{ij}\in\mathbb{R}^{d_{e}} . Edge features may encode bond types, interatomic distances, or other geometric descriptors. 3D molecular graphs. In addition to node and edge features, each node i\in V is associated with a three-dimensional coordinate \mathbf{x}_{i}\in\mathbb{R}^{3} , representing the atomic position in Euclidean space. Edges are typically defined either by spatial proximity, e.g., connecting nodes within a cutoff radius r>0 . Geometric symmetries. Molecular systems are equivariant to rigid motions in three-dimensional space. We consider the action of the special Euclidean group \mathrm{SE}(3) on the atomic coordinates, such that for any (R,\mathbf{t})\in\mathrm{SE}(3) , \mathbf{x}_{i}\mapsto R\mathbf{x}_{i}+\mathbf{t}. (1) Node and edge features are assumed to transform as scalars under \mathrm{SE}(3) , and therefore remain invariant. Models operating on 3D molecular graphs should preserve \mathrm{SE}(3) -equivariance for vectorial quantities (such as forces), with invariance enforced at the output level for scalar target properties, such as energies or molecular descriptors. Attention on the sphere. We base our method on the continuous-domain attention mechanism, which can be understood as a generalized kernel regression over query, key, and value signals. For inputs q,k:S^{2}\to\mathbb{R}^{d} and v:S^{2}\to\mathbb{R}^{e} , the spherical attention operator is defined as \mathrm{Attn}_{S^{2}}[q,k,v](x)\\ =\frac{\int_{S^{2}}\exp\big(q(x)^\top k(x') / \sqrt{d}\big)v(x^{\prime})\,d\mu(x^{\prime})}{\int_{S^{2}}\exp\big(q(x)^\top k(x') / \sqrt{d}\big)\,d\mu(x^{\prime})}, (2) where \mu denotes the invariant Haar measure on the sphere. This construction ensures that the attention is equivariant under 3D rotations R\in\mathrm{SO}(3) : \mathrm{Attn}_{S^{2}}[q,k,v](R^{-1}x)=\mathrm{Attn}_{S^{2}}[q^{\prime},k^{\prime},v^{\prime}](x). (3) To implement the operator numerically, 12 discretize the spherical domain using a set of grid points \{g_{k}\in S^{2}\}_{k=1}^{N_{\mathrm{grid}}} and associated quadrature weights \omega_{i} , such that \int_{S^{2}}u(x)\,d\mu(x)\approx\sum_{k=1}^{N_{\mathrm{grid}}}u(g_{k})\,\omega_{k}. (4) This yields a discrete attention mechanism that preserves approximate SO(3) equivariance, enabling consistent evaluation under 3D rotations. Attention SE(3)-equivariant approximation for molecular graphs. While the spherical attention operator is approximately equivariant under rotations SO(3), molecular coordinates also undergo translations in \mathbb{R}^{3} . To capture both directional and distance-dependent interactions, we associate with each atom i\in V a discrete spherical grid \{g_{k}\in S^{2}\}_{k=1}^{N_{\mathrm{grid}}} and define a scalar field f_{k}:S^{2}\to\mathbb{R} , discretized on the spherical grid, encoding the Euclidean distances to its neighboring atoms j\in\mathcal{N}(i) . Concretely, for each neighbor j , we set f_{jk}(g_{k})=\big\lVert\mathbf{x}_{j}-(\mathbf{x}_{i}+r_{jk}\,g_{k})\big\rVert (5) where r_{jk}=\lVert\mathbf{x}_{j}-\mathbf{x}_{i}\rVert and g_{k}\in S^{2}\text{ (unit vectors)} . This construction guarantees that the scalar field attains its minimum along the direction pointing to each neighboring atom. Unlike models such as SchNet ( 39 ) , which rely solely on interatomic distances, our spherical scalar field encodes both directional and distance information, enabling the network to distinguish geometrically distinct configurations. Spherical positional embeddings. Following the idea of the original work ( 12 ) , we associate each point of the spherical grid g_{k} with a learnable positional embedding p_{k} . Atom-centered queries, keys, and values are obtained via separate linear projections of the node features, the spherical scalar field, and the positional embeddings, which are then summed: \displaystyle\mathbf{q}_{i,j,k} \displaystyle=W_{h}\mathbf{h}_{i}+W_{f}f_{jk}(g_{k})+p_{k}, \displaystyle\mathbf{k}_{i,j,k} \displaystyle=W^{\prime}_{h}\mathbf{h}_{j}+W^{\prime}_{f}f_{jk}(g_{k})+p_{k}, \displaystyle\mathbf{v}_{i,j,k} \displaystyle=W^{\prime\prime}_{h}\mathbf{h}_{j}+W^{\prime\prime}_{f}f_{jk}(g_{k})+p_{k}. where W_{h},W^{\prime}_{h},W^{\prime\prime}_{h}\in\mathbb{R}^{d\times d_{h}} and W_{f},W^{\prime}_{f},W^{\prime\prime}_{f}\in\mathbb{R}^{d\times d_{f}} are learnable linear mappings. For simplicity, we choose the value dimension to coincide with the query/key dimension, i.e. e=d . This approach mirrors standard Transformer positional embeddings, allowing the attention to be aware of spherical directions while maintaining approximate rotation equivariance in the spherical domain and translation invariance through relative distances. Integration into SE(3)-equivariant message passing. The spherical attention module is integrated as a scalar interaction block within existing SE(3)-equivariant architectures. In particular, we apply it in parallel to the standard equivariant message passing layers of MACE ( 6 ) . The choice of MACE is motivated by its widespread adoption in the current state of the art of machine learning force fields, where its architecture serves as the backbone for several foundation models ( 5 ) . In standard SE(3)-equivariant models such as MACE, atom i updates its features by aggregating messages from neighbors j\in\mathcal{N}(i) : \tilde{m}_{i,j}^{(J)}=\sum_{\ell_{1},\ell_{2}}(h_{i}^{(\ell_{1})}\otimes h_{j}^{(\ell_{2})})\cdot W^{(\ell_{1},\ell_{2}\to J)}(r_{ij})\otimes Y^{(\ell)}(\hat{r}_{ij}), (6) where W^{(\ell_{1},\ell_{2}\to J)} combines radial functions, spherical harmonics, and Clebsch–Gordan coefficients. At each interaction layer, the backbone computes equivariant messages \tilde{m}_{ij,J}^{(t)} using tensor products of irreducible representations. The gating coefficient \alpha_{ij} is obtained from the output of the spherical attention operator by applying a readout over channels and spherical grid points: \displaystyle\alpha_{ij} \displaystyle= (7) \displaystyle\sigma\!\Big(W_{\mathrm{gate}}\;\mathrm{Pool}_{k,c}\big[\mathrm{Attn}_{S^{2}}[\mathbf{q}_{i,j,k},\mathbf{k}_{i,j,k},\mathbf{v}_{i,j,k}](g_{k})\big]\Big) where \mathrm{Pool}_{k,c} indicates a rotation-invariant pooling over spherical directions k and attention feature channels c . The final message update is then given by m_{i,J}^{(t)}=\sum_{j\in\mathcal{N}(i)}\alpha_{ij}\,\tilde{m}_{ij,J}^{(t)}. (8) Since \alpha_{ij} is a scalar, equivariance is preserved only if \alpha_{ij} is invariant with respect to rotations and translations. Due to the discrete approximation of the continuous attention mechanism, the resulting operation is only approximately SE(3)-equivariant. This formulation enables direction-dependent weighting of local atomic environments while remaining fully compatible with existing equivariant message passing schemes. When \alpha_{ij}=1 , the formulation reduces exactly to the original MACE update, highlighting the plug-and-play nature of the proposed module. Thus, by combining the scalar spherical attention module with the MACE backbone, we obtain an enhanced approximately SE(3)-equivariant message passing architecture, which we refer to as MACE-MARA Table 1 : Performance on the rMD17 dataset. Results are reported in terms of mean absolute error (MAE). Energies (E) and forces (F) are measured in kcal/mol and kcal/mol/Å, respectively. The best results are highlighted in bold, while the second-best results are underlined. Results of the models are taken from 47 . MACE Molecule UNiTE NequIP Allegro BOTNet VisNet QuinNet Baseline MARA \Delta (%) Aspirin E 0.055 0.0530 0.0507 0.0530 0.0445 0.0486 0.0507 0.0419 -17.36 F 0.175 0.1891 0.1684 0.1960 0.1520 0.1429 0.1522 0.1413 -7.15 Azobenzene E 0.025 0.0161 0.0277 0.0161 0.0156 0.0394 0.0277 0.0185 -33.21 F 0.097 0.0669 0.0600 0.0761 0.0585 0.0513 0.0692 0.0653 -5.59 Benzene E 0.002 0.0009 0.0069 0.0007 0.0007 0.0096 0.0092 0.0048 -47.83 F 0.017 0.0069 0.0046 0.0069 0.0056 0.0047 0.0069 0.0064 -7.25 Ethanol E 0.014 0.0092 0.0092 0.0092 0.0078 0.0096 0.0032 0.0026 -18.75 F 0.085 0.0646 0.0484 0.0738 0.0522 0.0516 0.0484 0.0459 -5.17 Malonaldehyde E 0.025 0.0184 0.0138 0.0185 0.0132 0.0168 0.0185 0.0091 -50.81 F 0.152 0.1176 0.0830 0.1338 0.0893 0.0875 0.0946 0.0896 -5.29 Naphthalene E 0.011 0.0046 0.0046 0.0046 0.0057 0.0174 0.0115 0.0142 +23.48 F 0.060 0.0300 0.0208 0.0415 0.0291 0.0242 0.0369 0.0357 -3.25 Paracetamol E 0.044 0.0323 0.0346 0.0300 0.0258 0.0362 0.0300 0.0264 -12.00 F 0.164 0.1361 0.1130 0.1338 0.1029 0.0979 0.1107 0.1054 -4.76 Salicylicacid E 0.017 0.0161 0.0208 0.0285 0.0161 0.0330 0.0208 0.0248 +19.23 F 0.088 0.0922 0.0669 0.0992 0.0795 0.0771 0.0715 0.0645 -9.79 Toluene E 0.010 0.0069 0.0092 0.0069 0.0059 0.0139 0.0115 0.0158 +37.39 F 0.058 0.0369 0.0415 0.0438 0.0264 0.0244 0.0350 0.0325 -7.14 Uracil E 0.013 0.0092 0.0138 0.0092 0.0069 0.0149 0.0115 0.0146 +26.96 F 0.088 0.0669 0.0415 0.0738 0.0495 0.0487 0.0484 0.0460 -4.96 Average E 0.022 0.0175 0.0191 0.0177 0.0142 0.0239 0.0195 0.0173 -11.28 F 0.098 0.0807 0.0648 0.0879 0.0645 0.0610 0.0674 0.0633 -6.06 Table 2 : Tail-sensitive force errors (MAE in kcal/mol/Å) on the rMD17 benchmark, highlighting model robustness for molecular dynamics applications. We report Q 95 , Q 99 , and MAX for both MACE baseline and MACE-MARA across all molecules, including the relative differences ( \Delta ) expressed as percentages. Model Metric Aspirin Azobenz. Benzene Ethanol Malonal. Naphtha. Paracet. Sal. acid Toulene Uracil Baseline Q 95 0.4739 0.2327 0.0240 0.1917 0.3454 0.1182 0.3556 0.2314 0.1157 0.1648 Q 99 0.5330 0.2661 0.0274 0.2347 0.3978 0.1368 0.4027 0.2657 0.1314 0.1890 MAX 1.2985 0.6496 0.0988 1.2049 1.5461 0.2885 1.5136 1.1571 0.3710 0.7688 MARA Q 95 0.4393 0.2211 0.0224 0.1805 0.3290 0.1154 0.3341 0.2122 0.1087 0.1593 Q 99 0.5028 0.2526 0.0260 0.2108 0.3867 0.1312 0.3762 0.2397 0.1246 0.1859 MAX 1.0071 0.5829 0.0808 0.8897 0.9987 0.3102 1.2903 1.0989 0.3497 0.6019 \Delta(\%) Q 95 -7.31 -4.99 -6.67 -5.84 -4.73 -2.37 -6.12 -8.30 -6.11 -3.31 Q 99 -5.67 -5.09 -5.11 -10.21 -2.79 -4.12 -6.57 -9.76 -5.17 -1.64 MAX -22.44 -10.27 -18.18 -26.16 -35.42 +7.52 -14.76 -5.05 -5.67 -21.73 Figure 3 : Violin plots of force error distributions for rMD17 molecules. Blue violins represent the MACE baseline, and orange represent MACE-MARA. Each molecule shows separate distributions for the two models, illustrating the overall error spread. 4 Experiments Dataset We evaluate the proposed method on two established benchmarks for machine learning force fields: revised MD17 (rMD17) ( 21 ) and MD22 ( 19 ) . The rMD17 dataset is a reimplementation of MD17 ( 18 ) , which resolves numerical inconsistencies in the original benchmark with higher accuracy. In contrast, MD22 includes larger and more flexible molecules, resulting in more complex potential energy surfaces. Both datasets consist of ab initio molecular dynamics trajectories of organic molecules and provide standardized benchmarks for the development and evaluation of machine learning models of molecular potential energy surfaces. Model performance is reported in terms of mean absolute error (MAE) for both energies (kcal/mol) and forces (kcal/mol/Å). Training We train the MACE baseline in the high-dimensional configuration and following exactly the training protocol described in the original work ( 4 ; 6 ) . We retrain the MACE-MARA in the same deterministic environment and identical settings, ensuring that any observed performance differences are solely attributable to the proposed module. The attention module is implemented as a sinusoidal gating mechanism to modulate the contribution of neighboring atoms based on their positions. We employ the same hyperparameters across all molecules: a 4\times 8 grid corresponding to 32 equiangular sampling points, single-head attention, and no attention dropout. All experiments are implemented in PyTorch and trained on an NVIDIA H100 GPU. 4.1 Results Table 1 shows the MAEs on the rMD17 benchmark, comparing our MACE-MARA to several state-of-the-art models, including NequIP ( 7 ) , MACE ( 6 ) , Allegro ( 35 ) , BOTNet ( 4 ) , UNiTE ( 36 ) , QuinNet ( 47 ) , and VisNet ( 46 ) . The introduction of MARA systematically improves the MACE in force (F) prediction and in the majority of energy (E) prediction tasks (6 out of 10 molecules). Energy MAE reductions of up to 51% are observed, with an average reduction of about 11%, while force errors are consistently reduced by 3-10%, with an average improvement of about 6%. These improvements allow MACE-MARA to achieve the lowest MAE for forces for 3 out of 10 molecules, compared to zero for the baseline model. For energy predictions, MARA allows MACE to achieve the first place for 3 out of 10 molecules, whereas the baseline only reaches a single second-place ranking. These results are obtained on a wide variety of chemical systems, ranging from small aromatic molecules to flexible structures with hydrogen bonds. Although no model dominates both tasks, MACE enhanced with MARA ranks second on average in energy and force predictions, outperforming the MACE baseline and matching the performance of the latest state-of-the-art models. Table 3 : Ablation study on the effect of the angular momentum order ( \ell ) in MACE-MARA. Energy (E, in kcal/mol) and force (F, in kcal/mol/Å) mean absolute errors are reported for different \ell values across selected molecules, comparing the baseline MACE and the MACE-MARA. Relative differences ( \Delta ) indicate the impact of the module at each order. \ell =1 \ell =2 \ell =3 Molecule Atoms MACE MACE-MARA \Delta (%) MACE MACE-MARA \Delta (%) MACE MACE-MARA \Delta (%) Ethanol 9 E 0.0061 0.0045 -26.23 0.0031 0.0037 +19.35 0.0032 0.0026 -18.75 F 0.0517 0.0474 -8.32 0.0504 0.0458 -9.13 0.0484 0.0459 -5.17 Paracetamol 20 E 0.0916 0.0616 -32.75 0.0347 0.0284 -18.16 0.0300 0.0265 -11.67 F 0.1164 0.1134 -2.58 0.1114 0.1072 -3.71 0.1107 0.1054 -4.77 Ac-Ala3-NHMe 42 E 0.0782 0.0822 +5.13 0.0871 0.0821 -5.74 0.0883 0.0803 -9.02 F 0.1322 0.1319 -0.23 0.1219 0.1197 -1.81 0.1230 0.1213 -1.30 Stachyose 87 E 0.1223 0.1223 0.00 0.1044 0.1154 +10.54 0.1325 0.1074 -18.93 F 0.1791 0.1724 -3.74 0.1635 0.1534 -6.16 0.1634 0.1524 -6.77 4.2 Tail-risk and error distribution analysis While the MAE is the standard metric for evaluating machine learning force fields, previous studies have shown that it does not fully capture model behavior in molecular dynamics settings ( 26 ; 22 ) . In these contexts, beyond average force accuracy, controlling the distribution of errors is crucial, since the accumulation of rare but large errors can drive the system toward unphysical configurations and compromise simulation stability ( 48 ; 34 ) . To investigate this, we analyze error distributions both qualitatively and quantitatively, using tail-sensitive metrics: the 95th percentile error (Q 95 ), the 99th percentile error (Q 99 ), and the maximum observed error (MAX). Table 2 reports these metrics for MACE-MARA and the MACE baseline across all molecules in the rMD17 dataset. The introduction of MARA consistently improves Q 95 and Q 99 across all systems, with average reductions of 5.58% and 5.51%, respectively, indicating a systematic mitigation of high-error events. Improvements are also observed for the maximum error in most molecules, with an average reduction of 15.12%. A single exception occurs for naphthalene, where the maximum error increases by 7.52%; however, this effect is confined to the extreme tail and does not affect Q 95 or Q 99 , which remain improved. Overall, these results suggest that MARA reduces both tail and worst-case errors, complementing the improvements in mean accuracy. This reduction in extreme errors lowers the risk that rare, high-magnitude deviations adversely impact molecular dynamics simulations, thereby enhancing model robustness in practical applications. To assess the practical impact of MARA, we conduct a molecular dynamics (MD) simulation test (details in Appendix E ). 4.3 Ablations We conduct ablation studies to analyze the impact of key hyperparameters of MACE-MARA on performance. All experiments are performed in a deterministic setting, keeping all conditions fixed except for the parameter under investigation. We consider two orthogonal experiments. Effect of the harmonic order \ell First, we vary the harmonic order \ell , which determines the angular resolution of the model. Larger values of \ell enable the representation of finer geometric details at the cost of increased computational complexity, while smaller values reduce angular resolution. Table 3 reports energy (E) and force (F) mean absolute errors for selected molecules, comparing the MACE baseline with MACE-MARA. Across the rMD17 and MD22 datasets, MARA, using a 4\times 8 grid, consistently improves force predictions and generally enhances energy predictions. Larger and more flexible molecules tend to benefit more from higher angular resolution, whereas lower \ell values are sufficient for smaller and more rigid molecules. These trends indicate that, by varying \ell , the module continues to effectively capture angular dependencies across molecules of different sizes and complexities, providing a robust and scalable improvement over the baseline. Table 4 : Ablation study on the effect of grid resolution for MACE-MARA ( \ell=2 ) on Paracetamol. Energy (E, kcal/mol) and force (F, kcal/mol/Å) MAEs are reported, along with inference time per batch (ms). Percentage differences ( \Delta\% ) are relative to the baseline Paracetamol \ell=2 model. Grid Size 2\times 2 2\times 4 4\times 4 4\times 8 8\times 8 N. Points 4 8 16 32 64 Energy 0.0332 0.0411 0.0379 0.0284 0.0300 \Delta Energy (%) -4.33 +18.44 +9.22 -18.16 -13.54 Force 0.1089 0.1057 0.1075 0.1072 0.1045 \Delta Force (%) -2.24 -5.13 -3.43 -3.73 -6.21 Time (ms) 111.67 112.74 114.15 117.97 128.18 \Delta Time (%) +9.37 +10.42 +11.80 +15.54 +25.54 (a) Attention received by the H_{1} atom (b) Attention Map between C_{3} and H_{3} Figure 4 : Interpretability of MARA. (a) Radial slice of the attention map showing attention from heavy atoms ( O_{1} , O_{2} , C_{1} , C_{2} , C_{3} ) to hydrogen ( H_{1} ) during intramolecular proton transfer. (b) Angular slice of the attention map showing attention between C_{3} and H_{3} as H_{3} is rotated around C_{3} at a fixed distance of 1,\text{\AA} Effect of grid resolution Second, we fix \ell=2 and vary the grid resolution for Paracetamol (Table 4 ). Percentage differences are shown relative to the baseline Paracetamol \ell=2 model (Table 3 ). Increasing the number of grid points improves both energy and force predictions, with the 4\times 8 and 8\times 8 grids achieving the largest gains. As expected, finer grids also increase computational cost: inference wall-clock time per batch rises by +9.4% for a 2\times 2 grid and +25% for 8\times 8 relative to the baseline, measured on an NVIDIA RTX 4090, with an average increase of 14.5%. These results highlight the trade-off between accuracy and efficiency and confirm that MARA enhances performance across grid configurations. Taken together, these ablation experiments demonstrate that MARA provides robust improvements across both angular and radial resolutions, enhancing force and energy predictions consistently while balancing accuracy and computational costs depending on molecular size and complexity. 4.4 Interpretability of attention maps In this section, we analyze the model through attention map analysis, using malonaldehyde as a case study. Two experiments are conducted to explore the effect of MARA’s attention on atomic movement. In the first experiment, we study the intramolecular proton transfer in malonaldehyde, a process involving one hydrogen atom and two oxygen atoms ( 38 ) . This transfer occurs through a proton hopping mechanism that leverages hydrogen bonds and quantum tunneling phenomena, with a timescale on the order of femtoseconds ( 49 ) . We simulate the process by moving the hydrogen atom H_{1} between the two oxygen atoms in 100 steps, recording the attention that the hydrogen atom receives from the surrounding oxygen ( O_{1} , O_{2} ) and carbon ( C_{1} , C_{2} , C_{3} ) atoms. The results, shown in Figure 4(a) , reveal that the radial slice of the attention map is symmetric around the saddle point, with carbon atoms exerting more attention on hydrogen compared to the oxygen atoms. Additionally, the intensity of attention varies as a function of the distance between the atoms. In the second experiment, we examine attention in relation to angular geometry. The distance between C_{3} and H_{3} is fixed at 1\AA , and the hydrogen atom is rotated around carbon C_{3} , forming a hemisphere. Attention between the two atoms is monitored at each rotation angle. The angular slices of the attention map, shown in Figure 4(b) , reveal that attention intensity is maximized at a specific angle between the two atoms and varies significantly with the angle. This confirms that attention depends not only on distance but also on angular geometry, consistent with findings from the chemical literature ( 33 ; 24 ) . These results suggest that MARA, in addition to improving and stabilizing the performance of SE(3)-equivariant models, could be valuable in computational chemistry for analyzing complex angular and radial patterns in molecular interactions. 5 Conclusion In this work, we introduce Modular Angular-Radial Attention (MARA), a continuous spherical attention mechanism that provides an efficient approximation to SE(3)-equivariant interactions in MLFF models. MARA operates directly on the angular and radial coordinates of atomic neighbors, enabling flexible and modular geometric weighting of local interactions. Its plug-and-play integration, as demonstrated for MACE, requires no modifications to the underlying model, making it suitable for other SE(3)-equivariant architectures. The method consistently improves accuracy and robustness in the prediction of forces, while also reducing high-error cases. These results suggest that MARA is an effective and generalizable operator capable of enhancing the expressiveness of atomistic models, with potential impact on the stability and reliability of atomistic simulations. Limitations and future work, MARA provides an efficient approximation to SE(3)-equivariant interactions via spherical discretization and local neighborhood cutoffs. This introduces tunable parameters such as grid resolution, enabling a controllable trade-off between accuracy and computational cost depending on the complexity of the system. Our evaluation focuses on molecular benchmarks using a single host architecture as the primary backbone. While we demonstrate the portability of MARA by integrating it into other SE(3)-equivariant models (see Appendix F ), broader validation on diverse chemical systems and different architectural paradigms remains future work. Impact Statement This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here. Appendix A Mathematical Background In this section, we provide the mathematical background for the constructions used in the main text. First, we discuss the basic properties of the two-dimensional sphere S^{2} and the special orthogonal group SO(3) , which governs rotations in three-dimensional space. We then describe the special Euclidean group SE(3) , which represents the motions of rigid bodies, and finally introduce the grid field used in our algorithm along with its key properties, including scale linearity and invariance under rigid transformations. A.1 Rotations on the 2-Sphere We discuss some fundamental notions concerning the two-dimensional sphere S^{2} and the rotation group SO(3) . To define functions on the sphere, we require coordinates. A standard choice is to parametrize points \mathbf{p}\in S^{2} using the colatitude \theta\in[0,\pi] and the longitude \varphi\in[0,2\pi] . In these coordinates, a unit vector \mathbf{p} can be expressed as \mathbf{p}=(\cos(\varphi)\sin(\theta),\sin(\varphi)\sin(\theta),\cos(\theta))^{T}. (9) To discuss symmetries of the sphere, we consider the special orthogonal group SO(3) , which consists of all proper rotations in \mathbb{R}^{3} . Elements of SO(3) are 3\times 3 matrices with determinant one, whose inverses coincide with their transposes. Any rotation R\in SO(3) can be written in terms of the Eulerian angles \varphi\in[0,2\pi],\theta\in[0,\pi],\psi\in[0,2\pi] , such that R=R_{z}(\varphi)R_{y}(\theta)R_{z}(\psi), (10) where R_{z} and R_{y} are rotations around the z- and y-axes: R_{z}(\varphi)=\matrixquantity[\lx@physics@matrix\cos\varphi& - \sin\varphi& 0 \\ \sin\varphi& \cos\varphi& 0 \\ 0 & 0 & 1\endlx@physics@matrix],\quad R_{y}(\varphi)=\matrixquantity[\lx@physics@matrix\cos\varphi& 0 & \sin\varphi\\ 0 & 1 & 0 \\ -\sin\varphi& 0 & \cos\varphi\endlx@physics@matrix]. (11) Unlike translations in the plane, rotations generally do not commute, making SO(3) non-abelian. Rotations in SO(3) can reach any point on the sphere. In particular, applying a rotation to the north pole n=(0,0,1)^{T} yields Rn=R_{z}(\varphi)R_{y}(\theta)R_{z}(\psi)n=(\cos(\varphi)\sin(\theta),\sin(\varphi)\sin(\theta),\cos(\theta))^{T}. (12) We observe that the last rotation angle \psi is dropped, illustrating that S^{2} can be obtained as the quotient of SO(3) and SO(2) . A.2 Rigid motions and the special euclidean group The special euclidean group SE(3) describes all rigid body motions in three-dimensional space, combining rotations and translations. Each element of SE(3) can be represented as a pair (R,\mathbf{t}) , with R\in SO(3) and \mathbf{t}\in\mathbb{R}^{3} , or equivalently as a 4\times 4 homogeneous transformation matrix: T=\begin{bmatrix}R&\mathbf{t}\\ \mathbf{0}^{\mathrm{T}}&1\end{bmatrix}. (13) Composition of two rigid motions corresponds to matrix multiplication: T_{1}T_{2}=\begin{bmatrix}R_{1}R_{2}&R_{1}\mathbf{t}_{2}+\mathbf{t}_{1}\\ \mathbf{0}^{\mathrm{T}}&1\end{bmatrix}. (14) Unlike SO(3) , SE(3) also includes translations. It is a six-dimensional, non-abelian Lie group: three degrees of freedom correspond to rotation, and three to translation. The subgroup of pure translations, \mathbb{R}^{3}\cong\{(\mathbb{I}_{3},\mathbf{t})\mid\mathbf{t}\in\mathbb{R}^{3}\}, (15) is normal in SE(3) , and the group can be expressed as a semi-direct product: SE(3)\cong\mathbb{R}^{3}\rtimes SO(3). (16) Rigid motions in SE(3) are fundamental in robotics, computer vision, and physics, as they describe the complete spatial displacement of a body in \mathbb{R}^{3} . As a smooth Lie group, SE(3) generalizes the rotational symmetries of SO(3) to full rigid body transformations. A.3 Properties of the grid field Consider two points \mathbf{p}_{S},\mathbf{p}_{T}\in\mathbb{R}^{3} and define the vector connecting them: \mathbf{v}=\mathbf{p}_{S}-\mathbf{p}_{T},\quad d=\|\mathbf{v}\|,\quad\hat{\mathbf{u}}=\frac{\mathbf{v}}{d}\in S^{2}. (17) Let \{g_{k}\in\mathbb{R}^{3}:\|g_{k}\|=1,\,k=1,\dots,N\} (18) denote a set of points on the unit sphere S^{2} . We define a scaled sphere of radius d centered at \mathbf{p}_{S} : \mathbf{x}_{k}=\mathbf{p}_{S}+d\,g_{k}. (19) The distance from \mathbf{x}_{k} to \mathbf{p}_{T} is \delta_{k}=\|\mathbf{x}_{k}-\mathbf{p}_{T}\|=\|(\mathbf{p}_{S}-\mathbf{p}_{T})+dg_{k}\|=\|\mathbf{v}+dg_{k}\|. (20) Dividing by d and using the unit vector \hat{\mathbf{u}}=\frac{\mathbf{v}}{d} gives a normalized distance: \frac{\delta_{k}}{d}=\|\hat{\mathbf{u}}+g_{k}\|. (21) Expanding the norm yields \delta_{k}=d\,\|\hat{\mathbf{u}}+g_{k}\|=d\sqrt{(\hat{\mathbf{u}}+g_{k})\cdot(\hat{\mathbf{u}}+g_{k})}=d\sqrt{2+2(\hat{\mathbf{u}}\cdot g_{k})}. (22) Let \theta_{k} denote the angle between \hat{\mathbf{u}} and g_{k} , so that \hat{\mathbf{u}}\cdot g_{k}=\cos\theta_{k} . Then \delta_{k}=d\sqrt{2(1+\cos\theta_{k})}. (23) In particular, the extreme cases are \displaystyle\begin{cases}\cos\theta_{k}=1&\implies\delta_{k}=2d\\ \cos\theta_{k}=-1&\implies\delta_{k}=0\end{cases} (24) This shows that \delta_{k} is linearly proportional to d for any \theta_{k} . Under a rigid transformation \mathbf{p}^{\prime}_{S}=R\mathbf{p}_{S}+t,\quad\mathbf{p}^{\prime}_{T}=R\mathbf{p}_{T}+t,\quad R\in SO(3),\,t\in\mathbb{R}^{3}, (25) the connecting vector transforms as \mathbf{v}^{\prime}=\mathbf{p}^{\prime}_{S}-\mathbf{p}^{\prime}_{T}=R\mathbf{v}. (26) Simultaneously, the unit sphere points are rotated: g^{\prime}_{k}=Rg_{k} . Therefore, the distances \delta_{k} are invariant under rigid transformations: \delta^{\prime}_{k}=\|\mathbf{v}^{\prime}+dg^{\prime}_{k}\|=\|R(\mathbf{v}+dg_{k})\|=\|\mathbf{v}+dg_{k}\|=\delta_{k}. (27) Thus, the field defined by \delta_{k} is linearly sensitive to the scale d and invariant under rigid body transformations. Appendix B Architecture Figure 5 : Module operating diagram For the implementation of our module, Python 3.10 with support for CUDA 12.8 and Torch 2.8.0 is used. For the spherical attention, the original implementation of 12 in the torch-harmonics 0.8.0 package, available online , is used ( 11 ) . The version of ACE/MACE suite ( 6 ; 4 ) we use is the one in which the module is introduced in its original version . In addition, the cuEquivariance library has been used, which allows optimisations for CUDA on Torch. The module is used with a 4\times 8 grid, with the exception of Table 4 , for which we have modified the resolution to verify its impact. In MACE, the module is introduced in the RealAgnosticInteractionBlock and RealAgnosticResidualInteractionBlock blocks, as shown in Algorithm 1 . The module returns the message already enriched by attention and separately the applied weights. Our module is publicly available at https://github.com/monsieursolver/MARA for further details and implementations. The model’s functioning diagram is shown in the Figure 5 . Algorithm 1 Insertion of the module into the MACE blocks 1: m_{ji}\leftarrow\text{self.conv}_{tp}(node_{feats}[edge_{index}[0]],\;edge_{attrs},\;tp_{weights}) 2: m_{ji},\;att\leftarrow\text{self.spherical\_attention}(m_{ji},\;positions,\;edge_{index},\;edge_{feats}) 3: message\leftarrow scatter\_sum(src=m_{ji},\;index=edge_{index}[1],\;dim=0,\;dim\_size=node_{feats}.shape[0]) The model has been trained primarily on an NVIDIA H100, maintaining the same parameters used in the original paper, which uses an NVIDIA A100. Inference tests, on the other hand, have been performed using an RTX 4090. Appendix C Learnable positional encoding We conduct a set new of ablation experiments to assess the contribution of learnable projections and positional encoding to the prediction of energies (E) and forces (F). We select four molecules with substantially different system sizes, fix \ell=2 , and use a 4\times 8 grid. For each molecule, we retrain the MACE-MARA under four configurations: (i) the full model, (ii) without positional encoding, (iii) with fixed (non-learnable) projections, and (iv) without positional encoding and with fixed projections. Table 5 : Ablation study on the effect of positional encoding and learnable projections for energy (E, MAE kcal/mol)and force (F, MAE kcal/mol/Å) prediction. We compare the MACE-MARA with variants that remove positional encoding, disable learning of the projections, or apply both modifications. Lower values indicate better performance. Learnable Not Positional Ethanol Paracetamol Ac-Ala3-NHMe Stachyose Learnable Encoding ✓ ✓ E 0.0037 0.0284 0.0821 0.1154 F 0.0458 0.1072 0.1197 0.1534 ✓ ✓ E 0.0036 0.0292 0.0745 0.1242 F 0.0487 0.1084 0.1161 0.1564 ✓ E 0.0028 0.0292 0.0728 0.1594 F 0.0486 0.1081 0.1152 0.1557 ✓ E 0.0036 0.0307 0.0711 0.1132 F 0.0484 0.1125 0.1157 0.1555 The results, shown in Table 5 , show that positional encoding and learnable projections generally improve force prediction performance, achieving lower mean absolute error on three of the four molecules considered. In contrast, for energy prediction, only one molecule achieves its minimum error in the same configuration. The best overall energy performance (two out of four molecules) is achieved with the opposite setting, i.e., without positional encoding and without learnable projections. Finally, these results indicate that retaining positional encoding while disabling learning of the projections is not beneficial: this configuration does not achieve the best performance in any of the eight evaluated metrics. Appendix D Convergence study Table 6 : Test-set performance on MD22 DHA and AT–AT DNA base pairs for different training regimes. We compare MACE baseline and MACE-MARA with 100 and 10,000 samples, reporting errors on energies (E, MAE in kcal/mol) and forces (F, MAE in kcal/mol/Å). Molecules Training samples = 100 Training samples = 10K Baseline MARA \Delta (%) Baseline MARA \Delta (%) DHA E 0.2685 0.2674 -0.41 0.1212 0.1204 -0.66 F 0.4924 0.4796 -2.60 0.1245 0.1184 -4.90 AT-AT E 0.1324 0.1511 +14.12 0.1482 0.1480 -0.13 F 0.1759 0.1783 +1.36 0.1274 0.1209 -5.10 We further analyze two additional molecules from the MD22 dataset, specifically Docosahexaenoic Acid (DHA), consisting of 56 atoms, and AT–AT DNA base pairs, consisting of 60 atoms, in order to evaluate the performance of our model under conditions of data scarcity and abundance. The dataset comprises 69,744 and 19,999 molecular dynamics (MD) trajectories, respectively. From each set, we randomly sample 100 and 10,000 configurations for the training set, keeping 1,000 examples for validation and using all remaining configurations as the test set. As shown in Table 6 , performance – particularly in terms of force prediction – differs significantly between training with 100 examples and training with 10,000 examples. This behavior is expected: with a limited number of samples, the model has limited ability to learn less frequent configurations, leading to less accurate predictions. Furthermore, both molecules considered are highly flexible and have a large conformational space, making the problem particularly challenging in a low-data regime. The results show that, with few training examples, the proposed module does not provide significant benefits and, in one case, even worsens the prediction of forces compared to the baseline model. On the other hand, when the number of samples is sufficiently high, the attention mechanism is particularly effective, improving performance in both tasks: on average, there is an improvement of about 5% in forces and about 0.4% in energies, the latter being considered a marginal gain. This pattern is further supported by Table 7 , which analyzes the distributions of Q {95} , Q {99} , and MAX. Table 7 : Test-set performance on MD22 DHA and AT–AT DNA base pairs for different training regimes. We compare MACE baseline and MACE-MARA with 100 and 10,000 samples, reporting errors Q 95 , Q 99 and max on forces (F, MAE in kcal/mol/Å). Molecules Training samples = 100 Training samples = 10K Baseline MARA \Delta (%) Baseline MARA \Delta (%) DHA Q 95 1.5110 1.4893 -1.44 0.3699 0.3511 -5.11 Q 99 2.5615 2.5436 -0.70 0.5936 0.5655 -4.73 MAX 42.857 44.344 +3.47 5.2803 5.8291 +10.41 AT-AT Q 95 0.5385 0.5504 +2.21 0.3617 0.3423 -5.37 Q 99 0.9075 0.9250 +1.93 0.5483 0.5177 -5.59 MAX 18.937 18.678 -1.36 6.1684 5.7134 -7.39 D.1 Convergence speed To verify that attention provides a real benefit to the training process, we analyze the model’s performance at each epoch on the validation set of 1000 examples, displaying both the loss and the corresponding RMSE on both forces and energies. In both configurations, the models are trained for 100k gradient steps, allowing them to reach a condition of near convergence. To quantify the benefit of introducing MARA, we also display the relative ratio between the MACE-Baseline model and MACE-MARA, defined as: \frac{\text{MACE-Baseline}-\text{MACE-MARA }}{\text{MACE-Baseline}}\cdot 100. In this case, positive values indicate that MACE-MARA performs better than MACE-Baseline, while negative values indicate that MACE-Baseline is superior, as it has an error closer to zero. Figure 6 : Performance of models on the validation set on DHA with 100 samples. The subplots show, from left to right, Loss, Energy, and Strength; from top to bottom, Baseline, MARA, and the percentage ratio. Figure 7 : Performance of models on the validation set on DHA with 10,000 samples. The subplots show, from left to right, Loss, Energy, and Strength; from top to bottom, Baseline, MARA, and the percentage ratio. Figures 6 and 7 show that, for Docosahexaenoic Acid (DHA), the validation ratio is positive in both configurations, leading to an advantage in the testing phase. Notably, as training examples increase, MARA maintains a positive ratio, especially in force prediction, benefiting from early epochs and progressively amplifying the advantage. Figure 8 : Performance of models on the validation set on AT-AT with 100 samples. The subplots show, from left to right, Loss, Energy, and Strength; from top to bottom, Baseline, MARA, and the percentage ratio. Figure 9 : Performance of models on the validation set on AT-AT with 10,000 samples. The subplots show, from left to right, Loss, Energy, and Strength; from top to bottom, Baseline, MARA, and the percentage ratio. Figures 8 and 9 show that, for AT–AT pairs, MACE-MARA yields worse force predictions than the baseline when trained on 100 samples, while outperforming it in the 10k-sample regime. In both settings, the module initially underperforms the baseline; however, with 100 samples, despite a substantial improvement in energy prediction during training, the performance ratio never becomes positive. In contrast, with 10,000 samples, training enables MACE-MARA to match the baseline performance on energies. Regarding forces, an opposite trend is observed. MACE-MARA starts with a positive ratio, which decreases sharply in the 100-sample regime, whereas it remains more stable when trained on 10,000 samples. This behavior results in degraded test-set performance in the low-data regime and a clear overall improvement when sufficient training data are available. Appendix E Performance analysis during molecular dynamics To verify that the introduced module remains useful for molecular dynamics (MD) prediction and does not compromise the stability of the base model, we perform a short MD simulation using the Atomic Simulation Environment (ASE) framework ( 2 ; 30 ) . The test system is the capped peptide Ac-Ala 3 -NHMe. Initial velocities are sampled from the Maxwell–Boltzmann distribution at 500 K, and the simulation runs in the NVT ensemble using a Langevin thermostat with a friction coefficient of 0.1. The integration time step is 1 fs, and the trajectory is propagated for 10 000 fs (10 ps). In Figure 10(a) , we compare the radial distribution function (RDF) computed from the MD22 reference dataset with the RDF obtained from the 10 000 configurations generated during the simulation, for both MACE and MACE-MARA. In Figure 10(b) , we report the evolution of the force magnitude acting on the atoms: at each time step we compute the mean, the 95th percentile, and the maximum norm of the force. Since per-step measurements are highly noisy, we apply a 500 fs moving average window to highlight the overall trend. Both models reproduce an RDF that is consistent with the reference RDF (MD22), indicating that the introduced module does not significantly distort the structural distribution. From Figure 10(b) , the force trajectories of the two models largely overlap and no divergence or numerical instability is observed. Moreover, fluctuations in MACE-MARA are slightly reduced compared to the baseline MACE model, suggesting that the attention mechanism may act as an adaptive filter, in agreement with observations reported in previous works ( 45 ; 14 ) . Finally, the computational overhead introduced by the module is small: on an NVIDIA H100 GPU, the simulation with MACE ( \ell=2 , grid resolution 4\times 8 ) takes 940 s, while MACE-MARA requires 1007 s, corresponding to an overhead of approximately 7.1% (about half of the cost reported in Table 4 ). This additional validation suggests that the proposed spherical attention mechanism, when integrated into a state-of-the-art SE(3)-equivariant model such as MACE, still allows for realistic MD simulations. (a) Radial distribution function (RDF) computed from the MD22 reference dataset, on MACE and MARA computed on MD simulations (b) Molecular dynamics on Ac-Ala 3 -NHMe Figure 10 : MD validation. (a) RDF comparison of MACE and MACE-MARA with the MD22 reference. (b) Force magnitude statistics (mean, 95th percentile, maximum) during a 10 ps MD run on Ac-Ala 3 -NHMe (1 fs timestep, NVT Langevin at 500 K, moving average window 500 fs). Appendix F Plug and play in other models As noted in the main text, our model is plug-and-play and can be integrated into SE(3)-equivariant architectures without significant structural modifications, enabling rapid adoption. In the main text, we employ MACE ( 6 ) , a body-ordered tensor network widely used in molecular dynamics. However, this choice does not restrict the applicability of MARA to MACE-based models. In this appendix, we demonstrate the integration of MARA into other SE(3)-equivariant frameworks. Specifically, we implement MARA within NequIP ( 7 ) , which is a message-passing architecture operating on irreducible representations. We use the original NequIP framework (https://github.com/mir-group/nequip) and report results on the aspirin molecule from the MD17 dataset ( 18 ) . Finally, we apply MARA to the attention-based equivariant model VisNET ( 46 ) , evaluating performance on the aspirin molecule from the MD17 dataset, further demonstrating the generality of the proposed approach across diverse equivariant architectures. F.1 NequIP As done in MACE, MARA is inserted into the InteractionBlock. For the test, we set the cutoff radius to 5.0~\text{\AA} . The NequIPGNNModel is configured with a Bessel encoding of 8 basis functions, which are not trainable, and a polynomial cutoff exponent of 6. The convolutional network comprises 3 interaction layers, with \ell_{\max}=1 , parity enabled, and 32 features per node. The radial network consists of 2 layers with 64 hidden units each. Dataset statistics are used to normalize the model, including the average number of neighbors, per-type energy scales based on force RMS, and per-type energy shifts based on per-atom energy mean. Table 8 : Analyzing the performance of NequIP and NequIP-MARA on Aspirin from MD17 dataset. Metric NequIP NequIP-MARA \Delta(\%) Forces MAE 0.0558 0.0499 -10.57 Forces MAX Error 1.0779 0.8810 -18.27 Forces RMSE 0.0760 0.0682 -10.26 Atom MAE 0.0018 0.0012 -33.33 Atom MAX Error 0.0155 0.0121 -21.94 Atom RMSE 0.0022 0.0016 -27.27 Total Energy MAE 0.0391 0.0269 -31.20 Total Energy MAX Error 0.3268 0.2542 -22.22 Total Energy RMSE 0.0478 0.0342 -28.45 Weighted Sum 0.0475 0.0384 -19.16 Analyzing the performance, we observe that MARA consistently improves NequIP on Aspirin from the MD17 dataset. Table 8 reports the results obtained on the test set at the end of training. In this case, the gains are considerably larger than those observed for MACE, which may result from suboptimal NequIP settings, whereas in the main text we used a highly expressive MACE model. Nevertheless, it is evident that MARA provides a substantial improvement even on a model different from MACE. Algorithm 2 Forward pass of NequIP 1: x\leftarrow\text{linear\_1}(x) 2: normalize x via avg_num_neighbors 3: if not first layer then 4: x\leftarrow\text{ghost\_exchange}(x) 5: end if 6: x,att\leftarrow\text{MARA}(x,positions,edge\_index) 7: x\leftarrow\text{tp\_scatter}(x,edge\_attrs,edge\_weights,edge\_src,edge\_dst) 8: x\leftarrow\text{linear\_2}(x) 9: data[\text{NODE\_FEATURES\_KEY}]\leftarrow x F.2 VisNET To insert MARA into VisNET (https://github.com/ElwynWang/ViSNet/tree/main) , it is necessary to adjust ViSNetBlock and the related Message Passing (ViS MP). Node features are embedded into a latent space of dimension 256 and processed through 5 stacked VisNET blocks, each incorporating spherical harmonics up to order \ell_{max} =2. Radial interactions are modeled using 32 exponential-normalized radial basis functions with a cutoff radius of 5.0 \AA . The attention mechanism uses 8 heads with SiLU activations and aggregates messages via summation. VisNET is trained using a combined energy–force loss, with forces dominating the objective, reflecting standard practice in molecular dynamics learning. Table 9 : Analyzing the performance of VisNET and VisNET-MARA on Aspirin from MD17 dataset. Metric VisNET VisNET-MARA \Delta(\%) Scalar MAE 0.1850 0.1369 -26.00 Forces MAE 0.1679 0.1645 -2.03 Table 9 shows that the results on the aspirin test set from the MD17 data set demonstrate that MARA produces a significant performance improvement also in attention-based equivariant models. We introduce the model as illustrated in pseudocode 3 , treating MARA as a separate modular unit, and report the corresponding results in Table 9 . We note that an alternative and equally natural integration of MARA within VisNET is shown in pseudocode 4 . Algorithm 3 Forward pass of VisNET block with MARA-style attention 1: x\leftarrow\text{LayerNorm}(x) 2: x,att\leftarrow\text{MARA}(x,\text{pos}_{ij},\text{edge\_index}) 3: q\leftarrow\text{Linear}_{q}(x) 4: k\leftarrow\text{Linear}_{k}(x) 5: v\leftarrow\text{Linear}_{v}(x) 6: d_{k}\leftarrow\sigma(\text{Linear}_{dk}(f_{ij})) 7: d_{v}\leftarrow\sigma(\text{Linear}_{dv}(f_{ij})) Algorithm 4 Message function of VisNET block with MARA-style attention 1: a_{ij}\leftarrow\sum(q_{i}\odot k_{j}\odot d_{k}) 2: a_{ij}\leftarrow\sigma_{\text{attn}}(a_{ij})\cdot\text{cutoff}(r_{ij}) 3: v_{j}\leftarrow v_{j}\odot d_{v} 4: v_{j}\leftarrow v_{j}\odot a_{ij} 5: v_{j},att_{MARA}\leftarrow\text{MARA}(v_{j},\text{pos}_{ij},\text{edge\_index}) 6: (s_{1},s_{2})\leftarrow\text{Split}(\sigma(\text{Linear}_{s}(v_{j}))) 29