SAM$^{*}$: Task-Adaptive SAM with Physics-Guided Rewards

Kamyar Barakati, Utkarsh Pratiush, Sheryl L. Sanchez, Aditya Raghavan, Delia J. Milliron +3 more
9/8/2025
cs.CVcond-mat.mtrl-scics.LG

No confident code implementation found for this paper.

Abstract

Image segmentation is a critical task in microscopy, essential for accurately analyzing and interpreting complex visual data. This task can be performed using custom models trained on domain-specific datasets, transfer learning from pre-trained models, or foundational models that offer broad applicability. However, foundational models often present a considerable number of non-transparent tuning parameters that require extensive manual optimization, limiting their usability for real-time streaming data analysis. Here, we introduce a reward function-based optimization to fine-tune foundational models and illustrate this approach for SAM (Segment Anything Model) framework by Meta. The reward functions can be constructed to represent the physics of the imaged system, including particle size distributions, geometries, and other criteria. By integrating a reward-driven optimization framework, we enhance SAM's adaptability and performance, leading to an optimized variant, SAM$^{*}$, that better aligns with the requirements of diverse segmentation tasks and particularly allows for real-time streaming data segmentation. We demonstrate the effectiveness of this approach in microscopy imaging, where precise segmentation is crucial for analyzing cellular structures, material interfaces, and nanoscale features.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{barakati2025sam,
  title  = {SAM$^{*}$: Task-Adaptive SAM with Physics-Guided Rewards},
  author = {Kamyar Barakati and Utkarsh Pratiush and Sheryl L. Sanchez and Aditya Raghavan and Delia J. Milliron and Mahshid Ahmadi and Philip D. Rack and Sergei V. Kalinin},
  year   = {2025},
  eprint = {2509.07047},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.07047v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.07047.svg)](https://codeofpaper.com/paper/2509.07047)

Discussion