Asymmetric Temporal Distances Between Single Radio Pulses

Pulsars are rotating neutron stars whose radio pulses arrive with clock-like regularity, which is why they are used to build time standards and to search for gravitational waves. Timing precision is limited by the pulses themselves. Individual pulses wobble in shape and arrival phase from one rotation to the next. This wobble is called jitter, and it sets a noise floor that averaging cannot remove. Some pulsars also switch between emission "modes" or show subpulses that drift through the pulse window in regular cycles. The standard pipeline folds thousands of pulses into one average profile. That averaging discards exactly the pulse-to-pulse structure that shapes the jitter.

We propose to learn, from raw streams of single pulses, an embedding in which the distance from pulse A to pulse B estimates how many rotations the star typically needs to get from A's emission state to B's. The embedding is built to be asymmetric, because pulsar state changes run in one direction. In a drifting-subpulse cycle, moving forward one step takes a few rotations, while getting "back" takes almost a full cycle. A symmetric distance cannot represent this. An asymmetric one, a quasimetric, can. The embedding then serves as a state variable. A small decoder conditioned on it predicts each pulse's expected profile and arrival offset, which gives state-aware timing templates. The test is whether this beats both folding and simpler state models, on a synthetic benchmark with known ground truth and on public single-pulse data.

Core Claim

The claim is that quasimetric temporal-distance learning, developed for goal-reaching in robotics, recovers the directed, often cyclic kinetics of pulsar emission states better than either static clustering or discrete-state Markov models. It also claims that conditioning timing templates on this learned state reduces jitter-induced timing error beyond what pulse amplitude alone explains.

What would be new is the transfer itself and its payoff. The file records no quasimetric or temporal-reachability method applied to astrophysical time series. The robotics papers note that they are confined to control benchmarks. The pulsar papers use symmetric correlation statistics.

Why This Setting

The pulsar papers give us the phenomena, the data regime, and the gap.

Single-pulse campaigns now record very long pulse sequences:

  • Dang et al. recorded over 322,000 pulses of PSR J1857+0943 with FAST. They found modulation periods of about 11 rotations in the interpulse and about 5 in one main-pulse component, and a one-hour jitter floor of 78 ± 3 ns.
  • Wang et al. recorded 22,769 pulses of PSR B1859+07. They found burst, quiet and shift modes recurring quasi-periodically every 155–160 pulses.
  • Lousto et al. recorded about 120,000 Vela pulses per session.

Lousto et al. is the closest prior work. It compresses single pulses with a variational autoencoder (a network that learns a compact, denoised code for each input), then clusters the codes with self-organizing maps. It finds four emission clusters and the "stronger is earlier" timing effect. Its representation is static: each pulse is placed without regard to which pulses precede or follow it. Our proposal keeps the single-pulse input and replaces the static objective with a temporal, directed one.

Brook et al. links profile variability to spin-down using Gaussian processes. Its cost grows cubically with the number of epochs, which rules it out at hundreds of thousands of pulses. It also operates on folded, multi-day profiles. Kou et al. shows that such state changes can be persistent and one-directional: after a glitch, PSR B2035+36 showed a 9.6% spin-down increase lasting more than 800 days, together with a profile mode change. This motivates asymmetry at long timescales. We treat it as a later extension, not the first target, because the folded-epoch data are sparse.

Method and Its Sources

The method comes from goal-conditioned reinforcement learning:

  • Steccanella & Jonsson introduce Wide Norms. These are asymmetric norms that obey the triangle inequality, and they recover directed action distances in low-dimensional mazes where symmetric norms plateau. The authors leave high-dimensional inputs open.
  • Myers et al. (TMD) distill quasimetric distances with a temporal-consistency term. They report 37.3% success on OGBench antmaze_large_stitch against 10.8% for contrastive RL. In noisy "teleport" dynamics, TMD keeps about 29% success while contrastive methods fall to about 4%. This matters because pulse streams are noisy.
  • Park et al. argues that representations defined through temporal distances ignore exogenous noise. It also reports a "late fusion" weakness on fine visual comparisons, which constrains our design.

Our setting has no actions, so we drop TMD's action-invariance term and keep only its temporal structure. Concretely, an encoder $\phi$ maps each single pulse $x_t$ to a vector, using a 1D profile, optionally frequency-resolved. The distance is

$$d(x_i, x_j) = \big\| W\,\mathrm{relu}\big([\phi(x_j)-\phi(x_i)] :: [\phi(x_i)-\phi(x_j)]\big)\big\|_2 ,$$

where $::$ is concatenation and $W$ is learned. $W$ weights the forward and backward parts of the difference differently, which is what makes $d$ asymmetric.

Training has two parts. The first is a contrastive objective. It scores true future pulses $x_{t+k}$, with $k$ drawn from a geometric distribution, above pulses sampled from elsewhere in the stream, using $-d$ as the critic. Contrastive critics of this kind approximate a negative log of discounted future occupancy. For a cyclic process, that quantity grows with forward cycle distance, so it has the asymmetry we want. The second part is a TMD-style temporal-consistency penalty, which ties $d(x_t, x_{t+k})$ to $d(x_{t+1}, x_{t+k})$ plus a one-step cost.

Interstellar scintillation is a nuisance factor. It modulates flux over minutes, and an unconstrained encoder would learn it as a slow clock. Following the factorization idea of Perez et al., which separates dynamics variables from other latent factors, we give the encoder a separate per-window nuisance code. This code sees only windowed flux statistics and is excluded from $d$. We compare this against plain per-subintegration flux normalization.

The "neural surrogate" ingredient is deliberately modest. We do not attempt to emulate the relativistic magnetosphere; nothing in the file supports that. Instead we train a small decoder, conditioned on $\phi(x_t)$, that emits the expected noise-free profile and the arrival-phase offset of that pulse. This is a fast, differentiable stand-in for a state-dependent template. TOAs for sub-integrations are then estimated against the mixture of templates implied by the decoded states, instead of against one static template. The same decoder, together with a parametric generator of drifting subpulses, mode switches with chosen dwell-time laws, scintillation and radiometer noise, produces synthetic pulse streams. In these streams the true expected hitting time between any two states is known.

Research Program

Stage 1: synthetic benchmark. We build the benchmark with ground-truth directed hitting times. It covers three kinds of structure:

  • cyclic drift with periods of about 5 and about 11 rotations, mirroring J1857+0943;
  • two- and three-mode switching, both memoryless and with non-exponential (peaked) dwell times, mirroring B1859+07's quasi-periodicity;
  • a one-way transition, mirroring a post-glitch mode change.

Noise level and pulse count are swept, so we can measure how estimation error scales with stream length.

Stage 2: real single-pulse data. We train on the Vela, J1857+0943 and B1859+07 streams described above, subject to data access. The FAST and Argentine Institute of Radioastronomy (IAR) products may require requests to the observing teams. The synthetic stage does not depend on them.

Stage 3: timing. We evaluate whether state-conditioned templates reduce sub-integration TOA scatter and the fitted jitter term.

Baselines

Folding reference. The naive reference is standard folding: a single static high-S/N template, cross-correlation TOAs, and jitter absorbed into a white-noise term. This is the practice in Arzoumanian et al.. Its target number is the jitter floor reported by Dang et al., 78 ± 3 ns at one hour for J1857+0943. We will reproduce that estimate on the same data before comparing. Beating it means a statistically significant reduction of the fitted jitter term on held-out observation time, with the same sub-integration length.

Amplitude regression. The simplest physics-informed competitor is a regression of each pulse's arrival offset on its peak amplitude, which exploits "stronger is earlier". It is cheap and likely captures much of the timing gain. Our timing claim holds only if state conditioning explains residual offset variance beyond amplitude on held-out data.

VAE + SOM clusters. The strongest existing representation method is the pipeline of Lousto et al., which we run with per-cluster templates. No reported result found on Lacuna for its timing improvement or for any temporal-reachability metric on pulsar data. We therefore re-run it with the same encoder capacity, training data and hyperparameter search budget as ours.

Hidden Markov model. The strongest dynamics competitor is a hidden Markov model fitted on the same VAE codes. We try several state counts and a semi-Markov variant with explicit dwell-time distributions. Hitting times are read directly from the fitted transition structure.

Symmetric ablation. The ablation that isolates our key ingredient replaces the Wide Norm with a symmetric $L_2$ distance and keeps everything else fixed. A second ablation removes the nuisance code.

All methods share data splits (contiguous time blocks, never random pulses), encoder architecture where applicable, and a matched tuning budget.

What counts as winning. On synthetic data, success is lower mean squared error against true hitting times than both the HMM family and the symmetric ablation, especially on cyclic and peaked-dwell processes. On real data, success is better held-out prediction of the rotation gap between pulse pairs (rank correlation and log-error), and learned cycle lengths that match the independently measured values: $P_3$ of about 5 and 11 rotations, and about 155–160 pulses.

Why not just…?

Why not just fit a hidden Markov model to clustered pulses? This is the real threat. For memoryless switching between a few discrete modes, an HMM is the correct model, and we expect it to match or beat us there. We include that regime in the synthetic benchmark precisely to show it. The quasimetric should win where the state is continuous and cyclic, as in drifting subpulses, and where dwell times are peaked rather than exponential, as the 155–160-pulse quasi-periodicity of B1859+07 suggests. A small HMM cannot represent these without many states. If a semi-Markov model with matched tuning closes the gap on those regimes too, we will report that the embedding offers no advantage and pivot to using it only as an encoder for the HMM.

Why not just use Lousto et al.'s clusters with a template per cluster? Clusters say which state a pulse is in, not how states connect or in what order they are visited. Lousto et al. do not link their clusters to timing precision. The per-cluster-template baseline measures directly how much of the timing gain needs temporal structure at all.

Why not just a symmetric temporal contrastive embedding? Steccanella & Jonsson show that symmetric norms plateau under directed costs. Myers et al. show contrastive methods collapsing under noisy transitions. Neither result was obtained on pulsars, so the symmetric ablation settles it here. A cyclic process is the cleanest case: under a symmetric distance, the forward and backward gaps within a cycle must be equal, which is wrong.

Why not just use fluctuation spectra or Gaussian processes? Longitude-resolved and two-dimensional fluctuation spectra already measure periodicities like $P_3$. We use them as independent validation, not as competitors. However, they neither assign a state to each individual pulse nor supply per-pulse templates. Gaussian-process mapping as in Brook et al. scales cubically and is impractical at 322,000 pulses without approximations.

Decisive Checks

Four results would decide the proposal:

  1. Directed hitting times. On synthetic streams with drifting subpulses, the Wide-Norm embedding must recover directed hitting times with clearly lower error than the symmetric ablation and a matched HMM.
  2. Cycle lengths. On J1857+0943, the learned forward-distance structure must reveal cycles near 5 and 11 rotations in the right pulse components, without having been told either number.
  3. Mode recurrence. On B1859+07, the embedding must forecast mode shifts several tens of pulses ahead better than a semi-Markov model.
  4. Timing. State-conditioned templates must reduce held-out TOA scatter and the fitted jitter term below both the folding reference and amplitude-only correction.

Failing checks 1–3 means the transfer from robotics does not hold for pulsars. Passing them but failing check 4 means the embedding describes emission physics but does not yet pay off for timing. That outcome would still be publishable, but it would be a smaller claim.