Training on Physically Impossible Chirps to Reject Glitches Below Threshold

Gravitational-wave detectors throw away most of their faint candidates. The reason is not that the candidates are uninteresting. Below the detection threshold, short bursts of instrumental noise called "glitches" look about as convincing as a weak merger signal, so no single candidate can be trusted. Multi-messenger astronomy offers a way to rescue some of these discarded events: if a faint gravitational-wave trigger coincides in time and sky position with a high-energy neutrino, its probability of being astrophysical can jump from about 0.1 to about 0.9. That rescue only works if the trigger was not a glitch in the first place.

We propose to teach a fast neural detector what a weak merger signal is not. During training it sees synthetic "near-miss" waveforms that look chirp-like but break a physical law real signals must obey. Examples include frequency sweeps that do not follow the inspiral chirp relation, and arrival patterns across the two detectors that are geometrically impossible. The detector then outputs a calibrated out-of-support score alongside its detection score, and that score feeds into the multi-messenger probability update. The bet is that physics-constrained hard negatives teach the network to rely on chirp consistency rather than on shortcuts like "short burst of power in the right band". If that holds, the network should reject glitch families it has never seen, which is the operational problem every observing run brings.

Core Claim

In the regime that matters for multi-messenger rescue (network signal-to-noise ratio, or SNR, roughly 4 to 8), the confusion between a weak chirp and a glitch is a near-out-of-distribution problem. "Out-of-distribution" means inputs from no training class. "Near" means they sit right next to a known class in the network's internal representation. Dong et al. prove that heavily overlapping in-distribution and out-of-distribution data cannot be separated reliably without auxiliary information. Our claim is that general relativity supplies that auxiliary information. Real compact-binary signals obey a known frequency evolution and a bounded inter-detector delay and amplitude relation. Outliers that violate exactly one of these constraints, while matching the time-frequency energy footprint of a real injection, are the right hard negatives.

The concrete hypothesis has two parts. First, a streaming detector trained with such outliers will reject held-out real glitch classes at low SNR better than the same detector trained on an equal number of real catalogued glitches. Second, it will do so at unchanged inference latency, because synthesis happens only at training time.

What Exists and What Is Missing

The probability-update side is mature but takes the trigger's noise model on faith.

  • The Bayesian odds-ratio search compares three hypotheses: joint emission, independent noise, and chance coincidence of a real signal with background. It does this using time-shifted background and a fixed neutrino energy prior.
  • Veske et al. derive a closed-form update of $p_{\rm astro}$, the posterior probability that a candidate is astrophysical. On the O4a candidate S230812aj, this lifts $p_{\rm astro}$ from 7.7% to 86% (moderate emission model) or 97% (optimistic model).

Neither method can tell whether the gravitational-wave trigger itself is a glitch of an unusual kind. This gap motivates the work: a glitch in coincidence with a neutrino receives the same boost.

The real-time detection side supplies the backbone.

  • Aframe is a 1D ResNet over raw strain. It uses group normalization and "muting/swapping" augmentations that zero or exchange one detector's data to enforce two-site coherence. It reaches a 3.9 s median latency against about 12.3 s for matched filtering, and recovers all 9 significant GWTC-3 events in O3. Its authors flag glitch susceptibility and the absence of any out-of-distribution mechanism.
  • Its muting and swapping is already a crude form of the inter-detector-incoherence outlier we propose. Our contribution must therefore come from the other constraint violations and from the calibrated boundary, not from incoherence alone. This constrains the design, and we isolate it with an ablation.

Anomaly-detection lines in gravitational-wave data show why unsupervised scores alone do not solve this.

  • Recurrent autoencoders trained on noise (Moreno et al. 2022; Fayad 2024) flag any transient, glitch or signal alike.
  • GWAK and its O3 search use a bank of five autoencoders plus a separate heuristic glitch veto. Their loudest non-merger candidate in O3 turned out to be a glitch.

Glitch classification, by contrast, is excellent on known classes. Gravity Spy reports 99.9% accuracy over 23 O3 classes and labels 613,786 O3 glitches. But it is a post-hoc characterization tool, and transfer-learning variants misclassify low-SNR chirps as glitches.

The outlier-synthesis literature supplies the method we adapt.

  • Geometrically Constrained Outlier Synthesis (GCOS) perturbs penultimate-layer features along low-variance principal directions. It keeps the perturbations inside a "conformal shell" between the 95th and 99th percentile of calibration nonconformity scores. It reports 0.00% FPR95 (false positive rate when 95% of in-distribution inputs are accepted) on Stanford Dogs, against 5.00% for isotropic virtual outlier synthesis and 80.00% unregularized. Its stated limits are linear manifolds and natural images only.
  • DREAM-OOD and SynOOD synthesize boundary images with diffusion models. Generating 100,000 images takes about 10 GPU-hours, and both are tied to vision-language models.

We keep GCOS's conformal shell but replace linear feature perturbation with perturbations in the physical parameters of the waveform generator. This is nonlinear in strain space, cheap to compute, and interpretable.

Research Program

The detector is an Aframe-style 1D ResNet operating on whitened two-detector O3 strain. It has two output heads. The first is the usual detection logit. The second is an energy score, a scalar that should be low on real signals and noise and high on anything outside their support.

For each signal injection drawn during training, we generate a companion outlier with the same sky location, SNR, and approximate time-frequency footprint. Each companion breaks one constraint, chosen at random among three families:

  • Chirp-law violations. The phase evolution is distorted so that the frequency derivative departs from the inspiral relation for any chirp mass. Variants include scaled time-to-merger, reversed sweeps, and abruptly truncated sweeps.
  • Geometric violations. These go beyond Aframe's swapping: inter-site delays exceed the light-travel time, or amplitude and phase ratios are impossible for any sky position and polarization.
  • Glitch–chirp hybrids. A real glitch envelope from a training glitch class modulates a chirp carrier.

The perturbation magnitude $\delta$ for each family is set adaptively, GCOS-style. We keep the outlier $\tilde{x}(\delta)$ only if the current model's nonconformity score $s(\tilde{x})$, the negative detection logit, falls between $q_{0.95}$ and $q_{0.99}$. These are the 95th and 99th percentiles of $s$ on a held-out calibration set of SNR-matched injections. The shell forces every outlier to be one the network currently finds hard: not trivially separable, and not physically indistinguishable from a real signal.

Training adds a margin loss on the energy head:

$$\mathcal{L} = \mathcal{L}_{\rm det} + \lambda\,\big[\max(0, E(x_{\rm in}) - m_{\rm in})^2 + \max(0, m_{\rm out} - E(\tilde{x}))^2\big],$$

The terms in this loss are defined as follows:

  • $\mathcal{L}_{\rm det}$ is Aframe's detection loss.
  • $E$ is the energy score.
  • $x_{\rm in}$ ranges over signal injections and background.
  • $m_{\rm in}$ and $m_{\rm out}$ are margins.
  • $\lambda$ is a weight tuned on validation data.

Because SynOOD reports that over-fitting to synthetic outliers degrades in-distribution accuracy, we monitor detection sensitivity throughout training and cap $\lambda$ where sensitivity starts to fall.

At inference, the two scores are combined into a single ranking statistic. We then convert that statistic to an empirical noise likelihood using time-slid O3 background, which is exactly the form the odds-ratio search consumes. This lets the energy head down-weight glitch-like triggers before any neutrino boost is applied.

We restrict the study to binary black holes. Aframe documents a sensitivity drop for long-duration neutron-star signals, and conflating the two problems would muddy the result.

Baselines

The naive reference is Aframe as published: same backbone, augmentations, and training budget, with no energy head and its raw detection score used as the ranking statistic. Against it we report sensitive distance at a fixed false alarm rate (FAR) in low-SNR bins. The file reports Aframe's recovery of all 9 significant GWTC-3 events and its 3.9 s latency. No reported result was found on Lacuna for Aframe's low-SNR glitch-rejection rate.

The strongest competitor is real-glitch outlier exposure: the identical two-head network trained with Gravity Spy-labelled O3 glitches, rather than synthetic outliers, as negatives for the energy head. Real negatives are abundant (613,786 labelled O3 glitches), so this is the baseline most likely to win. The comparison is fair only if both arms see the same number of negatives per batch, the same optimizer steps, and the same hyperparameter search budget, with real negatives drawn only from the training glitch classes. The relevant published figure is Gravity Spy's 99.9% accuracy across 23 known O3 classes (Soni et al.). That figure concerns classification of known classes; no reported result was found on Lacuna for held-out-class glitch rejection against low-SNR chirps. Beating this baseline means a lower FPR95 on held-out glitch classes against SNR-matched injections, averaged over held-out folds, with no loss of sensitive distance at fixed FAR.

We also run post-hoc scoring on frozen Aframe features: Mahalanobis distance and energy score. The motivating evidence is mixed. FlowCon reports these at 42.54% and 77.06% AUROC on CIFAR-100 versus CIFAR-10, but on images, so we must show the same failure on strain rather than assume it.

The anomaly-detection reference is GWAK. It reports 50% detection efficiency for ad hoc morphologies at a FAR of 1 per 100 years over 203.3 days of O3. We rerun it on our splits.

Ablations isolate the key ingredient in three ways. The first replaces physics-structured outliers with isotropic feature-space virtual outliers, the analogue of the 5.00% versus 0.00% Stanford Dogs gap in GCOS. The second applies GCOS's linear feature-space perturbation directly to the strain network. The third removes each outlier family in turn, especially the geometric family, to measure what Aframe's existing muting and swapping already provides. A further ablation removes the conformal shell and samples a fixed $\delta$ instead.

Why not just…?

Why not just train on the real glitch catalogue? This is the real threat. With hundreds of thousands of labelled glitches, real outlier exposure may match synthetic outliers on every glitch family that already exists. Our claim is narrower: physics-violating outliers generalize to glitch families absent from training. New families and rate shifts appear between runs; Fast Scattering occurs at 9.05 per hour at Livingston versus 0.22 at Hanford (Soni et al.). The leave-one-class-out experiment settles this directly. If real-glitch exposure matches us on held-out classes, the synthesis adds nothing, and we will report that. We also test the union of both, since synthetic outliers may help mainly as a complement.

Why not just use matched filtering with chi-squared vetoes? Signal-consistency tests already encode chirp-law consistency and are well understood. They cost latency, though: about 12.3 s median versus 3.9 s for Aframe (Aframe). We include a matched-filter-ranked comparison on the O3 injection set, at whatever latency it requires, as an upper reference. If our energy head recovers most of the veto's glitch rejection at Aframe latency, that is the contribution.

Why not just threshold Mahalanobis distance on the existing network's features? It is free and needs no retraining. Image-domain evidence (FlowCon; Dong et al.) says it collapses under heavy overlap, but strain features may behave differently. The post-hoc baseline is run on identical splits so the question is answered empirically.

Why not just rely on two-detector coincidence and the neutrino? Coincidence suppresses uncorrelated noise; Moreno et al. report a single-detector false positive rate of $10^{-2}$ falling to $10^{-4}$ jointly. The odds-ratio method nonetheless needs a correct noise likelihood for the trigger. A glitch boosted by a chance neutrino is precisely the failure we target, and the replay experiment below measures how often that happens with and without the energy head.

Proposed Experiments

All experiments use public O3 H1/L1 strain from GWOSC with Gravity Spy O3 labels.

The first experiment is leave-one-class-out glitch rejection. For each well-populated class, which must include Blip, Koi Fish, Scattered Light, and Fast Scattering, that class is excluded from all training. We then measure FPR95 and AUROC of the combined score separating that class from binary-black-hole injections matched in SNR, within bins from SNR 4 to 8. This is the decisive check of the core claim.

The second experiment is a standard search on held-out O3 time. Using time-slid background, we report sensitive distance at fixed FAR and confirm that latency and throughput stay within Aframe's figures; the extra head should add negligible cost.

The third experiment tests calibration. On a dedicated injection campaign into real noise containing glitches, we measure the expected calibration error of $p_{\rm astro}$ derived from the combined statistic, and compare it with the detection score alone.

The fourth experiment is a multi-messenger replay. Sub-threshold triggers from held-out O3 time are paired with a simulated, spatially uniform Poisson neutrino background, plus injected joint events. Each pair is scored with the odds ratio using either the baseline or our noise likelihood. We report two quantities at fixed joint FAR: the fraction of top-ranked joint candidates that are labelled glitches, and the recovery rate of injected joint events.

The proposal fails if any of the following holds:

  • the synthetic arm does not beat real-glitch exposure on held-out classes;
  • the geometric-only ablation explains the whole gain, which would mean Aframe's muting and swapping already sufficed;
  • sensitive distance drops at fixed FAR.