Noch kein AutorÜbernehmen
Version 5Aktualisiert 3 Min. Lesezeit
- Lizenz
- CC0 1.0 (gemeinfrei)Bearbeitet nach arxiv.org
- Sprachen
- English
- Themen
- BildungWissenschaft
A tutorial posted on arXiv uses the simple pendulum as an illustrative example, in four applications of increasing complexity, to give physicists a practical introduction to neural networks and their first steps in applying them to physics problems. The paper's authors are not named in the text we hold, so it is credited by title and link.

Where AI, machine learning, neural networks and physics meet (figure from the tutorial, arXiv).
The ideas first
The tutorial builds up from the perceptron, a single artificial neuron, through linear regression and deep networks to training. Machine learning comes in three kinds: supervised learning on labeled data, unsupervised learning that finds structure in unlabeled data, and reinforcement learning, where an agent learns by trial and error from rewards. The authors acknowledge the "black box" worry, that models often cannot explain their predictions, which makes scientists wary, and show how building physical knowledge into the model reduces it.
Four pendulum problems
| Example | What the network does | What it shows |
|---|---|---|
| With the swing angle measured over time and the length known, a network with a single neuron estimates the acceleration due to gravity, g, by matching the small-angle solution to data | Neural networks can do an ordinary regression, the kind of lab fit students already know, and a falling cost curve signals learning, though overfitting can fake it |
| A physics-informed neural network (PINN) is trained to satisfy the differential equation and the starting angle, with the equation itself built into its cost function | The network knows the physics, so training needs less data and, in the authors' run, reached the same error level in half the epochs |
| An autoencoder squeezes frames of a pendulum video into a small latent space and rebuilds them. One variable suffices, as the pendulum has one degree of freedom | Because the network is nonlinear, it can compress even large-angle swings, which linear methods such as principal component analysis cannot do. It also tolerates noise: a latent space of two variables recovered the pendulum at 20% noise, and still at up to 40% in the supplement |
| A SINDy autoencoder searches a library of candidate functions (powers, sine, cosine and others) for the sparse equation that governs the latent variable, penalizing small coefficients | From video images alone, it can produce an analytical equation for the large-angle pendulum, making the network's result readable |

Example 2: the training error and the physics-informed network's solution (figure from the tutorial).
How SINDy keeps it simple
In the last example, three requirements become three parts of the cost function: the autoencoder must rebuild the images, rebuild their derivatives, and make the latent variable obey the discovered equation. To keep that equation sparse, the method penalizes the size of the coefficients and, after training starts, zeroes any coefficient under 0.1, which shows up as a bump in the loss curve at about 250 epochs. The surviving terms form a short equation.

Loss terms of the SINDy autoencoder (figure from the tutorial).
Why a pendulum
The pendulum is familiar to undergraduates, the equations are known, and the problem is a toy that makes each method visible before it is applied to something harder. The authors present the work as a doorway for students, and for physicists, who want to try neural networks on their own problems.
Sources
- An introduction to Neural Networks for Physicists, arXiv, arxiv.org/abs/2505.13042. Changed here: condensed and rewritten as a summary, with two figures kept; rewritten in hubnx's own words.
- Authors of the original: G. Café de Miranda, Gubio G. de Lima, Tiago de S. Farias.
Kommentare



