Hierarchical Text Classification: Fine-tuned GPT-2 vs BERT-BiLSTM

Abstract Hierarchical Text Classification (HTC) is a specialised task in natural language processing that involves categorising text into a hierarchical structure of classes. This approach is particularly valuable in several domains, such as document organisation, sentiment analysis, and information retrieval, where classification schemas naturally form hierarchical structures. In this paper, we propose and compare two deep learning-based models for HTC. The first model involves fine-tuning GPT-2, a large language model (LLM), specifically for hierarchical classification tasks. Fine-tuning adapts GPT-2’s extensive pre-trained knowledge to the nuances of hierarchical classification. The second model leverages BERT for text preprocessing and encoding, followed by a BiLSTM layer for the classification process. Experimental results demonstrate that the fine-tuned GPT-2 model significantly outperforms the BERT-BiLSTM model in accuracy and F1 scores, underscoring the advantages of using advanced LLMs for hierarchical text classification.

Authors

Institutions

Publication Details

Journal
Applied Computer Systems
Published
2025-01-01
DOI
https://doi.org/10.2478/acss-2025-0005
Citations
2
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
4.96
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Hierarchical Text Classification: Fine-tuned GPT-2 vs BERT-BiLSTM

Sofiane Boukli Hacene, Abdelghani Bouziane, Djelloul Bouchiha, Noureddine Doumi et al.
2 citations
Applied Computer Systems
Topic Modeling
4.96
article

Hierarchical Text Classification: Fine-tuned GPT-2 vs BERT-BiLSTM

Sofiane Boukli Hacene, Abdelghani Bouziane, Djelloul Bouchiha, Noureddine Doumi, Benamar Hamzaoui
article en
2 citations

Abstract

Abstract Hierarchical Text Classification (HTC) is a specialised task in natural language processing that involves categorising text into a hierarchical structure of classes. This approach is particularly valuable in several domains, such as document organisation, sentiment analysis, and information retrieval, where classification schemas naturally form hierarchical structures. In this paper, we propose and compare two deep learning-based models for HTC. The first model involves fine-tuning GPT-2, a large language model (LLM), specifically for hierarchical classification tasks. Fine-tuning adapts GPT-2’s extensive pre-trained knowledge to the nuances of hierarchical classification. The second model leverages BERT for text preprocessing and encoding, followed by a BiLSTM layer for the classification process. Experimental results demonstrate that the fine-tuned GPT-2 model significantly outperforms the BERT-BiLSTM model in accuracy and F1 scores, underscoring the advantages of using advanced LLMs for hierarchical text classification.

Applied Computer SystemsVol. 30(1)
Université Djilali de Sidi Bel Abbès (DZ), Université de Saida Dr.Moulay Tahar (DZ), University of Blida (DZ)
Quality Education
Openalex Percentile: Top 6%
Topic Modeling
4.96
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Hierarchical Text Classification: Fine-tuned GPT-2 vs BERT-BiLSTM — Sofiane Boukli Hacene, Abdelghani Bouziane, et al. · Applied Computer Systems (2025) | TGRS Research Map | TGRS