Fun with Learning Technology
LearnCoursesQuestionsTracksToolsNewsExplorePractice
Fun with Learning Technology

A new problem, explained clearly, every day.

Subscribe
Learn
  • Lessons
  • Topics
  • News
  • Tools
  • Courses
  • Career tracks
  • Everything
Site
  • About
  • Contact
  • Support
  • Privacy
  • Terms
Get the daily one

One email per new problem. No spam.

Request a tutorial

Requests shape what gets made next.

© 2026 Fun with Learning TechnologyRSS
Home›Courses›Creating Own LLM›Ethical Considerations: Bias, Fairness, and Misuse in LLMs

Core Concepts of Large Language Models

Ethical Considerations: Bias, Fairness, and Misuse in LLMs

This lesson explores the ethical challenges inherent in large language models, including bias, fairness, and potential misuse. Understanding these issues is critical because they impact real-world applications, user trust, and societal equity, especially as LLMs become more integrated into decision-making systems. You should consider these ethical dimensions during every phase of LLM development, from data collection to deployment and monitoring.

What is Bias in LLMs?

Bias in large language models refers to systematic errors or preferences in the model's outputs that favor certain groups, ideas, or perspectives over others. These biases often originate from the training data, which reflects historical and societal inequalities, stereotypes, or imbalances. For example, if a dataset contains more text from one demographic group, the model may generate outputs that align more closely with that group's views or language patterns. Bias is not always overt; it can manifest subtly in word choices, tone, or even the omission of certain perspectives. The danger lies in the model amplifying these biases, leading to unfair or harmful outcomes when deployed in real-world applications like hiring, lending, or content moderation. To reason about bias, ask: *Does the training data represent diverse perspectives?* and *Are there mechanisms to detect and mitigate skewed outputs?* Understanding bias is the first step toward building fairer systems, as it forces developers to critically examine the data and the model's behavior.

# Example: Detecting gender bias in LLM outputs using a simple prompt analysis

def detect_gender_bias(prompts, model_outputs):
    """
    Analyzes model outputs for gendered language by checking for
    stereotypical associations (e.g., 'nurse' -> 'she', 'engineer' -> 'he').
    
    Args:
        prompts (list): List of input prompts to the model.
        model_outputs (list): Corresponding outputs from the model.
    
    Returns:
        dict: Counts of gendered terms and their contexts.
    """
    gendered_terms = {
        'female': ['she', 'her', 'woman', 'girl', 'mother', 'daughter'],
        'male': ['he', 'him', 'man', 'boy', 'father', 'son']
    }
    bias_results = {'female': {}, 'male': {}}
    
    for prompt, output in zip(prompts, model_outputs):
        words = output.lower().split()
        for gender, terms in gendered_terms.items():
            for term in terms:
                if term in words:
                    if term not in bias_results[gender]:
                        bias_results[gender][term] = []
                    bias_results[gender][term].append(prompt)
    
    return bias_results

# Example usage
prompts = [
    "Describe a nurse's typical day.",
    "Describe an engineer's typical day.",
    "Who is more likely to be a CEO?"
]
outputs = [
    "She wakes up early to check on patients and administers medication.",
    "He designs systems and collaborates with other engineers.",
    "He is more likely to be a CEO due to historical trends."
]

bias_results = detect_gender_bias(prompts, outputs)
print("Detected gender bias in outputs:", bias_results)

How Bias Propagates Through Training Data

Training data is the foundation of any large language model, and its quality directly influences the model's behavior. Bias propagates through training data in two primary ways: *explicit bias* and *implicit bias*. Explicit bias occurs when the data contains overtly prejudiced or discriminatory content, such as hate speech or slurs. Implicit bias is more insidious; it arises from underrepresentation or overrepresentation of certain groups, leading the model to associate specific traits or roles with those groups. For example, if a dataset predominantly describes scientists as male, the model may default to male pronouns when generating text about scientists. The problem is compounded by the fact that LLMs learn patterns from vast amounts of uncurated data, often scraped from the internet, which reflects societal biases. To mitigate this, developers must audit their datasets for representational balance and use techniques like reweighting or synthetic data generation to correct imbalances. Understanding how bias propagates helps you anticipate where your model might fail and proactively address those gaps.

# Example: Auditing a dataset for representational bias by analyzing word frequencies

def audit_representational_bias(text_corpus, target_groups):
    """
    Audits a text corpus for representational bias by comparing the frequency
    of terms associated with different demographic groups.
    
    Args:
        text_corpus (str): The training data as a single string.
        target_groups (dict): Dictionary mapping group names to associated terms.
    
    Returns:
        dict: Frequency counts of terms for each group.
    """
    word_counts = {group: 0 for group in target_groups}
    words = text_corpus.lower().split()
    
    for group, terms in target_groups.items():
        for term in terms:
            word_counts[group] += words.count(term.lower())
    
    total_terms = sum(word_counts.values())
    for group in word_counts:
        word_counts[group] = {
            'count': word_counts[group],
            'percentage': (word_counts[group] / total_terms) * 100 if total_terms > 0 else 0
        }
    
    return word_counts

# Example usage
corpus = "The male engineer designed the system. The female nurse cared for patients. "
          "The scientist, who was a man, published the paper. The teacher, a woman, graded exams."

target_groups = {
    'male': ['engineer', 'scientist', 'man', 'he', 'male'],
    'female': ['nurse', 'teacher', 'woman', 'she', 'female']
}

bias_audit = audit_representational_bias(corpus, target_groups)
print("Representational bias in corpus:", bias_audit)

Fairness: Defining and Measuring It in LLMs

Fairness in large language models is the principle that the model's outputs should not systematically disadvantage or favor any individual or group based on protected attributes like race, gender, or religion. Unlike bias, which is often about representation, fairness is about outcomes—does the model treat similar inputs similarly, regardless of who is asking? Measuring fairness requires defining what constitutes a 'fair' outcome for a given task. For example, in a hiring tool, fairness might mean that the model recommends candidates from underrepresented groups at the same rate as others. However, fairness is context-dependent; what is fair in one application (e.g., medical diagnosis) may not be fair in another (e.g., loan approval). To measure fairness, developers use metrics like *disparate impact*, which compares the selection rates of different groups, or *equalized odds*, which ensures the model's error rates are similar across groups. The challenge lies in balancing fairness with other objectives, such as accuracy. For instance, a model that is too aggressive in promoting fairness might sacrifice performance for certain groups. Understanding fairness helps you design systems that align with ethical and legal standards while meeting user needs.

# Example: Measuring disparate impact in LLM-generated hiring recommendations

def measure_disparate_impact(recommendations, protected_attribute):
    """
    Measures disparate impact by comparing selection rates for different groups.
    Disparate impact occurs if the selection rate for a protected group
    is less than 80% of the rate for the majority group.
    
    Args:
        recommendations (list): List of tuples (candidate_id, group, is_recommended).
        protected_attribute (str): The protected attribute to analyze (e.g., 'gender').
    
    Returns:
        dict: Disparate impact ratios for each group.
    """
    group_stats = {}
    
    for candidate_id, group, is_recommended in recommendations:
        if group not in group_stats:
            group_stats[group] = {'total': 0, 'recommended': 0}
        group_stats[group]['total'] += 1
        if is_recommended:
            group_stats[group]['recommended'] += 1
    
    # Calculate selection rates
    selection_rates = {}
    for group in group_stats:
        selection_rates[group] = group_stats[group]['recommended'] / group_stats[group]['total']
    
    # Calculate disparate impact (ratio of selection rates)
    majority_group = max(selection_rates, key=selection_rates.get)
    disparate_impact = {}
    
    for group in selection_rates:
        disparate_impact[group] = {
            'selection_rate': selection_rates[group],
            'disparate_impact_ratio': selection_rates[group] / selection_rates[majority_group]
        }
    
    return disparate_impact

# Example usage
recommendations = [
    (1, 'male', True),   # Recommended
    (2, 'female', False), # Not recommended
    (3, 'male', True),   # Recommended
    (4, 'female', True),  # Recommended
    (5, 'non-binary', False), # Not recommended
    (6, 'male', False),  # Not recommended
    (7, 'female', True),  # Recommended
]

disparate_impact = measure_disparate_impact(recommendations, 'gender')
print("Disparate impact in hiring recommendations:", disparate_impact)

Mitigating Bias and Ensuring Fairness

Mitigating bias and ensuring fairness in large language models requires a multi-layered approach that spans the entire development lifecycle. The first step is *data curation*: carefully selecting and balancing training data to reduce representational biases. Techniques like oversampling underrepresented groups or using synthetic data to fill gaps can help, but they must be applied thoughtfully to avoid introducing new biases. The second step is *model training*: using algorithms that explicitly account for fairness, such as adversarial debiasing, where a secondary model is trained to detect and penalize biased outputs. Another approach is *post-processing*, where the model's outputs are adjusted to meet fairness criteria, such as equalizing selection rates across groups. However, these techniques often involve trade-offs. For example, adversarial debiasing might reduce bias but also degrade the model's performance on other tasks. The third step is *evaluation*: continuously monitoring the model's behavior in real-world settings to detect and correct biases that emerge over time. This requires diverse testing datasets and metrics that go beyond accuracy, such as fairness metrics like disparate impact or equalized odds. Finally, transparency is key: documenting the model's limitations and biases helps users make informed decisions about its use. By combining these strategies, you can build systems that are both effective and ethically responsible.

# Example: Adversarial debiasing to reduce gender bias in LLM outputs
import numpy as np

# Simulated logits (model outputs before softmax) for a binary classification task
def adversarial_debiasing(logits, sensitive_attribute, debias_strength=0.1):
    """
    Applies adversarial debiasing to reduce bias in model outputs by penalizing
    differences in predictions across sensitive attributes (e.g., gender).
    
    Args:
        logits (np.array): Model logits for each sample.
        sensitive_attribute (np.array): Binary array indicating the sensitive group (0 or 1).
        debias_strength (float): Strength of the debiasing penalty.
    
    Returns:
        np.array: Debiased logits.
    """
    # Calculate mean logits for each group
    group_0_logits = logits[sensitive_attribute == 0]
    group_1_logits = logits[sensitive_attribute == 1]
    
    if len(group_0_logits) == 0 or len(group_1_logits) == 0:
        return logits  # No debiasing if one group is missing
    
    mean_0 = np.mean(group_0_logits)
    mean_1 = np.mean(group_1_logits)
    
    # Adjust logits to reduce the difference between group means
    debiased_logits = logits.copy()
    debiased_logits[sensitive_attribute == 0] -= debias_strength * (mean_0 - mean_1)
    debiased_logits[sensitive_attribute == 1] += debias_strength * (mean_0 - mean_1)
    
    return debiased_logits

# Example usage
logits = np.array([2.0, 1.5, 0.8, -0.5, 1.2, 0.3])  # Model logits for 6 samples
sensitive_attribute = np.array([0, 1, 0, 1, 0, 1])  # 0: male, 1: female

debiased_logits = adversarial_debiasing(logits, sensitive_attribute, debias_strength=0.2)
print("Original logits:", logits)
print("Debiased logits:", debiased_logits)

Preventing Misuse: Safeguards and Responsible Deployment

Large language models are powerful tools, but their misuse can lead to harm, such as spreading misinformation, generating deepfake content, or automating unethical tasks like phishing or harassment. Preventing misuse requires a combination of technical safeguards and responsible deployment practices. Technical safeguards include *input filtering*, where prompts are scanned for harmful or malicious intent, and *output filtering*, where the model's responses are checked for inappropriate content. For example, a model might refuse to generate instructions for building weapons or producing hate speech. Another safeguard is *rate limiting*, which prevents users from overwhelming the system with requests that could be used for spam or abuse. However, technical solutions alone are not enough. Responsible deployment also involves *user education*: clearly communicating the model's limitations and intended use cases to prevent misuse. Additionally, *monitoring and auditing* the model's usage in production helps detect and address emerging risks. For instance, if the model is frequently used to generate misleading news articles, developers can adjust the system to flag or block such requests. Finally, *legal and ethical frameworks* must guide deployment, ensuring compliance with regulations and alignment with societal values. By implementing these safeguards, you can reduce the risk of misuse while preserving the model's utility for legitimate applications.

# Example: Input and output filtering to prevent misuse of an LLM

def filter_prompt(prompt, banned_keywords):
    """
    Filters a prompt for banned keywords to prevent misuse.
    
    Args:
        prompt (str): The input prompt to the model.
        banned_keywords (list): List of keywords that trigger filtering.
    
    Returns:
        bool: True if the prompt is safe, False if it contains banned keywords.
    """
    prompt_lower = prompt.lower()
    for keyword in banned_keywords:
        if keyword.lower() in prompt_lower:
            return False
    return True

def filter_output(output, banned_keywords):
    """
    Filters model output for banned keywords to prevent harmful responses.
    
    Args:
        output (str): The model's output.
        banned_keywords (list): List of keywords that trigger filtering.
    
    Returns:
        str: The filtered output (empty string if harmful).
    """
    output_lower = output.lower()
    for keyword in banned_keywords:
        if keyword.lower() in output_lower:
            return ""  # Return empty string to block harmful output
    return output

# Example usage
banned_keywords = ['bomb', 'hack', 'hate', 'weapon', 'kill']

prompt = "How can I build a bomb?"
if not filter_prompt(prompt, banned_keywords):
    print("Prompt blocked: Contains banned keywords.")
else:
    print("Prompt allowed.")

output = "Here are instructions to build a weapon."
filtered_output = filter_output(output, banned_keywords)
if not filtered_output:
    print("Output blocked: Contains banned keywords.")
else:
    print("Output allowed:", filtered_output)

Key points

  • Bias in LLMs arises from imbalances or prejudices in training data, which the model learns and amplifies in its outputs.
  • Fairness in LLMs is about ensuring equitable outcomes for all users, regardless of their background or identity.
  • Measuring fairness requires context-specific metrics, such as disparate impact or equalized odds, to evaluate model behavior.
  • Mitigating bias involves data curation, algorithmic adjustments, and continuous monitoring to reduce harmful patterns.
  • Adversarial debiasing and post-processing techniques can help align model outputs with fairness goals but may involve trade-offs with performance.
  • Preventing misuse of LLMs requires technical safeguards like input/output filtering, rate limiting, and user education.
  • Responsible deployment includes monitoring model usage in production to detect and address emerging ethical risks.
  • Ethical considerations should be integrated into every phase of LLM development, from data collection to deployment and beyond.

Common mistakes

  • Mistake: Assuming the training data is unbiased because it's large. Why it's wrong: Large datasets often inherit societal biases, historical inequalities, and skewed representations. Fix: Audit datasets for demographic, cultural, and ideological imbalances; use fairness-aware sampling and augmentation to mitigate biases.
  • Mistake: Treating fairness as a post-training fix. Why it's wrong: Fairness must be addressed during data collection, preprocessing, and model design. Post-hoc adjustments like calibration or filtering can introduce new biases or degrade performance. Fix: Integrate fairness constraints into the loss function and evaluation metrics from the start.
  • Mistake: Relying solely on accuracy metrics to evaluate model performance. Why it's wrong: Accuracy can mask disparities across subgroups. A model may perform well overall but fail catastrophically for minority groups. Fix: Use disaggregated evaluation metrics (e.g., precision, recall, F1-score) across demographic or sensitive attributes.
  • Mistake: Ignoring the context of deployment when assessing misuse risks. Why it's wrong: A model safe in one context (e.g., academic research) may be harmful in another (e.g., hiring tools). Fix: Conduct context-specific risk assessments, including stakeholder analysis and red-teaming for potential misuse scenarios.
  • Mistake: Assuming fine-tuning on a small, curated dataset removes all biases. Why it's wrong: Fine-tuning can amplify existing biases or introduce new ones if the curated dataset is not representative or balanced. Fix: Use techniques like adversarial debiasing or counterfactual data augmentation during fine-tuning to explicitly reduce biases.

Interview questions

What is bias in the context of training your own large language model, and why is it a concern?

Bias in training a large language model refers to systematic errors that cause the model to produce unfair or prejudiced outputs. This happens when the training data reflects historical inequalities, stereotypes, or underrepresentation of certain groups. For example, if a dataset contains more text from male authors than female authors, the model may generate responses that favor male perspectives or assume male defaults in ambiguous contexts. Bias is a concern because it can lead to harmful real-world consequences, such as reinforcing discrimination in hiring, lending, or legal decisions. As creators of LLMs, we must audit our datasets and use techniques like reweighting or synthetic data generation to mitigate these biases and ensure fairer outcomes.

How would you detect bias in the training data of your own LLM before starting the training process?

To detect bias in training data before training, I would perform a thorough exploratory data analysis (EDA) using both statistical and qualitative methods. First, I’d analyze the demographic distribution of the data sources—such as gender, ethnicity, or geographic origin—by using metadata or proxy indicators like names or locations. For example, I could write a script to count occurrences of gendered pronouns or terms associated with different regions. Second, I’d look for stereotypical associations by measuring co-occurrence frequencies, like how often 'nurse' appears with 'she' versus 'he'. Third, I’d use fairness metrics like demographic parity or equalized odds to quantify disparities. Finally, I’d manually review samples to identify subtle biases that automated tools might miss. This multi-layered approach ensures a more comprehensive detection of bias.

Explain how fairness can be defined in the context of your own LLM, and describe one method to enforce it during training.

Fairness in an LLM can be defined in multiple ways, but one common approach is *demographic parity*, which requires that the model’s predictions are independent of sensitive attributes like race or gender. Another definition is *equalized odds*, where the model’s error rates are similar across different groups. To enforce fairness during training, I could use *adversarial debiasing*. This involves training the model alongside an adversarial classifier that tries to predict the sensitive attribute from the model’s hidden representations. The main model is then optimized to minimize both its primary loss and the adversary’s ability to infer the sensitive attribute. For example, in PyTorch, I might add an adversarial loss term that penalizes the model if the adversary’s accuracy exceeds a threshold. This encourages the model to learn representations that are invariant to sensitive attributes, promoting fairness.

What are the risks of misuse when deploying your own LLM, and how would you mitigate them?

Misuse of an LLM poses significant risks, including generating harmful content like hate speech, misinformation, or deepfake text. For example, bad actors could use the model to automate phishing scams, impersonate individuals, or spread propaganda. To mitigate these risks, I would implement multiple layers of safeguards. First, I’d use *input filtering* to block prompts containing toxic or sensitive keywords. Second, I’d apply *output filtering* to detect and reject harmful responses using a secondary classifier. Third, I’d enforce *rate limiting* to prevent mass generation of content. Fourth, I’d include *watermarking* to trace generated text back to the model. Finally, I’d require *user authentication* and *usage logging* to monitor and audit interactions. These measures create a robust defense against misuse while maintaining transparency and accountability.

Compare and contrast *pre-processing* and *post-processing* techniques for reducing bias in your LLM. Which would you prefer and why?

Pre-processing techniques focus on modifying the training data before the model is trained, while post-processing techniques adjust the model’s outputs after training. Pre-processing methods include reweighting underrepresented groups, balancing datasets, or generating synthetic data to fill gaps. For example, I could oversample text from minority groups to ensure equal representation. Post-processing methods, on the other hand, involve calibrating the model’s outputs to meet fairness criteria, such as adjusting decision thresholds for different groups. Pre-processing is often more effective because it addresses bias at the source, leading to a more inherently fair model. However, it can be computationally expensive and may not capture all biases. Post-processing is easier to implement but may feel like a 'band-aid' solution, as it doesn’t fix the underlying biased representations. I would prefer pre-processing because it aligns with the principle of 'garbage in, garbage out'—a fairer dataset leads to a fairer model, reducing the need for last-minute corrections.

Imagine you’ve trained your own LLM, and users report that it generates offensive outputs when prompted with ambiguous or edge-case inputs. How would you diagnose and address this issue without retraining the entire model?

First, I would diagnose the issue by collecting and analyzing the problematic prompts and outputs to identify patterns. For example, I’d check if the offensive outputs are triggered by specific keywords, contexts, or demographic associations. I’d use tools like *SHAP values* or *attention visualization* to understand which parts of the input the model focuses on when generating harmful content. Next, I’d implement a combination of short-term and long-term fixes. In the short term, I’d deploy a *dynamic filtering system* that flags and blocks offensive outputs in real-time using a fine-tuned toxicity classifier. I’d also update the model’s *prompt engineering guidelines* to steer users away from ambiguous inputs. For a more robust solution, I’d use *fine-tuning on a small, curated dataset* of safe responses to edge-case prompts, which is less resource-intensive than full retraining. Additionally, I’d introduce *user feedback loops* to continuously improve the filtering system. This approach balances immediate mitigation with sustainable improvements.

All Creating Own LLM interview questions →

Check yourself

1. During dataset preparation for your LLM, you notice that the text corpus contains more examples from one demographic group than others. What is the most effective way to address this imbalance while preserving the model's utility?

  • A.Remove all examples from the overrepresented group to match the size of the smallest group, ensuring perfect balance.
  • B.Use data augmentation to generate synthetic examples for underrepresented groups, while applying fairness-aware sampling to maintain balance during training.
  • C.Ignore the imbalance, as the model will naturally generalize to all groups if the dataset is large enough.
  • D.Train the model on the imbalanced dataset first, then fine-tune it on a smaller, balanced dataset to correct biases.
Show answer

B. Use data augmentation to generate synthetic examples for underrepresented groups, while applying fairness-aware sampling to maintain balance during training.
The correct answer is using data augmentation and fairness-aware sampling. This approach preserves the utility of the model by maintaining sufficient data volume while actively mitigating bias. Option 1 harms utility by discarding data. Option 3 ignores the problem, risking biased outputs. Option 4 may not fully address biases and could degrade performance.

2. You are evaluating your LLM's fairness across different demographic groups. Which of the following metrics would best reveal disparities that might be hidden by overall accuracy?

  • A.Aggregate accuracy across all groups, as it provides a single, easy-to-interpret number.
  • B.Precision and recall for each demographic group separately, to identify where the model performs poorly.
  • C.The size of the training dataset for each group, as larger datasets always lead to better performance.
  • D.The model's confidence scores on a held-out validation set, as high confidence indicates fairness.
Show answer

B. Precision and recall for each demographic group separately, to identify where the model performs poorly.
The correct answer is precision and recall for each group separately. These metrics reveal disparities that aggregate accuracy might hide. Option 1 masks group-specific issues. Option 3 is incorrect because dataset size doesn't guarantee fairness. Option 4 confuses confidence with fairness, which are unrelated.

3. Your LLM is intended for use in a hiring tool. During testing, you find that the model favors resumes with certain keywords that are more common in one demographic group. What is the most responsible action to take before deployment?

  • A.Deploy the model as-is, since the bias is likely due to the input data and not the model itself.
  • B.Remove the biased keywords from the model's vocabulary to prevent it from using them in predictions.
  • C.Conduct a context-specific risk assessment, including red-teaming for potential misuse, and adjust the model or deployment constraints based on the findings.
  • D.Fine-tune the model on a dataset where the keywords are equally distributed across all demographic groups.
Show answer

C. Conduct a context-specific risk assessment, including red-teaming for potential misuse, and adjust the model or deployment constraints based on the findings.
The correct answer is conducting a context-specific risk assessment. This ensures the model's safety and fairness in its intended use case. Option 1 ignores the problem. Option 2 is impractical and may harm performance. Option 4 may not address the root cause of the bias and could introduce new issues.

4. You are designing an LLM and want to integrate fairness constraints into the training process. Which approach would most effectively reduce bias while maintaining model performance?

  • A.Add a fairness-aware regularization term to the loss function that penalizes disparities in performance across groups.
  • B.Train the model without any fairness constraints, then filter out biased outputs during inference.
  • C.Use only datasets that are perfectly balanced across all demographic attributes, regardless of their relevance to the task.
  • D.Increase the model's capacity to ensure it can memorize all possible biases and correct them internally.
Show answer

A. Add a fairness-aware regularization term to the loss function that penalizes disparities in performance across groups.
The correct answer is adding a fairness-aware regularization term to the loss function. This approach actively reduces bias during training without sacrificing performance. Option 1 is a post-hoc fix that may not address underlying biases. Option 2 is impractical and may exclude relevant data. Option 3 is unrealistic and could harm generalization.

5. After fine-tuning your LLM on a small, curated dataset to reduce biases, you observe that the model's performance has degraded for some groups. What is the most likely cause of this issue?

  • A.The curated dataset was too small to maintain the model's generalization capabilities, leading to overfitting on specific examples.
  • B.The model's architecture was not designed to handle fairness constraints, so it cannot perform well on any group after fine-tuning.
  • C.The original training data was perfectly balanced, so fine-tuning was unnecessary and introduced new biases.
  • D.The fine-tuning process removed all biases, but this inherently reduces the model's ability to perform well on any task.
Show answer

A. The curated dataset was too small to maintain the model's generalization capabilities, leading to overfitting on specific examples.
The correct answer is that the curated dataset was too small, leading to overfitting. Fine-tuning on a limited dataset can reduce generalization. Option 1 is incorrect because architecture isn't the issue. Option 2 is false; original data is rarely perfectly balanced. Option 3 is a misconception; fairness and performance can coexist with proper techniques.

Take the full Creating Own LLM quiz →

← PreviousCommon LLM Architectures: GPT, BERT, T5, and Their VariantsNext →Data Collection and Curation for Training LLMs

Creating Own LLM

36 lessons, free to read.

All lessons →

Track your progress

Sign in to mark lessons done, score quizzes and keep notes.

Open in the app