← Back to Tutorials

1. Introduction to Generative AI

Introduction

What is Generative AI?

Generative AI refers to a class of artificial intelligence models that can generate new content — text, images, audio, video, code, and more — that resembles human-created data. Unlike discriminative models that classify or predict, generative models learn the underlying distribution of training data and sample from it to create novel outputs.

Generative vs Discriminative Models

AspectDiscriminative ModelsGenerative Models
GoalLearn decision boundary between classesLearn the data distribution itself
OutputClass labels, probabilitiesNew data samples, probabilities
ExamplesLogistic Regression, SVM, CNN classifiersGANs, VAEs, GPT, Stable Diffusion
UsesClassification, regression, detectionContent creation, synthesis, augmentation

Types of Generative Models

Why Now?

Three factors converged: massive datasets (the internet), powerful hardware (GPUs/TPUs), and algorithmic breakthroughs (attention, diffusion, RLHF). The result is models capable of human-like text generation, photorealistic image synthesis, and even music and video creation.

Practice Task: Use a free generative AI tool (ChatGPT, Claude, Gemini, or DALL-E) to generate something — a poem, an image, or a piece of code. Analyze the output: what's impressive? What's wrong? Compare the output with what a human might produce. Write a paragraph reflecting on the experience.