Mitigation of hallucination and interpretations of self attention of Mistral 7B AI to analyze and visualize context understanding ability of large language models

dc.contributor.advisorSadeque, Farig Yousuf
dc.contributor.authorTaki, S.M. Abrar Mustakim
dc.contributor.authorKar, Showmick
dc.contributor.authorNiloy, Soumik Deb
dc.contributor.authorRakib, Mazharul Islam
dc.contributor.authorBiswas, Abdullah Al Nahid
dc.date.accessioned2024-05-07T08:58:35Z
dc.date.available2024-05-07T08:58:35Z
dc.date.issued2024-01
dc.descriptionCataloged from PDF version of thesis.
dc.descriptionIncludes bibliographical references (pages 78-83).
dc.descriptionThis thesis is submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science, 2024.
dc.description.abstractIn recent years, Large Language Models(LLM) have shown excellent performance in a variety of Natural Language Processing tasks. However, they often produce hallucinated content. Contents that are seemingly correct and make sense linguistically, but are factually incorrect. Since researchers have started working on LLM hallucinations very recently, the problem of mitigating hallucination and understanding which factors play a role in correcting hallucinated content is relatively new. In this paper, we modified a multi-step pipeline called ’Chain of Verification’ that reduces hallucination in Large Language Models by itself without having to feed in external resources. This method is particularly useful for reasoning and reading comprehension types of language tasks. In addition, we extracted the decoder layers of an large language model Mistral 7B to interpret and analyze how the correction was done under the hood. A custom attention weight pruning method was used to prune the defective layers and after pruning, the LLM model passed 3/4 test cases to give proper and correct output results.
dc.identifier.otherID: 20301125
dc.identifier.otherID: 20301177
dc.identifier.otherID: 20301207
dc.identifier.otherID: 20101408
dc.identifier.otherID: 20301024
dc.identifier.otherhttps://dspace.bracu.ac.bd/server/api/core/items/cd903568-943d-4c89-971a-0e25f0a3a2f6
dc.identifier.urihttp://hdl.handle.net/10361/22762
dc.language.isoen
dc.publisherBRAC University
dc.sourceBRAC University Institutional Repository
dc.subjectMistral 7B AI
dc.subjectLarge language model
dc.subjectSelf attention
dc.subjectBlack-BoxNLP
dc.titleMitigation of hallucination and interpretations of self attention of Mistral 7B AI to analyze and visualize context understanding ability of large language models
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Thumbnail Image
Name:
20301125, 20301177, 20301207, 20101408, 20301024_CSE.pdf
Size:
8.53 MB
Format:
Adobe Portable Document Format