[KongchangAI]
· 2 min read· 1,031 words

GEG-SAM: Gaze-Trajectory-Guided SAM Boosts Weakly Supervised Polyp Segmentation Dice by 9.3 Points

GEG-SAM: Gaze-Trajectory-Guided SAM Boosts Weakly Supervised Polyp Segmentation Dice by 9.3 Points

GEG-SAM structures gaze trajectories into conditional tokens that modulate a frozen SAM, improving weakly supervised polyp segmentation Dice by 9.30 points.

This article introduces GEG-SAM, a weakly supervised polyp segmentation framework. Existing gaze-supervised methods treat each fixation as an isolated spatial prompt, ignoring that natural gaze is a continuous visual search process with both temporal dynamics and spatial organization. GEG-SAM models the temporal evolution and spatial topology of gaze exploration, associates them with fixation-aligned visual context to generate gaze-conditioned tokens, and injects them into a frozen SAM image encoder—guiding rather than rewriting pretrained features to direct attention toward lesions without pixel-level masks. Across five public polyp segmentation datasets, it improves average Dice by 9.30 percentage points over the strongest weakly supervised baseline.

During examinations, endoscopists' gaze naturally sweeps across lesion regions. Can this visual exploration record—collected at no extra cost—serve as an effective supervision signal for training segmentation models? A study on GEG-SAM answers affirmatively: by modeling the temporal dynamics and spatial topology of gaze trajectories and using them to modulate a frozen SAM image encoder, this framework raises average Dice by 9.30 percentage points over the strongest weakly supervised baseline across five public polyp segmentation datasets.

GEG-SAM research overview

From Isolated Fixations to Structured Gaze Trajectories

Existing methods that leverage gaze supervision generally treat each fixation as an isolated spatial prompt directly associated with the target, ignoring a basic fact: natural gaze records a continuous visual search process—fixations are temporally linked, spatially organized, and tightly coupled with the visual content being fixated.

Interpreting each fixation independently based solely on local visual content loses the temporal evolution and spatial organization of the gaze trajectory; conversely, modeling only the relationships between fixations fails to reveal the visual semantics these regions carry. GEG-SAM's starting point is to capture both of these threads simultaneously, upgrading gaze supervision from "points" to a structured representation of "trajectory + content."

GEG-SAM's Two-Step Modulation Mechanism

Modeling Structured Gaze Relationships

The framework first models the temporal dynamics and spatial topology of gaze exploration to obtain a structured representation of fixation relationships. This step encodes the physician's process of "where to look first, where to look next, and how to sweep back and forth around the lesion" into features, rather than processing each fixation in isolation.

Generating Gaze-Conditioned Tokens and Injecting Them into SAM

These relational representations are then associated with visual context aligned to the fixations, forming gaze-conditioned tokens. These tokens are injected into the frozen SAM encoder to modulate its pretrained image features. The key is that SAM itself is not fine-tuned; gaze information "guides" rather than "rewrites" the pretrained features in token form, thereby preserving SAM's general segmentation capability while directing the model's attention toward lesion regions.

This design also explains why the method falls under weak supervision: training requires no pixel-level mask annotations—the physician's natural gaze during routine examinations constitutes the supervision source.

SAM (Segment Anything Model) is a general-purpose image segmentation foundation model released by Meta in 2023. Its core is a large visual encoder (typically a ViT) pretrained on massive image data, paired with a prompt encoder and mask decoder, capable of generating high-quality segmentation masks from prompts such as points and boxes. SAM's strength lies in zero-shot generalization, but its pretraining objective is not medical imaging, so boundary accuracy is limited when applied directly to lesions such as polyps. GEG-SAM's choice to freeze the SAM encoder reflects the parameter-efficient fine-tuning (PEFT) philosophy: freezing the backbone avoids overfitting on small-scale medical data, preserves general visual representations, and substantially reduces training cost. Modulating frozen features with additional tokens resembles the ideas of Prompt Tuning and Adapters—without changing model weights, injecting conditional signals alters the feature distribution, thereby "steering" a general model toward a specific task.

Weakly supervised segmentation refers to training without relying on pixel-level masks, instead using cheaper annotation forms such as image-level labels, scribbles, bounding boxes, points, or gaze. Compared with full supervision, the core challenge of weak supervision is that supervision signals are sparse and ambiguous, requiring the model to infer the spatial extent of targets from coarse-grained cues. Gaze as a weak supervision signal has unique advantages: it is naturally produced by experts during real clinical workflows, incurs almost zero additional annotation cost, and implicitly encodes the expert's judgment of lesion location. However, fixations are sparse, noisy, and highly variable across individuals, so converting point sequences into usable dense supervision is precisely the key problem in this direction.

Experimental Results and Significance

According to the paper, the researchers conducted experiments on five public polyp segmentation datasets, and the method improves average Dice by 9.30 percentage points over the strongest weakly supervised baseline. For a task like polyp segmentation—with ambiguous boundaries and diverse morphologies—an improvement of this magnitude under weak supervision demonstrates that the lesion priors embedded in gaze trajectories are indeed effectively utilized.

From a broader perspective, GEG-SAM offers a reusable approach: upgrading incidental human behavioral data like gaze from simple spatial prompts to structured process supervision, and using it to modulate large models. This paradigm has reference value for medical imaging tasks beyond endoscopy, as well as for any visual scenario where expert fixation records can be collected at low cost.

Gaze-guided segmentation illustration

The Dice coefficient is one of the most commonly used evaluation metrics in segmentation tasks, defined as twice the intersection of the predicted and ground-truth regions divided by the sum of their areas, ranging from 0 to 1, with values closer to 1 indicating higher overlap. It is sensitive to small targets and thus widely used in medical lesion segmentation. In the polyp segmentation literature, strong baselines typically already achieve Dice above 0.80, leaving limited room for improvement, so an average gain of 9.30 percentage points is a considerable magnitude. It should be noted that an average improvement across five datasets may mask inter-dataset differences; practical comparisons should also consider boundary metrics (such as IoU and HD95) and different baseline settings for a comprehensive judgment.

One-line Summary

GEG-SAM structures gaze trajectories into conditional tokens that modulate a frozen SAM, improving weakly supervised polyp segmentation Dice by 9.30 points.

Paragraph Summary

This article introduces GEG-SAM, a weakly supervised polyp segmentation framework. Existing gaze-supervised methods treat each fixation as an isolated spatial prompt, ignoring that natural gaze is a continuous visual search process with both temporal dynamics and spatial organization. GEG-SAM first models the temporal evolution and spatial topology of gaze exploration, then associates them with visual context aligned to fixations to generate gaze-conditioned tokens, which are injected into a frozen SAM image encoder—guiding rather than rewriting pretrained features—thereby directing attention toward lesions without pixel-level masks. Across five public polyp segmentation datasets, the method improves average Dice by 9.30 percentage points over the strongest weakly supervised baseline, validating that lesion priors embedded in gaze trajectories can be effectively utilized and providing a reusable paradigm for supervising large models with low-cost human behavioral data.

#GEG-SAM#weakly supervised segmentation#polyp segmentation#gaze trajectory#SAM#medical image segmentation#Dice coefficient
Share:

Related articles