HierPrompt: Zero-Shot Hierarchical Text Classification with LLM-Enhanced Prototypes

Qian Zhang, Qinliang Su, Wei Zhu, Pang Yachun


Abstract
Hierarchical Text Classification is a challenging task which classifies texts into categories arranged in a hierarchy. Zero‐Shot Hierarchical Text Classification (ZS-HTC) further assumes only the availability of hierarchical taxonomy, without any training data. Existing works of ZS-HTC are typically built on the prototype-based framework by embedding the category names into prototypes, which, however, do not perform very well due to the ambiguity and impreciseness of category names. In this paper, we propose HierPrompt, a method that leverages hierarchy-aware prompts to instruct LLM to produce more representative and informative prototypes. Specifically, we first introduce Example Text Prototype (ETP), in conjunction with Category Name Prototype (CNP), to enrich the information contained in hierarchical prototypes. A Maximum Similarity Propagation (MSP) technique is also proposed to consider the hierarchy in similarity calculation. Then, the hierarchical prototype refinement module is utilized to (i) contextualize the category names for more accurate CNPs and (ii) produce detailed example texts for each leaf category to form ETPs. Experiments on three benchmark datasets demonstrate that HierPrompt substantially outperforms existing ZS‐HTC methods.
Anthology ID:
2025.findings-emnlp.207
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2025
Month:
November
Year:
2025
Address:
Suzhou, China
Editors:
Christos Christodoulopoulos, Tanmoy Chakraborty, Carolyn Rose, Violet Peng
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
3846–3859
Language:
URL:
https://preview.aclanthology.org/author-page-yu-wang-polytechnic/2025.findings-emnlp.207/
DOI:
10.18653/v1/2025.findings-emnlp.207
Bibkey:
Cite (ACL):
Qian Zhang, Qinliang Su, Wei Zhu, and Pang Yachun. 2025. HierPrompt: Zero-Shot Hierarchical Text Classification with LLM-Enhanced Prototypes. In Findings of the Association for Computational Linguistics: EMNLP 2025, pages 3846–3859, Suzhou, China. Association for Computational Linguistics.
Cite (Informal):
HierPrompt: Zero-Shot Hierarchical Text Classification with LLM-Enhanced Prototypes (Zhang et al., Findings 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/author-page-yu-wang-polytechnic/2025.findings-emnlp.207.pdf
Checklist:
 2025.findings-emnlp.207.checklist.pdf