paper-with-me

Papers

Hierarchical Text Classification Using Black Box Large Language Models

2025-08-06 · Kosuke Yoshimura, Hisashi Kashima arxiv

Hierarchical Text Classification (HTC) aims to assign texts to structured label hierarchies; however, it faces challenges due to data scarcity and model complexity. This study explores the feasibility of using black box Large Language Models (LLMs) accessed via APIs for HTC, as an alternative to traditional machine learning methods that require extensive labeled data and computational resources. We evaluate three prompting strategies -- Direct Leaf Label Prediction (DL), Direct Hierarchical Label Prediction (DH), and Top-down Multi-step Hierarchical Label Prediction (TMH) -- in both zero-shot and few-shot settings, comparing the accuracy and cost-effectiveness of these strategies. Experiments on two datasets show that a few-shot setting consistently improves classification accuracy compared to a zero-shot setting. While a traditional machine learning model achieves high accuracy on a dataset with a shallow hierarchy, LLMs, especially DH strategy, tend to outperform the machine learning model on a dataset with a deeper hierarchy. API costs increase significantly due to the higher input tokens required for deeper label hierarchies on DH strategy. These results emphasize the trade-off between accuracy improvement and the computational cost of prompt strategy. These findings highlight the potential of black box LLMs for HTC while underscoring the need to carefully select a prompt strategy to balance performance and cost.

📄 PDF Abstract BibTeX arXiv:2508.04219

Code (0)

등록된 구현이 없습니다.

Tasks

Text Classification

Similar Papers 제목 키워드 기반

Hierarchical Text Classification of Urdu News using Deep Neural Network

2021-07-07 · Taimoor Ahmed Javed, Waseem Shahzad, Umair Arshad

Digital text is increasing day by day on the internet. It is very challenging to classify a large and heterogeneous collection of data, which require improved information processing methods to organize text. To classify …

Classificationtext-classificationText Classification

Enhancing Black-Box Few-Shot Text Classification with Prompt-Based Data Augmentation

2023-05-23 · Danqing Luo, Chen Zhang, Jiahui Xu, Bin Wang 외

Training or finetuning large-scale language models (LLMs) such as GPT-3 requires substantial computation resources, motivating recent efforts to explore parameter-efficient adaptation to downstream tasks. One practical a…

Data AugmentationFew-Shot Text ClassificationLanguage ModelingLanguage Modelling+2

CrossTune: Black-Box Few-Shot Classification with Label Enhancement

2024-03-19 · Danqing Luo, Chen Zhang, Yan Zhang, Haizhou Li

Training or finetuning large-scale language models (LLMs) requires substantial computation resources, motivating recent efforts to explore parameter-efficient adaptation to downstream tasks. One approach is to treat thes…

Few-Shot Text ClassificationIn-Context LearningLanguage Modellingtext-classification+1

Concept Bottleneck Large Language Models

2024-12-11 · Chung-En Sun, Tuomas Oikarinen, Berk Ustun, Tsui-Wei Weng

We introduce the Concept Bottleneck Large Language Model (CB-LLM), a pioneering approach to creating inherently interpretable Large Language Models (LLMs). Unlike traditional black-box LLMs that rely on post-hoc interpre…

Language ModelingLanguage ModellingLarge Language Modeltext-classification+2

Generating Hierarchical Explanations on Text Classification via Feature Interaction Detection

2020-04-04 · ACL 2020 6 · Hanjie Chen, Guangtao Zheng, Yangfeng Ji

Generating explanations for neural networks has become crucial for their applications in real-world with respect to reliability and trustworthiness. In natural language processing, existing methods usually provide import…

ClassificationDecision MakingGeneral Classificationtext-classification+1