Borrowing Flare Shapes Across Time to Measure How Fast Blazars Vary

Astronomers cannot see inside the jets of supermassive black holes, so they infer how big an emitting region is from how fast it brightens. The rule is causality: a region cannot change coherently faster than light can cross it, so a flux doubling in time $\Delta t$ caps the region's size at roughly $c\,\Delta t$ times a relativistic boost factor. Rapid brightenings (minutes to hours) are the evidence for the most extreme claims. The trouble is that these measurements come from noisy, gappy light curves, meaning brightness-versus-time series that are often photon-starved in X-rays and gamma rays. The standard smoothing tools, Gaussian processes with stationary kernels, tend to round off exactly the sharp rises that carry the physics. The fastest timescale is therefore the quantity most exposed to both noise and the choice of model.

We propose to treat a long light curve the way low-dose 4D CT treats a breathing cycle. Medical imaging found that frames far apart in time often look alike, and that averaging similar frames, weighted by how similar they are, removes noise without blurring structure. This is temporal non-local means. Blazars do not repeat periodically, but their flares do have recurring shapes: Fermi flares of 3C 454.3 and 3C 279 behave like near-critically damped oscillators. Our method denoises each flare by borrowing from other flares in the same source's archive whose shape matches after stretching in time and rescaling in brightness. The method keeps steep rises steep, and the output we evaluate is a calibrated estimate of the minimum doubling time.

Core Claim

A version of temporal non-local means that fits Poisson photon counts and matches shapes under stretching will recover flare rise times and peak fluxes from photon-limited, gappy blazar light curves with less bias than stationary Gaussian-process smoothing. It will also outperform purely local edge-preserving regularizers such as penalties on sparse increments. The comparison against those local regularizers is decisive, because it isolates whether borrowing from distant times adds anything. A second commitment is that the method must not invent fast flares on light curves that contain none. False-flare rates on pure red-noise simulations are a first-class result, not an afterthought.

Relation to Prior Work

The method comes from Low-dose 4DCT reconstruction via temporal nonlocal means, which reconstructs all breathing phases jointly with a non-local penalty across phases. It reports contrast-to-noise gains of 3.9–10.2× over filtered backprojection. That paper also constrains our design: it reports blurring wherever motion is fast and non-periodic, such as the beating heart. Naive patch matching would fail the same way on aperiodic flares, which is why we add matching under time-dilation and amplitude rescaling. The local alternative comes from Exact and Stable Recovery of Sequences of Signals with Sparse Increments via Differential _1-Minimization, which shows that penalizing frame-to-frame changes beats frame-by-frame recovery by about 7 dB in mean squared error on the Suzie video. In one dimension this becomes a total-variation-like penalty, and it serves as our main ablation.

The motivation comes from light-curve work. Gaussian Process Modeling Coronal X-ray Variability of Active Galactic Nuclei fits damped random walks to RXTE data and finds that 1–4 day cadence biases damping timescales by up to 30%. Pattern and origin for the extreme γ-ray flares of 3C 454.3 and 3C 279: an astrophysical critical damper? shows that oscillator and Matérn-3/2 kernels beat the damped random walk on flares, with $Q\approx0.4$. That suggests flares share a characteristic profile, which is exactly what non-local borrowing needs. Exploring short-term optical variability of blazars using TESS finds red-noise spectra with slopes 1.7–3.2 and no periodicities. Phase folding is therefore unavailable, and any recurrence we exploit must be morphological rather than periodic. X-Ray Intraday Variability of the Blazar OJ 287 Observed with XMM-Newton infers emission sizes from 140-second fluctuations, the kind of claim our method should test. Constraining Emission Region Size via Rapid Flux Variability and Mrk 421 active state in 2008: the MAGIC view, simultaneous multi-wavelength observations and SSC model constrained show why the fastest timescale matters physically. In the Mrk 421 case, sub-hour variability rules out single-zone emission models.

Three works come closest. Light curve completion and forecasting using fast and scalable Gaussian processes (MuyGPs) links distant times through hand-built periodic embeddings (time of day, day number). It gets more than 3× accuracy over a 1D embedding on satellites. It relies on known strict periods, while we link times through data-driven shape similarity with no assumed period. Accelerating Posterior Inference from Pulsar Light Curves via Learned Latent Representations and Local Simulator-Guided Optimization retrieves nearest neighbors from a bank of 10 million simulated curves. We retrieve from the observed source itself, which is necessary because no forward simulator exists for turbulent jets. Early Detection of Multiwavelength Blazar Variability detects flares with a recurrent autoencoder but does not reconstruct the light curve or measure timescales.

Research Program

We represent the true flux $x$ on a fine uniform time grid. Gaps simply have no data term, so the same procedure handles de-gapping. We estimate $x$ by minimizing

$$\sum_i \big[\lambda_i(x) - n_i \log \lambda_i(x)\big] + \mu \sum_t \sum_{s \in \mathcal{N}(t)} w_{ts}\, \big\| P_t \log x - \mathcal{S}_{ts} P_s \log x \big\|_2^2 .$$

Here $n_i$ are observed counts in exposure bin $i$, with a Gaussian term substituted for optical photometry. $\lambda_i(x)$ is the expected count given exposure and background. $P_t$ extracts a window of the log-flux around time $t$. $\mathcal{N}(t)$ is a set of candidate windows drawn from anywhere in the archive. $\mathcal{S}_{ts}$ resamples window $s$ by the time-stretch and offset that best match window $t$; working in log flux absorbs amplitude rescaling. The weight $w_{ts}=\exp(-d_{ts}/h^2)$ decays with the matched distance $d_{ts}$. The strength $\mu$ and width $h$ are set by held-out-photon cross-validation, in which we drop a random 10% of photons and score the predictive likelihood of those dropped photons.

Weights are recomputed from the current estimate in a few outer iterations, and each inner problem is solved by forward-backward splitting as in the 4DCT work. Approximate nearest-neighbor search over window descriptors keeps cost near-linear in archive length. This addresses the scaling problem that motivated MuyGPs.

From the reconstruction we report the minimum doubling time. Uncertainty comes from a parametric bootstrap: we resample Poisson counts from the fitted curve and refit, including re-matching. We check the calibration of these intervals in simulation rather than assuming it.

Baselines

The naive reference is the binned light curve with the standard pairwise doubling-time estimator, applied at several bin widths as practitioners do. It shows how much the problem actually needs a model.

The strongest existing competitor is Gaussian-process smoothing with the oscillator and Matérn-3/2 kernels favored in Pattern and origin for the extreme γ-ray flares of 3C 454.3 and 3C 279: an astrophysical critical damper?. We add the damped random walk with a jitter term from Gaussian Process Modeling Coronal X-ray Variability of Active Galactic Nuclei, all fit with celerite on identical binned inputs. Doubling times are read from posterior samples, not only from the mean curve, so that the GP is not handicapped. Kernel choice and hyperparameters are selected on the same held-out-photon criterion as ours. Both methods get equal compute budgets for the search, and the GP is also given a version with a Poisson likelihood.

No reported result was found on Lacuna for flare-rise-time recovery error by any method on these datasets. The closest reported number is the up-to-30% damping-timescale bias under coarse cadence, a related but different quantity. Beating the GP therefore means reducing absolute bias in the minimum doubling time at matched or better interval coverage across the simulated regimes. For the method to be useful, the bias reduction should be at least a factor of two at Fermi-like count rates.

The key ablation is our own objective with the non-local term replaced by a local sparse-increment penalty $\sum_t |\log x_t - \log x_{t-1}|$, following Exact and Stable Recovery of Sequences of Signals with Sparse Increments via Differential _1-Minimization. A second ablation removes the time-stretch from the matching, which tests the 4DCT blurring failure directly. MuyGPs with a plain time embedding serves as a scalable non-local GP reference.

Why not just…?

Why not just use a Gaussian process with a better kernel? This is the real threat. A Matérn-3/2 GP already encodes a characteristic flare profile and has calibrated uncertainty. Its weakness is that a stationary kernel shares one length scale across quiescence and flares. When data are sparse it shrinks peaks and lengthens rises, which is the mechanism behind the cadence bias reported for RXTE. We do not argue this away. The simulation grid includes a regime where flares are drawn from the GP prior itself, where the GP should win, and we will report where the crossover lies.

Why not just use a local edge-preserving penalty like total variation? Sparse-increment penalties preserve jumps without needing any other flare. In one dimension they may capture most of the gain. They are biased toward piecewise-constant shapes, however, and they shave peaks at low counts because they have no second observation to borrow from. The local ablation answers this directly. If it matches the full method, the non-local claim fails and we will say so.

Why not just retrieve against simulated flares, as the pulsar work does? That requires a trustworthy forward model generating millions of curves. Jet flares from reconnection or turbulence have none, and any simulated bank would impose its own physics on the timescale we are trying to measure. Self-retrieval within the source avoids this. The price is that sources with few flares gain little, so we report performance against the number of flares in the archive.

Why not just fold and interpolate? The TESS spectra show no periodicities, so there is no period to fold on.

Proposed Experiments

Simulations come first. We generate red-noise backgrounds matching the reported spectral slopes (1.7–3.2) and oscillator parameters ($Q\approx0.4$). We inject flares with known rise times spanning minutes to days, and impose Fermi-LAT-like count rates, XMM good-time-interval gaps of 3.6–24 hours, and TESS sector gaps. Metrics are bias and root-mean-square error of the minimum doubling time, peak-flux error, and bootstrap interval coverage. Equally important is the false-fast-flare rate on null simulations containing no injected flares, which is where copying shapes between windows could hallucinate structure.

The decisive real-data check uses photon thinning. On bright XMM observations of OJ 287 and on the 3C 454.3 and 3C 279 Fermi flares, we keep 5–20% of photons, reconstruct, and compare to timescales from the full data. This gives ground truth on real astrophysical variability without trusting any simulator.

Two further tests are consistency checks. We reconstruct the soft and hard XMM bands independently and test whether the reported zero lag survives. We then re-examine the 140-second OJ 287 timescale to see whether it persists under each method. The method succeeds only if it beats both the GP and the local ablation on thinned real data while holding the false-flare rate at the GP's level or below.