Structured sparsification of hyperelastic physics-augmented neural networks

Anne Kadereit, Dominik K. Klein, Marlon Franke, Oliver WeegerarXiv 2026

TL;DR

Designing neural networks to simulate how materials stretch and deform usually involves tedious guesswork over how many neurons to use—and bloated networks slow down engineering simulations. This paper shows how to start with an oversized physics-augmented neural network and automatically carve away entire unneeded neurons during training using smooth $L_2$ regularization on "gates." The result is a tiny, dense, fast-to-evaluate material model that is just as accurate—and often more accurate—than a small network trained from scratch.

What Problem Does This Paper Address?

When engineers simulate complex materials—like composites or rubbery solids (hyperelastic materials)—they need a constitutive model: a mathematical rule mapping deformation to internal stress. Physics-Augmented Neural Networks (PANNs) are great at learning these rules from data while hard-coding physical laws like energy conservation and polyconvexity (a mathematical condition that keeps finite element simulations numerically stable).

The catch? Choosing the network architecture—how many inputs and neurons per layer—usually requires annoying hyperparameter sweeps. Over-parameterized networks generalize fine thanks to built-in physics, until you plug them into a finite element simulation, where evaluating big weight matrices millions of times makes computational costs skyrocket.

Previous efforts shrunk these networks using element-wise $L_0$ or $L_1$ regularization, zeroing out individual weights. While that works great for discovering tiny "single-line" equations, for larger models it leaves you with Swiss-cheese weight matrices: full of scattered zeros, yet the same dimensions, meaning your computer still wastes time multiplying by zero. We need a way to delete entire rows and columns cleanly.

Methods

Instead of pruning individual weights, the authors bring structured sparsification to feed-forward PANNs:

  1. Gated Architecture: Every input (material invariants describing stretch/volume change) and every hidden neuron gets a multiplicative scalar "gate."
  2. Smooth $L_2$ Regularization: Standard $L_2$ penalties don't cause sparsity on their own. Here, however, applying a smooth $L_2$ penalty to both the weights and the gates couples them multiplicatively—mathematically acting like a group-wise $L_1$ penalty (group lasso) on entire columns of the effective weight matrices. This avoids the non-smooth, tricky optimization of $L_0$/$L_1$ losses.
  3. Exact Zeroing via Clipping: To enforce polyconvexity, weights and gates must be non-negative. By enforcing this via simple clipping ($\max(w, 0)$) after updates rather than exponential mappings, parameters hit exact zero—no arbitrary pruning thresholds needed.
  4. Prune, Retrain, and Merge: Closed gates zero out entire rows and columns, allowing dead inputs and neurons to be deleted cleanly, leaving smaller, dense matrices. Because regularization shrinks the remaining weights too, the compact network gets a second round of unregularized training to sharpen its accuracy, followed by merging linearly dependent input columns.
Figure 1: Element-wise vs. structured sparsification. (a) Individual zero weights leave the network size unchanged. (b) Closed gates zero entire columns of the weights, so the corresponding inputs and neurons can be removed. (c) Equivalent reduced network.

Datasets

No new datasets were introduced; the authors evaluated their method on existing synthetic homogenization benchmarks from Klein et al. (2026b). The data models a biphasic rank-one laminate (ROL)—a layered composite of two isotropic Mooney-Rivlin phases—exhibiting directional (transversely isotropic) behavior. Two difficulty levels were tested based on stiffness contrast ($f_m$) between layers:

  • Low phase contrast ($f_m = 1.5$): 11,000 total data points.
  • High phase contrast ($f_m = 10$): 8,236 data points (filtered for material ellipticity).

For each experiment, 800 random points were used for calibration (Sobolev training on stress gradients) and the rest for testing.

Key Insights and Ideas

  • Smooth $L_2$ induces sharp sparsity: Multiplication is magic here. Penalizing $\lVert\text{weights}\rVert_2^2 + \lVert\text{gates}\rVert_2^2$ gives you smooth gradients during optimization while ruthlessly driving whole neurons to zero.
  • Initial network size barely matters: Whether you start with 16, 64, or 256 neurons, the network converges to roughly the same compact size for a given penalty parameter $\lambda$. You trade tedious architecture searches for a single knob ($\lambda$) controlling the size-accuracy trade-off.
  • "Lottery ticket" effect for small models: Starting big and pruning down often yields more accurate small networks than training a small network of that exact size directly—likely because larger initial networks escape poor local minima early on.
  • Free sparsity from physics: Even with zero regularization ($\lambda = 0$), polyconvex models naturally self-prune (especially in the last hidden layer) simply because weight clipping zeroes out negative updates.

Key Results

Testing 1- and 2-layer polyconvex and unrestricted PANNs across four orders of magnitude of $\lambda \in [10^{-6}, 10^{-3}]$:

  • Consistent Compression: For a 1-layer polyconvex model ($f_m = 1.5$), starting sizes of 16, 64, and 256 neurons all shrunk to ~10–12 neurons at $\lambda = 10^{-6}$, 4–6 neurons at $\lambda = 10^{-5}$, and 2–3 neurons at $\lambda \ge 10^{-4}$.
  • Superior Accuracy-per-Parameter: For 1-layer polyconvex models ($f_m = 1.5$), sparsified networks with ~25–35 parameters ($\lambda = 10^{-5}$) achieved calibration MSEs around $10^{-5.0}$ to $10^{-5.15}$, nearly an order of magnitude better than directly trained 28-parameter networks ($10^{-4.3}$).
  • Compact & Sufficient: A pruned 1-layer polyconvex model with just 3 neurons and 4 inputs achieved a $\log_{10}\text{MSE}$ of $-4.47$ on low-contrast data, producing stress predictions virtually indistinguishable from ground truth (where $\approx -4$ is already sufficient for accurate finite element simulations).

Limitations and Future Work

  • Dataset-Dependent Penalty Scaling: Because $\lambda$ balances regularization against raw stress MSE, the "sweet spot" for $\lambda$ depends on the magnitude of stresses in your dataset. Normalizing the data loss (e.g., by stress variance) is suggested to make $\lambda$ transferable across materials.
  • Over-Pruning Risk: At extreme penalties ($\lambda = 10^{-3}$), regularization can prematurely kill useful neurons before accuracy stabilizes—damage that the second retraining round cannot undo.
  • Model Class Limits: Polyconvex models struggled on high-contrast laminates ($\log_{10}\text{MSE}$ plateauing around $-1.6$ vs. $-5.2$ for unrestricted models), an inherent limitation of the polyconvex invariant formulation rather than the sparsification itself.

Summary updated

BibTeX
@misc{kadereit2026structured,
  author = {Anne Kadereit and Dominik K. Klein and Marlon Franke and Oliver Weeger},
  title = {{Structured sparsification of hyperelastic physics-augmented neural networks}},
  year = {2026},
  eprint = {2611.35733},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35733},
}
Figure