AoP-SAM: Automation of Prompts for Efficient Segmentation
Abstract
The Segment Anything Model (SAM) is a powerful foundation model for image segmentation, showing robust zero-shot generalization through prompt engineering. However, relying on manual prompts is impractical for real-world applications, particularly in scenarios where rapid prompt provision and resource efficiency are crucial. In this paper, we propose the Automation of Prompts for SAM (AoP-SAM), a novel approach that learns to generate essential prompts in optimal locations automatically. AoP-SAM enhances SAM’s efficiency and usability by eliminating manual input, making it better suited for real-world segmentation tasks. Our approach employs a lightweight yet efficient Prompt Predictor model that detects key entities across images and identifies the optimal regions for placing prompt candidates. This method leverages SAM’s image embeddings, preserving its zero-shot generalization capabilities without requiring fine-tuning. Additionally, we introduce a test-time instance-level Adaptive Sampling and Filtering mechanism that generates prompts in a coarse-to-fine manner. This significantly enhances both prompt and mask generation efficiency by reducing computational overhead and minimizing redundant mask refinements. Evaluations of three datasets demonstrate that AoP-SAM substantially improves both prompt generation efficiency and mask generation accuracy, making SAM more effective for automated segmentation tasks.
Empirical ResultsBrowse all benchmarks →
| Benchmark | Method | Metric | Score | Protocol / Evidence |
|---|---|---|---|---|
| SA-1B | AoP-SAM | Latency | 0.65 s | params=1BSource quoteL232: AoP-SAM │ 0.65 │ 0.77 │ 0.84 │ 0.042 |
| SA-1B | OAS(Box) | Latency | 1.16 s | params=1BSource quoteL230: OAS(Box) │ 1.16 │ 1.01 │ 0.99 │ 0.78 |
| COCO | AoP-SAM | Latency | 0.77 s | Prompt automation with MobileSAM on an Nvidia Jetson Orin Nano Edge GPU.Source quoteL232: AoP-SAM │ 0.65 │ 0.77 │ 0.84 │ 0.042 |
| LVIS | AoP-SAM | Latency | 0.84 s | Prompt automation with MobileSAM on an Nvidia Jetson Orin Nano Edge GPU.Source quoteL232: AoP-SAM │ 0.65 │ 0.77 │ 0.84 │ 0.042 |
| Prompt automation efficiency (dataset not specified for this column) | AoP-SAM | Peak Mem | 0.042 GB | MobileSAM on an Nvidia Jetson Orin Nano Edge GPU; the table reports one peak-memory val…Source quoteL232: AoP-SAM │ 0.65 │ 0.77 │ 0.84 │ 0.042 |
| Prompt automation efficiency (dataset not specified for this column) | OAS(Box) | Peak Mem | 0.78 GB | MobileSAM on an Nvidia Jetson Orin Nano Edge GPU; the table reports one peak-memory val…Source quoteL230: OAS(Box) │ 1.16 │ 1.01 │ 0.99 │ 0.78 |
BibTeX
@inproceedings{chen2025aop,
author = {Yi Chen and Muyoung Son and Chuanbo Hua and Joo-Young Kim},
title = {{AoP-SAM: Automation of Prompts for Efficient Segmentation}},
booktitle = {AAAI Conference on Artificial Intelligence},
year = {2025},
doi = {10.1609/aaai.v39i2.32228},
}Ask Althea to put this paper to the test.