Retrieval-style In-Context Learning for Few-shot Hierarchical Text Classification
Chen, Huiyao, Zhao, Yu, Chen, Zulong, Wang, Mengjia, Li, Liangyue, Zhang, Meishan, Zhang, Min
–arXiv.org Artificial Intelligence
Hierarchical text classification (HTC) is an important task with broad applications, while few-shot HTC has gained increasing interest recently. While in-context learning (ICL) with large language models (LLMs) has achieved significant success in few-shot learning, it is not as effective for HTC because of the expansive hierarchical label sets and extremely-ambiguous labels. In this work, we introduce the first ICL-based framework with LLM for few-shot HTC. We exploit a retrieval database to identify relevant demonstrations, and an iterative policy to manage multi-layer hierarchical labels. Particularly, we equip the retrieval database with HTC label-aware representations for the input texts, which is achieved by continual training on a pretrained language model with masked language modeling (MLM), layer-wise classification (CLS, specifically for HTC), and a novel divergent contrastive learning (DCL, mainly for adjacent semantically-similar labels) objective. Experimental results on three benchmark datasets demonstrate superior performance of our method, and we can achieve state-of-the-art results in few-shot HTC.
arXiv.org Artificial Intelligence
Jun-29-2024
- Country:
- North America
- United States
- District of Columbia > Washington (0.04)
- Washington > King County
- Seattle (0.04)
- Tennessee > Davidson County
- Nashville (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- California > San Diego County
- San Diego (0.04)
- Mexico > Quintana Roo
- Cancún (0.04)
- Canada > Ontario
- Toronto (0.05)
- United States
- Europe
- Italy (0.04)
- Austria (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Croatia > Dubrovnik-Neretva County
- Dubrovnik (0.04)
- Belgium > Brussels-Capital Region
- Brussels (0.04)
- Asia
- Middle East > UAE
- Abu Dhabi Emirate > Abu Dhabi (0.04)
- China
- Hong Kong (0.04)
- Tianjin Province > Tianjin (0.04)
- Heilongjiang Province > Harbin (0.04)
- Guangdong Province > Shenzhen (0.04)
- Beijing > Beijing (0.04)
- Middle East > UAE
- Africa > Rwanda
- North America
- Genre:
- Research Report (0.82)
- Technology: