TLDR: A new method called LLM-Guided Synthetic Augmentation (LGSA) uses large language models to create diverse, label-preserving counterfactual examples for underrepresented groups in AI training data. This approach effectively mitigates bias, particularly gender bias, in AI systems without sacrificing overall accuracy. Experiments showed LGSA significantly reduced the bias gap and even improved accuracy compared to baseline models and simple word-swap techniques, demonstrating its potential for building fairer and more reliable AI.
Artificial Intelligence (AI) systems are increasingly integrated into our daily lives, influencing everything from online content to critical decisions in hiring and finance. However, these systems often inherit and amplify human biases present in their training data, leading to unfair outcomes for certain demographic groups. This issue is particularly pronounced in systems that process natural language, where underrepresentation can result in uneven performance across different populations.
Traditional methods for addressing AI bias, such as pre-processing, in-processing, and post-processing, have their limitations. They frequently rely on specific labels for protected attributes, often create a trade-off between accuracy and fairness, and can struggle to adapt across diverse datasets. To overcome these challenges, researchers have introduced a novel approach: LLM-Guided Synthetic Augmentation (LGSA).
LGSA is a process that harnesses the power of large language models (LLMs) to generate synthetic, counterfactual examples for groups that are typically underrepresented in datasets. Crucially, this method ensures that the core meaning and original labels of the data remain intact. The fundamental idea behind LGSA is to treat bias mitigation as a generation problem. When given a text example containing a protected attribute, an LLM is prompted to rewrite it from the perspective of a different demographic group, all while preserving its original meaning and task label. For instance, a sentence like “The technician told the customer that he could pay with cash” could be rewritten as “The technician told the customer that she could pay with cash.” By creating multiple such paraphrases for disadvantaged groups, LGSA enriches training data with semantically similar, stereotype-free variants, enhancing representation without compromising privacy.
The LGSA pipeline is a carefully structured process designed for scalability and reproducibility. It begins with preparing input data into a canonical format, where each example includes text, an attribute, and a label. This is followed by a constrained generation phase, where a pretrained LLM (like GPT-4) is given specific, structured prompts. These prompts explicitly instruct the model to produce label-preserving, attribute-conditioned paraphrases. The instructions guide the LLM to only change attribute cues (like names or pronouns), avoid stereotypes, maintain the original meaning and label, and return a single, natural sentence.
To ensure the quality and safety of the generated data, LGSA employs a multi-stage verification process. This includes automated checks for formatting, attribute presence, label preservation, and safety screening for toxicity and stereotypes. Additionally, a randomized sample of the accepted paraphrases undergoes human adjudication to rate label fidelity, fluency, and the absence of stereotyping. This dual-layer control mechanism ensures that the generated examples are both semantically accurate and ethically sound.
Once verified, the synthetic examples are merged with the original data to form an augmented training corpus. All generated data is meticulously annotated with metadata, including prompt templates, generation parameters, and quality control scores, ensuring full transparency and reproducibility. Models are then trained and evaluated under consistent experimental conditions, using metrics such as overall accuracy, group-level accuracies, and a ‘bias gap’ – the absolute difference between group accuracies – to measure fairness.
In a practical demonstration, LGSA was applied to a binary text classification task focused on gender bias. The goal was to predict whether a sentence mentioned “cash,” with a specific concern for equitable performance across male and female subjects. Three experimental conditions were compared: a baseline model trained on the original, imbalanced dataset; a model trained with simple gender-swapped augmentation (naïve pronoun/name swaps); and a model trained with LGSA-augmented data.
The results were compelling. The baseline model achieved 96.7% overall accuracy but showed a significant gender bias gap of 7.2% (98.6% accuracy for male examples vs. 91.3% for female examples). Simple gender-swapped augmentation reduced the bias gap to 0.7% but also caused a slight decrease in overall accuracy to 95.6%. In contrast, LGSA augmentation not only boosted overall accuracy to an impressive 99.1% but also significantly reduced the bias gap to 1.9% (98.1% for male examples and a perfect 100.0% for female examples). This demonstrated LGSA’s ability to enhance fairness without compromising accuracy, and in fact, improving it.
LGSA’s effectiveness stems from its capacity to generate high-quality, diverse paraphrases that are contextually relevant. This prevents the model from overfitting on trivial swaps and helps it generalize better, learning to focus on task-relevant features rather than gender cues. The framework is also adaptable beyond gender bias, with potential applications for mitigating biases related to race, age, profession, or geography.
While LGSA presents a powerful solution, the researchers acknowledge certain limitations. Generating high-quality synthetic data with LLMs can be computationally and financially intensive. The success of LGSA also depends on the diversity and quality of the initial dataset, and the LLMs themselves can carry inherent societal biases, though LGSA is designed to leverage their generative power to actively mitigate bias. Future research aims to address these challenges by exploring ways to reduce computational costs, broaden the method to a wider array of biases, and integrate LGSA with other fairness-focused learning objectives.
Also Read:
- Boosting Imbalanced Classification with Diverse Synthetic Data from Large Language Models
- Unmasking Hidden Biases: How ‘DIFFHEADS’ Makes Large Language Models Fairer
In conclusion, LGSA offers a transparent and practical framework for addressing algorithmic bias in text-based AI systems. By providing a method to create semantically coherent, context-aware synthetic examples, it helps balance fairness and utility, paving the way for more reliable and equitable AI. You can read the full research paper here.


