Manuscript Offprint

arXiv:2610.18543

Beyond the Encoder: Object-Centric Representations Emerging from Segmentation Foundation Models

Michalis Pistos, Bartłomiej W. Papież

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

ABSTRACT

Foundation models are increasingly used as feature extractors for downstream tasks with limited data, typically through representations obtained from their encoders. However, foundation models trained for structured tasks such as segmentation also form object-specific representations during task execution, whose transferability remains largely unexplored. We investigate Segment Anything Model 2 (SAM2) object pointers, compact object-level representations produced through the segmentation pathway, as transferable representations for downstream tumour prediction. Through experiments on two PET/CT tumour prediction tasks, we find that object pointers learned using segmentation supervision alone already encode tumour-discriminative information, despite never being optimised for the downstream labels. We further introduce task-guided object pointers, where an auxiliary objective jointly shapes the object pointer space for the downstream prediction together with segmentation. Task-guided pointers improve cancer-type classification, outperforming conventional encoder-based transfer and radiomics, while segmentation-only pointers perform best on the more challenging recurrence prediction task. Representation analyses reveal associations between object pointers and interpretable radiomics features, class-dependent organisation of the learned representation space, and explicit spatial grounding around the segmented tumour. Together, these findings suggest that useful transferable representations can emerge through the execution of a foundation model's primary task, providing an alternative to conventional encoder-based transfer.

1 INTRODUCTION

Medical images provide rich quantitative information (Gillies et al., 2016) about tumour phenotype (Fass, 2008) that can support downstream tasks ranging from tumour characterisation to clinical outcomes prediction (Erickson et al., 2017; Bi et al., 2019; Koh et al., 2022; Jiang et al., 2023). Learning representations that capture this information remains challenging, because task-specific imaging datasets are often small and clinical labels are limited. This motivates representations that capture informative tumour characteristics and can transfer across downstream objectives.

Several approaches have been explored to learn informative representations when medical imaging data are limited. Self-supervised learning methods leverage unlabelled data to learn transferable representations (Rani et al., 2024; Shurrab & Duwairi, 2022; Wu et al., 2024), while radiomics represent tumours through a compact set of predefined descriptors of shape, intensity, and texture (Lambin et al., 2012), and have been applied across a range of cancer applications (Aerts et al., 2014; Yip & Aerts, 2016; Avanzo et al., 2020; Liu et al., 2019). More recently, foundation models offer representations learned from large and diverse datasets that can be transferred to data-scarce medical imaging tasks (Moor et al., 2023; Ryu et al., 2025). This has motivated both the adaptation of general-purpose foundation models and the development of domain-specific models for medical image segmentation, classification, and related tasks (Ma et al., 2024; Zhou et al., 2023; Xiang et al., 2025).

However, downstream adaptation of foundation models commonly focuses on representations obtained from the model encoder, either by using it as a frozen feature extractor, or fine-tuning it for the target task (Huang et al., 2025; Pai et al., 2024; Jacob et al., 2025; Yang et al., 2025). Encoder features are often obtained before much of the computation associated with the model's primary task and therefore precede the task-specific processing that transforms image-level features into more specialised outputs. Representations emerging during this process may provide an alternative source of transferable information that is largely overlooked. This possibility is particularly interesting for segmentation foundation models (Kirillov et al., 2023; Zou et al., 2023; Wang et al., 2023). Segmentation requires the model to identify and delineate a particular object, introducing object-conditioned supervision that transforms generic image features into representation centred on the object of interest. Such representations may therefore encode object-centric characteristics beyond those strictly necessary for delineation. In cancer imaging, this raises a natural question: does the representation formed while segmenting a tumour also encode information useful for predicting its properties?

Segment Anything Model 2 (SAM2) (Ravi et al., 2025), a foundation model for image and video segmentation, provides a natural setting to investigate this hypothesis. In addition to spatial features, SAM2 produces compact object pointers through its segmentation pathway to encode segmented objects across frames. Unlike image-encoder features, these representations emerge after prompt- and object-conditioned mask-decoder processing. We therefore investigate object pointers as transferable tumour representations and ask whether information learned through segmentation can support downstream prediction beyond the segmentation task.

We evaluate this hypothesis across two public FDG-PET/CT datasets and distinct downstream prediction tasks: cancer-type classification on FDG-PET-CT-Lesions (Gatidis & Kuestner, 2022) and recurrence prediction on HECKTOR 2022 (Andrearczyk et al., 2023). Our main contributions are:

• We identify SAM2 object pointers as an overlooked source of transferable object-level representations, showing that pointers learned through segmentation alone already encode information predictive of downstream targets.

• We introduce an auxiliary objective for task-guided object pointer learning and show that downstream supervision can further improve these representations, while its benefit depends on the downstream task: task-guided pointers perform best for cancer-type classification, whereas segmentation-only pointers perform best for recurrence prediction.

• We characterise the information encoded by object pointers through radiomics correlation, representation-space organisation, and spatial analysis. We find associations with interpretable tumour characteristics and, for cancer-type classification, information complementary to handcrafted radiomics, alongside class-dependent structure and explicit spatial grounding around the tumour.

• We show that preprocessing choices can substantially alter the downstream information retained by object pointers despite relatively similar segmentation performance, demonstrating that task performance alone does not fully characterise the quality of representations emerging through that task.

References (46)