TL;DR
State-of-the-art segmentation models like Meta’s Segment Anything (SAM) waste massive computational resources by encoding entire images before focusing on specific objects. This paper introduces FLIP (Fovea-Like Input Patching), a biologically-inspired model that selectively samples multi-resolution patches centered only on the object of interest. By processing local foveal details and coarser peripheral context off-grid, FLIP outperforms SAM and SAM2 variants while using up to 440$\times$ fewer parameters and running significantly faster.
What Problem Does This Paper Address?
Modern foundational segmentation models rely on heavy full-image encoders. Whether you are segmenting a massive truck or a tiny bird in a high-resolution landscape, the model spends the same enormous compute budget encoding every single background pixel first.
This brute-force approach causes two major issues:
- Computational Inefficiency: It wastes energy and processing time on irrelevant image regions.
- Scale Vulnerability: Fixed-resolution full-image encoders struggle to capture extremely small objects when they are drowned out by a massive overall image resolution.
The authors tackle this by rethinking the input pipeline, shifting from rigid full-image grids to a localized, object-centric approach modeled after human foveal vision.
Methods
FLIP replaces the standard full-image encoder with a dynamic, multi-resolution patch sampling strategy driven by top-down attention.
The core pipeline consists of three main components:
- Fovea-Like Input Patching: Given an object prompt, the model estimates the target's center and spatial extent as a 2D Gaussian distribution ($\mu, \Sigma$). It then samples a fixed budget of patches across multiple scales. High-resolution (small) patches are concentrated near the object's center to capture fine details, while lower-resolution (large) patches spread outward to capture peripheral context.
- Off-Grid, Continuous Sampling: Instead of snapping to a pixel grid, patches are sampled at real-valued coordinates using bilinear interpolation. This makes the encoding process inherently scale-invariant and independent of the original image size.
- Sparse Mask Prediction: During training and inference, FLIP avoids dense mask generation. Instead, it utilizes a specialized Pixel-Predictor that calculates attention over sparse target coordinates (focusing heavily on challenging boundary regions), reducing mask prediction complexity from $O(HW)$ to $O(k)$.
Datasets
FLIP was trained exclusively on Meta's SA-1B dataset. To demonstrate robust cross-dataset generalization, the authors evaluated the model without any fine-tuning across five established benchmarks:
- Hypersim (indoor simulation)
- KITTI-360 (urban/automotive)
- OpenImages, COCO, and LVIS (diverse natural images)
Additionally, the authors introduced ObjaScale, a novel synthetic dataset designed to stress-test scale invariance. It features single objects rendered via Blender on real-world High Dynamic Range Image (HDRI) backgrounds, with image resolutions scaling up to 8192 pixels and object areas spanning from a minuscule 0.0001% to 25% of the image.
Key Insights and Ideas
- Scale Invariance via Coordinate Normalization: Because FLIP normalizes patch coordinates relative to the object's own Gaussian parameters ($\mu, \Sigma$) rather than the image boundaries, its accuracy is governed by absolute pixel coverage. It doesn't matter if an object is in a 512px or an 8192px image; the model processes it identically.
- Foveation as a Computational Saver: You don't need to see the entire scene at high resolution to understand an object. Coarse peripheral patches provide more than enough contextual information for accurate instance segmentation.
- The Failure of Full-Image Encoders on Small Scales: The paper exposes a critical flaw in models like SAM and SAM2: their performance drops sharply when the mask-to-image ratio falls below 0.01%. FLIP's foveal design completely bypasses this limitation.
Key Results
FLIP achieves a remarkable Pareto-frontier shift in the trade-off between accuracy, parameter count, and inference speed.
- FLIP-Tiny vs. SAM2-L: With just 0.51M parameters, FLIP-Tiny achieves a mean IoU of 79.90% across all six datasets, outperforming Meta's massive SAM2-L (224.45M parameters, 75.87% IoU) despite using 440$\times$ fewer parameters.
- FLIP-Large Efficiency: FLIP-Large (96.6M parameters) pushes accuracy further to 83.26% mean IoU while running roughly 2$\times$ faster than SAM2-L during inference.
- ObjaScale Dominance: On the scale-stressed ObjaScale dataset, FLIP variants maintained a stable 88.6%–90.7% IoU, whereas standard SAM variants degraded significantly, maxing out at 73.76% IoU.
Limitations and Future Work
Despite its strengths, FLIP introduces a few key limitations:
- Prompt Dependency & Noise Sensitivity: FLIP relies heavily on the accuracy of its 2D Gaussian prompt. If the input bounding box or point prompt is highly inaccurate, the foveal sampling window shifts away from the target, causing performance to degrade more rapidly than it would in full-image encoders.
- Not Yet a Drop-In Replacement: Most existing object detection pipelines output axis-aligned bounding boxes or points rather than 2D Gaussians with rotation and covariance.
Future Directions: The authors suggest that FLIP is uniquely positioned for video object tracking. A temporal module (like a slot-based architecture) could easily predict the 2D Gaussian parameters of an object across successive frames, allowing FLIP to track and segment objects smoothly and efficiently over time.
Summary updated