Exploiting Fine-Tuning Structures to Improve Adversarial Transferability on Downstream SAM
Shixiong Jiang, Jialiang Fan, Mengyu Liu, Pengfei Gu, Danny Z Chen, Fanxin Kong
NeurIPS 2026
Abstract. Combining the Segment Anything Model (SAM) with fine-tuning techniques allows SAM to be effectively adapted to various downstream image segmentation tasks. However, this adaptability introduces new security vulnerabilities related to adversarial attacks. In this paper, we investigate the adversarial transferability between the original SAM and its fine-tuned downstream models. Under limited knowledge conditions of the downstream models, we propose a novel structure-exploiting transferable attack (SETA) method. Our framework mimics the fine-tuning architecture and estimates the parameter distributions of the downstream models to improve the transferability of the generated adversarial samples. Experimental results demonstrate the efficacy of our proposed method in creating adversarial examples against various downstream fine-tuned SAM models. The code of this study is available at: https://github.com/cpsl-nd/SETA
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper addresses an important and practically relevant problem in transferable adversarial attacks for downstream SAM models. Reviewers generally agree that the proposed structure-aware attack is interesting and that the empirical results are promising, but they also raise concerns about the novelty relative to prior transfer attacks, the strength of the theoretical assumptions, and the completeness of the evaluation. Overall, the submission is currently on the borderline between accept and reject. At this stage, I lean toward borderline accept, but the final decision should depend on how well the authors address the reviewers’ concerns in their response. In particular, the authors should clarify the threat model, justify the main assumptions more carefully, include the more recent SAM-specific baselines or explain their omission, and provide a stronger discussion of variance and statistical significance.
Final justification
The authors have done a good job addressing the concerns raised by the reviewers during the rebuttal and discussion period. All reviewers ultimately expressed support for acceptance. The AC has carefully reviewed the paper, all reviews, and the subsequent discussions, and agrees that the authors have satisfactorily addressed the major concerns.
However, the AC noticed a potentially hallucinated or materially inaccurate citation in the manuscript, raised by the PC. The following reference appears to contain discrepancies in its title and publication year: The 2018 NIH-TCIA Multi-Atlas Labeling Beyond the Cranial Vault – Workshop and Challenge. Given the overall quality of the work and the authors' successful response to the reviewers' concerns, the AC has decided to accept the paper. Nevertheless, we strongly encourage the authors to carefully verify and correct all references, particularly the citation above and any other potentially inaccurate or hallucinated citations, in the final version. Ensuring the accuracy and verifiability of all bibliographic information is important for the quality and integrity of the final paper.
Read meta-review
Meta-review
The paper addresses an important and practically relevant problem in transferable adversarial attacks for downstream SAM models. Reviewers generally agree that the proposed structure-aware attack is interesting and that the empirical results are promising, but they also raise concerns about the novelty relative to prior transfer attacks, the strength of the theoretical assumptions, and the completeness of the evaluation. Overall, the submission is currently on the borderline between accept and reject. At this stage, I lean toward borderline accept, but the final decision should depend on how well the authors address the reviewers’ concerns in their response. In particular, the authors should clarify the threat model, justify the main assumptions more carefully, include the more recent SAM-specific baselines or explain their omission, and provide a stronger discussion of variance and statistical significance.
Final justification
The authors have done a good job addressing the concerns raised by the reviewers during the rebuttal and discussion period. All reviewers ultimately expressed support for acceptance. The AC has carefully reviewed the paper, all reviews, and the subsequent discussions, and agrees that the authors have satisfactorily addressed the major concerns.
However, the AC noticed a potentially hallucinated or materially inaccurate citation in the manuscript, raised by the PC. The following reference appears to contain discrepancies in its title and publication year: The 2018 NIH-TCIA Multi-Atlas Labeling Beyond the Cranial Vault – Workshop and Challenge. Given the overall quality of the work and the authors' successful response to the reviewers' concerns, the AC has decided to accept the paper. Nevertheless, we strongly encourage the authors to carefully verify and correct all references, particularly the citation above and any other potentially inaccurate or hallucinated citations, in the final version. Ensuring the accuracy and verifiability of all bibliographic information is important for the quality and integrity of the final paper.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies transferable, black-box adversarial attacks against parameter-efficient fine-tuned (PEFT) variants of the Segment Anything Model (SAM). The threat model assumes the adversary has full access to the open-source base SAM and knows the fine-tuning structure of the downstream model (which PEFT method, e.g. LoRA or adapters, the ranks, and the insertion points) but has no access to the downstream weights, the downstream task, or the downstream dataset, and no ground-truth mask for the input.
The proposed method, SETA (Structure-Exploiting Transferable Attack), has two parts. (1) "Ghost SAMs": rather than perturbing the base model with generic feature-level noise (as in classic ghost networks), the adversary attaches PEFT modules of the correct structure to the frozen base SAM and fills them with random parameters sampled from a Gaussian N(0, sigma^2) whose scale is chosen to roughly match the distribution observed in real downstream PEFT layers. (2) A "longitudinal ensemble" attack: at each iteration a small random subset of k ghost SAMs is drawn, gradients of an L2 feature-deviation objective are averaged over them, and the perturbation is updated with an MI-FGSM-style step and projected to an epsilon-ball. The attack objective maximizes the distance between clean and adversarial feature embeddings of the image encoder, which sidesteps the unknown segmentation label.
Empirically, SETA is compared against MI-FGSM, Ghost Networks, PGN, and UMI-GRAT on four downstream SAMs (SAMed/Synapse, Med-SAM/polyp, BC-SAM/blood cell, TS-SAM/COD), across three perturbation budgets (10/15/20 of 255). SETA reports the strongest attack (lowest downstream task metric) in essentially all cells of the main table.
The appendix adds a theorem and proof, loss-surface visualizations, a ViT-H experiment, an AdapterShadow (non-medical) experiment, component and hyperparameter ablations (number of ghost SAMs k, distribution type, with/without longitudinal ensemble, partial structural knowledge), compute-overhead numbers, qualitative mask visualizations, and a distribution-fit table justifying the Gaussian choice.
Strengths and weaknesses
The paper targets a timely and practically relevant threat surface: as base foundation models are open-sourced and then privately PEFT-adapted, an attacker who can only touch the public base may still be able to compromise the private downstream model. Framing transferability through the fine-tuning structure (rather than through gradient-noise heuristics, as in the closest prior work UMI-GRAT) is a clean and reasonable idea, and the paper executes it competently on the empirical side. Below I assess the four NeurIPS dimensions.
ORIGINALITY (below moderate). The core insight, simulating the downstream model by inserting structurally-correct PEFT modules with random weights and ensembling over them, is a sensible new twist on a well-studied recipe. However, both constituent techniques are borrowed: ghost networks and the longitudinal ensemble both come from Li et al. (2020a), and the feature-distance attack objective and the gradient-noise baseline come from Xia et al. (2024). The novelty is therefore the combination and its application to the PEFT-SAM setting, not a fundamentally new attack primitive. The newly added Table 12 (method-comparison) helps delineate the contribution from UMI-GRAT and Ghost Net, which is a real improvement over the earlier version of this work, but the delta over prior art remains incremental.
QUALITY (the major concern). The empirical methodology is solid and broad, but the paper's theoretical claim is not trustworthy, and this is the dimension that most damages the submission. Theorem 1 attempts to prove that the ghost objective G(x') is a good surrogate for the true downstream loss and that the SETA maximizer is at least as damaging (and under (A3) strictly more damaging) to the downstream model than the base-SAM maximizer. The proof rests on a first-order linearization (A1), a "typical fine-tuning" concentration argument (A2), and a strict-advantage assumption (A3). Several issues undermine it: (a) The result is stated for a general loss L but the entire argument only treats the linearized/quadratic feature-distance case; the "for the targeted downstream model fd" conclusion inherits this restriction and should be scoped accordingly. (b) The mechanism the theorem claims is, I believe, not the mechanism that actually drives the empirical gains. By symmetry, the expected (isotropic Gaussian) ghost objective G(x') = ||v0||^2 + sigma^2 ||J_Delta||_F^2 cannot be biased toward any particular downstream Delta_Wd, so it is not plausible that the SETA optimum is closer to every possible fine-tuning than the base-SAM optimum is. The more defensible explanation, which an ICLR reviewer of the prior version (of7z) articulated and which the authors did not refute, is the opposite: random ghosts average out the fine-tuning-specific directions and concentrate the attack on directions that are shared between base and downstream models, which is exactly why they transfer. The theorem as written does not capture this and the (A2) concentration bounds (treating numerator and denominator terms as effectively independent in high dimension) are asserted rather than derived. I recommend the theorem be either substantially reformulated to prove the "shared-direction" statement it can actually support, downgraded to an informal proposition with explicit caveats, or removed in favor of the (already strong) empirical evidence. As it stands, presenting it as a Theorem overclaims. (c) Statistical rigor of the experiments is thin: results are single-run means with no error bars, std, or significance tests (the checklist confirms this). Given that the method is inherently stochastic (random ghost sampling, random subset selection), variance reporting is important to establish that the gaps over PGN/UMI-GRAT are real, especially on TS-SAM where the margins are small (e.g. Sa 0.37 vs 0.36). (d) Some fairness questions about the comparison remain only partially resolved. SETA is an ensemble-over-ghosts method, while MI-FGSM/PGN/ UMI-GRAT in their reported form attack the single base SAM. The k=1 result (Table 4) does mitigate this, and the authors argue the ghosts are not independently trained models, but an explicit "give the baselines a comparable ensemble budget" experiment (as the prior reviewer 7gzd requested) would make the head-to-head fully convincing and is still missing.
CLARITY (fair). The paper is readable and well-organized, the algorithm box and running LoRA example help, and Section 4 sets up the threat model carefully. Figure quality is uneven. Figure 1 (the method overview) is in fact a clean vector diagram with legible labels and is fine. The weak point is Figure 2 (the loss-surface plots): these subpanels are rasterized at low resolution and their axis ticks and labels (the "Direction 1 / Direction 2" axes and the loss values) are extremely small, bordering on illegible at print size — unfortunate because Figure 2 is the visual evidence for the paper's central "structural alignment" narrative. The qualitative mask panels (Figures 3-5) are small but legible; their columns are labeled but the rows are not, and side row labels would help. The formal notation, however, is still rough in places (the v0/J_Delta notation in Definition 1 / Eq. 6 mixes parameter-space and output-space deltas; Algorithm 1 loops j=1..k to "construct ghost SAMs" yet the text/setup defines a pool of n=k*T ghosts, so the construction/sampling counts are inconsistent; line 14 appears twice and ends with a stray "=0"). On presentation: the full-width single-column floats (Figs 2-5, Tables) leave the page rhythm uneven and several appendix tables float far from their first textual reference. These are fixable and do not affect the science, but the figures should be regenerated at vector / high DPI and the section/float spacing tightened.
SIGNIFICANCE (moderate). If the central claim holds, the practical implication, that knowing only the PEFT structure is enough to mount a strong transfer attack, is a useful and slightly alarming contribution to foundation-model security. The breadth of downstream models and the appendix experiments give the empirical story real weight. Significance is bounded, however, by the strength of the threat model (the adversary must know the exact PEFT structure and insertion points; Table 6 shows graceful but real degradation under partial knowledge), the lack of any defense evaluation (only a qualitative discussion in Appendix E), and the unresolved correctness of the theory, which currently caps how much a reader can trust the stated mechanism. Furthermore, in some real-life applications, the attacker has no clean path to inject a digital perturbation into the imaging pipeline, so the threat-model realism (digital perturbation vs. physical/printed attack, and where in the pipeline the adversary sits) is itself a legitimate axis to evaluate, alongside the transferability claims. The paper's N/A on broader societal impact is also arguably under-justified for an offensive-capability paper with no defense evaluation.
Ethical Concerns: I do NOT recommend a formal ethics review on the basis of the method itself: it is a standard adversarial-attack contribution of the kind routinely published, and lowering the score on dual-use grounds would be inappropriate (the prior 7gzd ethics flag notwithstanding). I would, however, encourage the authors to add a brief responsible-disclosure / dual-use statement, since the work is an offensive technique against safety-relevant (e.g. medical) segmentation systems.
Questions
-
Theorem 1 / mechanism. Can you reconcile the theorem with the symmetry objection: since the isotropic-Gaussian ghost objective G has no preferred downstream direction, how can the SETA maximizer be provably "at least as damaging" to every targeted fd? Could you instead state and prove the claim that random ghosting suppresses fine-tuning-specific directions and amplifies base/downstream-shared directions? Concretely: if you reformulate Theorem 1 into a correct statement (or replace it with an informal proposition + caveats, or remove it and lean on the empirics), I would raise my Quality and overall scores. If the theorem remains in its current form, my assessment of an overclaimed theoretical contribution stands. (This is the single most decision-relevant item.)
-
Statistical significance. Please report mean +/- std (or CIs) over multiple random seeds for at least the main Table 1, given the stochastic ghost sampling. On the cells with small margins (TS-SAM Sa; BC-SAM IoU), is SETA's advantage over PGN/UMI-GRAT statistically meaningful? Demonstrated significance on the close cells would address concern (c).
-
Fair ensemble baseline. As reviewer 7gzd asked previously, what happens if MI-FGSM/PGN/UMI-GRAT are also given an ensemble of structurally-perturbed ghost SAMs (i.e. the baselines attack the same ghost pool rather than the single base SAM)? An ablation isolating "structure-aware ghost construction" from "ensembling per se" would tell us how much of the gain is the structural idea vs. simply having more surrogates.
-
Component attribution. Table 7 frames the longitudinal ensemble as a compute-saver. Could you add the missing cell of the 2x2: ghost-SAMs-only without ensembling AND ensemble/aggregation-only without structure-aware ghosts, so the transferability gain can be cleanly attributed to each component (the concern CHBq raised)?
-
Robustness to defenses and structure mismatch. Beyond the App. E discussion, can you measure SETA against at least one concrete defense (e.g. JPEG/ denoising input transformation, or an adversarially-trained downstream SAM) and against a downstream model whose PEFT rank / insertion points differ from what the adversary assumed (beyond the "fewer correct blocks" study in Table 6)? This would quantify the practical reach of the threat model.
Limitations
Partially. The authors include a Limitations paragraph (App. E) that honestly acknowledges the strong structural-knowledge assumption, the failure mode under substantially different fine-tuning (full fine-tuning, prompt tuning), and the absence of a defense evaluation; they should be credited for this candor and should not be penalized for it. Two limitations are under-acknowledged and should be stated more directly: (1) the theoretical claim is not robust (see Quality), so the paper should not lean on Theorem 1 as a guarantee of the proposed mechanism; and (2) results are reported without any measure of variance, which is a limitation of the empirical evidence given the method's stochasticity. Societal-impact framing is thin (the Broader Impacts checklist answer is N/A) even though this is an offensive security method; a short paragraph on responsible disclosure and the dual-use nature of the attack would be appropriate (see Ethical Concerns).
Final justification
Authors have addressed most of my comments, and have added new results. With these new technical justifications and results the paper is in a better state. Add all these new content to the final camera ready version as well. I have increased my rating.
Formatting concerns
- Figure 2 (the loss-surface subpanels, a–j) is the only genuinely problematic figure: it is rasterized at low resolution and its axis ticks/labels are too small to read at print size; it should be regenerated as vector (PDF) or high-DPI raster. Figure 1 (method overview) is a clean vector diagram and is fine. Figures 3–5 (qualitative mask panels) are legible but small; their columns are labeled while the rows are not, so adding row labels would improve readability.
- Layout/spacing: full-width single-column floats create uneven page rhythm; several appendix tables float well away from their first reference. Consider tightening float placement and section spacing.
- Minor: Algorithm 1 has a duplicated "line 14" and a trailing "=0"; the ghost-count between the algorithm loop (j=1..k) and the n=k*T pool description is inconsistent; "Sec. ??" dangling cross-reference in the checklist Limitations answer (item 2); the Broader Impacts checklist answer (item 10) refers to "video segmentation models," but this paper is about image segmentation - this looks like a template copy-paste error and should be corrected.
4 comments
Revision of Theorem 1 and Correction of Standard-Deviation Results
We provide this additional comment to further clarify our revision of Theorem 1 and to present the corrected standard-deviation results.
Question 1 — Theorem 1 and mechanism
We thank the reviewer for this careful and correct suggestion, and we want to further clarify our revision plan regarding Question 1. Before describing the revision, we clarify the original motivation, as it explains what the theorem was intended to establish.
The starting point for the theorem was our threat model: the adversary observes that the PEFT parameters of publicly available fine-tuned SAMs have near-zero means and small magnitudes, as summarized in Table 13, but has no information about the parameters of the target model's specific fine-tuning layers. We therefore used a zero-mean Gaussian that matches the observed mean and scale while remaining agnostic to direction.
We agree that this theorem cannot support the original per-target guarantee. Because an isotropic prior has no preferred direction, it cannot guarantee that the SETA attack is at least as damaging as the base-SAM attack for every fixed downstream update . Assumptions A2 and A3 attempted to bridge this gap, but, as the reviewer correctly observes, A2 effectively introduced the required directional relationship through an asserted typicality condition rather than deriving it from the isotropic prior. Concretely, for a fixed target the linearized downstream loss equals plus a direction-dependent residual , which vanishes in expectation over the isotropic ensemble but not for any single ; A2 was the assertion that this residual stays small.
Accordingly, we will make the following revision:
- Replace Theorem 1 with a limited proposition retaining only the expected feature loss under the first-order feature-distance approximation.
- Remove Assumptions A2 and A3 and the associated claim that the SETA maximizer is at least as damaging as the base-SAM maximizer for every downstream target.
- State that isotropic ghost sampling cannot favor any particular downstream fine-tuning direction. The proposition therefore characterizes the expected ghost objective rather than providing a universal per-target guarantee.
Below is the proposition that will replace our Theorem 1 after revision.
Proposition 1 (Expected ghost-ensemble objective under first-order feature-distance).
Let be the base SAM image encoder with parameters , and let a ghost SAM have parameters with . For a clean input and adversarial candidate , define
and let the single-ghost feature-distance loss be
Assume:
- (A1) Local linearity in parameters. For all and sufficiently small ,
Then the expected ghost-ensemble objective over the isotropic ghost ensemble is
We apologize for an error in the previous table: when compiling the standard-deviation results, we mistakenly reported the MI-FGSM results in the Ghost Net row. The corrected results are shown below:
SAMed (Synapse), mDSC$\downarrow$
| Method | |||
|---|---|---|---|
| No Attack | 79.8 | 79.8 | 79.8 |
| MI-FGSM | |||
| Ghost Net | $64.6500 \pm 0.2787 $ | ||
| PGN | |||
| UMI-GRAT | |||
| SETA |
Med-SAM (Polyp), IoU$\downarrow$
| Method | |||
|---|---|---|---|
| MI-FGSM | 0.7345 ± 0.0004 | 0.6809 ± 0.0005 | 0.6190 ± 0.0009 |
| Ghost Net | 0.7112 ± 0.0047 | 0.6755 ± 0.0056 | 0.6312 ± 0.0052 |
| PGN | 0.6523 ± 0.0059 | 0.3792 ± 0.0088 | 0.2579 ± 0.0097 |
| UMI-GRAT | 0.6865 ± 0.0036 | 0.5894 ± 0.0041 | 0.5342 ± 0.0089 |
| SETA | 0.5588 ± 0.0048 | 0.2808 ± 0.0054 | 0.1885 ± 0.0086 |
Thanks for the rebuttal that addresses most of my comments, I have given it a positive score.
Dear reviewer,
Thank you so much for your constructive comments, which are very helpful and make our paper stronger!
Best,
The Authors
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes a Structure-Exploiting Transferable Attack (SETA) framework that aims to improve the transferability of adversarial attacks to downstream Segment Anything Model (SAM) variants that have been fine-tuned through parameter-efficient fine-tuning (PEFT) techniques. The proposed framework seeks to mimic the fine-tuning architecture and model plausible parameter variations of downstream models to improve the transferability of the generated adversarial examples. To this end, the authors propose the construction of ghost surrogate SAM models with synthetic PEFT modules. The ghost SAMs are then used during attack generation under the hypothesis that such ghost SAMs can better capture the characteristics of downstream SAM fine-tuned variants and thus improve attack transferability.
Strengths and weaknesses
Strengths:
The paper addresses a relevant problem in the robustness and vulnerability of existing fine-tuned SAM models to adversarial attacks. The core idea of the paper is well-motivated, and the proposed PEFT-aware ghost network approach with longitudinal ensemble attack generation is relatively straightforward to implement. The experimental setup is broad and includes ablation studies on the effects of a range of design choices in the proposed approach. The reported performance improvements are generally consistent across the evaluated settings and provide empirical evidence that incorporating PEFT-aware surrogate models can improve attack transferability.
Weaknesses:
The paper builds heavily upon existing transferability techniques, such as ghost-network-based surrogate model approaches and ensemble attack strategies. Consequently, the primary contribution stems from the adaptation of these existing concepts to PEFT fine-tuned SAM variants rather than introducing a fundamentally new transferable attack methodology.
The theoretical analysis upon which the approach is based relies on several assumptions, such as local linearity with respect to PEFT parameters, distributional assumptions regarding downstream fine-tuning updates, and strict ghost advantage, which are not empirically verified. It is thus unclear to what extent these theoretical assumptions apply in practice to downstream models.
Even though the authors argue that the improved transferability is due to better alignment between ghost and downstream model loss surfaces, the provided empirical evidence visualizes the attack objective landscape of the proposed method itself. The paper does not directly measure elements such as loss-surface similarity or gradient alignment between ghost and downstream models that would more directly support the proposed mechanism. Furthermore, the evaluation focuses on downstream models that employ PEFT-based fine-tuning and assumes knowledge of the corresponding PEFT structure. It is thus unclear how well the proposed approach generalizes to other fine-tuning techniques, different foundation model architectures, or scenarios involving more restricted attacker knowledge. Finally, the paper does not report standard deviations, confidence intervals, or statistical significance analyses, which limits the ability to assess the robustness and statistical significance of the reported improvements.
Questions
- Additional analyses, such as gradient alignment or loss-surface correlation, would strengthen the connection between the proposed mechanism and the observed transferability gains.
- The paper would benefit from moving the discussion of limitations and possible defense mechanisms from the appendix into the main body, given their relevance to the proposed contribution.
- Figure 1 could be clearer, especially the frame corresponding to the longitudinal ensemble approach. In general, the writing and clarity of the Related Work section could be improved.
- I would appreciate further clarification on how the three perturbation bounds were selected. In addition, the practical impact of increasing the number of ghost SAMs remains somewhat unclear, as the ablation studies appear to show relatively small performance improvements when using larger ghost-model ensembles.
- There seem to be a few broken references in the NeurIPS checklist section.
Limitations
The authors provide a good overview of the limitations of their proposed approach; however, these limitations are not in the main body of the paper, and the authors do not acknowledge the lack of statistical significance analyses, which limits the ability to assess the robustness and statistical significance of the reported results.
Final justification
I have changed the contribution type. It was a mistake in the initial review submission. However, my original review was based on the contribution type use-inspired. My main concerns given in the feedback remain the same. Now, the authors did address nicely some of the questions, and added some standard deviation reporting. The std reporting is better, but it's still not a very solid statistical significance assessment. For me, the main concerns regarding the theoretical foundations of their approach remain. Also, the relatively limited novelty of the approach is inherently still there. For me, given these three main issues (statistical significance, theoretical foundations, and novelty), I would not change the "borderline accept" score that I gave initially.
Formatting concerns
No concerns
2 comments
Rebuttal
We thank the reviewer for the constructive feedback, which has helped us improve the paper.
Weakness 1 — Not a fundamentally new transferable attack methodology.
We acknowledge that SETA does not introduce a fundamentally new transferable attack methodology, since it builds upon existing ideas such as ghost-network-based surrogate models and ensemble attacks. Instead, our main contribution is to show that additional information about the downstream fine-tuning structure can be utilized by an adversary to improve attack transferability.
Weakness 2 — The assumptions in the theoretical analysis are not verified.
Thank you for pointing this out. We agree that the original theorem relies on assumptions that are difficult to verify for unknown downstream models and therefore overstates the theoretical guarantee. In the revision, we will replace Theorem 1 with a limited proposition that retains only the exact identity under the first-order feature-distance approximation. We will remove Assumptions A2 and A3, as well as the per-target claim that the SETA maximizer is at least as damaging as the base-SAM maximizer. We will also clarify that isotropic ghost sampling does not favor any particular downstream fine-tuning direction. Therefore, the revised proposition should be interpreted as explaining the expected ghost objective rather than providing a universal guarantee for every downstream model.
Weakness 3 — It is unclear how well the proposed approach generalizes to other settings.
We appreciate the insightful question about whether SETA can generalize to other fine-tuning techniques, foundation-model architectures, and scenarios with more restricted attacker knowledge. Our current SETA method can generalize to PEFT methods such as adapters and LoRA, in which additional trainable modules are added to the original model structure. However, SETA does not directly generalize to full fine-tuning or methods that update a subset of the original model layers, because these settings do not introduce the additional PEFT structures used to construct our ghost models. We will clearly state this limitation and clarify the required attacker knowledge in the revised paper.
Generalizing SETA to other foundation-model architectures is also an important direction for future work, and we plan to evaluate its effectiveness in these settings. We focus on SAM in this paper because it has been widely adapted to various downstream tasks, and many downstream SAM models using different PEFT methods have already been published. This provides a representative setting for evaluating our method’s transferability.
Weakness 4 — Standard deviations are not reported.
We appreciate the reviewer for pointing this out. We reran the Table 1 experiments using five different random seeds and report the mean standard deviation below.
SAMed (Synapse), mDSC$\downarrow$
| Method | |||
|---|---|---|---|
| No Attack | 79.8 | 79.8 | 79.8 |
| MI-FGSM | |||
| Ghost Net | |||
| PGN | |||
| UMI-GRAT | |||
| SETA |
Med-SAM (Polyp), IoU$\downarrow$
| Method | |||
|---|---|---|---|
| No Attack | 0.77 | 0.77 | 0.77 |
| MI-FGSM | |||
| Ghost Net | |||
| PGN | |||
| UMI-GRAT | |||
| SETA |
BC-SAM (Blood Cell), IoU$\downarrow$
| Method | |||
|---|---|---|---|
| No Attack | 0.96 | 0.96 | 0.96 |
| MI-FGSM | |||
| Ghost Net | |||
| PGN | |||
| UMI-GRAT | |||
| SETA |
TS-SAM (COD),
| Method | |||
|---|---|---|---|
| No Attack | 0.84 | 0.84 | 0.84 |
| MI-FGSM | |||
| Ghost Net | |||
| PGN | |||
| UMI-GRAT | |||
| SETA |
Question 1 — Loss-surface similarity and gradient alignment between ghost and downstream models.
We appreciate this suggestion. We will add loss-surface similarity and gradient-alignment analyses figure in the revision paper between the ghost models and downstream models to provide more direct empirical evidence for our explanation of the improved transferability.
Question 2 — Moving the discussion into the main body.
We appreciate the reviewer’s suggestion. We will move the discussion section into the main body of the revised paper if accepted.
Question 3 — Improving Figure 1 and the related-work section.
We appreciate these suggestions. We will improve Figure 1 to illustrate the motivation and proposed method more clearly. We will also revise the related-work section to make it more comprehensive and include recent studies such as DarkSAM and UAP-SAM2.
Question 4 — Selection of perturbation bounds and number of ghost SAMs.
Thank you for raising this concern. We selected to represent perturbation levels commonly evaluated in adversarial image attacks. Similar perturbation bounds are used in related work; for example, UMI-GRAT [1] evaluates attacks with . The same perturbation bounds are applied to all methods and downstream models rather than being specifically tuned for SETA.
Regarding the number of ghost SAMs, Table 4 shows that increasing the number from 1 to 5 reduces the evaluation metric from 27.3 to 15.5. Averaging gradients from multiple ghost SAMs reduces overfitting to the structure of a single sampled ghost and emphasizes adversarial directions shared across different ghost structures, thereby improving transferability. However, increasing the number of ghost SAMs also increases the computational cost. We will clarify this performance–computation trade-off in the revised paper.
[1] Xia, Song, et al. “Transferable Adversarial Attacks on SAM and Its Downstream Models.” arXiv preprint arXiv:2410.20197, 2024.
Question 5 — Broken references in the NeurIPS checklist.
Thank you for identifying this issue. We will correct the broken references and carefully check all cross-references in the revised manuscript.
We appreciate the reviewer’s insightful comments and will incorporate these revisions.
Correction of Standard-Deviation Results
We apologize for an error in the previous table: when compiling the standard-deviation results, we mistakenly reported the MI-FGSM results in the Ghost Net row. The corrected results are shown below:
SAMed (Synapse), mDSC$\downarrow$
| Method | |||
|---|---|---|---|
| No Attack | 79.8 | 79.8 | 79.8 |
| MI-FGSM | |||
| Ghost Net | $64.6500 \pm 0.2787 $ | ||
| PGN | |||
| UMI-GRAT | |||
| SETA |
Med-SAM (Polyp), IoU$\downarrow$
| Method | |||
|---|---|---|---|
| MI-FGSM | 0.7345 ± 0.0004 | 0.6809 ± 0.0005 | 0.6190 ± 0.0009 |
| Ghost Net | 0.7112 ± 0.0047 | 0.6755 ± 0.0056 | 0.6312 ± 0.0052 |
| PGN | 0.6523 ± 0.0059 | 0.3792 ± 0.0088 | 0.2579 ± 0.0097 |
| UMI-GRAT | 0.6865 ± 0.0036 | 0.5894 ± 0.0041 | 0.5342 ± 0.0089 |
| SETA | 0.5588 ± 0.0048 | 0.2808 ± 0.0054 | 0.1885 ± 0.0086 |
- Rating
- 5/6
- Confidence
- 5/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper targets the problem that adversarial examples generated from the original SAM are difficult to transfer effectively to downstream fine-tuned SAM models, and proposes a structure-exploiting transferable attack method called SETA. The core of the method is to construct multiple ghost SAMs by leveraging the fine-tuning structures of downstream models, and to optimize adversarial perturbations by sampling different ghost SAMs during attack iterations through a longitudinal ensemble strategy. Experimental results on multiple downstream SAM models and datasets validate the effectiveness of the proposed method.
Strengths and weaknesses
Strength: 1.This work focuses on the transferable attack risks that may arise when the open-source foundation segmentation model SAM is deployed after downstream fine-tuning, giving it strong practical security significance. 2.The paper studies adversarial transferability from the original SAM to downstream SAM models through the lens of fine-tuning structures, addressing an important and targeted security issue in downstream SAM applications.
Weakness: 1.The survey of SAM-specific adversarial attacks is not sufficiently comprehensive, and the overall set of compared methods is not up-to-date enough. In particular, recent research directions over the past two years, such as prompt-free attacks and cross-prompt attacks, are not adequately covered. For example, DarkSAM[1] explicitly proposes a prompt-free universal attack, while UAP-SAM2[2] discusses the challenges of generating universal adversarial perturbations across different prompt types on SAM2. These works are closely related to the attack transferability and downstream model risks discussed in this paper. Although the paper includes UMI-GRAT as a relatively recent related method, if UMI-GRAT is treated as the only core competing work while the other baselines mainly come from earlier general transferable attack methods, both the related work section and the baseline selection appear relatively narrow and not sufficiently up-to-date. 2.The experimental comparison is also not sufficiently comprehensive. The paper mainly compares SETA with general transferable attack methods and UMI-GRAT, but it does not include recent SAM-specific adversarial attack methods that study prompt-free or cross-prompt attack settings, such as DarkSAM[1] and UAP-SAM2[2]. DarkSAM explicitly proposes a prompt-free universal attack on SAM, while UAP-SAM2 investigates the difficulty of generating universal adversarial perturbations across different prompt types on SAM2. Although the threat models of these methods may not be exactly the same as that of SETA, they are closely related to SAM-oriented adversarial transferability and downstream model risks. The authors should include these more recent SAM-specific adversarial attack methods in the experimental comparison, or at least clearly explain why they are not applicable under the proposed threat model. Such comparisons or discussions are necessary to better demonstrate whether SETA achieves state-of-the-art performance among SAM-specific adversarial attack methods. 3.Figure 1 is relatively plain and does not allow readers to understand the motivation and method without reading the accompanying text. 4.The paper even contains an unresolved reference such as “Sec. ??”.
Reference: [1]DarkSAM: Fooling Segment Anything Model to Segment Nothing. Ziqi Zhou, Yufei Song, Minghui Li, Shengshan Hu, Xianlong Wang, Leo Yu Zhang, Dezhong Yao, Hai Jin. NeurIPS 2024. [2]Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2. Ziqi Zhou, Yifan Hu, Yufei Song, Zijing Li, Shengshan Hu, Leo Yu Zhang, Dezhong Yao, Long Zheng, Hai Jin. NeurIPS 2025.
Questions
1.The paper assumes that the attacker knows the PEFT structure of the downstream SAM, including the fine-tuning method, LoRA rank, and insertion positions. Does this setting correspond to a black-box attack, a gray-box attack, or a structure-aware transfer attack? The threat model should be clarified more precisely. 2.The paper focuses on downstream SAM models, but the prompt setting is not sufficiently clear. What types of prompts are used during attack generation and evaluation, and does SETA remain effective under different prompt types such as points, boxes, masks, or prompt-free settings?
Limitations
yes
Final justification
I find the authors' responses reasonable, and the revisions have addressed my main concerns.
Formatting concerns
NA
1 comment
Rebuttal
We thank the reviewer for the constructive feedback, which has helped us improve the paper.
Weakness 1 — Related work.
We appreciate the reviewer’s comments regarding the related work. We agree that our current discussion of recent SAM-specific adversarial attacks is not sufficiently comprehensive. In the revised paper, we will include DarkSAM and UAP-SAM2 and explain their differences from our setting more clearly. DarkSAM generates prompt-free universal adversarial perturbations for SAM, while UAP-SAM2 studies universal adversarial perturbations across different prompt types for SAM2/SAM. In contrast, SETA improves the transferability of single-image adversarial perturbations from the original foundation model to unknown downstream models, rather than generating universal perturbations.
Weakness 2 — Baseline comparison.
Although their threat models are not exactly the same as ours, DarkSAM and UAP-SAM2 are closely related SAM-specific attacks. Therefore, we will include them as additional baselines. The results are shown below:
SAMed (Synapse),
| Method | |||
|---|---|---|---|
| DarkSAM | 73.29 | 69.76 | 68.86 |
| UAP-SAM2 | 64.03 | 50.24 | 30.29 |
Med-SAM (Polyp),
| Method | |||
|---|---|---|---|
| DarkSAM | 0.7222 | 0.6791 | 0.3760 |
| UAP-SAM2 | 0.5585 | 0.3715 | 0.2403 |
BC-SAM (Blood Cell),
| Method | |||
|---|---|---|---|
| DarkSAM | 0.9530 | 0.9448 | 0.9314 |
| UAP-SAM2 | 0.9522 | 0.9447 | 0.9322 |
TS-SAM (COD),
| Method | |||
|---|---|---|---|
| DarkSAM | 0.8316 | 0.8031 | 0.7865 |
| UAP-SAM2 | 0.7491 | 0.5599 | 0.4860 |
Weakness 3 — Figure and unresolved reference.
We will improve Figure 1 by showing the original SAM and its relationship with the downstream models more clearly. This revision will make the motivation and overall method easier to understand without relying heavily on the accompanying text.
We will also fix the unresolved reference identified by the reviewer and carefully check all cross-references in the revised manuscript.
Question 1 — Does this setting correspond to a black-box attack, a gray-box attack, or a structure-aware transfer attack?
We appreciate the reviewer for pointing out that the threat model should be defined more precisely. Our setting is a structure-aware transfer attack and can also be considered a gray-box setting. The attacker cannot access or query the target downstream model, and its trained parameters are completely unknown. However, the attacker knows the type of PEFT structure used by the downstream model, including the fine-tuning method, LoRA rank, and insertion positions. Based on this structural information, the attacker constructs ghost models to simulate possible downstream-model variations and generates transferable adversarial perturbations using only the accessible original SAM. We will clearly define the attacker’s knowledge and distinguish our setting from standard black-box and white-box attacks in the revised paper.
Question 2 — What types of prompts are used during attack generation and evaluation?
Our current experiments mainly consider downstream SAM models operating in a prompt-free setting. Therefore, no user-provided point, box, or mask prompts are used during either attack generation or evaluation. Extending SETA to point, box, mask, and cross-prompt settings is an important future direction, especially for prompt-conditioned SAM and SAM2 models.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for your valuable feedback. We address the questions as follows.
Question 1 — Theorem 1 and mechanism.
We agree with the reviewer’s symmetry objection. We will replace Theorem 1 with a limited proposition that retains only the exact expectation identity under the first-order feature-distance approximation. We will remove Assumptions A2 and A3, as well as the per-target claim that the SETA maximizer is at least as damaging as the base-SAM maximizer. We will also clarify that isotropic ghost sampling cannot favor any particular downstream fine-tuning direction. Therefore, the revised proposition provides an interpretation of the expected ghost objective rather than a universal guarantee for every downstream model.
Question 2 — Statistical significance.
We thank the reviewer for this suggestion. We repeated the experiments in Table 1 using five random seeds (42–46) and report all results as mean ± standard deviation. We further conducted two-sided Welch’s t-tests between SETA and the strongest baseline, PGN, for the close BC-SAM and TS-SAM results. SETA significantly outperforms PGN under all three perturbation bounds on both BC-SAM and TS-SAM. These results confirm that SETA’s improvements remain statistically significant even when the numerical margins are relatively small.
SAMed (Synapse), mDSC$\downarrow$
Med-SAM (Polyp), IoU$\downarrow$
BC-SAM (Blood Cell), IoU$\downarrow$
TS-SAM (COD), Sα↓
Question 3 — Fair ensemble baseline.
Thank you for suggesting this fair comparison. SETA currently uses MI-FGSM as its gradient-based optimizer. We additionally applied PGN and UMI-GRAT to the same structure-aware ghost-SAM pool used by SETA. On Med-SAM, the IoU results of MI-FGSM, PGN, and UMI-GRAT with the ghost pool are 0.56/0.28/0.19, 0.48/0.24/0.18, and 0.43/0.24/0.17, respectively, under ϵ={10,15,20}/255. These results are consistently stronger than applying the corresponding optimizers only to the base SAM, which obtains 0.71/0.68/0.62, 0.65/0.38/0.26, and 0.69/0.59/0.53, respectively.
These results show that the structure-aware ghost pool improves multiple attack optimizers rather than benefiting only the original MI-FGSM update rule. Advanced optimizers can provide further improvements when combined with the ghost pool, although the best optimizer varies across target models and perturbation bounds. We will add these results and clarify that SETA’s structural surrogate construction can also strengthen existing attacks.
Question 4 — Component attribution.
Thank you for this suggestion. We added a complete 2×2 ablation by independently enabling the structure-aware ghost construction and longitudinal aggregation. When longitudinal aggregation is disabled, all ghost-SAM gradients are aggregated at every attack iteration. The four variants are therefore: neither component, structure-aware ghosts only, longitudinal aggregation only, and full SETA.
Relative to the neither-component baseline, enabling either structure-aware ghost construction or longitudinal aggregation individually improves attack performance under all three perturbation bounds. The structure-aware construction provides the largest improvement in this ablation. However, structure-aware ghosts with aggregate-all updating outperform full SETA in the current results. Therefore, these results identify the structure-aware construction as the primary contributor but do not demonstrate that longitudinal aggregation provides an additional improvement after structure-aware ghosts are enabled.
Question 5 — Robustness to defenses and structural mismatch.
Thank you for raising these practical concerns. We evaluated SETA against the JPEG input-transformation defense [1]. On Med-SAM, JPEG increases the IoU from 0.56/0.28/0.19 to 0.5871/0.3541/0.2667 under ϵ={10,15,20}/255. On SAMed, it increases the mDSC from 17.88/5.58/2.70 to 36.06/22.85/18.35. Thus, JPEG partially mitigates the attack. Nevertheless, the attacked performance after JPEG transformation remains considerably below the no-attack performance reported in Table 1. We will include these results and clarify that input transformation reduces, but does not eliminate, the transferred perturbations.
Med-SAM (Polyp), IoU$\downarrow$
SAMed (Synapse), mDSC$\downarrow$
We also evaluated SETA under mismatched structural assumptions. For SAMed, the downstream model uses LoRA rank 4, while the ghost models use rank 5. Under this mismatch, SETA obtains mDSC values of 24.55/11.48/9.26, compared with 17.88/5.58/2.70 under the matched setting and 65.65/63.29/61.50 when MI-FGSM attacks only the base SAM.
For Med-SAM, the downstream adapters are inserted after the attention and MLP residual operations, whereas the ghost adapters are inserted before attention at
norm1and before the MLP atnorm2. Under this mismatch, SETA obtains IoU values of 0.6948/0.4844/0.3142, compared with 0.56/0.28/0.19 under the matched setting and 0.71/0.68/0.62 when MI-FGSM attacks only the base SAM. Although structural mismatch reduces attack effectiveness, SETA remains more effective than attacking only the base SAM across the evaluated settings. We will add these results and more clearly state the practical limitations of our threat model.[1] C. Guo, M. Rana, M. Cisse, and L. van der Maaten. “Countering Adversarial Images Using Input Transformations.” International Conference on Learning Representations (ICLR), 2018.