Leveraging LLaMA2 for improved document classification in English

Document classification is an important component of natural language processing, with applications that include sentiment analysis, content recommendation, and information retrieval. This article investigates the potential of Large Language Model Meta AI (LLaMA2), a cutting-edge language model, to enhance document classification in English. Our experiments show that LLaMA2 outperforms traditional classification methods, achieving higher precision and recall values on the WOS-5736 dataset. Additionally, we analyze the interpretability of LLaMA2's classification process to reveal the most pertinent features for categorization and the model's decision-making. These results emphasize the potential of advanced language models to enhance classification outcomes and provide a more profound comprehension of document structures, thereby contributing to the advancement of natural language processing methodologies.

Authors

Institutions

Publication Details

Journal
PeerJ Computer Science
Published
2025-02-28
DOI
https://doi.org/10.7717/peerj-cs.2740
Citations
2
Primary Topic
Text and Document Classification Technologies
Type
article
Field-Weighted Citation Impact
4.96
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Leveraging LLaMA2 for improved document classification in English

Xu Jia
2 citations
PeerJ Computer Science
Text and Document Classification Technologies
4.96
article

Leveraging LLaMA2 for improved document classification in English

Xu Jia
article en
2 citations

Abstract

Document classification is an important component of natural language processing, with applications that include sentiment analysis, content recommendation, and information retrieval. This article investigates the potential of Large Language Model Meta AI (LLaMA2), a cutting-edge language model, to enhance document classification in English. Our experiments show that LLaMA2 outperforms traditional classification methods, achieving higher precision and recall values on the WOS-5736 dataset. Additionally, we analyze the interpretability of LLaMA2's classification process to reveal the most pertinent features for categorization and the model's decision-making. These results emphasize the potential of advanced language models to enhance classification outcomes and provide a more profound comprehension of document structures, thereby contributing to the advancement of natural language processing methodologies.

PeerJ Computer ScienceVol. 11
Taizhou University (CN)
Openalex Percentile: Top 6%
Text and Document Classification Technologies
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.

Leveraging LLaMA2 for improved document classification in English — Xu Jia · PeerJ Computer Science (2025) | TGRS Research Map | TGRS