NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

$\varepsilon$-SegFormer: Multi-Resolution Vision Transformers for Sparsely Supervised Segmentation in Electron Microscopy

Erfan Amidi, Sheida RahnamaiKordasiabi, Edoardo Giacomello, Florian JugarXiv 2026

Imagine you’ve just spent your entire day staring at a screen, and now someone hands you a high-resolution map of a massive city. Your task? Color in every single building, park, and sidewalk. It would take months. That is exactly what biologists face when they try to segment organelles (like mitochondria or nuclei) in Volume Electron Microscopy (vEM) data. A single cell can contain hundreds of millions of voxels (3D pixels), and labeling them all is the ultimate research bottleneck.

The paper $\varepsilon$-SegFormer introduces a way to get nearly perfect results while only labeling about 0.0015% of the data. It’s like being able to map that entire city by only looking at a few dozen random street corners.

TL;DR

$\varepsilon$-SegFormer is a multi-resolution Vision Transformer that learns to segment complex biological structures from just a handful of labeled pixels. By looking at "zoomed-in" and "zoomed-out" views simultaneously and intentionally hiding the target pixel during training, it achieves performance nearly identical to models trained on millions of labels.

What Problem Does This Paper Address?

In Electron Microscopy, we can see everything inside a cell at nanometer resolution. However, turning these images into data requires "segmentation"—drawing boundaries around organelles.

Standard deep learning models (like U-Nets) usually require dense annotations, where every single pixel is labeled. This is a Herculean task. Sparse supervision (labeling just a few dots) is the dream, but it has a major flaw: local appearance is often ambiguous. A small gray blob might be a granule, a piece of a mitochondrion, or just cytoplasm. To know for sure, you need context—the "big picture" of what’s around it. Traditional convolutional neural networks (CNNs) have a hard time seeing far enough away without becoming computationally bloated.

Methods

The authors propose a "Multi-Resolution Vision Transformer" approach. Instead of looking at one high-res patch, the model looks at three different views centered on the same pixel:

  1. Fine: High resolution, small area.
  2. Medium: Lower resolution, medium area.
  3. Coarse: Lowest resolution, wide area.
**Overview of $\varepsilon$-SegFormer.** (a) Sparse labels are scattered dots. (b) Three views at different scales are tokenized for the Transformer. (c) The final prediction on an unseen cell.

The Secret Sauce:

  • Shared Coordinates: They use Rotary Position Embeddings (RoPE) to ensure the model understands exactly how the "zoomed-in" view fits into the "zoomed-out" view in a single coordinate frame.
  • The Blind-Spot Principle: During training, the model is forbidden from seeing the actual pixel it is trying to classify. By "dropping" the center token, the model is forced to learn from the surrounding context. If it can't see the center, it has to look at the "envelope" of the nucleus or the "cristae" of the mitochondria nearby to make a guess.
  • Joint Objective: The model doesn't just classify; it also tries to reconstruct the missing parts of the image (like a Masked Autoencoder), which helps it learn the underlying structure of the cell without needing extra labels.
**Architecture Detail.** The model patches the three views, drops the center token, and uses a ViT encoder to relate all tokens via attention.

Datasets

The study uses the BetaSeg dataset, which consists of Focused Ion Beam Scanning Electron Microscopy (FIB-SEM) volumes of mouse pancreatic $\beta$ cells.

  • Training: Three cells (c1–c3) using only ~10,000 labeled pixels.
  • Evaluation: A fourth, completely unseen cell (high_c4).

Key Insights and Ideas

  • Context Trumps Resolution: The researchers found that adding coarser, wider views improved accuracy significantly more than just adding more high-resolution detail. In biology, the "neighborhood" tells you who you are.
  • Breaking the Shortcut: If a model can see the target pixel, it often "cheats" by memorizing local textures. Hiding that pixel (the blind spot) is essential for forcing the model to understand biological morphology.
  • Transformers are Natural Multi-Taskers: Because Transformers use "attention" to relate every part of the input to every other part, they are uniquely suited to combining these multi-scale views into a coherent understanding of the cell.

Key Results

The results are startlingly close to "perfect" supervision:

  • Accuracy: $\varepsilon$-SegFormer achieved an average Dice score of 0.91 (a measure of overlap where 1.0 is perfect).
  • The Efficiency Gap: This score is only 0.02 points behind a U-Net trained on the full 670 million voxels.
  • Mitochondria Mastery: On mitochondria, $\varepsilon$-SegFormer actually outperformed the fully supervised models, likely because its wide context allowed it to better distinguish them from similar-looking granules.
**Qualitative Results.** Comparing $\varepsilon$-SegFormer (top right) to ground truth and other methods. Note how it captures the complex shapes of the mitochondria (blue) and granules (yellow) with very few training labels.

Limitations and Future Work

  • Inference Speed: Currently, the model classifies the volume pixel-by-pixel. This is slow—taking about 1.6 GPU-hours per 2D slice. To segment a whole 3D volume, it needs to become much faster, perhaps by classifying multiple pixels at once.
  • 2D vs. 3D: While the data is 3D, the current model operates on 2D slices. Incorporating the third dimension (the Z-axis) into the multi-resolution views is a clear next step.
  • Active Learning: The authors suggest the model could eventually "ask" the human annotator for labels in areas where it is most uncertain, making the 10,000-click process even more efficient.

Summary updated

BibTeX
@misc{amidi2026varepsilon,
  author = {Erfan Amidi and Sheida RahnamaiKordasiabi and Edoardo Giacomello and Florian Jug},
  title = {{$\textbackslash\{\}varepsilon$-SegFormer: Multi-Resolution Vision Transformers for Sparsely Supervised Segmentation in Electron Microscopy}},
  year = {2026},
  eprint = {2611.27796},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27796},
}
Figure