NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

State-Message Interaction Adapter for Cross-Domain Few-Shot Segmentation

Hang Xing, Yan Xia, Yongjiang Liu, Siqi Zhang, Xueming DingarXiv 2026

TL;DR

The State–Message Interaction Adapter (SMIA) is a parameter-efficient fine-tuning (PEFT) method that enables vision foundation models like DINOv3 to excel at cross-domain few-shot segmentation. By conditioning token updates on a bilinear interaction between a patch's local "state" and its incoming attention "messages," SMIA achieves state-of-the-art results on medical and industrial tasks with only 0.51M trainable parameters.

What Problem Does This Paper Address?

Adapting large vision foundation models (VFMs) to specialized domains—like identifying subtle lesions in ultrasound or microscopic cracks in industrial parts—is challenging when you only have a handful of annotated images (few-shot learning).

Existing methods often fall into two traps:

  1. Frozen Feature Matching: These methods compare query images to support examples but often produce "blurry" results because the pretrained features don't perfectly distinguish target boundaries in new domains.
  2. Standard Adapters (like LoRA): These apply the same transformation to tokens regardless of their local context. In complex segmentation tasks, two adjacent patches (one foreground, one background) might receive very similar "messages" from the attention mechanism, but they need to be updated in opposite directions to create a sharp boundary.

Methods

The authors introduce SMIA, which is inserted into the Transformer blocks of a frozen DINOv3 encoder.

The core innovation is the State-Guided Post-Aggregation Update. In a standard Transformer, a patch receives an aggregated "message" from other patches via attention. SMIA transforms this message based on the patch's own "local state" (its pre-attention features).

Figure 2. In-block architecture and state–message interaction of SMIA. Left: Frozen DINOv3 block with SMIA patch correction injected before the FFN sublayer. Right: Conditional update path for patch t, illustrated on a Kvasir-SEG query at Block 12 of 4-block SMIA: heatmaps show cosine similarity to reference patch t (shared [−1, 1] scale; brighter is higher) for local state ut, per-head messages mth, and pre-FFN updated features combining the original attention residual with δt, while correction magnitude plots ∥δt∥2 ([0, 545]).

Key technical details include:

  • Low-Rank Bilinear Mapping: To keep the parameter count low (crucial for few-shot learning), the interaction between state and message is confined to low-dimensional subspaces using a structured Tucker factorization.
  • In-Block Insertion: Updates are added before the frozen Feed-Forward Network (FFN), allowing the model's deeper layers to refine these task-specific features.
  • Support-Free Inference: Once trained on the few support masks, the model performs segmentation in a single forward pass without needing to reference the support images at test time.

Datasets

The model was evaluated across 20 tasks spanning two distinct domains:

  • Medical Imaging: BUSI (breast ultrasound), Kvasir-SEG and CVC-ClinicDB (colonoscopy polyps), ISIC 2018 (dermoscopy), and Chest X-ray (lung segmentation).
  • Industrial Inspection: All 15 categories of the MVTec AD dataset, which includes various objects (e.g., capsules, screws) and textures (e.g., leather, grid) with diverse defect types.

Key Insights and Ideas

  • Messages vs. Predictions: The authors found that intermediate attention "messages" in frozen models often contain better target-background distinctions than the final layer's output. SMIA "rescues" this information before it gets lost.
  • Opposing Updates: SMIA allows the model to map the same contextual information to different updates. For example, a "lesion-like" message might strengthen a foreground prediction for a patch that looks like a lesion, but weaken it for a patch that looks like healthy stroma.
  • Causal Verification: Through "counterfactual state-swaps," the authors proved that the local state is the deciding factor. Swapping a foreground patch's state with a background patch's state (while keeping the incoming message identical) flips the prediction.
Figure 4. Opposing corrections from strongly aligned boundary messages. Rows show MVTec Grid, MVTec Bottle, and ISIC 2018 queries (N = 10, Block 12). Green overlays mark ground truth; red triangles (A) and circles (B) mark nearby foreground and background boundary patches (amber zoom insets). Right three columns plot cosine similarity to A ([−1, +1]) for concatenated six-head message, state projection, and total correction; aligned messages at A and B map to opposing updates.

Key Results

SMIA significantly outperforms prior state-of-the-art methods across all benchmarks:

  • Quantitative Gains: It achieved a six-dataset mean mIoU of 77.40% at 5 shots and 80.99% at 10 shots, surpassing the strongest baselines by approximately +3.6 to +3.9 percentage points.
  • Precision-Recall Balance: Unlike retrieval-based matchers that suffer from high false positives (low precision) or standard decoders that miss subtle defects (low recall), SMIA maintains high precision while substantially boosting recall.
  • Efficiency: The adapter adds only 0.51M parameters (about 1.7% of the size of some competing decoders) and runs at high speeds (e.g., ~13.7 ms per image on an RTX 5090).
Table 1. Quantitative comparison across 20 medical and industrial tasks under 5-shot and 10-shot support budgets. Values report native-resolution mIoU (%, mean ± SD across five nested random support draws). MVTec AD averages all 15 industrial categories equally per draw, and Overall weights the five medical datasets and MVTec AD equally (green parentheses: gains over the strongest prior method computed before rounding). Best and second-best scores per budget are bolded and underlined.

Limitations and Future Work

  • Geometric Constraints: SMIA operates on a per-patch basis and doesn't explicitly model global geometric relationships (e.g., "a lung must have a specific shape").
  • Global Layout Anomalies: On tasks like "MVTec Transistor," where a defect might be a missing or displaced part rather than a change in local texture, SMIA's recall is more conservative.
  • Future Directions: The authors suggest combining SMIA's local state-conditioning with non-local relational priors to better capture global part geometry.

Summary updated

BibTeX
@misc{xing2026state,
  author = {Hang Xing and Yan Xia and Yongjiang Liu and Siqi Zhang and Xueming Ding},
  title = {{State-Message Interaction Adapter for Cross-Domain Few-Shot Segmentation}},
  year = {2026},
  eprint = {2611.21085},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.21085},
}
Figure