A study on text classification in the age of large language models

dc.contributor.authorTrust, Paulen
dc.contributor.authorMinghim, Rosaneen
dc.contributor.funderScience Foundation Irelanden
dc.date.accessioned2025-11-26T12:55:00Z
dc.date.available2025-11-26T12:55:00Z
dc.date.issued2024-11-21en
dc.description.abstractLarge language models (LLMs) have recently made significant advances, excelling in tasks like question answering, summarization, and machine translation. However, their enormous size and hardware requirements make them less accessible to many in the machine learning community. To address this, techniques such as quantization, prefix tuning, weak supervision, low-rank adaptation, and prompting have been developed to customize these models for specific applications. While these methods have mainly improved text generation, their implications for the text classification task are not thoroughly studied. Our research intends to bridge this gap by investigating how variations like model size, pre-training objectives, quantization, low-rank adaptation, prompting, and various hyperparameters influence text classification tasks. Our overall conclusions show the following: 1—even with synthetic labels, fine-tuning works better than prompting techniques, and increasing model size does not always improve classification performance; 2—discriminatively trained models generally perform better than generatively pre-trained models; and 3—fine-tuning models at 16-bit precision works much better than using 8-bit or 4-bit models, but the performance drop from 8-bit to 4-bit is smaller than from 16-bit to 8-bit. In another scale of our study, we conducted experiments with different settings for low-rank adaptation (LoRA) and quantization, finding that increasing LoRA dropout negatively affects classification performance. We did not find a clear link between the LoRA attention dimension (rank) and performance, observing only small differences between standard LoRA and its variants like rank-stabilized LoRA and weight-decomposed LoRA. Additional observations to support model setup for classification tasks are presented in our analyses.en
dc.description.sponsorshipScience Foundation Ireland (Grant No. SFI 18/CRT/6222)en
dc.description.statusPeer revieweden
dc.description.versionPublished Versionen
dc.format.mimetypeapplication/pdfen
dc.identifier.citationTrust, P. and Minghim, R. (2024) ‘A study on text classification in the age of large language models’, Machine Learning and Knowledge Extraction, 6(4), pp. 2688–2721. https://doi.org/10.3390/make6040129en
dc.identifier.doi10.3390/make6040129en
dc.identifier.eissn2504-4990en
dc.identifier.endpage2721en
dc.identifier.issued4en
dc.identifier.journaltitleMachine Learning and Knowledge Extractionen
dc.identifier.startpage2688en
dc.identifier.urihttps://hdl.handle.net/10468/18281
dc.identifier.volume6en
dc.language.isoenen
dc.publisherMDPIen
dc.rights© 2024, the Authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/)en
dc.rights.urihttp://creativecommons.org/licenses/by/4.0/en
dc.subjectText classificationen
dc.subjectLanguage modelsen
dc.subjectFine-tuningen
dc.subjectPromptingen
dc.titleA study on text classification in the age of large language modelsen
dc.typeArticle (peer-reviewed)en
Files
Original bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
make-06-00129-v2.pdf
Size:
1.62 MB
Format:
Adobe Portable Document Format
Description:
Published Version
License bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
2.71 KB
Format:
Item-specific license agreed upon to submission
Description: