When two identical cells, fruits or nuclei touch, the image often has no visible edge between them. The most reliable way current models separate them is to predict, at every pixel, a small arrow pointing to the center of the object that pixel belongs to. At the line where two objects meet, the arrows flip direction, and that sharp reversal is what tells the two objects apart. Modern backbones, however, shrink the image early: by pooling, by strided convolutions, or in vision transformers by cutting it into 16×16-pixel patches. A contact line a few pixels wide falls inside one coarse cell, and the arrow reversal gets averaged into an arrow pointing nowhere. This note proposes a learned resampler that spends spatial resolution where objects touch. Before the backbone sees the image, the resampler places more sample points along predicted contact interfaces and fewer in object interiors and background, so the arrow reversal survives downsampling at fixed compute.
The concrete motivation is a documented ceiling. Is PEFT Enough for Cell Segmentation? adapts Cellpose-SAM on LIVECell with adapters, LoRA, boundary-weighted losses, flow-repulsion losses and full fine-tuning. Every variant lands in a narrow band around 0.56 AP, and touching cells stay merged. The authors attribute this to missing inductive bias in the pretrained representation. We test a narrower and more checkable hypothesis: a large part of that ceiling comes from resolution, because contact interfaces fall below the backbone's effective sampling rate. If the hypothesis holds, the fix is to change where the model samples, not how it is fine-tuned.
Core Claim
At matched compute, a sampling grid that is warped toward instance contact interfaces will separate touching same-class objects better than three alternatives at the same compute: uniform downsampling, importance-weighted pooling, and a grid warped toward semantic (foreground/background) boundaries. The gain should be concentrated on touching pairs whose shared interface is narrower than the backbone stride.
The new element is the target the sampler is trained on. Efficient Segmentation: Learning Downsampling Near Semantic Boundaries supplies the machinery: a small auxiliary network predicts a deformed sampling grid that is pulled toward class boundaries. It reports a 3–5% mIoU gain on ApolloScapes at equal FLOPs and roughly double recall on the smallest objects. Because it is trained on semantic boundaries, it ignores exactly the interface between two touching objects of the same class, which is the line that matters for instance separation. LIP: Local Importance-Based Pooling learns where to concentrate pooling weight and raises COCO small-object AP from 21.9% to 24.0%, but its importance maps carry no notion of instance identity. We keep the deformable-grid mechanism from the first paper and swap its target.
Research Program
Sampler target. Let $C$ be the set of contact pixels: foreground pixels that have an 8-neighbour belonging to a different foreground instance. $C$ can be computed directly from instance labels. Following Marin et al.'s energy formulation, the sampler predicts sample locations $\theta_{ij}$ on an $N\times N$ output grid by minimizing
$$ E(\theta)=\sum_{ij}\lVert \theta_{ij}-c(\theta_{ij})\rVert^2+\lambda\sum_{ij}\sum_{(k,l)\in\mathcal{N}(i,j)}\lVert\theta_{ij}-\theta_{kl}\rVert^2 . $$
Here $c(\theta)$ is the nearest point of $C$ within a local window, $\mathcal{N}(i,j)$ is the set of grid neighbours of $(i,j)$, and $\lambda$ trades interface attraction against grid regularity. We add a small floor on interior density so that object centers are still sampled. During training, the sampler regresses to the minimizer computed from ground-truth labels. At test time it predicts the warp from the image alone, using a low-resolution auxiliary network that is cheap relative to the backbone.
Telling the backbone where its samples are. After warping, neighbouring tokens no longer correspond to evenly spaced image locations. We therefore append each sample point's original image coordinates to its features. This is the semi-convolutional idea from Semi-convolutional Operators for Instance Segmentation, which conditions filters on absolute position so that identical replicas become distinguishable. In our setting it plays a second role: it keeps the backbone from confusing a stretched region with a large object. Following the gradient-detachment practice in Panoptic Lifting, we stop the segmentation loss from flowing into the sampler. Without this, the sampler could learn to collapse sample points onto easy regions.
Output head and unwarping. The head predicts a foreground probability and a center-offset field in the style of Accurate Nuclear Segmentation with Center Vector Encoding, and also Cellpose-style flows when the backbone is Cellpose-SAM. Offsets are expressed directly in original image coordinates at each sample point. This avoids having to correct predicted vectors for the warp's local stretching. Predictions are then scattered back to the pixel grid by nearest-sample interpolation, which is cheaper than the triangulation-based reconstruction Marin et al. describe. Standard flow-following then produces the instances.
Diagnostics before any method claim. First, on LIVECell we bin ground-truth touching pairs by interface width relative to the 16-pixel patch size. For each bin we measure the merge rate (the fraction of touching pairs that end up assigned to a single predicted instance) for Cellpose-SAM after full fine-tuning. Second, we run an oracle: we feed the warp computed from ground truth instead of the predicted one. If even the oracle warp does not lower merge rates in the narrow-interface bins, the resolution hypothesis is wrong, and we stop and report that. This would strengthen the PEFT paper's representational explanation.
Baselines
The naive reference is Cellpose-SAM fine-tuned in full on LIVECell with uniform patching. Is PEFT Enough for Cell Segmentation? reports 0.5627 AP for this setting and 0.5447 AP for the base model. We re-run it with the same data splits, schedule and number of hyperparameter trials as every other variant, so that our number is comparable and not borrowed. This is the strongest competitor on LIVECell because no adaptation strategy tested in that paper moved it.
The strongest resolution-side competitor is the semantic-boundary sampler of Efficient Segmentation, placed in the same pipeline with the same token budget. Comparing against it isolates the contact-interface target, which is our key ingredient. We also run LIP pooling in a convolutional backbone (the center-vector setup) at matched FLOPs, and a random warp whose sample-density histogram matches ours but is not tied to interfaces. The random warp rules out the explanation that any non-uniform grid helps by acting as data augmentation.
On the overlap side, we compare against Disco, which reports 50.87% PQ on GBC-FS 2025, 7.08 points above FCIS. We compare against center-vector encoding, which reports 0.561 AJI on the Kumar dataset against 0.508 for CNN3. On ISBI2014 we compare against DoNet, which reports 64.02 mAP. Where code allows, we rerun each method under our compute budget. Where it does not, we compare to the published figure and label it as such.
Beating the baseline means two things at equal backbone FLOPs: an AP gain on LIVECell above the roughly 0.002 AP spread separating all adaptation variants in Hwang et al., and a clear drop in narrow-interface merge rate. A gain in mean AP without a matching drop in merge rate would not count as support for the claim.
Why not just…?
Why not just upsample the input or use smaller patches? This is the main threat. Halving the patch size quadruples the number of tokens, and it may close the gap by itself. We run it explicitly at 2× input upsampling and at tiled full resolution, and we plot merge rate and AP against FLOPs for uniform and warped grids. If uniform high resolution reaches the same accuracy at comparable cost, the contribution reduces to the diagnostic, and we will say so. The bet is that contact pixels are a small fraction of each image, so concentrating samples on them should dominate the uniform curve at every budget.
Why not just predict a "touching boundary" class, as watershed pipelines do? CNN-Based Preprocessing to Optimize Watershed jointly predicts seeds and separating membranes. That changes what the model outputs, but the contact line is still averaged away inside a coarse cell, so a boundary head faces the same resolution limit. We add a membrane head to both the uniform and the warped models. If it helps only the warped model, or helps the uniform model as much as warping does, that answers the question directly.
Why not just use topological priors like Disco's coloring? Disco forces touching cells into orthogonal features through an adjacency loss. That is complementary rather than competing, but it also assumes the backbone can still resolve which cells are adjacent. We test our sampler with Disco's head on GBC-FS 2025. The prediction is that the gain is largest on the more than 30% of cells involved in odd-cycle conflicts, where interfaces are densest.
Proposed Experiments
LIVECell is the primary benchmark because it carries the documented ceiling. We report COCO-style AP and merge rate binned by interface width and cell type, alongside the interface diagnostic and the oracle-warp test. GBC-FS 2025 (PQ) and Kumar (AJI) test whether the effect transfers to histology with a convolutional backbone. ISBI2014 (mAP) probes translucent overlap; there, interfaces are not well-defined lines, and we expect little gain.
Two outcomes would decide the question. The first is whether the oracle warp lowers narrow-interface merges on LIVECell. The second is whether the learned contact-interface sampler beats both the semantic-boundary sampler and uniform 2× upsampling on the accuracy-versus-FLOPs curve.
References
- Is PEFT Enough for Cell Segmentation? An Empirical No-Go Result on Frozen Foundation Models
- Efficient Segmentation: Learning Downsampling Near Semantic Boundaries
- LIP: Local Importance-Based Pooling
- Semi-convolutional Operators for Instance Segmentation
- Panoptic Lifting for 3D Scene Understanding with Neural Fields
- Accurate Nuclear Segmentation with Center Vector Encoding
- Disco: Densely-overlapping Cell Instance Segmentation via Adjacency-aware Collaborative Coloring
- DoNet: Deep De-overlapping Network for Cytology Instance Segmentation
- CNN-based Preprocessing to Optimize Watershed-based Cell Segmentation in 3D Confocal Microscopy Images