Saved in:
Bibliographic Details
Main Authors: Zhou, Zi-Hao, Wang, Jun-Jie, Wei, Tong, Zhang, Min-Ling
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.22028
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910972601434112
author Zhou, Zi-Hao
Wang, Jun-Jie
Wei, Tong
Zhang, Min-Ling
author_facet Zhou, Zi-Hao
Wang, Jun-Jie
Wei, Tong
Zhang, Min-Ling
contents Contrastive learning has achieved remarkable success in learning effective representations, with supervised contrastive learning often outperforming self-supervised approaches. However, in real-world scenarios, data annotations are often ambiguous or inaccurate, meaning that class labels may not reliably indicate whether two examples belong to the same class. This limitation restricts the applicability of supervised contrastive learning. To address this challenge, we introduce the concept of ``continuous semantic similarity'' to define positive and negative pairs. Instead of directly relying on imprecise class labels, we measure the semantic similarity between example pairs, which quantifies how closely they belong to the same category by iteratively refining weak supervisory signals. Based on this concept, we propose a graph-theoretic framework for weakly-supervised contrastive learning, where semantic similarity serves as the graph weights. Our framework is highly versatile and can be applied to many weakly-supervised learning scenarios. We demonstrate its effectiveness through experiments in two common settings, i.e., noisy label and partial label learning, where existing methods can be easily integrated to significantly improve performance. Theoretically, we establish an error bound for our approach, showing that it can approximate supervised contrastive learning under mild conditions. The implementation code is available at https://github.com/Speechless-10308/WSC.
format Preprint
id arxiv_https___arxiv_org_abs_2505_22028
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Weakly-Supervised Contrastive Learning for Imprecise Class Labels
Zhou, Zi-Hao
Wang, Jun-Jie
Wei, Tong
Zhang, Min-Ling
Machine Learning
Contrastive learning has achieved remarkable success in learning effective representations, with supervised contrastive learning often outperforming self-supervised approaches. However, in real-world scenarios, data annotations are often ambiguous or inaccurate, meaning that class labels may not reliably indicate whether two examples belong to the same class. This limitation restricts the applicability of supervised contrastive learning. To address this challenge, we introduce the concept of ``continuous semantic similarity'' to define positive and negative pairs. Instead of directly relying on imprecise class labels, we measure the semantic similarity between example pairs, which quantifies how closely they belong to the same category by iteratively refining weak supervisory signals. Based on this concept, we propose a graph-theoretic framework for weakly-supervised contrastive learning, where semantic similarity serves as the graph weights. Our framework is highly versatile and can be applied to many weakly-supervised learning scenarios. We demonstrate its effectiveness through experiments in two common settings, i.e., noisy label and partial label learning, where existing methods can be easily integrated to significantly improve performance. Theoretically, we establish an error bound for our approach, showing that it can approximate supervised contrastive learning under mild conditions. The implementation code is available at https://github.com/Speechless-10308/WSC.
title Weakly-Supervised Contrastive Learning for Imprecise Class Labels
topic Machine Learning
url https://arxiv.org/abs/2505.22028