Unsegment Anything by Simulating Deformation

Jiahao Lu, Xingyi Yang, Xinchao Wang
2/9/2026

No official code found. Best implementation: jiahaolu97/anything-unsegmentable (29 stars, last commit 2024-05-27).

Abstract

Foundation segmentation models, while powerful, pose a significant risk: they enable users to effortlessly extract any objects from any digital content with a single click, potentially leading to copyright infringement or malicious misuse. To mitigate this risk, we introduce a new task “Anything Unsegmentable” to grant any image “the right to be unsegmented”. The ambitious pursuit of the task is to achieve highly transferable adversarial attack against all prompt-based segmentation models, regardless of model parameterizations and prompts. We highlight the non-transferable and heterogeneous nature of promptspecific adversarial noises. Our approach focuses on disrupting image encoder features to achieve prompt-agnostic attacks. Intriguingly, targeted feature attacks exhibit better transferability compared to untargeted ones, suggesting the optimal update direction aligns with the image manifold. Based on the observations, we design a novel attack named Unsegment Anything by Simulating Deformation (UAD). Our attack optimizes a differentiable deformation function to create a target deformed image, which alters structural information while preserving achievable feature distance by adversarial example. Extensive experiments verify the effectiveness of our approach, compromising a variety of promptable segmentation models with different architectures and prompt interfaces. We release the code at https://github.com/ijahaolu97/anything-unsegmentable.

View on arXivView PDF

Code Implementations(1)

(CVPR 2024) "Unsegment Anything by Simulating Deformation"

291Python, Jupyter NotebookMar 30, 20242 years ago
adversarial-attacks

Similar Papers

Cite this paper

@article{lu2026unsegment,
  title  = {Unsegment Anything by Simulating Deformation},
  author = {Jiahao Lu and Xingyi Yang and Xinchao Wang},
  year   = {2026},
  eprint = {2404.02585},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2404.02585},
  journal = {CVPR 2024 2024}
}

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/2404.02585.svg)](https://codeofpaper.com/paper/2404.02585)

Discussion