Welcome to the upgraded BRAC University Institutional Repository. We are currently organizing collections after a recent system upgrade. Homepage category counters may temporarily show lower numbers while syncing, but over 27,000 repository items remain safe and accessible. Please use the search bar to find theses, scholarly outputs, and institutional documents.

Evaluating the performance of open-source LLMs in sarcasm detection: a comparative analysis

bracu.degree.levelUndergraduate
bracu.type.groupStudent Works
datacite.rightsOpen Access
dc.contributor.advisorSadeque, Farig Yousuf
dc.contributor.authorHaque, Samin
dc.contributor.authorAhmed, Syed Shakib
dc.contributor.authorAhmed, Kazi Fardin
dc.contributor.authorNayeen, Julker
dc.contributor.authorNabi, Khandoker Hamidun
dc.contributor.departmentDepartment of Computer Science and Engineering
dc.date.accessioned2026-01-08T06:33:36Z
dc.date.available2026-01-08T06:33:36Z
dc.date.copyright2025
dc.date.issued2025-10
dc.descriptionCataloged from PDF version of thesis.
dc.descriptionIncludes bibliographical references (pages 79-80).
dc.descriptionThis thesis is submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science and Engineering, 2025.en_US
dc.description.abstractDetecting sarcasm is a nuanced and challenging task in natural language processing (NLP), as it requires understanding subtle contextual cues, symbolic gestures, and timeline of dataset as sarcasm constantly changes through time. This study tends to evaluate the performance of open-source large language models in sarcasm detection, exploring each model’s effectiveness in identifying sarcasm across varied contexts. In doing so, it tries to apply various prompt engineering techniques towards establishing an optimized environment; where these open source models will detect sarcasm based on the hyper parameters like context, and the actual comment corresponding to the context. Among the evaluated models, Llama 3.1 8B achieved the highest overall accuracy (69.07%) while DeepSeek R1 14B demonstrated the most balanced performance (accuracy = 66%, precision = 64.29%, recall = 72%). On sarcasm-device level evaluation, the models showed varying strengths: Llama 3.1 8B performed best on Contextual Incongruity (63.15%), Mistral 7B on both Contradiction and Contextual Incongruity (50%), Gemma 3 12B on Contradiction (80%), Qwen 3 8B on Contradiction (50%), and DeepSeek R1 14B on Hyperbole (50%). The findings highlight that while current open-source LLMs exhibit promising capabilities in detecting sarcastic intent, their performance varies by sarcasm device, revealing architectural biases and limitations. This study thus provides benchmark insights and interpretive evidence for advancing future NLP research in sarcasm modeling, architectural evaluation, and pragmatic language understanding.en_US
dc.description.degreeBachelor of Science in Computer Science and Engineering
dc.description.statementofresponsibilitySamin Haque
dc.description.statementofresponsibilitySyed Shakib Ahmed
dc.description.statementofresponsibilityKazi Fardin Ahmed
dc.description.statementofresponsibilityJulker Nayeen
dc.description.statementofresponsibilityKhandoker Hamidun Nabi
dc.format.extent88 pages
dc.identifier.otherID 21301628
dc.identifier.otherID 24141224
dc.identifier.otherID 21301235
dc.identifier.otherID 22101120
dc.identifier.otherID 24141243
dc.identifier.urihttp://hdl.handle.net/10361/27414
dc.language.isoenen_US
dc.publisherBRAC Universityen_US
dc.rightsBRAC University theses are protected by copyright. They may be viewed from this source for any purpose, but reproduction or distribution in any format is prohibited without written permission.
dc.subjectSarcasm detectionen_US
dc.subjectNatural language processingen_US
dc.subjectLarge language modelsen_US
dc.subjectOpen-source LLMsen_US
dc.subjectText processingen_US
dc.subject.lcshNatural language processing (Computer science).
dc.subject.lcshWit and humor--Identification.
dc.subject.lcshComputational intelligence.
dc.subject.lcshLanguage and emotions--Analysis.
dc.subject.lcshData mining.
dc.subject.lcshContext-aware computing.
dc.subject.lcshPattern recognition systems.
dc.subject.lcshHuman-computer interaction.
dc.subject.lcshIrony--Computer simulation.
dc.titleEvaluating the performance of open-source LLMs in sarcasm detection: a comparative analysisen_US
dc.typeThesisen_US

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
21301628, 24141224, 21301235, 22101120, 24141243_CSE.pdf
Size:
884.74 KB
Format:
Adobe Portable Document Format
Description:

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: