EventFlip
An unbiased gradient estimation method for training differentiable physics simulators that contain hard switches. Through counterfactual rollouts and finite differences, it precisely captures the discrete jump terms at switching points while preserving path gradients.
Timeline (last 90 days)
EventFlip is a new method for training physical simulators with hard switches, whose core idea is to flip a switch near the threshold from the stored state and re-run the original solver to measure the loss difference between the two runs, thereby performing finite differences at the switch point.
EventFlip adds small Gaussian noise to each threshold, treating each switch as a stochastic binary decision, thereby deriving an unbiased gradient estimator that combines the continuous path gradient and a jump term constructed from counterfactual rollouts.
Under the same evaluation budget, EventFlip was compared with twelve baseline methods on three tasks—power grid cascading failures, blast waves, and cortical spreading depolarization—and EventFlip achieved the lowest error on every task.
EventFlip reduced the error of the strongest baseline by 1.5x (power grid cascading failures), 1.4x (blast waves), and 1.4x (cortical spreading depolarization), respectively.
Counterfactual rollout is the core operation of EventFlip: a switch variable near the threshold in the current state is artificially flipped, and then the original solver is used to simulate forward from that moment to the terminal time, yielding a counterfactual trajectory and its corresponding loss; the loss difference between the real trajectory and the counterfactual trajectory divided by the change in switch state constitutes the finite-difference estimate of the jump term.
The computational cost of EventFlip may increase with the number of switches, because a counterfactual rollout is required for each switch.
The EventFlip method can be extended to other physical simulators containing hard switches, such as phase transitions in climate models and crack propagation in materials science.
In power systems, EventFlip can be used to train more accurate cascading failure simulators to prevent blackouts; in explosion dynamics, it can optimize blast wave propagation prediction; and in neuroscience, it can improve the simulation of cortical spreading depolarization.
All Facts (8)
EventFlip is a new method for training physical simulators with hard switches, whose core idea is to flip a switch near the threshold from the stored state and re-run the original solver to measure the loss difference between the two runs, thereby performing finite differences at the switch point.
50%UnverifiedEventFlip adds small Gaussian noise to each threshold, treating each switch as a stochastic binary decision, thereby deriving an unbiased gradient estimator that combines the continuous path gradient and a jump term constructed from counterfactual rollouts.
50%UnverifiedUnder the same evaluation budget, EventFlip was compared with twelve baseline methods on three tasks—power grid cascading failures, blast waves, and cortical spreading depolarization—and EventFlip achieved the lowest error on every task.
50%UnverifiedEventFlip reduced the error of the strongest baseline by 1.5x (power grid cascading failures), 1.4x (blast waves), and 1.4x (cortical spreading depolarization), respectively.
50%UnverifiedCounterfactual rollout is the core operation of EventFlip: a switch variable near the threshold in the current state is artificially flipped, and then the original solver is used to simulate forward from that moment to the terminal time, yielding a counterfactual trajectory and its corresponding loss; the loss difference between the real trajectory and the counterfactual trajectory divided by the change in switch state constitutes the finite-difference estimate of the jump term.
50%UnverifiedThe computational cost of EventFlip may increase with the number of switches, because a counterfactual rollout is required for each switch.
50%UnverifiedThe EventFlip method can be extended to other physical simulators containing hard switches, such as phase transitions in climate models and crack propagation in materials science.
50%UnverifiedIn power systems, EventFlip can be used to train more accurate cascading failure simulators to prevent blackouts; in explosion dynamics, it can optimize blast wave propagation prediction; and in neuroscience, it can improve the simulation of cortical spreading depolarization.
50%