A Comprehensive Evaluation of Llama 3 for Text Classification Tasks

preprint OA: closed
Full text JSON View at publisher
Full text 16,754 characters · extracted from preprint-html · click to expand
A Comprehensive Evaluation of Llama 3 for Text Classification Tasks | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Article A Comprehensive Evaluation of Llama 3 for Text Classification Tasks AmirAhmad Amjadi, Shiva TaghipourEivazi, Bahman Arasteh, Huseyin Kusetogullari This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-8354244/v1 This work is licensed under a CC BY 4.0 License Status: Posted Version 1 posted You are reading this latest preprint version Abstract Text classification (TC) is one of core element of natural language processing (NLP), becoming more important as volume of text data increases. It is widely used in applications such as sentiment analysis, and topic categorization. Large language models (LLMs) have recently shown strong performance in these tasks, even without task-specific training. In this study, we evaluate Llama 3 8B model for text classification using zero-shot, and few-shot methods across many datasets. This study evaluates Llama 3 8B results on different NLP downstream tasks. Our findings show that Llama 3 8B can perform competitively across different settings, especially when guided by well-designed prompts. This study highlights how decoder LLMs can be effectively applied to classification tasks and provides acceptable performance. Biological sciences/Computational biology and bioinformatics Physical sciences/Engineering Physical sciences/Mathematics and computing Text Classification PLM LLM Llama BERT GPT Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Posted Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-8354244","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Article","associatedPublications":[],"authors":[{"id":563082587,"identity":"dd74321a-3be1-4ebf-84f2-35e458bfe847","order_by":0,"name":"AmirAhmad Amjadi","email":"","orcid":"","institution":"Islamic Azad University","correspondingAuthor":false,"prefix":"","firstName":"AmirAhmad","middleName":"","lastName":"Amjadi","suffix":""},{"id":563082588,"identity":"516252d0-54c1-4033-88ae-4ab109bde4ad","order_by":1,"name":"Shiva TaghipourEivazi","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA0klEQVRIiWNgGAWjYHACNoYEEMXe2ADhMxNQzwPXwnOQFC1gIJFApKvs2Y9fe/Bwh03i9pmPGz/zMNjJM7DzPsBvC09OuUHimbTEObcTm6V5GJING5jZDQg4LCdNIrHtcOIM6cQGoBbmBAZmNgJ+4X8D1SJ5sPk3D0M9EVok0o9BtEgwtgFtOUyElhtv2CSAfjGewZPYZjnH4LhhGyEt7P3pzyR/7rCRncF+/PGNNxXV8vz8x/BrAdpjwMDYAOMYwKMJrz0PkLSMglEwCkbBKMACAOsEO3Nu+XNtAAAAAElFTkSuQmCC","orcid":"","institution":"Islamic Azad University","correspondingAuthor":true,"prefix":"","firstName":"Shiva","middleName":"","lastName":"TaghipourEivazi","suffix":""},{"id":563082589,"identity":"b801a4f0-1b9b-4003-9cf0-7b560828edee","order_by":2,"name":"Bahman Arasteh","email":"","orcid":"","institution":"Istinye University","correspondingAuthor":false,"prefix":"","firstName":"Bahman","middleName":"","lastName":"Arasteh","suffix":""},{"id":563082590,"identity":"f3312551-599f-4840-ad15-a96f9234e78b","order_by":3,"name":"Huseyin Kusetogullari","email":"","orcid":"","institution":"Blekinge Institute of Technology","correspondingAuthor":false,"prefix":"","firstName":"Huseyin","middleName":"","lastName":"Kusetogullari","suffix":""}],"badges":[],"createdAt":"2025-12-13 17:23:12","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-8354244/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-8354244/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":99309994,"identity":"8d965f63-1dc2-4923-8474-f0c01801b65a","added_by":"auto","created_at":"2025-12-31 16:11:36","extension":"docx","order_by":0,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":597815,"visible":true,"origin":"","legend":"","description":"","filename":"Newversion.docx","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/4b2662bf0e2d25c397d3b58e.docx"},{"id":98899244,"identity":"75283ac9-0f5f-4549-b10a-0bd92800f0e8","added_by":"auto","created_at":"2025-12-23 18:43:34","extension":"json","order_by":1,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":5407,"visible":true,"origin":"","legend":"","description":"","filename":"6d36ae69e378403780237dcac16ecee8.json","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/02ae89c33590e51a33fe08db.json"},{"id":99309947,"identity":"96f4d295-0600-477e-923a-70255a567ec8","added_by":"auto","created_at":"2025-12-31 16:11:27","extension":"xml","order_by":2,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":90356,"visible":true,"origin":"","legend":"","description":"","filename":"6d36ae69e378403780237dcac16ecee81enriched.xml","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/d9d244481eb2ca7d9075504b.xml"},{"id":99310029,"identity":"e225fe65-ceb6-4d09-97a0-9ad99543e88c","added_by":"auto","created_at":"2025-12-31 16:11:43","extension":"png","order_by":3,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":673440,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/6f72ab139b0470ce4442e6e0.png"},{"id":98899240,"identity":"73fc796c-f9fc-4616-8d86-a6d7105eec63","added_by":"auto","created_at":"2025-12-23 18:43:34","extension":"png","order_by":4,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":40121,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage2.png","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/b1b44267681ec58a33267c2a.png"},{"id":98899241,"identity":"c9720139-f226-4c7a-ade1-850fef159e83","added_by":"auto","created_at":"2025-12-23 18:43:34","extension":"wmf","order_by":5,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1348,"visible":true,"origin":"","legend":"","description":"","filename":"image3.wmf","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/379c5ce31c06ddb0a30911db.wmf"},{"id":99309729,"identity":"6d0a2b0c-117a-42d5-9371-159c942e57f2","added_by":"auto","created_at":"2025-12-31 16:11:02","extension":"wmf","order_by":6,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1600,"visible":true,"origin":"","legend":"","description":"","filename":"image4.wmf","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/66d78df2d76af5917fd60a0d.wmf"},{"id":99309829,"identity":"b92c42b6-0d84-48c7-9241-07295c9de4b9","added_by":"auto","created_at":"2025-12-31 16:11:15","extension":"wmf","order_by":7,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1218,"visible":true,"origin":"","legend":"","description":"","filename":"image5.wmf","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/54442e90297692ae4866a43e.wmf"},{"id":98899249,"identity":"8adda77c-bbbc-4878-a964-de8c6ed1827d","added_by":"auto","created_at":"2025-12-23 18:43:34","extension":"wmf","order_by":8,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1194,"visible":true,"origin":"","legend":"","description":"","filename":"image6.wmf","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/958d78a424eb4d3181d15d13.wmf"},{"id":98899255,"identity":"0ba8747a-d821-4b1c-a7b2-90fabb1c140d","added_by":"auto","created_at":"2025-12-23 18:43:34","extension":"png","order_by":9,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":426295,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/581a2e788cbbfefe838e94b3.png"},{"id":98899251,"identity":"08c63c51-fac9-489d-81b0-43324d472997","added_by":"auto","created_at":"2025-12-23 18:43:34","extension":"png","order_by":10,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":12176,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage2.png","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/55f0bf470982a3d81987288d.png"},{"id":99309556,"identity":"16c50cee-c417-44f1-8419-9679d2c3b84b","added_by":"auto","created_at":"2025-12-31 16:10:46","extension":"png","order_by":11,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1156,"visible":true,"origin":"","legend":"","description":"","filename":"Onlineimage3.png","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/ea513c457184d66425043e66.png"},{"id":98899252,"identity":"c917e29b-c261-44b7-91d4-3cabbfb2759c","added_by":"auto","created_at":"2025-12-23 18:43:34","extension":"png","order_by":12,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1696,"visible":true,"origin":"","legend":"","description":"","filename":"Onlineimage4.png","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/f27e128999ad5cc9f99c878a.png"},{"id":98899250,"identity":"34c9523c-bbc9-43cc-a137-c26e6e80c6af","added_by":"auto","created_at":"2025-12-23 18:43:34","extension":"png","order_by":13,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":930,"visible":true,"origin":"","legend":"","description":"","filename":"Onlineimage5.png","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/d2baa7fa7db54f88b31f44b2.png"},{"id":98899254,"identity":"c5592c01-dca4-40c6-b40d-1b3eec963cbc","added_by":"auto","created_at":"2025-12-23 18:43:34","extension":"png","order_by":14,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":978,"visible":true,"origin":"","legend":"","description":"","filename":"Onlineimage6.png","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/cc0d08c7381df0e18225204f.png"},{"id":99309934,"identity":"7be25aeb-c956-4223-9e1f-ddab06327ab5","added_by":"auto","created_at":"2025-12-31 16:11:25","extension":"xml","order_by":15,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":89186,"visible":true,"origin":"","legend":"","description":"","filename":"6d36ae69e378403780237dcac16ecee81structuring.xml","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/152cc6bdf8d31961fec717a7.xml"},{"id":99309917,"identity":"f55fd410-f3ae-4c51-ae12-c34109ec08f3","added_by":"auto","created_at":"2025-12-31 16:11:23","extension":"html","order_by":16,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":101893,"visible":true,"origin":"","legend":"","description":"","filename":"earlyproof.html","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1/5de009aee326c24b735193ca.html"},{"id":103585893,"identity":"bf4052bb-7f94-4f4a-9d58-6788c3c1e9f9","added_by":"auto","created_at":"2026-02-27 11:11:20","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":415043,"visible":true,"origin":"","legend":"","description":"","filename":"Newversion.pdf","url":"https://assets-eu.researchsquare.com/files/rs-8354244/v1_covered_5d9ab64f-6fbb-4d7c-a676-685d92e951d7.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"A Comprehensive Evaluation of Llama 3 for Text Classification Tasks","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":true,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"Text Classification, PLM, LLM, Llama, BERT, GPT","lastPublishedDoi":"10.21203/rs.3.rs-8354244/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-8354244/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eText classification (TC) is one of core element of natural language processing (NLP), becoming more important as volume of text data increases. It is widely used in applications such as sentiment analysis, and topic categorization. Large language models (LLMs) have recently shown strong performance in these tasks, even without task-specific training. In this study, we evaluate Llama 3 8B model for text classification using zero-shot, and few-shot methods across many datasets. This study evaluates Llama 3 8B results on different NLP downstream tasks. Our findings show that Llama 3 8B can perform competitively across different settings, especially when guided by well-designed prompts. This study highlights how decoder LLMs can be effectively applied to classification tasks and provides acceptable performance.\u003c/p\u003e","manuscriptTitle":"A Comprehensive Evaluation of Llama 3 for Text Classification Tasks","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-12-23 18:43:29","doi":"10.21203/rs.3.rs-8354244/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"ebd7efa9-e79a-4ae8-978c-68db4b0683a7","owner":[],"postedDate":"December 23rd, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[{"id":59966139,"name":"Biological sciences/Computational biology and bioinformatics"},{"id":59966140,"name":"Physical sciences/Engineering"},{"id":59966141,"name":"Physical sciences/Mathematics and computing"}],"tags":[],"updatedAt":"2026-02-27T11:10:19+00:00","versionOfRecord":[],"versionCreatedAt":"2025-12-23 18:43:29","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-8354244","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-8354244","identity":"rs-8354244","version":["v1"]},"buildId":"XKTyCvWXoU3ODBz1xrDgd","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00