Back to search

State University of New York at Buffalo

Evaluating the Impact of Model Size on Toxicity and Stereotyping in Generative LLM

Abstract

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.

Degree

thesis:*
Grantor dc:publisher
State University of New York at Buffalo
Year dc:date.issued
2023

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Chetnani, Yash Prakash; 0000-0002-2992-1159
Contributors dc:contributor
  • Ratha, Nalini
  • Computer Science and Engineering

Subjects

dc:subject × 2

Rights

dc:rights
Statement 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.
Language dc:language
eng

Identifiers

dc:identifier.*
Handle dc:identifier
http://hdl.handle.net/10477/89313

Chain of custody

source
Harvested from
Buffalo
Base URL
ubir.buffalo.edu/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Chetnani, Yash Prakash; 0000-0002-2992-1159. Evaluating the Impact of Model Size on Toxicity and Stereotyping in Generative LLM. State University of New York at Buffalo, 2023. http://hdl.handle.net/10477/89313