Exécution de notre outil de synthèse sur un nouvel article
Vérifiez l’article ci-dessous, puis lancez sa synthèse.
Prompt-Guided Few-Shot Hierarchical Text Classification via Example Retrieval and Structured Decoding
Zhijing Wu (South China University of Technology), Lianfang Tian (South China University of Technology), Yuheng Huang
Résumé : 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 example retrieval. Without any gradient updates or fine-tuning, our method performs level-wise reasoning from the taxonomy root to the leaf node, guided by a small set of retrieved sibling-level exemplars. We evaluate the approach on a DBpedia-derived benchmark under four settings (0-, 1-, 2-, and 4-shot) using the Qwen-Plus model. The results demonstrate steady improvements in path accuracy and leaf accuracy with minimal token overhead, confirming the viability of structured prompting for hierarchical reasoning. We further analyze error patterns and discuss implications for scalable, interpretable hierarchical classification.