[Paper Review] An Effective Deployment of Contrastive Learning in Multi-label Text Classification
This paper proposes five novel contrastive learning losses—Strict Contrastive Loss (SCL), Intra-label Contrastive Loss (ICL), Jaccard Similarity Contrastive Loss (JSCL), Jaccard Similarity Probability Contrastive Loss (JSPCL), and Stepwise Label Contrastive Loss (SLCL)—to improve semantic representation in multi-label text classification. Experiments on multi-label emotion and news classification tasks show that SCL and JSCL achieve state-of-the-art performance, with SCL attaining 55.88 F1-macro and 63.70 F1-micro on the Spanish dataset, and JSCL achieving 74.29 F1-macro and 85.27 F1-micro on the Indonesian dataset.
The effectiveness of contrastive learning technology in natural language processing tasks is yet to be explored and analyzed. How to construct positive and negative samples correctly and reasonably is the core challenge of contrastive learning. It is even harder to discover contrastive objects in multi-label text classification tasks. There are very few contrastive losses proposed previously. In this paper, we investigate the problem from a different angle by proposing five novel contrastive losses for multi-label text classification tasks. These are Strict Contrastive Loss (SCL), Intra-label Contrastive Loss (ICL), Jaccard Similarity Contrastive Loss (JSCL), Jaccard Similarity Probability Contrastive Loss (JSPCL), and Stepwise Label Contrastive Loss (SLCL). We explore the effectiveness of contrastive learning for multi-label text classification tasks by the employment of these novel losses and provide a set of baseline models for deploying contrastive learning techniques on specific tasks. We further perform an interpretable analysis of our approach to show how different components of contrastive learning losses play their roles. The experimental results show that our proposed contrastive losses can bring improvement to multi-label text classification tasks. Our work also explores how contrastive learning should be adapted for multi-label text classification tasks.
Motivation & Objective
- To address the challenge of ambiguous semantic representation in multi-label text classification, where overlapping labels blur class boundaries.
- To investigate how contrastive learning can be effectively adapted to multi-label text classification by designing novel contrastive loss functions.
- To provide a set of baseline models and loss functions for deploying contrastive learning in multi-label text classification tasks.
- To conduct an interpretable analysis of how different contrastive loss components influence semantic space clustering and discrimination.
- To evaluate the effectiveness of contrastive learning across multiple multi-label text classification benchmarks, including emotion and news classification.
Proposed method
- Proposes Strict Contrastive Loss (SCL), which enforces strict positive-negative sample pairing based on exact label matching to tighten semantic clustering.
- Introduces Intra-label Contrastive Loss (ICL), which encourages feature similarity among samples sharing the same label, enhancing intra-class compactness.
- Develops Jaccard Similarity Contrastive Loss (JSCL), which uses Jaccard similarity between label sets to define positive samples, improving robustness to label overlap.
- Introduces Jaccard Similarity Probability Contrastive Loss (JSPCL), which models positive sample probability using Jaccard similarity, enabling probabilistic contrastive learning.
- Proposes Stepwise Label Contrastive Loss (SLCL), which applies contrastive learning in a stepwise manner based on label cardinality, reducing noise from high-multiplicity labels.
- Employs T-SNE visualization and Calinski-Harbasz clustering scores to interpretively analyze the quality of learned semantic representations across different loss functions.
Experimental results
Research questions
- RQ1How can contrastive learning be effectively adapted to multi-label text classification, where positive and negative sample definitions are ambiguous due to label co-occurrence?
- RQ2Which contrastive loss design—strict, intra-label, or Jaccard-based—yields the most effective semantic representation for multi-label text classification?
- RQ3To what extent do different contrastive losses improve clustering quality and inter-class discrimination in the semantic space?
- RQ4How does the performance of contrastive learning vary across different multi-label text classification benchmarks, such as emotion and news classification?
- RQ5Can interpretable analysis of the learned semantic space validate the effectiveness of each contrastive loss in enhancing class boundary clarity?
Key findings
- SCL achieves the highest Calinski-Harbasz score (25.14) on the multi-label dimension, indicating superior clustering quality and inter-class separation in the semantic space.
- JSCL achieves the highest Calinski-Harbasz score (200.48) on the single-label dimension, demonstrating strong performance in intra-class compactness for individual labels.
- On the Spanish dataset, JSCL achieves 55.62 F1-macro and 63.45 F1-micro, outperforming SpanEmo (55.49 F1-macro) and establishing a new SOTA.
- On the Indonesian dataset, SCL achieves 74.29 F1-macro and 85.27 F1-micro, surpassing SpanEmo (71.62 F1-macro) and setting a new SOTA.
- SCL and JSCL both significantly improve semantic representation, as confirmed by T-SNE visualizations showing tighter clusters and clearer boundaries between classes.
- SLCL, while less effective in boundary clarity, shows consistent performance, suggesting its utility in handling high-cardinality label samples.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.