Evaluating the performance of open-source LLMs in sarcasm detection: a comparative analysis
| bracu.degree.level | Undergraduate | |
| bracu.type.group | Student Works | |
| datacite.rights | Open Access | |
| dc.contributor.advisor | Sadeque, Farig Yousuf | |
| dc.contributor.author | Haque, Samin | |
| dc.contributor.author | Ahmed, Syed Shakib | |
| dc.contributor.author | Ahmed, Kazi Fardin | |
| dc.contributor.author | Nayeen, Julker | |
| dc.contributor.author | Nabi, Khandoker Hamidun | |
| dc.contributor.department | Department of Computer Science and Engineering | |
| dc.date.accessioned | 2026-01-08T06:33:36Z | |
| dc.date.available | 2026-01-08T06:33:36Z | |
| dc.date.copyright | 2025 | |
| dc.date.issued | 2025-10 | |
| dc.description | Cataloged from PDF version of thesis. | |
| dc.description | Includes bibliographical references (pages 79-80). | |
| dc.description | This 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.abstract | Detecting 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.degree | Bachelor of Science in Computer Science and Engineering | |
| dc.description.statementofresponsibility | Samin Haque | |
| dc.description.statementofresponsibility | Syed Shakib Ahmed | |
| dc.description.statementofresponsibility | Kazi Fardin Ahmed | |
| dc.description.statementofresponsibility | Julker Nayeen | |
| dc.description.statementofresponsibility | Khandoker Hamidun Nabi | |
| dc.format.extent | 88 pages | |
| dc.identifier.other | ID 21301628 | |
| dc.identifier.other | ID 24141224 | |
| dc.identifier.other | ID 21301235 | |
| dc.identifier.other | ID 22101120 | |
| dc.identifier.other | ID 24141243 | |
| dc.identifier.uri | http://hdl.handle.net/10361/27414 | |
| dc.language.iso | en | en_US |
| dc.publisher | BRAC University | en_US |
| dc.rights | BRAC 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.subject | Sarcasm detection | en_US |
| dc.subject | Natural language processing | en_US |
| dc.subject | Large language models | en_US |
| dc.subject | Open-source LLMs | en_US |
| dc.subject | Text processing | en_US |
| dc.subject.lcsh | Natural language processing (Computer science). | |
| dc.subject.lcsh | Wit and humor--Identification. | |
| dc.subject.lcsh | Computational intelligence. | |
| dc.subject.lcsh | Language and emotions--Analysis. | |
| dc.subject.lcsh | Data mining. | |
| dc.subject.lcsh | Context-aware computing. | |
| dc.subject.lcsh | Pattern recognition systems. | |
| dc.subject.lcsh | Human-computer interaction. | |
| dc.subject.lcsh | Irony--Computer simulation. | |
| dc.title | Evaluating the performance of open-source LLMs in sarcasm detection: a comparative analysis | en_US |
| dc.type | Thesis | en_US |
Files
Original bundle
1 - 1 of 1
Loading...
- Name:
- 21301628, 24141224, 21301235, 22101120, 24141243_CSE.pdf
- Size:
- 884.74 KB
- Format:
- Adobe Portable Document Format
- Description:
License bundle
1 - 1 of 1
Loading...
- Name:
- license.txt
- Size:
- 1.71 KB
- Format:
- Item-specific license agreed upon to submission
- Description: