DenseTRF: Texture-Aware Unsupervised Representation Adaptation for Surgical Scene Dense Prediction

Guiqiu Liao, Matjaž Jogan, Daniel A. HashimotoarXiv 2026

TL;DR

DenseTRF is an unsupervised representation adaptation framework designed to tackle domain shifts in surgical video analysis without requiring target-domain annotations. By leveraging texture-centric slot attention and a periodic model-merging strategy, it learns robust, deformation-invariant visual structures. The method sets a new state-of-the-art for surgical dense prediction tasks (like tissue segmentation) under extreme low-data regimes (using only 1% to 5% of available labels).

What Problem Does This Paper Address?

Surgical computer vision models for dense prediction tasks—such as tissue segmentation, instrument tracking, and "go/no-go" surgical zone prediction—are vital for real-time intraoperative guidance. However, deploying these models reliably in the real world is notoriously difficult due to domain shifts. Differences in patient anatomy, camera viewpoints, lighting, and surgical tools across different hospitals or procedures cause standard models to fail.

While foundation vision models offer strong general capabilities, they still require targeted adaptation when applied to specialized medical domains. Unfortunately, collecting dense, pixel-level annotations for every new surgical environment is prohibitively expensive and labor-intensive. Existing test-time adaptation methods try to fix this but often struggle with surgical scenes, which are highly texture-rich but geometrically variable due to organ deformation.

Methods

The authors introduce DenseTRF (Dense Texture-Centric Representation Adaptation Framework), which adapts a model to a new target distribution using entirely unlabeled data.

Fig. 1. Architecture of the proposed network, where the dense head is conditioned on object-centric representations learned via Slot Attention and optimized using both reconstruction and supervised dense prediction objectives.

The core architecture consists of three main pillars:

  1. Texture-Centric Slot Attention: Instead of grouping pixels by spatial proximity or geometric shape (which changes constantly as tissues deform), DenseTRF forces the model to group features by appearance and texture. This is achieved by applying a patch-order permutation technique during base training, which breaks spatial bias and decouples an object's position from its visual texture.
  2. Unsupervised Test-Distribution Adaptation: To adapt to a new surgical environment without labels, the framework utilizes a dual-branch architecture:
  3. A Base branch trained on a broad, multi-domain image pool to retain general knowledge.
  4. A Target branch trained purely on unlabeled images from the new target domain using a self-supervised reconstruction loss.
  5. Periodic Model Merging: To prevent the target branch from over-specializing and forgetting general features (representation drift), the parameters of both branches are periodically averaged together and broadcast back to reset both branches.

Finally, the dense prediction head is fed a concatenated representation combining the adapted features, the reconstructed features, and the slot attention masks to ensure it utilizes rich, multi-modal cues.

Datasets

The framework was evaluated across three distinct surgical video datasets under strict low-data constraints (using only 1%–5% of the training labels):

  • Thoracic: 30 robotic lung malignancy sequences from the Toronto General Hospital, annotated for "go/no-go" surgical zones.
  • POEM (Peroral Endoscopic Myotomy): Endoscopic images from two major hospitals, featuring sparse go/no-go zone annotations.
  • Cholec80 / CholecSeg8K: Laparoscopic cholecystectomy (gallbladder removal) videos used for tool and tissue segmentation.

Key Insights and Ideas

  • Texture over Geometry: In surgical scenes, organs deform, stretch, and change shape across patients and procedural phases, but the underlying tissue textures remain statistically consistent. Grouping features by texture rather than spatial geometry creates highly robust representations.
  • The Power of the Anchor: Unsupervised adaptation on a single target domain often leads to "catastrophic forgetting" or representation drift. Periodically merging the target model with a stable base model acts as an anchoring mechanism, balancing specialization with broad generalization.
  • Feature Fusion Matters: Simply using slot attention masks isn't enough. Fusing the raw adapted features, the reconstructed features, and the attention masks provides a much stronger signal for dense pixel-level classification.

Key Results

DenseTRF consistently outperformed state-of-the-art segmentation models (including Mask2Former, SegMan, and Swin-UNETR) and foundation model baselines (like SAM and DINO-v3) across all datasets.

Fig. 3. Comparison with state-of-the-art methods under varying training data ratios using IoU (%) and Hausdorff Distance (HD, pixels) metrics.
  • Low-Data Efficiency: The performance gap was widest in the extreme low-data regime (1–2% labels). For instance, on the Thoracic dataset with only 1% labels, DenseTRF achieved a mean DICE score of 79.32%, outperforming the strongest foundation baseline by nearly 1.6 points while drastically reducing boundary errors (Hausdorff Distance).
  • Overall Accuracy: As shown in the evaluations, DenseTRF achieved the highest mean DICE scores across the board: 81.35% on Thoracic, 51.00% on POEM, and 67.40% on Cholec.

Limitations and Future Work

While the paper demonstrates excellent results, a few limitations are apparent:

  • Dependency on Base Pool: The periodic model-merging strategy relies on having access to a diverse, multi-domain "base" image pool during the adaptation phase.
  • Computational Overhead during Adaptation: Maintaining two parallel branches (Base and Target) increases the training footprint during the adaptation phase, even though the final inference model remains lightweight (running on less than 2 GB of GPU memory).

Future work could explore extending this texture-centric adaptation to other complex surgical tasks, such as depth estimation or multi-instrument tracking.

Summary updated

BibTeX
@misc{liao2026densetrf,
  author = {Guiqiu Liao and Matjaž Jogan and Daniel A. Hashimoto},
  title = {{DenseTRF: Texture-Aware Unsupervised Representation Adaptation for Surgical Scene Dense Prediction}},
  year = {2026},
  eprint = {2605.11265},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.11265},
}
Figure