Incorporating Hierarchy into Text Encoder: a Contrastive Learning Approach for Hierarchical Text Classification
Authors:
Preprint
Abstract
Hierarchical text classification is a challenging subtask of multi-label classification due to its complex label hierarchy. Existing methods encode text and label hierarchy separately and mix their representations for classification, where the hierarchy remains unchanged for all input text. Instead of modeling them separately, in this work, we propose Hierarchy-guided Contrastive Learning (HGCLR) to directly embed the hierarchy into a text encoder. During training, HGCLR constructs positive samples for input text under the guidance of the label hierarchy. By pulling together the input text and its positive sample, the text encoder can learn to generate the hierarchy-aware text representation independently. Therefore, after training, the HGCLR enhanced text encoder can dispense with the redundant hierarchy. Extensive experiments on three benchmark datasets verify the effectiveness of HGCLR.Keywords
All Related Versions
This publication has 20 references indexed in Scilit:
- Hierarchical Multi-label Text Classification: Self-adaption Semantic Awareness Network Integrating Text Topic and Label Level Information2021
- Cognitive structure learning model for hierarchical multi-label text classificationKnowledge-Based Systems, 2021
- CLINE: Contrastive Learning with Semantic Negative Examples for Natural Language Understanding2021
- Adversarial Attacks on Deep-learning Models in Natural Language ProcessingACM Transactions on Intelligent Systems and Technology, 2020
- Transformers: State-of-the-Art Natural Language Processing2020
- Hierarchy-Aware Global Model for Hierarchical Text Classification2020
- It’s Morphin’ Time! Combating Linguistic Discrimination with Inflectional Perturbations2020
- Hierarchical Taxonomy-Aware and Attentional Graph Capsule RCNNs for Large-Scale Multi-Label Text ClassificationIEEE Transactions on Knowledge and Data Engineering, 2019
- Recursive regularization for large-scale classification with hierarchical and graphical dependencies2013
- A survey of hierarchical classification across different application domainsData Mining and Knowledge Discovery, 2010