Incorporating Hierarchy into Text Encoder: a Contrastive Learning Approach for Hierarchical Text Classification
Zihan Wang, Peiyi Wang, Lianzhe Huang, Xin Sun, Houfeng Wang
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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 029987d6-ee75-4d63-8d73-37bc30b74974Cited by top-tier papers19
- HPT: Hierarchy-aware Prompt Tuning for Hierarchical Text ClassificationZihan Wang, Peiyi Wang, Tianyu Liu, Binghuai Lin et al.EMNLP 2022 · 42 citations
- Exploiting Global and Local Hierarchies for Hierarchical Text ClassificationTing Jiang, Deqing Wang, Leilei Sun, Zhongzhi Chen et al.EMNLP 2022 · 29 citations
- Hierarchical Verbalizer for Few-Shot Hierarchical Text ClassificationKe Ji, Yixin Lian, Jingsheng Gao, Baoyuan WangACL 2023 · 17 citations
- Hierarchical Text Classification as Sub-hierarchy Sequence GenerationSanghun Im, Gibaeg Kim, Heung-Seon Oh, Seongung Jo et al.AAAI 2023 · 11 citations
- Mitigating Idiom Inconsistency: A Multi-Semantic Contrastive Learning Method for Chinese Idiom Reading ComprehensionMingmin Wu, Yuxue Hu, Yongcheng Zhang, Zhi Zeng et al.AAAI 2024 · 10 citations
Builds on11
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
- Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng et al.NeurIPS 2021 · 1,632 citations
- COCO-LM: Correcting and Contrasting Text Sequences for Language Model PretrainingYu Meng, Chenyan Xiong, Payal Bajaj, Saurabh Tiwary et al.NeurIPS 2021 · 231 citations
- Hierarchy-Aware Global Model for Hierarchical Text ClassificationJie Zhou, Chunping Ma, Dingkun Long, Guangwei Xu et al.ACL 2020 · 171 citations
Related papers
- Use All The Labels: A Hierarchical Multi-Label Contrastive Learning FrameworkShu Zhang, Ran Xu, Caiming Xiong, Chetan RamaiahCVPR 2022 · 71 citations
- Hierarchy-aware Label Semantics Matching Network for Hierarchical Text ClassificationHaibin Chen, Qianli Ma, Zhenxi Lin, Jiangyue YanACL 2021
- LGSA: Label Geometry Structuring and Aligning for Hierarchical Text ClassificationShuai Zhang, Weibo Xu, Jiahao Nie, Kecheng HuangACL 2026
- Learning Hierarchical Knowledge in Text-Rich Networks with Taxonomy-Informed Representation LearningYunhui Liu, Yongchao Liu, Yinfeng Chen, Chuntao Hong et al.KDD 2026 · 1 citation
- Hierarchical Multi-label Text Classification with Horizontal and Vertical Category CorrelationsLinli Xu, Sijie Teng, Ruoyu Zhao, Junliang Guo et al.EMNLP 2021 · 22 citations
