Learning Physical Dynamics on the System's Own Clock

Neural and kernel models of physical systems usually measure time in seconds, sampled at a fixed rate. That choice causes two problems. Most samples are redundant: a pendulum near the top of its swing, or a planet far from its neighbours, changes almost nothing from step to step. And the models break when a physical constant shifts at test time, because the most common effect of such a shift (a longer pendulum, a stronger drag, a faster infection rate) is to change how fast the system moves along its path. A model tuned to one speed then mistimes everything. We propose to learn dynamics on an internal clock that ticks in proportion to how much the state is changing. Redundant stretches collapse into a few ticks, sudden events such as impacts or close encounters stretch out, and a large class of parameter shifts becomes nearly invisible to the learned model.

The technical hook is kernels. Random Fourier features, the standard way to scale Gaussian processes and kernel regression, require a shift-invariant kernel: similarity may depend only on the time difference $t - t'$. A kernel that is shift-invariant in the internal clock, and not in physical time, is non-stationary in exactly the way physical trajectories are: smooth where nothing happens and sharp where something does. Yet its random features can still be drawn from a fixed, data-independent frequency distribution. We therefore get non-stationary kernels without learning a frequency spectrum and without giving up cheap, one-pass feature sampling. The clock also gives a single, low-dimensional quantity to re-fit when the physical regime changes.

Core Claim

Let $x(t)$ be the observed state. We define an internal clock $\tau$ by $d\tau/dt = r(x) + \epsilon$. Here $r(x)$ is a local redundancy score: the size of the residual left after predicting the next state by constant-velocity extrapolation, which is the continuous analogue of a video codec's motion-compensated residual. The small constant $\epsilon > 0$ keeps the clock moving through static stretches. The model learns the pair

$$\frac{dx}{d\tau} = W\phi(x), \qquad \frac{dt}{d\tau} = h_\beta(x),$$

where $\phi$ are random Fourier features of the state drawn once from a fixed Gaussian spectral measure, $W$ is fit by closed-form ridge regression, and $h_\beta$ is a small clock-rate head with a handful of coefficients $\beta$. The time-domain covariance this induces, $k(t,t') = k_0(\tau(t) - \tau(t'))$ with $k_0$ stationary, is non-stationary in $t$. Its features are still standard random Fourier features in $\tau$.

The claim has three parts, each falsifiable. First, trajectories are approximately uniformly informative in $\tau$. Subsampling uniformly in $\tau$ should therefore keep accuracy at a fraction of the samples, where uniform subsampling in $t$ loses it. Second, parameter shifts that mainly change the traversal rate of a fixed path in state space move mostly into $h_\beta$. Re-fitting only $\beta$ on a short test prefix should then recover most of the out-of-distribution (OOD) accuracy, meaning accuracy on physical regimes not seen in training. Third, shifts that change the path itself will not be absorbed this way. The method should predict its own failure: the gain should track the fraction of the shift explained by rate, which we can measure directly.

This time reparameterization is the Sundman transform from numerical celestial mechanics, a classical adaptive-stepping device. We claim no originality for the transform itself. What is new is using it at once as a learned OOD invariance, as a principled temporal-compression rule, and as a way around the Bochner restriction for random-feature kernels.

Relation to Prior Work

Two lines of work already relax stationarity for random-feature kernels in dynamical or spatial settings. Spatial Mapping with Gaussian Processes and Nonstationary Fourier Features uses Yaglom's theorem, the non-stationary counterpart of Bochner's theorem, to learn frequency pairs by gradient descent. Compositional Modeling of Nonlinear Dynamical Systems with ODE-based Random Features replaces sinusoids with Green's-function features of first-order linear ODEs and extrapolates better as a result.

Both motivate our proposal, but both fix the non-stationarity at training time. Ton et al.'s learned spectrum cannot re-index to a new regime without retraining, and the DLFM is limited to scalar first-order dynamics under uniform sampling. We instead place all non-stationarity in a one-dimensional, state-driven clock that can be re-fit at test time.

Implicit kernel meta-learning using kernel integral forms meta-learns a spectral distribution across tasks, but its kernel remains shift-invariant in the raw inputs. It is the natural "learn the spectrum instead" competitor. Random Gegenbauer Features for Scalable Kernel Methods is a constraint: it argues random features should stay data-oblivious for streaming efficiency. Our design keeps the frequencies data-oblivious and confines data dependence to the scalar clock. That is our concrete answer to the file's tension between oblivious sampling and test-time adaptation.

On the OOD side, MetaPhysiCa freezes a sparse symbolic equation structure and re-fits linear coefficients on short test snippets. We borrow this adaptation protocol, but we re-fit a clock rather than equation coefficients, and we do not need the true operator to lie in a dictionary. Buckingham π-Invariant Test-Time Projection supplies a close analogy: it maps OOD inputs to dimensionless equivalence classes before a frozen surrogate. Our clock is a state-dependent, non-uniform version of dimensionless time.

Disentangled Generative Models for Robust Prediction of System Dynamics separates system constants from dynamics, but it needs ground-truth parameter labels; we use none. Enforcing Analytic Constraints in Neural Networks Emulating Physical Systems constrains our design by showing that hard physical constraints alone do not deliver OOD generalization. We therefore do not rely on conservation laws.

On temporal redundancy, Compressed Video Action Recognition decomposes video into reference frames, motion vectors and residuals, and DyCoke merges redundant tokens across adjacent frames. We take CoViAR's residual-after-motion idea as the redundancy score. We differ from both in using that score to reparameterize time continuously rather than to discard tokens, which avoids the irreversible dropping of transients that DyCoke warns about. KeyWorld (Hao) selects keyframes and linearly interpolates between them. Uniform-in-$\tau$ sampling is a keyframe rule with a stated invariance behind it.

Research Program

The first component is the clock itself. We will compare three redundancy scores. The first is arc length in state space, $\|dx/dt\|$. The second is the constant-velocity residual, a second difference. The third is the residual of a locally fitted linear predictor. Each will be smoothed and floored by $\epsilon$. Training targets for $dx/d\tau$ and $dt/d\tau$ come from re-gridding observed trajectories onto uniform $\tau$. At rollout we integrate in $\tau$, recover physical time through $h_\beta$, and interpolate to the requested timestamps. The state model therefore never needs future residuals, because the clock rate is predicted from the current state.

The second component is the kernel model. For state rollouts we fit $W$ by ridge regression on random Fourier features of $x$. For direct time-series regression, as in the DLFM and Ton et al. settings, we fit a Gaussian process whose features are $\cos(\omega \tau(t) + b)$ with $\omega$ drawn from a fixed Gaussian. This yields the non-stationary time kernel at the $O(Nm^2)$ cost of ordinary random Fourier features, where $N$ is the number of samples and $m$ the number of features.

The third component is test-time adaptation. Given a short prefix from a shifted regime, we re-fit only $\beta$ by least squares on the observed $dt/d\tau$ and leave $W$ frozen. We will also run a variant that re-fits $W$ at matched sample count, to show that adapting the clock is the more sample-efficient choice.

The fourth component is analysis. For each benchmark shift we will estimate a "rate fraction": how much of the OOD error of an oracle-time-warped copy of the training dynamics is removed by the best single monotone time reparameterization. We will then test whether method gains are predicted by this quantity.

Baselines

The naive reference is a random Fourier feature ridge model of $dx/dt$ in physical time with a Gaussian kernel, trained on uniformly sampled data. We will also report a persistence (constant-velocity) forecaster, so the error scale is visible. This isolates what the clock adds to an otherwise identical model. Beating it means lower OOD rollout error at equal feature count $m$ and equal training samples.

The strongest competitor for ODE systems under parameter shift is MetaPhysiCa. It reports "28× lower OOD error than the best baseline" on SIR and "8× lower OOD error in the most difficult scenario" on Lotka-Volterra. The file gives only these relative figures; no absolute error values for MetaPhysiCa were found on Lacuna. We will rerun it on identical splits, with the same test-prefix length for its coefficient re-fitting as for our $\beta$ re-fitting, and tune both with the same hyperparameter-search budget. Beating it on damped pendulum and SIR, where shifts are largely rate-like, would support the claim. Losing on Lotka-Volterra, where shifts change orbit shape, would be consistent with the claim as long as our rate-fraction diagnostic predicted the loss.

For the kernel comparison on time-series extrapolation, the strongest reported result is the DLFM of Compositional Modeling of Nonlinear Dynamical Systems with ODE-based Random Features, with arterial blood pressure extrapolation NMSE 0.39 against 0.73 for a standard deep GP on PhysioNet CHARIS. Beating it means NMSE below 0.39 on the same extrapolation split with a single-layer random-feature GP in clock time. We will also run the learned non-stationary Fourier features of Ton et al. and the meta-learned spectrum of IKML with the same feature count $m$. The first reports test MSE $3.29\times10^{-5}$ against $5.69\times10^{-5}$ stationary on Google stock, which we will include as a sanity replication. SD-VAE is included on pendulum and 3-body as a label-using upper reference. It reports "over 30%" lower error than standard VAEs on pendulum, but no absolute number was found on Lacuna.

Three ablations isolate the key ingredient. The first replaces the state-driven clock with a single global rescaling of time by an estimated period, a π-style dimensionless time. This tests whether non-uniformity matters. The second uses a clock built from a shuffled or random residual signal of the same total length. This tests whether any warp would do. The third keeps uniform-in-$\tau$ keyframe sampling but fits the model in physical time. This separates the compression effect from the invariance effect.

Why not just…?

Why not just normalize time by an estimated period or timescale, Buckingham-style? For shifts that purely rescale time uniformly, this may work equally well, and we treat it as a real threat. It is the first ablation. The clock should only win where the traversal rate varies along the trajectory: damped pendulums, SIR outbreaks with a sharp peak, and 3-body close encounters. If global rescaling matches us on those systems, then the state-dependent part of the proposal is unnecessary and we would report that.

Why not just learn a non-stationary kernel directly, as Ton et al. do? Their learned frequencies encode the training regime's timing and, as the file notes, cannot re-index under a physical-constant shift without retraining. Learned spectra can also overfit local anomalies. Running their method with test-time fine-tuning of all frequencies on the same short prefix settles whether a single scalar clock is the better place to put adaptation capacity. Our prediction is that it is, because the prefix is too short to re-estimate $m$ frequencies.

Why not just re-fit equation coefficients, as MetaPhysiCa does? When the true operator is in the dictionary, MetaPhysiCa may beat us, especially on path-changing shifts like Lotka-Volterra. Its stated weakness is dictionary misspecification. We will therefore add a condition in which one required dictionary term is removed. Our method does not depend on a dictionary and should degrade less there.

Why not just subsample keyframes adaptively and keep a standard model? Adaptive sampling alone captures the compression benefit but not the invariance. The third ablation measures exactly this: if uniform-in-$\tau$ sampling with a physical-time model matches the full method out of distribution, the clock's value is only computational.

Proposed Experiments

The core suite uses damped pendulum, Lotka-Volterra and SIR under MetaPhysiCa-style parameter and initial-condition shifts, plus pendulum and planar 3-body from the SD-VAE setting. The primary metric is OOD rollout error at horizons of 1, 5 and 20 times the input window, the last matching SD-VAE's 800-step regime. The time-series suite uses PhysioNet CHARIS arterial blood pressure extrapolation, measured in NMSE against the DLFM's 0.39. If time permits, we will run 1D Burgers from PDEBench, with the clock driven by the spatial residual energy of the field, beyond the training horizon, since shocks are exactly the co-existence of calm and sharp regions that stationary kernels mishandle.

Three checks decide the proposal. First, at 10–20% of training samples, uniform-in-$\tau$ subsampling should lose substantially less accuracy than uniform-in-$t$ subsampling. Second, re-fitting only $\beta$ on the test prefix should recover most of the gap between the frozen model and a model trained on the shifted regime, with recovery correlating positively with the measured rate fraction across systems. Third, the state-driven clock should beat the global-rescaling ablation on the systems with non-uniform traversal rate. If the second check fails or shows no correlation with rate fraction, the invariance claim is wrong and the proposal reduces to a compression trick.