Hierarchical Verbalizer for Few-Shot Hierarchical Text Classification
Authors: Ke Ji, Yixin Lian, Jingsheng Gao, Baoyuan Wang
Abstract
Due to the complex label hierarchy and intensive labeling cost in practice, the hierarchical text classification (HTC) suffers a poor performance especially when low-resource or few-shot settings are considered. Recently, there is a growing trend of applying prompts on pre-trained language models (PLMs), which has exhibited effectiveness in the few-shot flat text classification tasks. However, limited work has studied the paradigm of prompt-based learning in the HTC problem when the training data is extremely scarce. In this work, we define a path-based few-shot setting and establish a strict path-based evaluation metric to further explore few-shot HTC tasks. To address the issue, we propose the hierarchical verbalizer ("HierVerb"), a multi-verbalizer framework treating HTC as a single- or multi-label classification problem at multiple layers and learning vectors as verbalizers constrained by hierarchical structure and hierarchical contrastive learning. In this manner, HierVerb fuses label hierarchy knowledge into verbalizers and remarkably outperforms those who inject hierarchy through graph encoders, maximizing the benefits of PLMs. Extensive experiments on three popular HTC datasets under the few-shot settings demonstrate that prompt with HierVerb significantly boosts the HTC performance, meanwhile indicating an elegant way to bridge the gap between the large pre-trained model and downstream hierarchical classification tasks. Our code and few-shot dataset are publicly available at https://github.com/1KE-JI/HierVerb.
The papers around it, by date and closeness
Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper
Papers around this one
Ranked by how close their title and abstract are to this paper’s. Select some to read them together.
Closest papers
-
Prompt-Guided Few-Shot Hierarchical Text Classification via Example Retrieval and Structured DecodingZhi-Jing Wu, Lian-Fang Tian, Yu-Heng Huang · 2025 · 2025 6th International Conference on Computer Engineering and Intelligent Control (ICCEIC) · Not summarized yet
Prompt-Guided Few-Shot Hierarchical Text Classification combines retrieved in-context examples with structured decoding to predict consistent label paths in few-shot HTC.
Abstract
Hierarchical text classification (HTC) aims to assign each document to a path of labels in a predefined taxonomy, reflecting both high-level semantic categories and fine-grained subtopics. Traditional HTC methods depend on supervised training at every node of the hierarchy and thus require extensive labeled data. Large language models (LLMs) provide new opportunities for training-free few-shot learning through in-context examples and structured prompts. However, LLMs often struggle to maintain hierarchical consistency, producing label paths that skip levels or diverge from valid branches. This paper presents a simple yet effective framework that combines hierarchical prompting with semantic …
-
HPT: Hierarchy-aware Prompt Tuning for Hierarchical Text ClassificationZihan Wang, Peiyi Wang, Tianyu Liu et al. · 2022 · Conference on Empirical Methods in Natural Language Processing · cited 80 times · Not summarized yet
HPT introduces hierarchy-aware prompt tuning for HTC by using a dynamic virtual template and label words to connect PLM predictions with the label hierarchy.
Abstract
Hierarchical text classification (HTC) is a challenging subtask of multi-label classification due to its complex label hierarchy.Recently, the pretrained language models (PLM)have been widely adopted in HTC through a fine-tuning paradigm. However, in this paradigm, there exists a huge gap between the classification tasks with sophisticated label hierarchy and the masked language model (MLM) pretraining tasks of PLMs and thus the potential of PLMs cannot be fully tapped.To bridge the gap, in this paper, we propose HPT, a Hierarchy-aware Prompt Tuning method to handle HTC from a multi-label MLM perspective.Specifically, we construct a dynamic virtual template and label words that take the form…
-
SCHK-HTC: Sibling Contrastive Learning with Hierarchical Knowledge-Aware Prompt Tuning for Hierarchical Text ClassificationKe Xiong, Qian Wu, Wang-Jie Gan et al. · 2026 · arXiv.org · preprint, not peer reviewed · Not summarized yet
SCHK-HTC cites HierVerb and extends few-shot HTC prompting with sibling contrastive learning to distinguish semantically similar sibling classes.
Abstract
Few-shot Hierarchical Text Classification (few-shot HTC) is a challenging task that involves mapping texts to a predefined tree-structured label hierarchy under data-scarce conditions. While current approaches utilize structural constraints from the label hierarchy to maintain parent-child prediction consistency, they face a critical bottleneck, the difficulty in distinguishing semantically similar sibling classes due to insufficient domain knowledge. We introduce an innovative method named Sibling Contrastive Learning with Hierarchical Knowledge-aware Prompt Tuning for few-shot HTC tasks (SCHK-HTC). Our work enhances the model's perception of subtle differences between sibling classes at de…
-
COPHTC: Contrastive Learning with Prompt Tuning for Hierarchical Text ClassificationFuhan Cai, Zhongqiang Zhang, Duo Liu et al. · 2024 · IEEE International Conference on Acoustics, Speech, and Signal Processing · cited 5 times · Not summarized yet
COPHTC cites HierVerb and adds contrastive learning, momentum updates, and a dynamic queue to prompt tuning for HTC.
Abstract
Hierarchical Text Classification (HTC) is an essential yet challenging task in natural language processing (NLP) due to its complex label structure. Recently, a number of approaches have employed prompt learning in HTC, achieving noteworthy outcomes. However, prompt-based HTC does not further optimize the representation of samples based on label relationships, nor does it dynamically adjust the relative positions of sample pairs from the perspective of the embedding space. In this work, we propose a COntrastive-enhanced Promptbased model for HTC tasks (COPHTC). More specifically, we integrate contrastive learning into prompt tuning while employing momentum updates and a dynamic queue to offe…
-
HGSVerb: Improving Zero-shot Text Classification via Hierarchical Generative Semantic-Aware VerbalizerZi-Feng Liu, Xu Huang, Weipeng Chen et al. · 2024 · IEEE International Joint Conference on Neural Network · Not summarized yet
HGSVerb uses hierarchical verbalizers for fully zero-shot text classification, rather than HierVerb’s few-shot hierarchical text classification setting.
Abstract
Prompt-based methods with Pre-trained Language Models (PLMs) have demonstrated remarkable zero-shot performance in text classification tasks. Among these methods, verbalizers are employed to convert model-predicted vocabulary logits into task-specific labels. However, most existing zero-shot approaches face several challenges: (1) a reliance on unlabeled data or additional knowledge bases, which limits their effectiveness in varied data scenarios; (2) a disregard for semantic ambiguity issues in verbalizer construction. This paper presents a novel fully zero-shot approach named Hierarchical Generative Semantic-Aware Generative Verbalizer (HGSVerb). (1) We propose a prompt-based module, Hiera…
-
Domain-Hierarchy Adaptation via Chain of Iterative Reasoning for Few-shot Hierarchical Text ClassificationKe Ji, Peng Wang, Wenjun Ke et al. · 2024 · International Joint Conference on Artificial Intelligence · cited 9 times · Not summarized yet
Domain-Hierarchy Adaptation cites HierVerb and studies few-shot HTC by iteratively reasoning over domain hierarchies instead of using hierarchical verbalizers.
Abstract
Recently, various pre-trained language models (PLMs) have been proposed to prove their impressive performances on a wide range of few-shot tasks. However, limited by the unstructured prior knowledge in PLMs, it is difficult to maintain consistent performance on complex hierarchically dependent tasks, especially when the downstream data is extremely scarce. The main challenge is how to transfer the unstructured semantic space in PLMs to the downstream domain hierarchy. Unlike previous work on hierarchical text classification (HTC) which directly performs multi-label classification or uses graph neural network (GNN) to inject label hierarchy, in this work, we study the HTC problem under a few-…
-
NER-guided Comprehensive Hierarchy-aware Prompt Tuning for Hierarchical Text ClassificationFuhan Cai, Duo Liu, Zhongqiang Zhang et al. · 2024 · International Conference on Language Resources and Evaluation · cited 9 times · Not summarized yet
NER-guided prompt tuning cites HierVerb and formulates prompt-based HTC as named entity recognition with CRF and Global Pointer components.
Abstract
Hierarchical text classification (HTC) is a significant but challenging task in natural language processing (NLP) due to its complex taxonomic label hierarchy. Recently, there have been a number of approaches that applied prompt learning to HTC problems, demonstrating impressive efficacy. The majority of prompt-based studies emphasize global hierarchical features by employing graph networks to represent the hierarchical structure as a whole, with limited research on maintaining path consistency within the internal hierarchy of the structure. In this paper, we formulate prompt-based HTC as a named entity recognition (NER) task and introduce conditional random fields (CRF) and Global Pointer t…
-
Hierarchical Text Classification Optimization via Structural Entropy and Singular SmoothingQi-Tong Liu, Hao Peng, Xiang Huang et al. · 2025 · IEEE Transactions on Knowledge and Data Engineering · cited 18 times · Not summarized yet
Structural Entropy and Singular Smoothing cites HierVerb and targets tail-label performance in prompt-based HTC through embedding and smoothing techniques.
Abstract
With long-tailed data and complex label hierarchy, hierarchical text classification (HTC) is a challenging multi-label text classification task. Applying prompts to pre-trained language models (PLMs) has recently become a mainstream approach in HTC. However, existing prompt-based models experience a significant drop in classification performance on tail labels. Due to the imbalanced data, HTC models still face two challenges. First, text embeddings, learned for classification, often lack distinctiveness for tail categories. Second, label embeddings suffer from significant degeneration, especially for tail labels. To address these issues, in this paper, we propose a novel Hierarchical Text Cl…
Prior work it builds on
-
Hierarchical Text Classification with Reinforced Label AssignmentYuning Mao, Jingjing Tian, Jiawei Han et al. · 2019 · Conference on Empirical Methods in Natural Language Processing · cited 115 times · Not summarized yet
HiLAP formulates HTC as a Markov decision process and learns a label-assignment policy, unlike HierVerb’s prompt-based verbalizers.
Abstract
While existing hierarchical text classification (HTC) methods attempt to capture label hierarchies for model training, they either make local decisions regarding each label or completely ignore the hierarchy information during inference. To solve the mismatch between training and inference as well as modeling label dependencies in a more principled way, we formulate HTC as a Markov decision process and propose to learn a Label Assignment Policy via deep reinforcement learning to determine where to place an object and when to stop the assignment process. The proposed method, HiLAP, explores the hierarchy during both training and inference time in a consistent manner and makes inter-dependent …
-
Incorporating Hierarchy into Text Encoder: a Contrastive Learning Approach for Hierarchical Text ClassificationZihan Wang, Peiyi Wang, Lianzhe Huang et al. · 2022 · Annual Meeting of the Association for Computational Linguistics · cited 175 times · Not summarized yet
HGCLR embeds label hierarchy into a text encoder through hierarchy-guided contrastive examples, whereas HierVerb constrains learned verbalizers with hierarchy.
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…
-
Constrained Sequence-to-Tree Generation for Hierarchical Text ClassificationChao Yu, Yi Shen, Yue Mao et al. · 2022 · Annual International ACM SIGIR Conference on Research and Development in Information Retrieval · cited 36 times · Not summarized yet
Seq2Tree generates hierarchical labels as a sequence and uses constrained decoding, rather than classifying through HierVerb’s prompt verbalizers.
Abstract
Hierarchical Text Classification (HTC) is a challenging task where a document can be assigned to multiple hierarchically structured categories within a taxonomy. The majority of prior studies consider HTC as a flat multi-label classification problem, which inevitably leads to ''label inconsistency'' problem. In this paper, we formulate HTC as a sequence generation task and introduce a sequence-to-tree framework (Seq2Tree) for modeling the hierarchical label structure. Moreover, we design a constrained decoding strategy with dynamic vocabulary to secure the label consistency of the results. Compared with previous works, the proposed approach achieves significant and consistent improvements on…
-
Concept-Based Label Embedding via Dynamic Routing for Hierarchical Text ClassificationXuepeng Wang, Li Zhao, Bing Liu et al. · 2021 · Annual Meeting of the Association for Computational Linguistics · cited 17 times · Not summarized yet
Concept-Based Label Embedding models shared fine-grained concepts in class representations for HTC, while HierVerb learns hierarchy-constrained prompt verbalizers.
Abstract
Hierarchical Text Classification (HTC) is a challenging task that categorizes a textual description within a taxonomic hierarchy. Most of the existing methods focus on modeling the text. Recently, researchers attempt to model the class representations with some resources (e.g., external dictionaries). However, the concept shared among classes which is a kind of domain-specific and fine-grained information has been ignored in previous work. In this paper, we propose a novel concept-based label embedding method that can explicitly represent the concept and model the sharing mechanism among classes for the hierarchical text classification. Experimental results on two widely used datasets prove …
-
Hierarchy-Aware Global Model for Hierarchical Text ClassificationJie Zhou, Chunping Ma, Ding-Kun Long et al. · 2020 · Annual Meeting of the Association for Computational Linguistics · cited 255 times · Not summarized yet
HiAGM represents label dependencies with hierarchy-aware structure encoders and combines text and label features for HTC.
Abstract
Hierarchical text classification is an essential yet challenging subtask of multi-label text classification with a taxonomic hierarchy. Existing methods have difficulties in modeling the hierarchical label structure in a global view. Furthermore, they cannot make full use of the mutual interactions between the text feature space and the label space. In this paper, we formulate the hierarchy as a directed graph and introduce hierarchy-aware structure encoders for modeling label dependencies. Based on the hierarchy encoder, we propose a novel end-to-end hierarchy-aware global model (HiAGM) with two variants. A multi-label attention variant (HiAGM-LA) learns hierarchy-aware label embeddings thr…
Papers that cite it
-
Dual Prompt Tuning based Contrastive Learning for Hierarchical Text ClassificationSi-Shi Xiong, Yu Zhao, Jie Zhang et al. · 2024 · Annual Meeting of the Association for Computational Linguistics · cited 24 times · Not summarized yet
Dual Prompt Tuning cites HierVerb and uses layer-wise contrastive learning to reduce confusion among peer labels in HTC.
Abstract
Hierarchical text classification aims at catego-rizing texts into a multi-tiered tree-structured hierarchy of labels. Existing methods pay more attention to capture hierarchy-aware text feature by exploiting explicit parent-child relationships, while interactions between peer labels are rarely taken into account, resulting in severe label confusion within each layer. In this work, we propose a novel Dual Prompt Tuning (DPT) method, which emphasizes identifying discrimination among peer labels by performing contrastive learning on each hierarchical layer. We design an innovative hand-crafted prompt containing slots for both positive and negative label predictions to cooperate with contrastive…
-
Revisiting Hierarchical Text Classification: Inference and MetricsRoman Plaud, Matthieu Labeau, Antoine Saillenfest et al. · 2024 · Conference on Computational Natural Language Learning · cited 13 times · Not summarized yet
Revisiting HTC proposes hierarchical evaluation metrics and inference analyses, a related evaluation concern to HierVerb’s path-based metric.
Abstract
Hierarchical text classification (HTC) is the task of assigning labels to a text within a structured space organized as a hierarchy. Recent works treat HTC as a conventional multilabel classification problem, therefore evaluating it as such. We instead propose to evaluate models based on specifically designed hierarchical metrics and we demonstrate the intricacy of metric choice and prediction inference method. We introduce a new challenging dataset and we evaluate fairly, recent sophisticated models, comparing them with a range of simple but strong baselines, including a new theoretically motivated loss. Finally, we show that those baselines are very often competitive with the latest models…
-
SPIRIT: Structural Entropy Guided Prefix Tuning for Hierarchical Text ClassificationHe Zhu, Jinxiang Xia, Ruo-Mei Liu et al. · 2025 · Entropy · cited 2 times · Not summarized yet
SPIRIT cites HierVerb and applies structural-entropy-guided prefix tuning to connect language-model prompts with HTC label hierarchies.
Abstract
Hierarchical text classification (HTC) is a challenging task that requires classifiers to solve a series of multi-label subtasks considering hierarchical dependencies among labels. Recent studies have introduced prompt tuning to create closer connections between the language model (LM) and the complex label hierarchy. However, we find that the model’s attention to the prompt gradually decreases as the prompt moves from the input to the output layer, revealing the limitations of previous prompt tuning methods for HTC. Given the success of prefix tuning-based studies in natural language understanding tasks, we introduce Structural entroPy guIded pRefIx Tuning (SPIRIT). Specifically, we extract…
-
Prompt-Based Label-Aware Framework for Few-Shot Multi-Label Text ClassificationThanakorn Thaminkaew, Piyawat Lertvittayakumjorn, P. Vateekul · 2024 · IEEE Access · cited 16 times · Not summarized yet
Prompt-Based Label-Aware Framework studies prompt-based few-shot multi-label classification, a setting related to HierVerb’s few-shot hierarchical classification.
Abstract
Prompt-based learning has demonstrated remarkable success in few-shot text classification, outperforming the traditional fine-tuning approach. This method transforms a text input into a masked language modeling prompt using a template, queries a fine-tuned language model to fill in the mask, and then uses a verbalizer to map the model’s output to a predicted class. Previous prompt-based text classification approaches were primarily designed for multi-class classification, taking advantage of the fact that the classes are mutually exclusive and one example belongs to only one class. However, these assumptions do not hold in the context of multi-label text classification, where labels often ex…
-
Prompt-Tuned Muti-Task Taxonomic Transformer (PTMTTaxoFormer)R. Vasantha, N. Nguyen, Yue Zhang · 2024 · Conference on Empirical Methods in Natural Language Processing · cited 11 times · Not summarized yet
PTMTTaxoFormer uses prompt tuning and a multi-task objective to predict hierarchical text labels, addressing the same HTC task.
Abstract
Hierarchical Text Classification (HTC) is a subclass of multi-label classification, it is challenging because the hierarchy typically has a large number of diverse topics. Existing methods for HTC fall within two categories, local methods (a classifier for each level, node, or parent) or global methods (a single classifier for everything). Local methods are computationally expensive, whereas global methods often require complex explicit injection of the hierarchy, verbalizers, and/or prompt engineering. In this work, we propose Prompt Tuned Multi Task Taxonomic Transformer, a single classifier that uses a multi-task objective to predict one or more topics. The approach is capable of understa…
Go further
How are these papers found?
We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.
Updated on 5 November 2026.