Papers › Stabilizing Backpropagation Through Time to Learn Complex Physics

Stabilizing Backpropagation Through Time to Learn Complex Physics

3 May 2024arXiv:2405.02041archive 2025-07-28

Patrick Schnell, Nils Thuerey

Of all the vector fields surrounding the minima of recurrent learning setups, the gradient field with its exploding and vanishing updates appears a poor choice for optimization, offering little beyond efficient computability. We seek to improve this suboptimal practice in the context of physics simulations, where backpropagating feedback through many unrolled time steps is considered crucial to acquiring temporally coherent behavior. The alternative vector field we propose follows from two principles: physics simulators, unlike neural networks, have a balanced gradient flow, and certain modifications to the backpropagation pass leave the positions of the original minima unchanged. As any modification of backpropagation decouples forward and backward pass, the rotation-free character of the gradient field is lost. Therefore, we discuss the negative implications of using such a rotational vector field for optimization and how to counteract them. Our final procedure is easily implementable via a sequence of gradient stopping and component-wise comparison operations, which do not negatively affect scalability. Our experiments on three control problems show that especially as we increase the complexity of each task, the unbalanced updates from the gradient can no longer provide the precise control signals necessary while our method still solves the tasks. Our code can be found at https://github.com/tum-pbs/StableBPTT.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.02041")

Code

Syntology Ran 14 of 17 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 5 ran · honoured contract; 1 ran · violated contract; 8 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

tum-pbs/stablebptt officialmentioned in papertfGPL-3.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 14 ran; 5 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran · honoured contract
1ran · violated contract
8ran
3unverified

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from tum-pbs/StableBPTT. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_cartpole_step tum-pbs/StableBPTT/CartPole/Simulations/01/cartpole_simulator.py official repository ran GPL-3.0 (copyleft) · pointer only · 4e981accf1c26891 · report
build_fully_connected_network tum-pbs/StableBPTT/CartPole/Simulations/01/multi_cartpole_controller.py official repository ran GPL-3.0 (copyleft) · pointer only · 56f6b980a92a5535 · report
build_fully_connected_network tum-pbs/StableBPTT/GuidanceByRepulsion/Simulations/01/controller.py official repository ran GPL-3.0 (copyleft) · pointer only · 0a7b9cbe206e6eb3 · report
combine_grad_lists tum-pbs/stablebptt/CartPole/Simulations/01/training.py official repository ran · honoured contract fingerprinted GPL-3.0 (copyleft) · pointer only · 45e03fb897554440 · report
combine_grads tum-pbs/stablebptt/CartPole/Simulations/01/training.py official repository ran · violated contract fingerprinted GPL-3.0 (copyleft) · pointer only · 39b6f73f2a12c388 · report
cosine_similarity tum-pbs/stablebptt/CartPole/Simulations/01/training.py official repository ran · honoured contract GPL-3.0 (copyleft) · pointer only · 8c6890fe4097f6d9 · report
flatten tum-pbs/stablebptt/CartPole/Simulations/01/training.py official repository ran · honoured contract fingerprinted GPL-3.0 (copyleft) · pointer only · 71c7f883fbdb43ef · report
generate_data tum-pbs/StableBPTT/CartPole/Simulations/01/multi_cartpole_data.py official repository ran GPL-3.0 (copyleft) · pointer only · c0a943c1eb479ed7 · report
get_cnn tum-pbs/StableBPTT/QuantumControl/Simulations/01/model.py official repository ran GPL-3.0 (copyleft) · pointer only · f2848b08a4c40e9e · report
get_grad_size tum-pbs/stablebptt/CartPole/Simulations/01/training.py official repository ran · honoured contract GPL-3.0 (copyleft) · pointer only · b940953a8f2b9046 · report
ip tum-pbs/stablebptt/CartPole/Simulations/01/training.py official repository ran GPL-3.0 (copyleft) · pointer only · 20f22216033f2760 · report
norm tum-pbs/stablebptt/CartPole/Simulations/01/training.py official repository ran · honoured contract GPL-3.0 (copyleft) · pointer only · fe2aaf4d7dfeea4b · report
plot_result tum-pbs/StableBPTT/GuidanceByRepulsion/Plots/01/plot.py official repository ran GPL-3.0 (copyleft) · pointer only · 3535a6b21fee4747 · report
smooth tum-pbs/StableBPTT/CartPole/Plots/01/plot.py official repository ran fingerprinted GPL-3.0 (copyleft) · pointer only · 1569ed10a35adc48 · report
LOSS_FORMULATION tum-pbs/stablebptt/CartPole/Simulations/01/training.py official repository unverified GPL-3.0 (copyleft) · pointer only · 9a4d2905ab3a2f2c · report
TRAINING_SETUP tum-pbs/stablebptt/CartPole/Simulations/01/training.py official repository unverified GPL-3.0 (copyleft) · pointer only · 9158e670575df814 · report
plot_result tum-pbs/StableBPTT/CartPole/Plots/01/plot.py official repository unverified GPL-3.0 (copyleft) · pointer only · 76e0755b5f3aa4f4 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections