Optimizing Contrastive Learning with Semi-Online Triplet Mining
Contrastive learning is a machine learning technique in which models learn by contrasting similar and dissimilar data points. Its goal is to learn a representation of data in such a way that similar instances are close together in the representation space, while dissimilar instances are far apart. Our industrial use case focuses on a special case of contrastive learning called triplet learning. Building triplets with adequate difficulty is crucial to effective training convergence in such a setup. By combining online and offline mining techniques, we propose a method of mining hard triplets that is both performant and memory-inexpensive. Our experiments demonstrate that the method leads to improved identity pairing (which is the specific case of clustering) both on a real-life industry shoe dataset and on a generated benchmark one.
Authors
- Przemysław Buczkowski (ORCID: https://orcid.org/0000-0002-6374-3456)
- Piotr Brzeziński (ORCID: https://orcid.org/0000-0001-6817-606X)
- Marek Kozłowski (ORCID: https://orcid.org/0000-0002-6313-8387)
Institutions
- Łukasiewicz Research Network - Textile Research Institute (PL)
- National Information Processing Institute (PL)
Publication Details
- Journal
- Applied Sciences
- Published
- 2025-07-14
- DOI
- https://doi.org/10.3390/app15147865
- Primary Topic
- Domain Adaptation and Few-Shot Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00