TL;DR
This paper introduces GraCo, a novel interactive segmentation (IS) system that allows users to precisely control the granularity of segmentation outputs. By generating abundant mask-granularity pairs automatically and employing a new learning strategy, GraCo overcomes the limitations of existing IS methods, offering flexible and non-redundant segmentation for both objects and their parts.
What Problem Does This Paper Address?
Interactive Segmentation (IS) is a powerful tool for segmenting objects or parts of objects in images based on user input, like clicks. Current IS methods typically fall into two categories: those that produce a single segmentation mask (single-granularity) and those that output multiple masks at different levels of detail (multi-granularity). While multi-granularity approaches aim to resolve the ambiguity inherent in single-granularity methods (e.g., a user clicking on a car might want the whole car or just a specific part like a wheel), they often suffer from limited interaction flexibility and generate redundant results, requiring users to manually select the best mask. Furthermore, creating datasets with annotations for various granularities is extremely costly and time-consuming. This paper addresses the need for an IS system that offers precise, flexible control over segmentation granularity without requiring extensive manual annotation or producing redundant outputs.
Methods
The proposed GraCo system operates in two main stages:
- Any-Granularity Mask Generator (AGG): This novel component automatically generates a large number of mask-granularity pairs. It comprises:
- Mask Engine: Leverages the semantic understanding of pre-trained IS models (like SimpleClick) to generate diverse part proposals. It uses a "multi-granularity loop simulation" where simulated clicks are iteratively applied to refine masks, effectively mimicking a human-in-the-loop process.
- Granularity Estimator: Quantifies the granularity of each generated mask proposal. This is done by considering both scale granularity (the ratio of the mask's area to the entire object's area) and semantic granularity (derived from the model's probability map at different thresholds). These two aspects are combined to provide a comprehensive granularity score.
- Granularity-Controllable Learning (GCL): This stage trains the IS model to understand and utilize the generated granularity information.
- Granularity Embedding: The quantified granularity is transformed into a learnable embedding, which is then fed as an additional prompt to the IS model alongside image and click embeddings.
- LoRA (Low-Rank Adaptation): To efficiently impart granularity controllability without significantly altering the pre-trained IS model's performance, the authors employ LoRA. This technique freezes the original model weights and trains only a small number of new parameters, making the fine-tuning process computationally efficient.
Datasets
The authors evaluate their method on a combination of object-level and part-level segmentation benchmarks:
- Object-level: GrabCut, Berkeley, SBD, and DAVIS.
- Part-level: PascalPart and PartImageNet.
They also use the SA-1B dataset for evaluating performance on a large-scale, multi-granularity benchmark.
Key Insights and Ideas
- Granularity as an Explicit Control: The core idea is to treat segmentation granularity not as an inherent property of a model, but as an explicit input parameter that users can control. This shifts the paradigm from "what can the model segment?" to "how do you want the model to segment?".
- Automated Data Generation is Key: The exorbitant cost of annotating multi-granularity masks is a major bottleneck. The AGG component effectively bypasses this by leveraging existing pre-trained models and simulating interactions to generate a rich dataset of mask-granularity pairs.
- Scale and Semantic Granularity Complement Each Other: The paper demonstrates that combining both scale and semantic information provides a more robust definition of granularity, leading to better control and performance, especially for fine-grained parts.
- LoRA for Efficient Fine-tuning: Using LoRA for fine-tuning is crucial for enabling the IS model to learn granularity controllability without losing its original performance or incurring high computational costs.
Key Results
- Superior Performance: GraCo significantly outperforms previous single-granularity IS methods on both object and part-level benchmarks. It also achieves comparable or superior performance to multi-granularity methods like SAM, particularly on part-level tasks.
- Improved Efficiency: GraCo requires fewer clicks (lower NoC) to achieve target IoU thresholds compared to many existing methods. For instance, on PascalPart, GraCo w/ AGG achieves NoC@85 of 3.82, significantly better than SAM's 4.20.
- Granularity Controllability Verified: Experiments (e.g., IoU-granularity curves) show that GraCo can indeed control the segmentation output's granularity, aligning with human intuition (e.g., finer granularity for detailed parts like a cat's leg, coarser for the head).
- Robustness: GraCo demonstrates robust generalization on the challenging SA-1B dataset, performing comparably to SAM.
Limitations and Future Work
- Randomness in AGG: The authors acknowledge that the randomness in interaction signals generated by AGG can sometimes lead to semantically inconsistent parts or noisy boundaries, potentially affecting granularity control accuracy.
- Offline Generation Trade-off: The AGG generates proposals offline for efficiency. This leads to a trade-off between storage space and the abundance of granularity options. The authors suggest exploring online fine-tuning of the granularity-controllability paradigm as a future direction.
- Computational Cost of AGG: While GCL is efficient, the AGG itself might be computationally intensive for generating a vast number of proposals.
- Future Work: The authors hope their work opens new avenues for resolving ambiguity in pixel-level interactive AI systems and suggests exploring the online fine-tuning of granularity control.
Summary updated