Class 9 ยท Unit 4 ยท 5 marks

Introduction to Generative AI

What generative AI is, how it creates, and how to use it well.

1What is generative AI?

Generative AI is AI that creates new content, such as text, images, music, code or video, that looks as if a person made it. It learns patterns from huge amounts of existing content, then uses those patterns to make something new. It has grown fast in the last few years.

2Generative AI vs conventional AI

Conventional AI analyses, processes and classifies existing data: is this email spam, will it rain, is this a cat? Generative AI creates new content. Both learn from data, but they are built for different goals.

3Types and examples of generative AI

Generative AI can produce text, images, audio, video and code. Under the hood, different kinds of models do the work: GANs, VAEs, RNNs and autoencoders, and today mostly transformers.

4How a text generator works

A text generator learns from a huge amount of text which words tend to follow which. It then writes one word at a time: it looks at what it has written so far, works out the probability of every possible next word, and picks one. It learns by itself from text that nobody labelled, finding patterns without a teacher.

A tiny text generator. It has read the training sentences below and counted which word usually comes next. Pick a first word, then let it write one word at a time.

What could come next?
Training text ( sentences) ยท teach it more

5GANs: the forger and the detective

A GAN has two neural networks. The generator is like a forger: it makes fake data. The discriminator is like a detective: it compares fakes with real data and decides which is which. The detective's feedback tells the forger how to improve. After many rounds the fakes look real.

The forger and the detective. The generator (forger) makes fake dots. The discriminator (detective) learns where real dots are. Each round, the forger moves its dots to fool the detective.

6Benefits and limitations

Generative AI can boost creativity, save time, personalise content and make tools accessible to more people. But it can repeat bias from its data, produce unpredictable or wrong results (sometimes called hallucinations) and needs a lot of computing power.

7Using generative AI responsibly

Generative AI raises new ethical questions: Who owns AI-made art? What if fake photos or deepfake videos spread misinformation? Could it reveal private information or repeat bias? As AI content becomes harder to tell from human work, we must think for ourselves and use it honestly.

Try it yourself