Single molecule localization microscopy challenge: a biologically inspired benchmark for long-sequence modeling

Fatemeh Valeh, Mónika Farsang, Radu Grosu, Gerhard Schütz · DOI

Abstract

State space models (SSMs) have recently achieved strong performance on long sequence modeling tasks while offering improved memory and computational efficiency compared to transformer based architectures. However, their evaluation has been largely limited to synthetic benchmarks and application domains such as language and audio, leaving their behavior on sparse and stochastic temporal processes in biological imaging unexplored. In this work, we introduce the Single Molecule Localization Microscopy Challenge (SMLM-C), a benchmark dataset consisting of ten SMLM simulations spanning dSTORM and DNA-PAINT modalities with varying hyperparameters designed to evaluate state space models on biologically realistic spatiotemporal point process data with known ground truth. Using a controlled subset of these simulations, we evaluate state space models and find that performance degrades substantially as temporal discontinuity increases, revealing fundamental challenges in modeling heavy-tailed blinking dynamics. These results highlight the need for sequence models better suited to sparse, irregular temporal processes encountered in real world scientific imaging data.

Introduction

In the field of deep learning, State Space Models (SSMs)—such as S4 and Mamba—have emerged as powerful alternatives to Transformers for modeling long sequences, offering linear scaling and superior memory efficiency. However, these models have primarily been developed and tested on dense, continuous data like text or audio. Biological data, particularly in super-resolution microscopy, presents a fundamentally different challenge.

Single Molecule Localization Microscopy (SMLM) bypasses the diffraction limit of light by inducing individual fluorescent molecules to "blink" stochastically. This results in a sparse temporal process where a molecule may be visible for a few frames, followed by a "dark state" lasting thousands of frames, before appearing again. Bridging these massive temporal gaps to accurately reconstruct molecular positions is a critical test for long-context sequence models.

Methods

We formulate SMLM reconstruction as a sequence-to-set prediction task. The input is a long sequence of observed localizations (x, y coordinates and frame indices), and the output is a fixed-size set of ground-truth emitter coordinates. We evaluated two state-of-the-art architectures:

  1. S5: A simplified SSM utilizing diagonal state matrices and parallel scans.
  2. Mamba-2: A selective SSM that employs input-dependent transitions to dynamically filter information.

Both models use a lightweight 3-layer MLP regression head to map temporal features to spatial coordinates. Training was guided by Chamfer distance loss, and evaluation utilized the Hungarian algorithm to determine optimal one-to-one matching between predicted and ground-truth molecules.

The SMLM-C Benchmark

The Single Molecule Localization Microscopy Challenge (SMLM-C) consists of 10 simulated scenarios covering dSTORM and DNA-PAINT modalities. Sequences extend up to 10,000 frames, varying emitter density and "off-time" (the duration of dark states). For this study, we focused on dSTORM conditions to isolate the impact of increasing the average off-time from 100 to 1,000 frames.

Results and Analysis

Our findings indicate that performance degrades significantly as temporal discontinuity increases. As molecules remain in dark states for longer periods, models struggle to associate new blinks with previously identified molecules, a phenomenon we term the "Dark State Wall."

Visual comparison of S5 and Mamba-2 performance across different off-time conditions (100 vs 1000 frames).

Key observations include:

  • Selectivity Advantages: Mamba-2 generally outperformed S5 in the long off-time regime (1,000 frames), suggesting that its selective filtering mechanism is better suited for handling extended gaps of "empty" frames.
  • Scaling Effects: Larger model variants consistently outperformed smaller ones, though even the largest models could not fully overcome the challenges posed by extreme sparsity.
  • Detection vs. Precision: While detection accuracy was modest, reaching a peak of approximately 73%, the spatial precision for correctly identified molecules remained high, with Root Mean Squared Error (RMSE) values between 5.2 nm and 7.2 nm.
Quantitative performance metrics for S5 and Mamba-2 models on dSTORM datasets.

Discussion and Conclusion

SMLM-C provides a physically grounded reality check for sequence modeling. The results demonstrate that handling long contexts is not merely a matter of processing many tokens, but of surviving the irregular "silence" between signals. Current models are not yet "plug-and-play" for such sparse scientific data. Future work should explore hybrid approaches that integrate temporal sequence modeling with spatial priors or the physical constraints of the imaging process to better navigate the heavy-tailed dynamics of biological systems.

Summary updated

Abstract

State space models (SSMs) have recently achieved strong performance on long sequence modeling tasks while offering improved memory and computational efficiency compared to transformer based architectures. However, their evaluation has been largely limited to synthetic benchmarks and application domains such as language and audio, leaving their behavior on sparse and stochastic temporal processes in biological imaging unexplored. In this work, we introduce the Single Molecule Localization Microscopy Challenge (SMLM-C), a benchmark dataset consisting of ten SMLM simulations spanning dSTORM and DNA-PAINT modalities with varying hyperparameter designed to evaluate state space models on biologically realistic spatiotemporal point process data with known ground truth. Using a controlled subset of these simulations, we evaluate state space models and find that performance degrades substantially as temporal discontinuity increases, revealing fundamental challenges in modeling heavy-tailed blinking dynamics. These results highlight the need for sequence models better suited to sparse, irregular temporal processes encountered in real world scientific imaging data.
BibTeX
@misc{valeh2026single,
  author = {Fatemeh Valeh and Mónika Farsang and Radu Grosu and Gerhard Schütz},
  title = {{Single molecule localization microscopy challenge: a biologically inspired benchmark for long-sequence modeling}},
  year = {2026},
  eprint = {2603.11296},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.11296},
}
Figure