Contrastive Loss Based on Contextual Similarity for Image Classification
| dc.contributor.author | Valem, Lucas Pascotti [UNESP] | |
| dc.contributor.author | Pedronette, Daniel Carlos Guimarães [UNESP] | |
| dc.contributor.author | Allili, Mohand Said | |
| dc.contributor.institution | Universidade Estadual Paulista (UNESP) | |
| dc.contributor.institution | Université du Quebec en Outaouais | |
| dc.date.accessioned | 2025-04-29T20:13:55Z | |
| dc.date.issued | 2025-01-01 | |
| dc.description.abstract | Contrastive learning has been extensively exploited in self-supervised and supervised learning due to its effectiveness in learning representations that distinguish between similar and dissimilar images. It offers a robust alternative to cross-entropy by yielding more semantically meaningful image embeddings. However, most contrastive losses rely on pairwise measures to assess the similarity between elements, ignoring more general neighborhood information that can be leveraged to enhance model robustness and generalization. In this paper, we propose the Contextual Contrastive Loss (CCL) to replace pairwise image comparison by introducing a new contextual similarity measure using neighboring elements. The CCL yields a more semantically meaningful image embedding ensuring better separability of classes in the latent space. Experimental evaluation on three datasets (Food101, MiniImageNet, and CIFAR-100) has shown that CCL yields superior results by achieving up to 10.76% relative gains in classification accuracy, particularly for fewer training epochs and limited training data. This demonstrates the potential of our approach, especially in resource-constrained scenarios. | en |
| dc.description.affiliation | São Paulo State University (UNESP), SP | |
| dc.description.affiliation | Université du Quebec en Outaouais | |
| dc.description.affiliationUnesp | São Paulo State University (UNESP), SP | |
| dc.description.sponsorship | Petrobras | |
| dc.format.extent | 58-69 | |
| dc.identifier | http://dx.doi.org/10.1007/978-3-031-77392-1_5 | |
| dc.identifier.citation | Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), v. 15046 LNCS, p. 58-69. | |
| dc.identifier.doi | 10.1007/978-3-031-77392-1_5 | |
| dc.identifier.issn | 1611-3349 | |
| dc.identifier.issn | 0302-9743 | |
| dc.identifier.scopus | 2-s2.0-85218461565 | |
| dc.identifier.uri | https://hdl.handle.net/11449/308911 | |
| dc.language.iso | eng | |
| dc.relation.ispartof | Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) | |
| dc.source | Scopus | |
| dc.subject | Contrastive Learning | |
| dc.subject | Image Classification | |
| dc.title | Contrastive Loss Based on Contextual Similarity for Image Classification | en |
| dc.type | Trabalho apresentado em evento | pt |
| dspace.entity.type | Publication | |
| unesp.author.orcid | 0000-0002-3833-9072[1] | |
| unesp.author.orcid | 0000-0002-2867-4838[2] | |
| unesp.author.orcid | 0000-0001-8736-6600[3] |

