A bilingual study of socio-cultural bias in large language models through BanglaBBQ and a post processing mitigation pipeline

bracu.degree.levelUndergraduate
bracu.type.groupStudent Works
datacite.rightsOpen Access
dc.contributor.advisorHossain, Muhammad Iqbal
dc.contributor.advisorAnwar, Md. Tawhid
dc.contributor.advisorTanvir, Sifat
dc.contributor.authorTasnia, Taeeba
dc.contributor.authorKhan, Ashika Habib
dc.contributor.authorGomes, Sumit Anthony
dc.contributor.authorTanha, Tahseen
dc.contributor.authorSaha, Provat
dc.contributor.departmentDepartment of Computer Science and Engineering
dc.date.accessioned2026-08-11T05:21:19Z
dc.date.available2026-08-11T05:21:19Z
dc.date.copyright2026
dc.date.issued2026-04
dc.descriptionThis thesis is submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science and Engineering, 2026.
dc.descriptionCataloged from PDF version of thesis.
dc.descriptionIncludes bibliographical references (pages 69-72).
dc.description.abstractLarge language models have achieved impressive progress in natural language understanding, but their application in practice still brings to light a vexed and understudied issue: social bias. The majority of existing bias benchmarks were constructed with largely Western, English-centric contexts, and low-resource languages and culturally diverse societies have a big gap. This gap is filled in this paper by two related contributions. We present our first bias assessment benchmark, first, the BanglaBBQ, the first bias assessment system tailored to the Bangladeshi sociocultural environment, with nine types of bias, four of them adapted to the original BBQ framework, and five newly created, such as Regional Affiliation, Educational Background, Marital Status, Mental Health, and Politics, based on recorded sociocultural realities of Bangladesh. The dataset is bilingual with structurally aligned entries in English and Bengali allowing comparison across languages. Second, we introduce SafeLLM, a threestep inference-time bias mitigation pipeline that can be trained without retraining models or having access to weights. SafeLLM uses a sensitivity layer restructuring prompts and then inferring, a bias evaluator indicating stereotype-based predictions on the sample-level and a counterfactual grounding phase that fixes identity-sensitive mistakes by exchanging the features under protection and sampling the output. Four multilingual LLMs (LLaMA- 3.1-8B, LLaMA-3.3-70B, LLaMA-4-Scout-17B, and Gemini 2.0 Flash-Lite) are tested on both languages and all categories of bias. We find a pattern of performance decreases on culturally specific templates, significant cross-lingual accuracy differences, and a model-scale dependence in the effectiveness of inference-time interventions to decrease bias. Collectively, both BanglaBBQ and SafeLLM provide a basis to culture-specific bias measurement and mitigation in multilingual AI systems.
dc.description.degreeBachelor of Science in Computer Science and Engineering
dc.description.statementofresponsibilityTaeeba Tasnia
dc.description.statementofresponsibilityAshika Habib Khan
dc.description.statementofresponsibilitySumit Anthony Gomes
dc.description.statementofresponsibilityTahseen Tanha
dc.description.statementofresponsibilityProvat Saha
dc.format.extent83 pages
dc.identifier.otherID 21201288
dc.identifier.otherID 22301371
dc.identifier.otherID 21241059
dc.identifier.otherID 22101409
dc.identifier.otherID 22101412
dc.identifier.urihttps://hdl.handle.net/10361/28912
dc.language.isoen_US
dc.publisherBRAC University
dc.rightsAttribution-NonCommercial-NoDerivatives 4.0 Internationalen
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.rights.urihttp://creativecommons.org/licenses/by-nc-nd/4.0/
dc.subjectLarge language models
dc.subjectMultilingual AI systems
dc.subjectMultilingual LLMs
dc.subjectBanglaBBQ
dc.subjectSafeLLM
dc.subjectCounterfactual grounding
dc.subjectMultilingual models
dc.subjectNatural language processing
dc.subjectSociocultural biases
dc.subjectBengali language
dc.subjectBilingualism
dc.subject.lcshNatural language processing (Computer science).
dc.subject.lcshComputational linguistics.
dc.subject.lcshMultilingual computing.
dc.subject.lcshArtificial intelligence.
dc.subject.lcshMachine learning.
dc.subject.lcshBengali language--Data processing.
dc.titleA bilingual study of socio-cultural bias in large language models through BanglaBBQ and a post processing mitigation pipeline
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
21201288, 22301371, 21241059, 22101409, 22101412_CSE.pdf
Size:
5 MB
Format:
Adobe Portable Document Format

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: