Neural Sentinel for Microlensing: From Detection to Parameters ✛ ✎

Original: "Microlensing Detection and Inference via Learned Bayes Factors"
arXiv:2607.20260v1 · 2026-07-22 · arXiv non-exclusive · independent analysis · 3 min
A unified approach based on Evidence Networks and neural posterior estimation replaces hard selection cuts and speeds up analysis by 16,000 times.

Context

Gravitational microlensing is the only method sensitive to Earth-mass exoplanets and untethered free-floating worlds. Back in the 1980s Bohdan Paczyński showed that microlensing could hunt for dark objects, and today the Nancy Grace Roman Space Telescope is gearing up to survey 200 million stars toward the Galactic bulge. Roughly 1,400 bound exoplanets and 250 rogue planets are expected. To test formation and ejection scenarios, a complete sample in the shortest and faintest regime is needed — exactly where classical algorithms falter.

Methods

The architecture combines a shared transformer encoder that handles irregular time series via attention, with two specialized heads. The detection branch — an Evidence Network — trains on binary labels (signal/noise) using the l-POP exponential loss and outputs a calibrated Bayesian factor. The inference branch — Neural Posterior Estimation — employs a masked autoregressive flow to directly model the posterior. Both heads share the same latent representation extracted by the transformer from padded sequences (1,000 steps, three channels: time, flux, error). Training used 100 000 synthetic FSPL light curves generated via numerical simulation with augmentations: cadence gaps, point dropouts, and photometric noise. The whole pipeline is implemented with Machine Learning and simulation-based inference.

Results

On a test set of 5 000 events, the Evidence Network at a threshold log₁₀K > 0.8 flagged 4 996 signals (99.9%) and zero false positives among 5 000 noise realizations (95% upper limit on FP < 6×10⁻⁴). By comparison, the hard cuts of Johnson et al. (2020), Sumi et al. (2011), and Mróz et al. (2017) yield 95.9%, 93.9%, and 95.4%, respectively — even when using oracle parameters to compute the statistics. The largest advantage emerges at ρ ≳ 5, where the fraction of recovered free-floating planet events is ~95% versus ~65% for the hard cuts. The posterior parameter distributions are well calibrated (TARP test), and the whole procedure takes ~21 ms per event — a ~16,000× speedup relative to MCMC.

Implications

Replacing deterministic thresholds with probabilistic Bayesian factors lets one flexibly tune the balance between completeness and purity to match the science goal. Crucially, the method nearly eliminates the blind spot for strong finite-source events — the very regime where the population of free-floating planets with masses down to Earth’s builds up. Calibrated posterior estimates for each event open the door to hierarchical analysis of the Galactic object distribution.

Future development

The method can be extended to binary lenses, which generate more intricate caustic patterns. Another direction is to incorporate astrophysical false positives (flares, eclipsing variables) and realistic noise into training for actual Roman data. A sliding window for long-duration events and hierarchical Bayesian population inference are also on the roadmap.

Impact

The technique applies to the entire class of transient searches on irregular time series — from supernovae to variable stars — where rapid, uncertainty-controlled decisions are needed.

Next steps

Immediate next steps include validation on real data from existing surveys (OGLE, MOA) and adaptation to Roman data engineering.

Key open problems

The work addresses the unsolved problem of the formation and prevalence of free-floating planets, and more broadly the challenge of automated transient classification in large-scale surveys.

The knowledge machine's view

This section is addressed to the author of the paper and their colleagues. Neighbouring works were found by meaning-based search across our archive, not by word overlap. We do not review: we show the field around the work.

What the work does

The authors built a neural network pipeline for detecting and estimating parameters of gravitational microlensing events. A transformer encoder processes irregular time series, while two heads—an Evidence Network and Neural Posterior Estimation—output a Bayes factor and posterior parameter distributions. On synthetic data, the method achieves near-perfect recall, especially for events with strong finite-source effects, and speeds up parameter estimation by orders of magnitude compared to MCMC.

Where its strength is

Combining detection and inference in a single architecture with a shared representation allows flexible tuning of the precision–recall balance, while calibrated posterior distributions and Bayes factors provide direct probabilistic error control. This is especially valuable for short and faint events, where classical threshold-based methods lose sensitivity.

Where it could go next

  • It might be interesting to see how the proposed pipeline handles signal degeneracies when a microlensing light curve mimics a transit or stellar variability. In our archive, there is a paper where a neural network learns to distinguish gravitational twins—its approach to augmentations and loss functions for separating similar classes could help improve the Evidence Network's robustness to false positives from non-lensing variable sources.based on: Cosmic Mimicry: Neural Network vs Gravitational Twins arXiv:2607.15913v1
  • Another move is to use ideas from the analysis of dynamical chaos in star clusters to generate more realistic training samples. The archive contains a paper where an algorithm reads the rules of chaos in stellar pinball; its methods for modeling complex temporal structure could enrich light-curve simulations by adding realistic background variability and systematics, which is critical for transfer to real data.based on: Stellar Pinball: An Algorithm That Reads the Rules of Chaos arXiv:2607.16763v1
  • For events with strong finite-source effects, where sensitivity to small free-floating planets is important, one could adapt techniques from the supermagnified stars paper. There, ripples on the light ocean are used to search for dark matter, and their approach to extracting subtle distortions on sub-pixel scales could help improve feature extraction from padded sequences at low signal-to-noise ratios.based on: Super-magnified stars: How ripples on the light ocean reveal dark matter's secrets arXiv:2607.14034

Worth trying

  • Add simulations of systematic trends and flare activity of background stars to the augmentations, using models from the stellar pinball paper, to test the Evidence Network's robustness to realistic noise.
  • Apply contrastive loss functions, as in the cosmic mimicry paper, to explicitly separate representations of microlensing from other types of variability, while maintaining high sensitivity to short events.
  • Investigate whether methods from the supermagnified stars paper can be used to detect finite-source features at early stages of an event, improving parameter estimation for the shortest flares.

Why this may matter

If the proposed directions maintain high recall and precision on real data, this could bring us closer to a reliable census of the population of free-floating Earth-mass planets and to testing scenarios of their formation and ejection.

The shortest microlensing event from a free-floating planet may last only a few hours, yet our sentinel catches it.

"Rogue Planet" by Greg Bear: wandering worlds that could have been found with the technique from this paper.

K = \frac{p(x \mid \mathcal{M}_1)}{p(x \mid \mathcal{M}_0)}
Ratio of the marginalized likelihoods under the signal and noise models

Key numbers

  • detection efficiency: 99.9%
  • false positive upper limit: 6×10⁻⁴
  • speedup relative to MCMC: ~16,000×
  • number of stars in Roman survey: 200 million
  • expected number of free-floating planets: ~250
Scientists
Isaac NewtonJohn MichellRobert HookeDavid CharbonneauBohdan Paczyński
Concepts
bayesian evidence neural network microlensing reconstruction gravitational microlensing bayes factor Bayesian inference nested sampling maximum likelihood maximum likelihood estimation predictive learning neural networks event selection metropolis hastings algorithm machine learning materials pattern recognition gravitational lensing modeling astrophysical signal detection dark matter lensing anomaly detection prediction error posterior distribution importance sampling