Mitigating spurious features by contrastive learning in pottery sherd recognition
This paper investigates spurious features in a purpose-built image dataset of Hemudu pottery sherds. To minimize acquisition bias, we constructed a standardized dataset by photographing the fragments in situ at the excavation site, capturing diverse cues such as texture, edges, and shape. Our experiments reveal that fine-grained shape details, though correlated with class labels, function as spurious predictors and undermine robustness. To address this, we propose a supervised contrastive learning method, distinct from deep feature reweighting (DFR). By aligning each sample with its label-preserving augmentations, in which spurious cues are disrupted, we promote augmentation-invariant representations. We further adapt the contrastive loss to more effectively balance positive and negative pairs, and incorporate the flooding strategy to stabilize training. On our Hemudu sherd dataset, the method achieves 97.3% accuracy, outperforming recent baselines and demonstrating its effectiveness in mitigating reliance on spurious shortcuts.
Authors
- Xinfeng Yu
- Huanda Lu (ORCID: https://orcid.org/0000-0002-4924-1038)
- Zhenying Song
- Tianjie Li (ORCID: https://orcid.org/0000-0001-5820-8531)
- Fangyu Wu (ORCID: https://orcid.org/0009-0006-7955-6213)
- Hui Xiao
- LiBo Xu
- YiFan Du
Institutions
- Dalian Ocean University (CN)
- Ningbo University (CN)
- Zhejiang Sci-Tech University (CN)
- Ningbo University of Technology (CN)
- Xi’an Jiaotong-Liverpool University (CN)
Publication Details
- Journal
- npj Heritage Science
- Published
- 2026-03-04
- DOI
- https://doi.org/10.1038/s40494-025-02170-3
- Primary Topic
- Image Processing and 3D Reconstruction
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Jilin Office of Philosophy and Social Science
- Natural Science Foundation of Ningbo