Transformer Based News Text Classification

With the exponential growth of online news, Transformer models based on self-attention mechanisms (e.g., BERT, GPT) have demonstrated theoretical advantages over traditional methods (e.g., SVM, Nave Bayes, and CNN) in news text classification by capturing global semantic relationships. The encoder-only Transformer architecture developed in this study, integrating multi-head self-attention, dynamic positional encoding, and global average pooling, achieved an initial accuracy of 69.52% on the 20 Newsgroups dataset (significantly higher than CNN's 57.59%), showcasing its superior global feature extraction, adaptive polysemy handling, and noise resilience. However, the model suffers from prolonged training times (1,252 seconds per epoch compared to CNN's 149 seconds) and late-stage overfitting. Despite computational efficiency challenges, the research proposes optimizing performance through sparse attention mechanisms, domain-specific pretraining, and hybrid Transformer-CNN architectures to enhance classification capabilities in long-text and multilingual scenarios. These findings validate Transformer's potential for complex NLP tasks while emphasizing the necessity of architectural refinements to balance performance and scalability, providing critical directions for advancing news classification systems.

Authors

Institutions

Publication Details

Journal
Applied and Computational Engineering
Published
2025-05-30
DOI
https://doi.org/10.54254/2755-2721/2025.tj23582
Citations
1
Primary Topic
Text and Document Classification Technologies
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Transformer Based News Text Classification

Junshuai Li
1 citations
Applied and Computational Engineering
Text and Document Classification Technologies
2.48
article

Transformer Based News Text Classification

Junshuai Li
article en
1 citations

Abstract

With the exponential growth of online news, Transformer models based on self-attention mechanisms (e.g., BERT, GPT) have demonstrated theoretical advantages over traditional methods (e.g., SVM, Nave Bayes, and CNN) in news text classification by capturing global semantic relationships. The encoder-only Transformer architecture developed in this study, integrating multi-head self-attention, dynamic positional encoding, and global average pooling, achieved an initial accuracy of 69.52% on the 20 Newsgroups dataset (significantly higher than CNN's 57.59%), showcasing its superior global feature extraction, adaptive polysemy handling, and noise resilience. However, the model suffers from prolonged training times (1,252 seconds per epoch compared to CNN's 149 seconds) and late-stage overfitting. Despite computational efficiency challenges, the research proposes optimizing performance through sparse attention mechanisms, domain-specific pretraining, and hybrid Transformer-CNN architectures to enhance classification capabilities in long-text and multilingual scenarios. These findings validate Transformer's potential for complex NLP tasks while emphasizing the necessity of architectural refinements to balance performance and scalability, providing critical directions for advancing news classification systems.

Applied and Computational EngineeringVol. 160(1)
University of International Business and Economics (CN)
Openalex Percentile: Top 10%
Text and Document Classification Technologies
2.48
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.

Transformer Based News Text Classification — Junshuai Li · Applied and Computational Engineering (2025) | TGRS Research Map | TGRS