MirrorSAM

Seeing Beyond Illusion: Generalized and Efficient Mirror Detection

AAAI 2026

University of Electronic Science and Technology of China

Xi'an University of Architecture and Technology

Abstract

Reflective imaging enables the mirror imagings and physical entities to possess identical attributes, \textit{e.g.,} color and shape. Current mirror detection (MD) methods primarily rely on designing functional components to establish the correlation and disparities between the imagings and entities, thereby identifying the mirror regions. However, the exploration of extended scenes with dynamic content changes is rarely investigated. Therefore, we propose the MirrorSAM designed for MD based on the Segment Anything Model (SAM). Specifically, due to the varying reflections produced by mirrors in different positions and the complex visual space that interferes with localization, we design the hierarchical mixture of direction experts (HMDE) in the low-rank space to reduce biases towards entities in SAM and dynamically adjust experts based on input scene. We observe differences in depth between mirrors and adjacent areas, and propose the depth token calibration (DTC), which introduces a learnable depth token to generate depth map and serve as an error correction factor. We further formulate the selective pixel-prototype contrastive (SPPC) loss, selecting partially confusable samples to promote the decoupling of mirror and non-mirror representations. Extensive experiments conducted on four mirror benchmarks and four settings demonstrate that our approach surpasses state-of-the-art methods with few trainable parameters and FLOPs. We further extend to four transparent surface benchmarks to validate generalization.

BibTeX

@inproceedings{zha2026mirrorsam,
    title={Seeing Beyond Illusion: Generalized and Efficient Mirror Detection},
    author={Zha, Mingfeng and Wang, Guoqing and Li, Tianyu and Dong, Wei and Wang, Peng and Yang, Yang},
    booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
    year={2026},
}