TU Wien's SMLM-C Benchmark Exposes a Blind Spot in Mamba and S5
A new biology-inspired benchmark tests whether Mamba and S5 can handle the sparse, heavy-tailed sequences that dominate super-resolution microscopy.
ProTakeaways
- TU Wien introduces SMLM-C, a benchmark testing long-sequence models on sparse microscopy blinking data.
- Ten simulations span dSTORM and DNA-PAINT modalities, with sequences up to 10,000 frames and known ground truth.
- S5 and Mamba-2 were evaluated; peak detection accuracy topped out at only 73%.
- Mamba-2 handles long dark states better than S5, but trains 2 to 3 times slower.
- Performance degrades sharply as average off-time grows from 100 to 1000 frames.
- Findings suggest current SSMs need hybrid designs to handle heavy-tailed, irregular scientific signals.
State space models like Mamba and S5 have been racking up wins on long-context benchmarks, but almost all of those wins come from dense, smoothly sampled data such as text tokens or audio waveforms. A new benchmark from TU Wien pushes these architectures into unfamiliar territory: the flickering, mostly-silent temporal signals produced by single-molecule fluorescence microscopy. The results suggest current SSMs still have a serious blind spot.
The paper introduces SMLM-C, the Single Molecule Localization Microscopy Challenge, a simulation-based benchmark designed to stress-test long-sequence models on sparse spatiotemporal point processes with known ground truth. Both S5 and Mamba-2 were evaluated, and performance degrades substantially as temporal discontinuity increases, revealing fundamental challenges in modeling heavy-tailed blinking dynamics.
Why microscopy breaks long-context models
Single Molecule Localization Microscopy is a family of super-resolution techniques that beat the optical diffraction limit by never turning on all the fluorescent molecules at once. Instead of imaging all emitters simultaneously, only sparse subsets enter an emissive "on" state in any given frame, each active fluorophore is localized with nanometer precision by fitting its point spread function, and a high-resolution image is reconstructed by aggregating these localizations over thousands of frames.
The catch is that the temporal signal looks nothing like language or audio. Individual fluorophores stochastically transition between emissive and non-emissive states, producing sparse and highly discontinuous localization sequences that can span thousands of frames. These blinking dynamics are often heavy-tailed, with prolonged periods of inactivity punctuated by brief emission bursts. On top of that, photon shot noise, optical aberrations, and reconstruction filters corrupt what little signal makes it through.
That combination, sparse, irregular, non-stationary, and noisy, is precisely the kind of data long-context sequence models have never really been asked to handle. Existing microscopy benchmarks don't help either: they grade frame-level localization accuracy or final image quality, not a model's ability to integrate information across an entire acquisition.
Inside the benchmark
SMLM-C comprises ten experimentally motivated scenarios spanning dSTORM and DNA-PAINT imaging modalities, with sequences extending up to 10,000 frames. The simulation engine models the actual physics rather than just adding noise to a signal:
- Fluorophore blinking kinetics with configurable on-time and off-time means
- Emitter density variation from 50 to 1000 molecules per square micron
- Per-frame localization uncertainty modeled as isotropic Gaussian noise with 10 nm standard deviation
- A detection filter that removes localizations within 500 nm of each other in the same frame, mimicking real pipeline constraints
- Photobleaching for dSTORM and both unlimited and Poisson-limited binding regimes for DNA-PAINT
The task is formulated as sequence-to-set prediction. Given a sequence of observed localizations with spatial coordinates and a frame index, the goal is to predict the ground-truth emitter positions corresponding to the physical emitters present in the field of view. Empty frames are padded with dummy values and masked, and the model outputs a fixed-size, permutation-invariant set of coordinates.
How S5 and Mamba-2 held up
The authors focused their evaluation on two dSTORM conditions that isolate one variable: the average dark-state duration between emission bursts. Conditions D2 and D4 differ only in the average off-time between emission events, 100 versus 1000 frames, while holding emitter density and the expected number of localizations per emitter fixed.
Both architectures were trained with a shared MLP regression head, AdamW, and a Chamfer distance loss on point sets, with model selection driven by Hungarian matching error. Four configurations were compared at a 20 nm matching threshold:
| Model | Params | Detection Acc (short off-time) | Detection Acc (long off-time) | Train time |
|---|---|---|---|---|
| S5-S | ~523K | 72.2% | 61.8% | 6.8 h |
| S5-L | ~2.08M | 73.4% | 66.7% | 14.1 h |
| Mamba-2-S | ~730K | 67.9% | 64.5% | 19.5 h |
| Mamba-2-L | ~2.69M | 67.7% | 69.6% | 42.6 h |
The pattern is consistent. S5 outperformed Mamba-2 on the short dark-state dataset, while Mamba-2 performed better on the long dark-state dataset. Mamba-2's input-dependent state transitions appear to provide an advantage when relevant observations are separated by extended temporal gaps, but this comes at a computational cost: Mamba-2 models train 2 to 3 times slower than their S5 counterparts at comparable scales and contain 29 to 40% more parameters.
The real headline
The ceiling matters more than the ranking. The highest detection accuracy achieved was 73%, indicating substantial room for improvement in recovering true emitter locations from temporally fragmented observations. That is not close to what SMLM reconstruction pipelines need in practice.
The interesting finding is not that Mamba beats S5 or vice versa, but that both fail in a predictable way when the gaps between meaningful observations get long and heavy-tailed. Performance is strongly influenced by the temporal statistics of emitter blinking, with longer off-time regimes posing a substantially greater challenge across all models. Larger variants consistently do better, so the architectures are learning something, but scaling alone is not closing the gap.
What this is useful for
SMLM-C is best thought of as a diagnostic tool for anyone building sequence models that need to handle irregular, event-driven data. That includes:
- Testing new SSM or hybrid attention-SSM architectures under extreme sparsity, where dense-token benchmarks like Long Range Arena don't discriminate
- Studying how state space models handle heavy-tailed dwell-time distributions rather than the roughly stationary signals in Mamba's original evaluations
- Prototyping learned reconstruction methods for super-resolution microscopy that operate on entire acquisitions rather than single frames
It is not yet a drop-in replacement for existing SMLM software. The authors assume the number of emitters is known and do not address emitter count estimation, a critical prerequisite for practical deployment. Their experiments focus on a compact region of interest with at most one localization per frame. Extending this framework to larger fields of view and higher per-frame densities represents an essential direction for future work.
The takeaway for anyone working on long-context modeling is worth internalizing: the wins reported on language and audio may not transfer to scientific data where the signal is 99% silence. The authors suggest that hybrid approaches combining temporal modeling with spatial priors, physical constraints, or complementary localization methods will likely be needed to make state space models competitive with established SMLM reconstruction methods.