{"id":{"repo_id":"buffalo","oai_identifier":"oai:ubir.buffalo.edu:10477/89313"},"canonical_url":"https://search.ndltd.org/etd/buffalo/oai:ubir.buffalo.edu:10477/89313","repository":{"repo_id":"buffalo","name":"Buffalo","base_url":"https://ubir.buffalo.edu/oai/request"},"display":{"title":"Evaluating the Impact of Model Size on Toxicity and Stereotyping in Generative LLM","abstract":"Autoregressive Large Language Models (LLM) have achieved groundbreaking success in many natural language processing (NLP) tasks. In the quest for better performance, a persistent trend in the development of these models has been the increase in their size (nodes, layers, and weights), from a few hundred million parameters to a few hundred billion. While these models have achieved human-level performances, and, in some cases, outperformed them, they are also plagued with the same issues as humans, including demonstrating stereotyping behavior and other factors such as racial bias and the use of language with toxic content. In this paper, we explore the relationship between LLM parameter size and the stereotyping behavior and toxic language exhibited in the LLM response. To elicit these measurable outcomes for stereotype and bias in LLMs, we carefully designed experiments involving a handcrafted set of prompts to evoke a response to measure stereotypes along multiple demographics such as religion and ethnicity. For toxicity analysis, we have utilized the RealToxicityPrompts dataset. We analyze the performance of several open-source LLMs with parameter sizes ranging from 125 million to 30 billion, on these prompts. Our results show that the smallest model with 125 million parameters performs better than the larger models across all metrics. There is a considerable increase in toxicity and stereotyping in model outputs from 125 million parameters to 1.3 billion parameters. While there is a trend of increasing toxicity and stereotyping from 1.3 billion parameters to 30 billion parameters for multiple metrics, the difference is not statistically significant.","abstract_html":"Autoregressive Large Language Models (LLM) have achieved groundbreaking success in many natural language processing (NLP) tasks. In the quest for better performance, a persistent trend in the development of these models has been the increase in their size (nodes, layers, and weights), from a few hundred million parameters to a few hundred billion. While these models have achieved human-level performances, and, in some cases, outperformed them, they are also plagued with the same issues as humans, including demonstrating stereotyping behavior and other factors such as racial bias and the use of language with toxic content. In this paper, we explore the relationship between LLM parameter size and the stereotyping behavior and toxic language exhibited in the LLM response. To elicit these measurable outcomes for stereotype and bias in LLMs, we carefully designed experiments involving a handcrafted set of prompts to evoke a response to measure stereotypes along multiple demographics such as religion and ethnicity. For toxicity analysis, we have utilized the RealToxicityPrompts dataset. We analyze the performance of several open-source LLMs with parameter sizes ranging from 125 million to 30 billion, on these prompts. Our results show that the smallest model with 125 million parameters performs better than the larger models across all metrics. There is a considerable increase in toxicity and stereotyping in model outputs from 125 million parameters to 1.3 billion parameters. While there is a trend of increasing toxicity and stereotyping from 1.3 billion parameters to 30 billion parameters for multiple metrics, the difference is not statistically significant.","abstract_has_math":false,"creators":["Chetnani, Yash Prakash; 0000-0002-2992-1159"],"institution":"State University of New York at Buffalo","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":["Ratha, Nalini","Computer Science and Engineering"],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2023,"date_issued":"2023","date_published":"2023","updated_at":"2026-11-19T07:10:42Z","subjects":["computer science","artificial intelligence"],"languages":["eng"],"rights":["Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10477/89313","outbound_label":"Handle","outbound_source":"dc:identifier","record_url":"https://hdl.handle.net/10477/89313","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Abuffalo%3Aoai%3Aubir.buffalo.edu%3A10477%2F89313","prefix":"oai_dc"},"source_record":{"url":"https://ubir.buffalo.edu/oai/request?verb=GetRecord&metadataPrefix=qdc&identifier=oai%3Aubir.buffalo.edu%3A10477%2F89313","prefix":"qdc"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor","label":"Contributor","values":["Ratha, Nalini","Computer Science and Engineering"]},{"key":"dc:creator","label":"Author","values":["Chetnani, Yash Prakash; 0000-0002-2992-1159"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2025-11-17T17:35:27Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-11-17T17:35:27Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2025-11-17T17:35:27Z"]},{"key":"dc:date.issued","label":"Date","values":["2023"]},{"key":"dc:publisher","label":"Institution","values":["State University of New York at Buffalo"]},{"key":"dc:type","label":"Dc Type","values":["Text","Thesis"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["computer science","artificial intelligence"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["eng"]},{"key":"dc:rights","label":"Dc Rights","values":["Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["http://hdl.handle.net/10477/89313"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Autoregressive Large Language Models (LLM) have achieved groundbreaking success in many natural language processing (NLP) tasks. In the quest for better performance, a persistent trend in the development of these models has been the increase in their size (nodes, layers, and weights), from a few hundred million parameters to a few hundred billion. While these models have achieved human-level performances, and, in some cases, outperformed them, they are also plagued with the same issues as humans, including demonstrating stereotyping behavior and other factors such as racial bias and the use of language with toxic content. In this paper, we explore the relationship between LLM parameter size and the stereotyping behavior and toxic language exhibited in the LLM response. To elicit these measurable outcomes for stereotype and bias in LLMs, we carefully designed experiments involving a handcrafted set of prompts to evoke a response to measure stereotypes along multiple demographics such as religion and ethnicity. For toxicity analysis, we have utilized the RealToxicityPrompts dataset. We analyze the performance of several open-source LLMs with parameter sizes ranging from 125 million to 30 billion, on these prompts. Our results show that the smallest model with 125 million parameters performs better than the larger models across all metrics. There is a considerable increase in toxicity and stereotyping in model outputs from 125 million parameters to 1.3 billion parameters. While there is a trend of increasing toxicity and stereotyping from 1.3 billion parameters to 30 billion parameters for multiple metrics, the difference is not statistically significant.","**To request an accessible version of the file(s) associated with this item, contact library@buffalo.edu. Please include the item's persistent URL [http://hdl.handle.net/. . .] in your request.**"]},{"key":"dc:title","label":"Title","values":["Evaluating the Impact of Model Size on Toxicity and Stereotyping in Generative LLM"]}]}],"canonical_facts":{"dc:contributor":["Ratha, Nalini","Computer Science and Engineering"],"dc:creator":["Chetnani, Yash Prakash; 0000-0002-2992-1159"],"dc:date":["2025-11-17T17:35:27Z"],"dc:date.available":["2025-11-17T17:35:27Z"],"dc:date.created":["2025-11-17T17:35:27Z"],"dc:date.issued":["2023"],"dc:description.abstract":["Autoregressive Large Language Models (LLM) have achieved groundbreaking success in many natural language processing (NLP) tasks. In the quest for better performance, a persistent trend in the development of these models has been the increase in their size (nodes, layers, and weights), from a few hundred million parameters to a few hundred billion. While these models have achieved human-level performances, and, in some cases, outperformed them, they are also plagued with the same issues as humans, including demonstrating stereotyping behavior and other factors such as racial bias and the use of language with toxic content. In this paper, we explore the relationship between LLM parameter size and the stereotyping behavior and toxic language exhibited in the LLM response. To elicit these measurable outcomes for stereotype and bias in LLMs, we carefully designed experiments involving a handcrafted set of prompts to evoke a response to measure stereotypes along multiple demographics such as religion and ethnicity. For toxicity analysis, we have utilized the RealToxicityPrompts dataset. We analyze the performance of several open-source LLMs with parameter sizes ranging from 125 million to 30 billion, on these prompts. Our results show that the smallest model with 125 million parameters performs better than the larger models across all metrics. There is a considerable increase in toxicity and stereotyping in model outputs from 125 million parameters to 1.3 billion parameters. While there is a trend of increasing toxicity and stereotyping from 1.3 billion parameters to 30 billion parameters for multiple metrics, the difference is not statistically significant.","**To request an accessible version of the file(s) associated with this item, contact library@buffalo.edu. Please include the item's persistent URL [http://hdl.handle.net/. . .] in your request.**"],"dc:identifier":["http://hdl.handle.net/10477/89313"],"dc:language":["eng"],"dc:publisher":["State University of New York at Buffalo"],"dc:rights":["Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions."],"dc:subject":["computer science","artificial intelligence"],"dc:title":["Evaluating the Impact of Model Size on Toxicity and Stereotyping in Generative LLM"],"dc:type":["Text","Thesis"]},"updated_at":"2026-11-19T07:10:42Z"}