Cryo-electron microscopes record each image, called a micrograph, on a detector of 4096×4096 pixels or more. Most of each micrograph is empty ice. The biology sits in a minority of regions, and it is buried under shot noise, the random fluctuation that comes from counting a small number of electrons per pixel. Transformer models (networks that compare every image patch with every other patch) are now the strongest tools for cleaning and screening these images. Their cost, however, grows with the square of the number of patches. Practitioners therefore shrink the micrograph or cut it into tiles before the model sees it, and either step discards detail or discards the global view. The usual fix in computer vision is to spend fine patches on informative regions and coarse patches on boring ones, with "informative" measured by local pixel entropy. That rule fails on low-dose scientific images, because pure shot noise is about as high-entropy as an image can be. It would put the most compute on empty ice.
We propose a different content signal that suits counting detectors. Randomly split each pixel's electron count into two halves; for Poisson counts this "thinning" yields two independent noisy copies of the same underlying image. The covariance between the two copies inside a patch estimates how much real structure that patch holds, and the noise contributes nothing to it on average. We use this estimate to decide, before the transformer runs, which regions receive fine tokens. This should let a transformer read a whole micrograph within a fixed token budget, with compute concentrated on particles, contamination and ice edges, and without the binning or tiling current pipelines depend on.
Core Claim
In shot-noise-limited imaging, the right quantity for adaptive tokenization is signal variance estimated from independent noise realizations, not entropy or raw variance. For a patch $p$ with pixel counts thinned into halves $a_i$ and $b_i$, we score
$$\hat{s}_p = \frac{1}{|p|}\sum_{i \in p} (a_i - \bar{a}_p)(b_i - \bar{b}_p),$$
where $\bar{a}_p$ and $\bar{b}_p$ are the patch means. Because the two halves' noise is independent, $\hat{s}_p$ is an unbiased estimate (up to a factor of one quarter) of the variance of the clean image within the patch. By contrast, the variance or entropy of $a+b$ also includes a noise term proportional to the local dose. The score costs one pass over the pixels, needs no learned parameters, and has no threshold beyond the token budget.
The claim we will test has three parts. First, at a fixed token budget, this allocation places far more fine tokens on true particles than entropy-based allocation does. Second, a transformer fed these tokens over the full micrograph matches or beats tiled and binned uniform-patch transformers on curation, particle picking and denoising, at lower cost. Third, the advantage comes specifically from noise-independent splitting, not just from smoothing before measuring content.
Relation to Prior Work
Adaptive patch sizing supplies our tokenization mechanism. Accelerating Vision Transformers with Adaptive Patch Sizes assigns large patches to low-entropy regions and merges them into the embedding space through a zero-initialized MLP. This cuts ViT-L and ViT-H inference time by 40% and 50% on ImageNet after one epoch of fine-tuning. We keep its multi-scale patches and zero-initialized merge layer and replace only the scoring rule. The entropy rule was designed for natural photographs, and its reliance on hand-tuned thresholds is already a known weakness. SG-Former reallocates tokens using a significance map learned during training. That approach motivates allocation by pooling rather than dropping. Its map, though, is computed by the network itself on noisy inputs, whereas ours is fixed by detector physics before the network runs.
The cryo-EM side supplies both the motivation and the strongest competitor. DRACO pre-trains a standard Vision Transformer with masked autoencoding plus a Noise2Noise objective on odd and even movie frames, using 270,000 EMPIAR micrographs. It reports the best curation, picking and denoising numbers in our file, but it uses uniform patches, which forces tiling or downsampling at full detector size. It also needs motion-corrected frames before the odd/even split. Our split is a random thinning of the summed counts, so it does not depend on frame alignment, and we use the split for allocation rather than only as a training target. Generative Priors for Cryo-EM Image Reconstruction and CryoFormer operate on pre-cropped 128- or 256-pixel particle boxes. The former names full micrographs as the next hurdle. CryoFormer needs 31 hours on a 256×256 dataset, against 8 for CryoDRGN, and lists attention efficiency as open. Both motivate the work but address a later pipeline stage than ours.
The broader data-bottleneck literature constrains the design. A data reduction and compression description for high throughput time-resolved electron microscopy shows that logging individual electron events cuts data volume a hundredfold. Thinning applies just as naturally to such event lists, because a random split of events is exactly a Poisson thinning. That makes the approach a fit for event-based storage, not a step backward from it. The Latent-First Laboratory argues for encoding at the instrument but names no encoder that can handle full-resolution fields. Our model is a candidate for that encoder, though we do not claim to solve its audit or standardization problems.
On the attention side, Trainable Log-linear Sparse Attention for Efficient Diffusion Transformers reduces attention cost by hierarchical selection within a uniform token grid. It is an orthogonal alternative that we compare against directly. That paper also warns that sparse indexing needs custom kernels to give real wall-clock speedups. Variable-size tokens avoid that problem, because the result is a shorter dense sequence that standard fused attention handles. LookupViT compresses global context into about 25 tokens, and its authors say it has not been adapted to dense prediction. Picking and denoising are dense tasks, so we do not use it as a primary competitor.
Research Program
We will build three things. The first is the allocator: thinning of gain-normalized counts, patch scores at three scales (for example 16, 32 and 64 pixels), and a greedy quadtree refinement that splits the highest-scoring patches until a token budget $B$ is reached. Before any model training, we will measure how faithful the allocation is. Using published particle coordinates as reference, we will record the fraction of fine tokens that fall on particles versus ice. We will compare this across our score, raw entropy, raw variance and low-pass-filtered variance, at doses from full exposure down to a few electrons per pixel, by thinning further. This diagnostic is cheap, and it can falsify the core claim on its own.
The second is the model. A ViT backbone takes the mixed-size tokens, with APT's zero-initialized merge for coarse patches and position embeddings tied to patch centers. It is pre-trained with DRACO's combined objective of masked reconstruction plus Noise2Noise, using the same EMPIAR corpus. For dense outputs we will scatter token features back onto the pixel grid; coarse tokens decode at coarse resolution, which is acceptable for ice. At $B$ around 8,000 tokens, a 4096×4096 micrograph fits in one forward pass. Uniform 16-pixel patches would need about 65,000 tokens.
The third is the evaluation on DRACO's three downstream tasks, plus a robustness study. We will apply the same allocator to event-mode data where it is available, and to simulated Poisson-limited low-dose TEM images in the style of Zero-Shot Image Denoising for High-Resolution Electron Microscopy. That data has a Gaussian read-noise component that thinning does not split, which tests where the approach breaks.
Baselines
The naive reference point is a uniform-patch ViT on micrographs binned to fit the same token budget $B$, trained with the identical objective, data and steps. Any win over it must come from where tokens go, not from how many there are. Beating it means higher curation accuracy and better picking-derived resolution at equal tokens and equal measured GPU-hours.
The strongest existing method is DRACO itself, run the way its authors run it: standard ViT, uniform patches, tiling at full size. DRACO-L reports 98.3% curation accuracy and a 3.90 Å reconstruction from its picks on Human HCN1, against 4.20 Å for Topaz, and a denoising SNR of 12.21 against 8.66 for Topaz-Denoise on RNA polymerase (DRACO). If DRACO weights and splits are released we will use them. Otherwise we will retrain DRACO and our model under a shared budget and report both against the published numbers. Beating it means matching those three numbers within noise while using at most a third of DRACO's attention FLOPs and wall-clock time, or improving curation, where whole-micrograph context should matter most.
The entropy-allocation baseline is APT (Accelerating Vision Transformers with Adaptive Patch Sizes) applied unchanged to raw micrographs, with its threshold tuned on our validation set using the same search budget we give our budget parameter. We found no reported result on Lacuna for APT on electron micrographs. The attention-side baseline is LLSA (Trainable Log-linear Sparse Attention) on uniform full-resolution tokens, compared at equal wall-clock time; its reported results are 20.41 FID and a 28.27× attention speedup, but only on ImageNet-256 generation, not on microscopy. A Swin-style windowed ViT at full resolution covers the local-attention option.
Two ablations isolate the key ingredient. The first replaces our score with the variance of a low-pass-filtered sum, matched in smoothing scale. The second uses random allocation at the same budget.
Why not just…?
Why not just bin the micrograph? Binning is what picking pipelines already do, and for large particles it may be sufficient. That makes it a real threat. It is the naive baseline above, and we expect our advantage to grow as particle size shrinks and for curation cues that need fine detail, such as thin-ice cracks and small contaminants. If binning matches us across particle sizes, the proposal's value reduces to cost savings and we will say so.
Why not just denoise or low-pass filter first, then use entropy or variance? This is the most serious alternative. With enough smoothing, signal variance does dominate noise. The case for splitting is that the noise term in any statistic of the summed image grows with local dose and ice thickness, so a smoothed-variance rule needs a dose-dependent threshold, while the cross-covariance does not. Our dose sweep in the allocation diagnostic settles this. If low-pass variance ranks patches as well as thinning at every dose, we will adopt it as the method and drop the claim of necessity.
Why not just keep uniform tokens and make attention sparse, as LLSA does? Sparse attention keeps every token, so memory still grows with the full count, and its speedups depend on custom kernels. Allocation shortens the sequence itself. The two can be combined, and we will report the combination. The equal-wall-clock comparison shows which matters more on micrographs.
Why not just tile with DRACO? Tiling handles local tasks well. Whether global context helps curation is an empirical question, and the DRACO comparison answers it directly.
Decisive Experiments
The work stands or falls on three checks. First, in the allocation diagnostic on EMPIAR micrographs with published particle coordinates, our score must place clearly more fine tokens on particles than entropy at all doses, and more than low-pass variance at low dose. Second, on the DRACO tasks, the full-micrograph model at budget $B$ must reach DRACO's reported 98.3% curation accuracy, 3.90 Å HCN1 picking resolution and 12.21 denoising SNR, or our retrained equivalents, at substantially lower measured cost, and it must beat binned uniform patches at equal tokens. Third, accuracy-versus-budget curves must show the thinning-scored model reaching DRACO-level accuracy at a smaller budget than any of the alternative allocators. A negative result on the first check alone would end the project cheaply, which is why it runs first.
References
- Accelerating Vision Transformers with Adaptive Patch Sizes
- SG-Former: Self-guided Transformer with Evolving Token Reallocation
- DRACO: A Denoising-Reconstruction Autoencoder for Cryo-EM
- Generative Priors for Cryo-EM Image Reconstruction
- CryoFormer: Continuous Reconstruction of 3D Structures from Cryo-EM Data using Transformer-based Neural Representations
- A data reduction and compression description for high throughput time-resolved electron microscopy
- The Latent-First Laboratory: A Manifesto for Efficient, Audit-Based AI Science
- Trainable Log-linear Sparse Attention for Efficient Diffusion Transformers
- LookupViT: Compressing Visual Information to a Limited Number of Tokens
- Zero-Shot Image Denoising for High-Resolution Electron Microscopy