A bilingual study of socio-cultural bias in large language models through BanglaBBQ and a post processing mitigation pipeline
| bracu.degree.level | Undergraduate | |
| bracu.type.group | Student Works | |
| datacite.rights | Open Access | |
| dc.contributor.advisor | Hossain, Muhammad Iqbal | |
| dc.contributor.advisor | Anwar, Md. Tawhid | |
| dc.contributor.advisor | Tanvir, Sifat | |
| dc.contributor.author | Tasnia, Taeeba | |
| dc.contributor.author | Khan, Ashika Habib | |
| dc.contributor.author | Gomes, Sumit Anthony | |
| dc.contributor.author | Tanha, Tahseen | |
| dc.contributor.author | Saha, Provat | |
| dc.contributor.department | Department of Computer Science and Engineering | |
| dc.date.accessioned | 2026-08-11T05:21:19Z | |
| dc.date.available | 2026-08-11T05:21:19Z | |
| dc.date.copyright | 2026 | |
| dc.date.issued | 2026-04 | |
| dc.description | This thesis is submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science and Engineering, 2026. | |
| dc.description | Cataloged from PDF version of thesis. | |
| dc.description | Includes bibliographical references (pages 69-72). | |
| dc.description.abstract | Large 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.degree | Bachelor of Science in Computer Science and Engineering | |
| dc.description.statementofresponsibility | Taeeba Tasnia | |
| dc.description.statementofresponsibility | Ashika Habib Khan | |
| dc.description.statementofresponsibility | Sumit Anthony Gomes | |
| dc.description.statementofresponsibility | Tahseen Tanha | |
| dc.description.statementofresponsibility | Provat Saha | |
| dc.format.extent | 83 pages | |
| dc.identifier.other | ID 21201288 | |
| dc.identifier.other | ID 22301371 | |
| dc.identifier.other | ID 21241059 | |
| dc.identifier.other | ID 22101409 | |
| dc.identifier.other | ID 22101412 | |
| dc.identifier.uri | https://hdl.handle.net/10361/28912 | |
| dc.language.iso | en_US | |
| dc.publisher | BRAC University | |
| dc.rights | Attribution-NonCommercial-NoDerivatives 4.0 International | en |
| 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.rights.uri | http://creativecommons.org/licenses/by-nc-nd/4.0/ | |
| dc.subject | Large language models | |
| dc.subject | Multilingual AI systems | |
| dc.subject | Multilingual LLMs | |
| dc.subject | BanglaBBQ | |
| dc.subject | SafeLLM | |
| dc.subject | Counterfactual grounding | |
| dc.subject | Multilingual models | |
| dc.subject | Natural language processing | |
| dc.subject | Sociocultural biases | |
| dc.subject | Bengali language | |
| dc.subject | Bilingualism | |
| dc.subject.lcsh | Natural language processing (Computer science). | |
| dc.subject.lcsh | Computational linguistics. | |
| dc.subject.lcsh | Multilingual computing. | |
| dc.subject.lcsh | Artificial intelligence. | |
| dc.subject.lcsh | Machine learning. | |
| dc.subject.lcsh | Bengali language--Data processing. | |
| dc.title | A bilingual study of socio-cultural bias in large language models through BanglaBBQ and a post processing mitigation pipeline | |
| dc.type | Thesis |