Manuscript Offprint

arXiv:2609.00469

SAM3-LoRA: Parameter-Efficient Adaptation of a Concept-Promptable Foundation Model for Multi-Class Structural Defect Segmentation

P. Malaisree, S. Youwai, S. Janrungautai, D. Amorndechaphon, P. Rojanavasu, W. Songkitti

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

P. Malaisree¹,²,³, S. Youwai², S. Janrungautai¹, D. Amorndechaphon³, P. Rojanavasu⁴, and W. Songkitti⁵

Abstract—Promptable segmentation foundation models such as SAM3 accept an open-vocabulary text concept and return every instance matching it, but adapting them to a specialized domain by full fine-tuning is computationally prohibitive for the organizations that would benefit most. This study applies Low-Rank Adaptation (LoRA) to SAM3 for multi-class structural defect segmentation and examines both how such a model can be supervised from conventional annotation and whether the resulting efficiency gain transfers across datasets. Two contributions are methodological. First, we describe a supervision procedure that trains a concept-promptable model directly from COCO-style class-labeled instance segmentation by using the category name itself as the prompt, requiring no prompt templates, no synonym expansion, and no learned class embeddings. Second, we identify and mitigate a failure mode specific to this setting: because a conventional annotation file yields positive prompts exclusively, the model's presence prediction decouples from the text condition and degenerates into responding to any prompt, a collapse that is invisible to every metric computed on positive prompts alone. Exhaustive hard-negative prompting, in which every dataset category absent from an image is issued as a zero-detection query, addresses this at no annotation cost. Two adapter placements were compared under an identical protocol, updating 0.121% and 1.341% of model parameters. On a purpose-built tunnel lining dataset, pixel intersection-over-union improved from 0.017 to 0.338 and instance-level recall from 0.375 to 0.672; on the independent public Structural Defects Dataset, from 0.017 to 0.855 and from 0.574 to 1.000. Improvements were directionally consistent across ten metrics on both datasets, and the largest per-category gains occurred precisely where zero-shot competence was absent.

Index Terms—promptable segmentation; foundation models; low-rank adaptation; parameter-efficient fine-tuning; open-vocabulary detection; hard-negative prompting; cross-dataset generalization; structural defect segmentation

I. INTRODUCTION

Foundation models pretrained on broad visual corpora have substantially advanced zero-shot and few-shot transfer across computer vision tasks. The Segment Anything Model (SAM) [1] established promptable, class-agnostic segmentation as a general-purpose capability; SAM 2 [2] extended it to video, and SAM3 [3] generalized prompting from geometric primitives to open-vocabulary visual concepts, so that a short noun phrase retrieves every instance of that concept in an

image. This shift is consequential for applied segmentation: the interface is no longer a label set fixed at training time, but language.

It also creates a supervision problem that has received little attention. Applied datasets are not distributed as concept prompts. They are distributed as class-labeled instance segmentation, typically in COCO format, in which each annotated object carries an integer category identifier. A conventional segmentation network consumes that identifier directly through a fixed classification head. A concept-promptable model has no such head; it conditions on language. Adapting one to a specialized domain therefore requires an explicit procedure for turning class labels into prompts, and, as we show, requires supervision that a class-labeled dataset does not contain at all.

The computational dimension of the problem is more familiar. The large Vision Transformer backbones of these models make full fine-tuning expensive, typically requiring multi-accelerator clusters. Low-Rank Adaptation (LoRA) [4] and related parameter-efficient methods [5], [6] restrict weight updates to low-rank decompositions inserted into an otherwise frozen backbone, and have been applied to SAM in specialized domains, though almost exclusively to single-class crack segmentation built on the first-generation model [7], [8]. Two questions remain open in that literature: whether adapter placement, as distinct from adapter rank, materially changes the outcome, and whether a reported efficiency gain reflects the adaptation method or the idiosyncrasies of the single dataset on which it was measured.

We study these questions in the setting of tunnel lining inspection, which supplies a genuinely multi-class problem (crack, concrete spalling, water ingress) and a deployment context in which the computational constraint is real rather than hypothetical: inspection agencies operate single-GPU workstations, not clusters. We additionally evaluate on the independently collected, publicly available Structural Defects Dataset (S2DS) [9] under an identical protocol, so that the efficiency claim is tested rather than assumed.

The contributions of this study are as follows.

  1. Class-to-concept supervision. A procedure for training a concept-promptable segmentation model directly from COCO-style class-labeled instance segmentation, in which the category name is used verbatim as the prompt and per-image annotations are grouped into exhaustive per-concept queries (Section III-D).

  2. Hard-negative prompt supervision. Identification of a presence-text decoupling failure that arises when an

¹MAA Consultants Co., Ltd. ²AI Research Group, Department of Civil Engineering, Faculty of Engineering, King Mongkut's University of Technology Thonburi (KMUTT). ³School of Engineering, University of Phayao. ⁴School of Information and Communication Technology, University of Phayao. ⁵Thailand Institute of Scientific and Technological Research (TISTR). Corresponding authors: phmq1401@gmail.com; sompote.you@kmutt.ac.th.

open-vocabulary detector is fine-tuned on positive-only prompts, and a two-tier negative prompting scheme that mitigates it at no annotation cost, including its generalization properties and its limits (Section III-E).

  1. Controlled adapter-placement ablation. A comparison of two adapter placements at fixed rank, with exact module- and parameter-level accounting: 124 modules updating 0.121% of parameters against 314 modules updating 1.341% (Section III-C).

  2. Cross-dataset validation. Application of the identical baseline, Light, and Full protocol to an independent public benchmark, together with an analysis of where per-category benefit is concentrated and why instance-level metrics understate performance on thin structures (Sections V and VI).

The remainder of the paper is organized as follows. Section II reviews related work. Section III develops the adaptation method. Section IV describes the experimental setup. Section V reports results, Section VI discusses their interpretation and limitations, and Section VII concludes.

References (30)