Machine-learned force fields predict the forces on every atom of a molecule from its 3D coordinates, and they are run millions of times inside molecular dynamics simulations. The best of them are equivariant graph neural networks: networks whose outputs rotate exactly when the input molecule is rotated. They are accurate, but they are slow. Pruning, which deletes most of a network's weights, looks like an obvious way to make them cheaper. Two beliefs have kept pruning away from these models. The first is that deleting individual weights breaks the rotation symmetry. The second is that scattered deleted weights give no real speedup on GPUs.
This proposal argues that, for the most widely used family of these networks, the first belief is false and the second can be avoided. Hardware-friendly "2:4" sparsity (in every group of four consecutive weights, two are zero) can be imposed on these networks without any loss of symmetry. The open question is then whether such sparse subnetworks stay robust. By robust we mean that their force predictions do not break down when atoms are nudged into slightly unusual positions, which is what happens during long simulations. We propose to find 2:4 subnetworks with an adversarial objective that respects the symmetry. We then test whether, at equal wall-clock cost, they beat simply training a smaller dense network.
Core Claim
Many practical equivariant networks keep two kinds of per-atom features: scalars that do not change under rotation, and 3D vectors that rotate with the molecule. TorchMD-NET's equivariant transformer (Thölke and De Fabritiis) and ViSNet (Wang et al.) are both of this kind. In these networks, every learned linear map on vector features mixes channels only. If $V \in \mathbb{R}^{c \times 3}$ holds an atom's $c$ vector channels, $W \in \mathbb{R}^{c' \times c}$ is the weight matrix, $M$ is any binary mask of the same shape, and $R$ is a rotation, then
$$(W \odot M)\,(V R^\top) = \big((W \odot M)\,V\big) R^\top .$$
The mask never touches the spatial index, so equivariance holds for every mask, including 2:4 masks. The scalar pathways are invariant, and they can be pruned freely.
This reframes the one existing equivariant lottery-ticket result. A General Framework For Proving The Equivariant Strong Lottery Ticket Hypothesis shows that sparse subnetworks exist in group-equivariant networks. To keep symmetry, it prunes the coefficients of an equivariant basis rather than raw weights. For vector-valued features, that basis is $W \otimes I_3$: each weight multiplies an identity on the three spatial axes. Its coefficients are therefore exactly the entries of $W$. Those entries lie along the contraction dimension of an ordinary matrix multiply of shape $(c' \times c)\cdot(c \times 3N)$, where $N$ is the number of atoms. Under 2:4, this is precisely the layout that sparse tensor cores accelerate (Zhou et al.).
The file frames Gap 2 as a dilemma between symmetry and hardware. For this architecture class, that dilemma largely dissolves. The part that remains unknown, and that we will test, is robustness. Vision results show that structured pruning hurts adversarial robustness while unstructured pruning keeps it even at 99% sparsity (Ye et al., Pintor et al.). But "structured" in those studies meant deleting whole channels or filters. Nobody has measured where fine-grained 2:4 masks fall on that spectrum, and nobody has measured it for force fields.
Our claim is specific and falsifiable: a 2:4 subnetwork of ViSNet or TorchMD-NET, found by adversarial score-based pruning under symmetry-aware coordinate attacks, matches the dense model's worst-case force error. It also beats a dense model narrowed to the same measured latency. The boundary is also explicit. Networks built on higher-order spherical-harmonic tensor products mix spatial and channel indices, so the identity above does not hold for them. We treat them only as a negative control.
Research Program
The first component is a threat model suited to force fields. Following Schuchardt et al., a coordinate perturbation only counts if it cannot be explained by a rigid motion of the molecule, since rotations and translations have zero physical effect. Concretely, the attack perturbs each atom within a small radius $\epsilon$ of the input geometry (a range of hundredths of an ångström), and we remove the rigid-motion component of the perturbation at every attack step. The attack maximizes the gap between the sparse model's forces and a reference at the perturbed geometry.
The main reference is the dense teacher. For an audit subset of a few hundred worst-case geometries per molecule, we also recompute forces at the dataset's original level of electronic-structure theory. That audit tells us whether the attacks expose real errors or only disagreements between models.
Evaluation is known to be fragile: in vision pruning, weak PGD overstated robustness by up to 6.37% relative to AutoAttack (Pintor et al.). We therefore use many-restart, many-step attacks with adaptive step sizes. We report robustness only once adding restarts no longer changes it.
The second component is the pruning method itself. It uses HYDRA-style learnable importance scores on every channel-mixing matrix in the vector and scalar pathways and in the edge filter networks. At every step, the scores are projected onto the 2:4 pattern along the contraction dimension. SR-STE's refined straight-through gradient (Zhou et al.) limits how often the mask flips from step to step. The scores are trained against the attack above in a minimax loop, as in Gan et al.. Optionally, we add the score-space sharpness term of S2AP (Piras et al.), which was shown in vision to stabilize masks at roughly 15% extra search cost. Whether that term helps on equivariant loss surfaces is itself one of the questions we answer.
We also consider ARMOR-style block-diagonal wrappers around the 2:4 core (Liu et al.). These wrappers are applied only on the channel side, because a channel-side wrapper keeps the symmetry identity intact. We use them only if the plain 2:4 mask loses too much accuracy.
The third component is honest profiling. In these networks, much of the runtime is spent gathering neighbor features and scattering messages, and sparsity does not speed that up. Before training anything, we measure the fraction of forward-and-backward time spent in prunable matrix multiplies on A100 and H100 GPUs. We use forces computed by backpropagation, as in real simulations. That fraction sets the maximum possible end-to-end speedup, and we report measured speedup against it. ARMOR's 1.57× measured against a 1.86× naive speedup on one LLM layer (Liu et al.) is a realistic reminder that kernel-level gains shrink in practice. Unstructured masks are also profiled, with generic sparse kernels and with SMaT-style row reordering (Okanovic et al.). This documents the overhead that the file's sources describe (Mostafa and Wang, Wiedemann et al.) rather than assuming it.
Baselines
The naive reference point is the dense ViSNet or TorchMD-NET model trained normally on each revised MD17 molecule. We report its clean force error, its worst-case force error under our attack, and its latency per simulation step. The file contains no per-molecule force errors for either model on MD17 or revised MD17: no reported result found on Lacuna for ViSNet or TorchMD-NET force MAE. We therefore retrain both models with the authors' published configurations and verify our reproduction before pruning. The only relevant reported speed figure is that ViSNet is 42.8% faster than MACE in force computation (Wang et al.). That result is why ViSNet is our primary backbone.
The strongest competitor is a dense model whose width is reduced until its measured end-to-end latency equals that of the 2:4 model. It is trained with the same adversarial objective, the same number of attack steps, and the same GPU-hours. This is the baseline that could make the whole proposal unnecessary. Beating it means lower worst-case force error at equal latency, across at least most of the revised MD17 molecules, with the gap larger than the spread across training seeds.
The vision analogue of our method is SR-STE 2:4 training without any adversarial term. On ImageNet, SR-STE reached 77.0% top-1 accuracy with ResNet-50 under 2:4, against 77.3% dense (Zhou et al.). This baseline isolates the adversarial ingredient. If it matches our method's worst-case error, the adversarial search is unnecessary.
A second ablation removes the hardware constraint. It runs the same adversarial score search with an unstructured mask at matched sparsity, which is the vision benchmark's best-case robustness setting (Pintor et al.). The gap between this ablation and our method measures the robustness cost of 2:4 itself.
A third ablation deliberately prunes a flattened $3c$-dimensional representation, so that the mask crosses spatial axes. This measures how much symmetry violation costs, and it confirms that the identity above is doing the work.
All methods receive the same training data, the same attack budget during training, and the same hyperparameter search budget. Every method is evaluated with one shared strongest attack.
Why not just…?
Why not just train a smaller dense model? This is the most serious threat, and it may win. Narrowing a network shrinks every matrix multiply without any sparse kernels. The 2:4 approach can win only if the gather and scatter phases are a small share of runtime, and only if 50% sparsity costs less accuracy than halving the width. Vision evidence that 2:4 barely costs clean accuracy (Zhou et al.) suggests the second condition may hold. Our profiling measures the first condition directly. The equal-latency comparison in the baselines settles the question. If the narrow dense model wins, we report that as the result.
Why not just prune unstructured and run the result with sparse libraries? In these architectures, unstructured masks preserve symmetry as well, so the file's argument about symmetry destruction does not apply here. The objection that remains concerns speed. The vision and kernel literature reports that moderate unstructured sparsity rarely yields speedups on dense accelerators (Mostafa and Wang, Gale et al.). The small channel counts in force fields make this worse. We measure this directly rather than assert it, and the unstructured ablation shows whatever robustness 2:4 gives up.
Why not just train with coordinate noise, skip adversarial pruning, and prune with magnitude or SR-STE? Noise training is cheap. It may give most of the robustness, because random perturbations of molecules are closer to what simulations actually visit than worst-case perturbations are. We include noise-augmented SR-STE 2:4 as a further baseline. The adversarial search is justified only if it lowers worst-case error and lengthens stable simulations beyond what noise training achieves.
Proposed Experiments
The primary benchmark is revised MD17 (aspirin, ethanol, malonaldehyde, toluene, and benzene). MD22 and the 166-atom chignolin system (Wang et al.) test whether the latency picture changes as molecules grow. We report clean energy and force error, worst-case force error under the rigid-motion-free attack, the reference-level audit on attacked geometries, and a numerical check that rotated inputs give rotated outputs up to floating-point error. We also report measured milliseconds per simulation step alongside the maximum speedup allowed by the runtime profile.
The first decisive check is the downstream one: run long constant-energy simulations with each model and measure the time until the trajectory breaks down. A robust subnetwork should survive at least as long as the dense teacher does.
The second decisive check addresses a known failure mode, the "hydrogen blindness" that Thölke and De Fabritiis observed when training on relaxed structures. We measure what fraction of the attack's perturbation lands on hydrogen atoms, and whether pruning removes the pathways that attend to hydrogens. We train one model on QM9 as a contrast.
Finally, the randomized-smoothing certificates of Schuchardt et al. require thousands of forward passes per molecule. We recompute them with the 2:4 model and ask whether the certified force bounds survive, and how much certification wall-clock time the sparsity saves. That result directly tests the file's Gap 4.
References
- Equivariant Transformers for Neural Network based Molecular Potentials
- Enhancing geometric representations for molecules with equivariant vector-scalar interactive message passing
- A General Framework For Proving The Equivariant Strong Lottery Ticket Hypothesis
- Learning N: M Fine-grained Structured Sparse Neural Networks From Scratch
- Adversarial Robustness vs. Model Compression, or Both?
- Adversarial pruning: A survey and benchmark of pruning methods for adversarial robustness
- Provable Adversarial Robustness for Group Equivariant Tasks: Graphs, Point Clouds, Molecules, and More
- Playing Lottery Tickets with Vision and Language
- S2AP: Score-space Sharpness Minimization for Adversarial Pruning
- ARMOR: High-Performance Semi-Structured Pruning via Adaptive Matrix Factorization
- High Performance Unstructured SpMM Computation Using Tensor Cores
- Parameter efficient training of deep convolutional neural networks by dynamic sparse reparameterization
- Dithered backprop: A sparse and quantized backpropagation algorithm for more efficient deep neural network training
- Sparse GPU Kernels for Deep Learning