Cal Poly
Reducing F1 Score Disparity Across Imbalanced Categorical Feature Values via LLM-Generated Synthetic Data
Abstract
dc:description.abstractClassifiers trained on tabular data often predict worse for subgroups categorized by underrepresented values of a categorical input feature. This thesis presents a method for reducing this subgroup prediction quality disparity using synthetic data generated by prompting a large language model (LLM) with its pretrained domain knowledge alone. This is done without fine-tuning or real training samples. The only empirical statistic supplied in the prompt is the sample count of the subgroup for which synthetic samples are generated. For each dataset, categorical feature values that are both underrepresented and yield suboptimal F1 score are identified as candidates. Synthetic samples are generated for each candidate in varying amounts, and the amount yielding the highest F1 score on a validation set is selected. When that amount is non-zero, a final classifier retrained with the selected amount of synthetic samples is compared against a baseline on a held-out test set. Our approach was evaluated across twelve candidates identified across six publicly available tabular datasets spanning multiple domains. Ten candidates were assigned a non-zero synthetic sample amount and evaluated on the test set. Nine of these ten candidates saw an improvement in subgroup F1 score, with a statistically significant mean improvement at the candidate level (t = 3.971, p = 0.0032, Cohen's d = 1.256). A duplicate leakage check found no evidence that this improvement was inflated by synthetic data overlapping with the test set. These results suggest that LLM-generated synthetic data, produced without access to the real training data, can measurably increase subgroup F1 score in tabular classification, while also highlighting open questions about when and why this improvement does not occur.
Degree
thesis:*- Name thesis:degree_name
- MS in Computer Science
- Discipline thesis:degree_discipline
- Computer Science
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Perlich, Nicholas S
- Contributors dc:contributor
-
- Lubomir Stanchev
- Computer Science
- College of Engineering
Subjects
dc:subject × 4Identifiers
dc:identifier.*- Repository record dc:identifier
- https://digitalcommons.calpoly.edu/theses/3443