Semantic-embedded Similarity Prototype for Scene Recognition
Chuanxin Song, Hanbo Wu, Xin Ma, Yibin Li
TL;DR
This work tackles the challenge of high inter-class similarity in scene recognition and the heavy computational cost of object-centric cues by introducing a semantic-embedded similarity prototype. The prototype constructs class-level semantic representations from pixel-level segmentation and derives inter-class correlations via cosine and Euclidean-distance transforms, forming a priors matrix $S \in \mathbb{R}^{C \times C}$. It is then employed through two plug-and-play training strategies: Gradient Label Softening (GLS), which softens labels using $S$ with a progressive confidence schedule $\sigma'$, and Batch-level Contrastive Loss (BCL), which uses $S$ to shape inter- and intra-class constraints in mini-batches. Across MIT-67, SUN397, and Places365-7/14, GLS and BCL improve accuracy across multiple backbones without increasing inference costs, and even boost performance when integrated into DGN-Net, underscoring the method’s practicality for edge devices and real-world deployment.
Abstract
Due to the high inter-class similarity caused by the complex composition and the co-existing objects across scenes, numerous studies have explored object semantic knowledge within scenes to improve scene recognition. However, a resulting challenge emerges as object information extraction techniques require heavy computational costs, thereby burdening the network considerably. This limitation often renders object-assisted approaches incompatible with edge devices in practical deployment. In contrast, this paper proposes a semantic knowledge-based similarity prototype, which can help the scene recognition network achieve superior accuracy without increasing the computational cost in practice. It is simple and can be plug-and-played into existing pipelines. More specifically, a statistical strategy is introduced to depict semantic knowledge in scenes as class-level semantic representations. These representations are used to explore correlations between scene classes, ultimately constructing a similarity prototype. Furthermore, we propose to leverage the similarity prototype to support network training from the perspective of Gradient Label Softening and Batch-level Contrastive Loss, respectively. Comprehensive evaluations on multiple benchmarks show that our similarity prototype enhances the performance of existing networks, all while avoiding any additional computational burden in practical deployments. Code and the statistical similarity prototype will be available at https://github.com/ChuanxinSong/SimilarityPrototype
