Gen AI 10-1
Gen AI 10-1
AI-4009 Generative AI
Data
Distribution
Sometimes, this is hard to tell since
one sees only what’s generated, but not what’s missed.
4/1/2024 Presented by Dr. AKHTAR JAMIL 7
Solutions
• Use Mini Batch GANs
• Supervision with Labels
Generator
Discriminator
4/1/2024 Presented by Dr. AKHTAR JAMIL 11
Mini Batch GANs
• Generator in Batches
– The generator can produce batches of images at once instead of single
images.
– Processing in batches allows for more efficient computation.
– More diversity of samples being evaluated by the discriminator, facilitating
a more comprehensive training.
• Mini-batch Discrimination
– The discriminator uses a measure to assess how much the generated
samples deviate from the real samples within the same batch.
– Computing distances or similarities between samples in the feature space.
– How diverse the generated images are within each batch (mode collapse).
• Objective Function:
– The loss function encourages the generator to create data that can fool the
discriminator into believing it is real and correctly conditioned.
– Distinguish between real and fake data and also ensure that the generated data
adheres to the conditional context.