T1 · Technical report

Path signatures for irregularly sampled astronomical light curves

Draft — July 2026 · projects/t1-signature-lightcurves · structure-first-ml

Abstract

A photometric light curve is a sampled path, not a vector. The signature transform of rough path theory consumes the raw $(t, m, \sigma, \text{band})$ stream with no interpolation and is invariant under reparameterisation of time. On 2,375 spectroscopically classified ZTF transients in eight classes, signatures lose to a 49-feature hand-crafted baseline (0.547 against 0.562 balanced accuracy) while using fourteen times as many features — but concatenated with it they reach 0.577, and a matched-noise control establishes that the gain is information rather than model capacity. A synthetic control locates the mechanism at truncation depth 3 rather than the predicted depth 2, for a reason that generalises to every time-augmented signature. A sampling ablation confirms the premise the track rests on and refutes the specific prediction made from it.

2,375
ZTF transients, 8 classes
+0.0147
gain from adding signatures
−0.0345
same-width noise control
1 vs 1,020
period beats signature on Gaia

1. Introduction

Observations arrive at times set by weather and scheduling, in whichever filter the telescope was using, with per-point uncertainties varying by an order of magnitude. Nearly every machine-learning pipeline begins by destroying that structure — interpolating onto a regular grid, binning to fixed cadence, or fitting a Gaussian process and resampling — so that a convolutional or recurrent architecture can accept the result.

The signature of a path $X:[0,T]\to\mathbb{R}^d$ is the sequence of its iterated integrals, $S(X)=\left(1,\int dX,\iint dX\otimes dX,\dots\right)$, with the $k$-th term in $(\mathbb{R}^d)^{\otimes k}$. It is invariant under increasing reparameterisation, faithful up to tree-like equivalence, and universal in the sense that linear functionals of it approximate continuous functions on path space. It accepts the raw stream directly.

Prior art, stated plainly. Signatures have one published astronomical application: SigNova (arXiv:2402.14892), which detects radio-frequency interference in interferometric visibility streams. No application to photometric light curves, transient classification, broker feature sets or gravitational-wave strain was found in a targeted audit. The gap is narrow, which is what makes it worth attempting — and SigNova establishes that the representation survives real radio-astronomical noise.

2. Data

Labels are the spectroscopic classifications of the ZTF Bright Transient Survey; per-epoch photometry in $g$ and $r$ comes from the ALeRCE broker. ALeRCE's own machine classifications are never used — training on one classifier's output and reporting agreement with it measures nothing. After quality cuts requiring at least ten detections and three per band, the sample is 2,375 objects with a median of 42 detections over 122 days: CV (456), SN II (426), SN Ia (406), AGN (376), SN IIn (273), SN Ic (185), SN Ib (148), SLSN-I (105).

A selection effect that had to be fixed first. The first fetch submitted objects grouped by class while the broker's failure rate rose during the run, so classes submitted last lost far more objects than those submitted first — SN Ib was eliminated entirely. That is a selection effect on the label, not random attrition, and it would have corrupted every downstream number. After shuffling before any network call, lowering concurrency and adding exponential backoff, the per-class retrieval rate is 1.0 across all eight classes.

Six example ZTF light curves, one per class, drawn as points with error bars
Figure 1. Example light curves, one per class, drawn as points with error bars and no connecting line — a line between observations would assert a continuity the data does not contain. Note the range of durations: 26 detections over 65 days for the SN Ia, 356 over 2,500 days for the AGN.
Histograms of sampling gaps and detections per object
Figure 2. The gap distribution is bimodal and spans four orders of magnitude: repeated exposures within a single night near $10^{-3}$ days, the main survey cadence at 1–10 days, and seasonal visibility windows at 100–1,000 days. Same-night exposures occupy almost no arc length and barely move the signature, whereas a fixed-grid method weights them like any other sample.

3. Methods

3.1 Implementation and verification

The transform is implemented from scratch: each straight segment contributes the tensor exponential of its increment, and segments combine by Chen's identity. It is written rather than imported because the theory track needs per-level access and because iisignature does not build on Python 3.12. Correctness is established against three independent libraries — esig, signax and roughpy — to $10^{-13}$, plus four structural identities: reparameterisation invariance, level 1 equalling the total increment, the shuffle identity $S_1S_2 = S_{12}+S_{21}$, and the vanishing signature of a path concatenated with its own reversal. All sixteen checks pass.

3.2 Constructing the path

The hard part is not the signature but deciding what the path is. Observations in different filters are not simultaneous, so no instant exists at which a two-band vector is defined. Three constructions are implemented and compared rather than assumed: per-band (each filter its own path, signatures concatenated, no interpolation anywhere), interleaved (one path with a band-indicator channel), and joint forward-fill (a common time axis with the last magnitude carried forward — which is piecewise-constant interpolation, and is labelled as such).

3.3 Baselines

Every representation is evaluated on identical folds with identical classifiers. The hand-crafted baseline implements the FATS/feets lineage from scratch; almost all its features are functions of the marginal magnitude distribution and so are invariant to permuting observations in time, which is exactly the information signatures retain. The three ordering-sensitive features it does contain are included deliberately — omitting them would make the comparison dishonest. MiniRocket receives linearly interpolated fixed-length input, its best case; that interpolation is precisely the cost the signature approach claims to avoid.

4. Results

4.1 Where the ordering information lives

Before touching real data, the claimed mechanism was isolated. Two classes of synthetic double-peaked light curve differ only in which peak comes first: identical marginal magnitude distributions, identical net change, opposite ordering. The prediction registered in advance was that separation would appear at depth 2, the Lévy area being the classical order-sensitive term.

RepresentationBalanced accuracy
Order-blind summary features0.512
Signature depth 10.524
Signature depth 20.489
Signature depth 30.978
Signature depth 40.990

It does not. Depths 1 and 2 sit at chance; separation appears at depth 3. With channels $(t,m)$ the time coordinate is strictly increasing, so the antisymmetric part of level 2 — the Lévy area — reduces to $\int m\,dt$ once the boundary terms vanish. That is the area under the light curve, identical whichever peak came first. A path monotone in one coordinate encloses no signed area that ordering can change.

This generalises beyond the experiment: every time-augmented signature of a time series has a monotone time channel, since that is what time augmentation means. Truncating at depth 2 to economise on features would discard exactly the information the method exists to supply, and the resulting null result would have been blamed on the astrophysics.

4.2 Head to head on real photometry

RepresentationFeaturesBalanced accuracy
summary + signature (lead-lag, depth 4)7290.578
summary (hand-crafted)490.560
signature, per-band, raw time, lead-lag, depth 46800.548
MiniRocket (interpolated grid)9,9960.538
signature, per-band, raw time, depth 4600.524
signature, per-band, unit time, depth 4600.455

Preprocessing dominated the representation. Scaling time to $[0,1]$ costs 0.069, because it discards the duration of the event, which the baseline keeps as t_span. The first version of this pipeline did exactly that and would have reported a far worse number as a property of signatures rather than of the preprocessing. The lead-lag transform is worth a further 0.025, taking signatures past MiniRocket but not past the incumbent.

An implementation check hidden in the numbers. The raw and raw time preparations score identically to four decimal places. This is not coincidence: the signature depends only on increments, so a constant magnitude offset cannot change it. Absolute brightness can enter only through a basepoint, and introduced that way it makes things worse.

Horizontal bar chart comparing representation families
Figure 3. Best variant of each representation family, 5-fold cross-validation with gradient-boosted trees. Chance for eight classes is 0.125.

4.3 Complementarity, with a matched-noise control

The concatenation beats the baseline by 0.015 against a fold spread of 0.020, which on its own establishes nothing. The question was given a dedicated test: 50 paired folds on identical splits, a Wilcoxon signed-rank test, a bootstrap interval, and — the part that decides it — a control replacing the signature block with Gaussian noise of identical shape and column variance.

Feature blockBalanced accuracyvs. summaryFolds improved
summary + signature0.5769 ± 0.0200+0.014738 / 50
summary0.5623 ± 0.0167——
signature alone0.5473 ± 0.0218−0.0150—
summary + matched noise0.5278 ± 0.0146−0.03451 / 50

The control is what makes this readable. A gradient-boosted ensemble handed 680 extra candidate splits might improve for reasons unrelated to their contents; it does not. Noise costs 0.0345 while the same number of signature columns gain 0.0147, under identical folds. Bootstrap intervals are $[+0.0078, +0.0212]$ and $[-0.0396, -0.0297]$.

Caveat beside the $p$-value ($9.5\times10^{-5}$): repeated cross-validation folds reuse the same 2,375 objects and are not independent, so both it and the bootstrap interval are optimistic as formal inference. The comparison that does not rest on that assumption is the one against the noise control, and it is the one the conclusion leans on.

4.4 The sampling ablation

Light curves were thinned to fixed retained fractions under two regimes removing the same number of observations while destroying different structure: random thinning (independent drops) and blocked thinning (contiguous runs, imitating weather outages and seasonal windows).

Degradation curves under random and blocked thinning
Figure 4. The same number of observations removed under two gap structures. MiniRocket, which requires a regular grid and is given one, collapses under blocked thinning (0.398 at 20% retention) while the other two degrade gently.

The informative quantity is the difference between regimes at matched density — the cost of gap structure with gap count held fixed:

Retained fractionsummarysignatureMiniRocket
0.60−0.013−0.010−0.024
0.35−0.013−0.010−0.047
0.20−0.016−0.041−0.069
Confirmed Gap structure matters independently of gap count, and it costs the interpolation-dependent method the most — two to four times the penalty at every density. This is the premise the whole track rests on, and it was falsifiable: identical curves under the two regimes would have collapsed the motivation entirely.
Not confirmed Signatures do not close the gap as data thins. The baseline-to-signature difference under random thinning runs 0.023 → 0.030 → 0.036 → 0.010 from full data to 20% retention, widening through the middle of the range rather than shrinking. At the sparsest setting the signature's own structured-gap penalty jumps to −0.041, worse than the baseline's −0.016: below about a dozen observations per object the path is too coarsely sampled for iterated integrals to be estimated stably.

4.5 The Gaia counter-test: where signatures should lose, and do

The counter-test was registered alongside the main experiment and run afterwards on 2,999 Gaia DR3 periodic variables in six classes (median 130 observations over 960 days). Its logic: ZTF transients are separated by the shape and ordering of the light curve, which signatures encode; Gaia periodic variables are separated by period, which is a statement about the clock — and the signature is invariant to reparameterisation of the clock.

Every figure below is on the full sample. An earlier 300-object pilot overstated the central gap by more than a factor of two (0.163 against 0.074), which is why pilot numbers were labelled provisional and never carried into a claim.

MeasurementGaia (2,999)ZTF (2,375)
Baseline minus best signature+0.0743+0.0123
Value of keeping duration+0.0387+0.0688
Value of the lead-lag transform+0.1130+0.0246
Complementarity: signature added−0.0000+0.0147
Matched-noise control−0.0016−0.0345
P1 confirmed Signatures lose six times harder on periodic variables than on transients. A label-shuffled control sits at 0.160 against a chance value of 0.167, so the comparison is not an artefact of the evaluation.
P2 refuted, with a measurable cause Restoring duration was predicted to matter more on Gaia. It matters less (+0.039 against +0.069; +0.018 against +0.065 averaged over all depth and augmentation pairs). Gaia's observing baseline is set by the mission rather than by the object, so span carries almost no information — coefficient of variation 0.039 against ZTF's 1.250. Duration is not period. The time channel restores how long the observation lasted, not the clock the variability lives on.

The sharpest form: one feature beats a thousand. Restricted to the 1,806 objects carrying a catalogued period:

ArmFeaturesBalanced accuracy
period only10.7726 ± 0.0925
signature, per-band, raw time, lead-lag, depth 41,0200.7412 ± 0.0128
summary (hand-crafted)720.9850 ± 0.0069
summary + period730.9990 ± 0.0013

A single number outperforms a 1,020-coefficient signature representation by 0.031. That is not a trend about which method is better; it is a structural fact about what separates these classes, and precisely the quantity reparameterisation invariance discards.

Caveat, and it is not neutral. The period requirement retains classes very unevenly — ECL 100%, CEP 98%, RR 98%, but LPV 45%, DSCT-group 19% and RS just 1.2%. Objects without a catalogued period are largely those for which a period is hard to define, so this arm speaks about the periodic classes rather than the sample as a whole.

And complementarity vanishes. On ZTF, signatures added +0.0147 against a noise control of −0.0345 — the result that made this track worth reporting. On Gaia the same test returns −0.0000. Where the baseline already reaches 0.985, there is nothing left to add.

Read with the main experiment, this closes the track symmetrically: the property that produces the win produces the loss. Signatures carry information hand-crafted features lack when classes differ by the shape and ordering of an irregularly sampled curve, and carry nothing when classes differ by a period the representation is built to ignore.

5. Caveats

6. Reproducibility

cd projects/t1-signature-lightcurves
python3 src/verify_signature.py      # 16/16 checks against esig, signax, roughpy
python3 src/order_sensitivity.py     # synthetic control: ordering appears at depth 3
python3 src/fetch_ztf_bts.py         # BTS labels + ALeRCE photometry, cached
python3 src/run_benchmark.py         # head-to-head comparison
python3 src/test_complementarity.py  # 50 paired folds + matched-noise control
python3 src/ablate_sampling.py       # random vs blocked thinning
python3 src/fetch_gaia_variables.py  # Gaia DR3 counter-test sample
python3 src/run_gaia_countertest.py --tag full   # P1/P2 + complementarity
python3 src/run_gaia_period_arm.py   # the one-feature period test
python3 src/make_figures.py          # figures 1-4