Zero-Shot Pupil Segmentation with SAM 2: A Case Study of Over 14 Million Images
We explore the transformative potential of SAM 2, a vision foundation model, in advancing gaze estimation. SAM 2 addresses key challenges in gaze estimation by significantly reducing annotation time, simplifying deployment, and enhancing segmentation accuracy. Utilizing its zero-shot capabilities with minimal user input—a single click per video—we tested SAM 2 on over 14 million eye images from a diverse range of datasets, including the EDS challenge datasets and Labelled Pupils in the Wild. This is the first application of SAM 2 to the gaze estimation domain. Remarkably, SAM 2 matches the performance of domain-specific models in pupil segmentation, achieving competitive mIOU scores of up to 93% without fine-tuning. We argue that SAM 2 achieves the sought-after standard of domain generalization, with consistent mIOU scores (89.71%-93.74%) across diverse datasets, from virtual reality to "gaze-in-the-wild" scenarios. We provide our code and segmentation masks for these datasets to promote further research.
Authors
- Virmarie Maquiling (ORCID: https://orcid.org/0009-0005-5580-2304)
- Diederick C. Niehorster (ORCID: https://orcid.org/0000-0002-4672-8756)
- Enkelejda Kasneci (ORCID: https://orcid.org/0000-0003-3146-4484)
- Marco Carminati (ORCID: https://orcid.org/0000-0002-3485-4317)
- Sean Anthony Byrne (ORCID: https://orcid.org/0009-0004-5685-7318)
Institutions
- Lund University (SE)
- Technical University of Munich (DE)
- Politecnico di Milano (IT)
Publication Details
- Journal
- Proceedings of the ACM on Computer Graphics and Interactive Techniques
- Published
- 2025-05-26
- DOI
- https://doi.org/10.1145/3729409
- Citations
- 3
- Primary Topic
- Advanced Neural Network Applications
- Type
- article
- Field-Weighted Citation Impact
- 3.83