Class 12 AI Unit 7: Generative AI Notes & Board Questions | CBSE Code 843 (2026-27)
Class 12 Artificial Intelligence (843) · Unit 7 · Board exam notes
Generative AI: Diagrams and Important Questions
Follows the CBSE Class XII AI Handbook, Unit 7, section by section. Simple explanations, GAN, VAE and LLM diagrams, and all the handbook exercises with answers, plus extra board-style practice.
7.1 Introduction to Generative AI
You've probably seen fake photos of celebrities going viral, or heard of students submitting AI-written work as their own. The technology behind both is Generative AI. Most AI you studied earlier decides something (spam or not spam). Generative AI creates something new.
7.2 Working of Generative AI
Generative AI learns patterns from data and then autonomously generates similar samples. It works within deep learning, using neural networks to understand complex patterns. Two important models that do this are GANs and VAEs.
- Training data: the model is given a large dataset (text, images, audio).
- Learning patterns: a deep neural network studies the data and learns its patterns.
- Prompt: the user asks for something.
- Generation: the model creates new content that resembles the training data but is not a copy.
1. Generative Adversarial Networks (GANs)
- Generator: aims to produce samples that are indistinguishable from real data.
- Discriminator: aims to differentiate between real and generated data.
- Adversarial training: the two networks challenge each other. Every time a fake is caught, the generator improves.
- Applications: image generation, style transfer and data augmentation.
2. Variational Autoencoders (VAEs)
- Applications: data generation, detecting anomalies in data, and filling in missing information.
GAN vs VAE
| Basis | GAN | VAE |
|---|---|---|
| Parts | Generator + Discriminator | Encoder + Latent space + Decoder |
| How it learns | Two networks compete (adversarial training) | Compresses data and rebuilds it, capturing underlying patterns |
| Strength (handbook) | Excellent for visually realistic outputs | Better for structured data generation and tasks needing interpretable latent spaces |
| Applications | Image generation, style transfer, data augmentation | Data generation, anomaly detection, filling missing information |
7.3 Generative and Discriminative Models
Machine learning algorithms can be broadly divided into two types: discriminative models and generative models.
- Discriminative models focus on defining class boundaries in the data, so they suit classification. Example: deciding whether an email is "spam" or "not spam" by learning which words separate the two.
- Generative models try to understand the underlying data distribution and generate new samples.
★★ Differences between Generative AI and Discriminative AI
| Basis | Generative AI | Discriminative AI |
|---|---|---|
| Purpose | Creates things like images and stories, and finds unusual things; learns from data without being told exactly what to do | Decides what something is or which class it belongs to by looking at its features; good at telling things apart and making decisions |
| Models | Make networks compete against each other, or make guesses based on patterns, to create new things | Find rules to separate things and recognise patterns, e.g. dog or cat |
| Training focus | Understands what makes data unique and how to create new, similar data | Learns how to draw lines or rules that separate classes based on features |
| Applications | Creating artworks, story ideas, finding unusual patterns | Facial and speech recognition, spam detection |
| Example algorithms | Naïve Bayes, Gaussian Discriminant Analysis, GAN, VAEs, LLM, DBMs, Autoregressive models | Logistic Regression, Decision Trees, SVM, Random Forest |
7.4 Applications of Generative AI
| Application | What it means | Examples (handbook) |
|---|---|---|
| Image generation | Creating new images based on patterns learnt from existing images, like a computer making fresh cat pictures after seeing many cats | Canva, DALL-E, Stability AI, Stable Diffusion |
| Text generation | Writing coherent, contextually relevant sentences that sound human-written, like a story that reads as if a person wrote it | ChatGPT, Perplexity, Google's Bard (Gemini) |
| Video generation | Creating new, realistic videos, animations and visual effects by learning from existing videos | Google's Lumiere; deepfake algorithms |
| Audio generation | Producing new music, sound effects or speech based on sounds heard before, like a song that sounds performed by a real band | Meta AI's Voicebox, Google's MusicLM |
7.5 LLM: Large Language Model
Why "large"? LLMs are trained on massive datasets of text and code, which can contain trillions of words. The quality of the dataset affects the model's performance.
Transformers in LLMs
Transformers are a type of neural network architecture that has revolutionised NLP. In LLMs, they make it possible to learn complex language patterns and relationships efficiently from huge amounts of text.
For better understanding (not required word for word): an LLM works by predicting the next word again and again. The prompt is split into small pieces (tokens), turned into numbers, passed through transformer layers that work out how the words relate to each other, and the model picks the most likely next word. That word is added and the process repeats.
Leading LLMs (handbook)
- OpenAI's GPT-4o: multimodal; processes and generates text and images.
- Google's Gemini 1.5 Pro: multimodal text, image and speech understanding.
- Meta's LLaMA 3.1: open-source and optimised for efficiency.
- Anthropic's Claude 3.5: prioritises safety and interpretability.
- Mistral AI's Mixtral 8x7B: uses a sparse "mixture of experts" for strong performance with a smaller size.
Applications of LLMs
- Text generation: content creation, dialogue, stories and poetry; turning natural-language descriptions into working code; autocompleting sentences and emails.
- Audio generation (indirect): LLMs write the text or script that text-to-speech (TTS) systems convert into natural speech.
- Image generation (indirect): image captioning, writing descriptions of images to improve accessibility.
- Video generation (indirect): writing scripts, subtitles, captions and scene summaries.
★★ Limitations of LLMs
- Processing text needs significant computational resources, leading to high response time and cost.
- They prioritise natural language over accuracy, so they may give factually incorrect or misleading information with high confidence.
- They may memorise specific details rather than generalise, leading to poor adaptability.
★★ Risks associated with LLMs
- Trained on internet text, they may show biases, and there are data privacy concerns when personal information is processed.
- Using sensitive data in training can accidentally reveal confidential information.
- Inputs intentionally crafted to confuse the model can lead to harmful or illogical outputs.
7.6 Future of Generative AI
- New architectures that go beyond current capabilities, with ethical development to reduce bias and ensure responsible use.
- Solving complex problems in healthcare and education.
- Better NLP, such as multilingual translation (think Telugu ⇄ English ⇄ Hindi in real time).
- More multimedia content creation.
- Deeper human-AI collaboration, with AI as a supportive partner.
7.7 Ethical and Social Implications of Generative AI
| Issue | What it means | Example |
|---|---|---|
| 1. Deepfake technology | Tools like DeepFaceLab and FaceSwap create convincing fake images, audio and video, damaging trust in media and spreading misinformation | Faces of real people placed into videos without consent, causing privacy violations and reputational damage |
| 2. Bias and discrimination | Models can be biased against some demographic groups, reinforcing stereotypes and inequality | An AI hiring platform trained on past hiring data that disadvantages under-represented groups |
| 3. Plagiarism | Presenting AI-generated content as your own work; output resembling copyrighted material may break copyright law | A project fully written by a chatbot submitted without saying so |
| 4. Transparency | Disclosing the use of AI-generated content, especially in academic and professional work, to maintain trust | Not disclosing AI use erodes the credibility of research |
Points to remember
- Be cautious and transparent when using generative AI.
- Respect copyright and don't present AI output as your own.
- Follow your teacher's or institution's guidelines.
Citing sources with Generative AI
- Intellectual property: give proper attribution for AI-generated content.
- Accuracy: verify AI information and cite primary sources where possible.
- Ethical use: acknowledge the AI tool and give context.
Example: Gemini (Generative AI tool). (2026, October 27). Explain the working of a GAN. Prompt: "Explain GAN in simple words."
Hands-on: Generative AI tools in the handbook
| Activity | Tool | What you do |
|---|---|---|
| 1 | Canva for Education | Text to Image: type a prompt such as "A red balloon floating in a clear blue sky" and generate images |
| 2 | Google Gemini | Write a specific prompt and generate text |
| 3 | Veed AI | Generate text from a prompt, e.g. a short story |
| 4 | Animaker | Generate a video from a detailed prompt |
| 5 | ChatGPT | Text generation |
| 6 | Gemini API | Build a custom chatbot in Python: get an API key from Google AI Studio → install the package → import it → initialise with the key → choose a model → start a chat session |
Frequently asked questions with answers
Sections A to F are the handbook exercises. Sections G and H are extra board-style practice. Tap a question to see the answer. ★★ = very important.
A. Multiple choice questions (handbook)
1. What is the primary objective of generative AI? (a) To classify data into different categories (b) To generate new data resembling its training samples (c) To learn from labelled data for decision-making (d) To predict outcomes based on input features
(b) To generate new data resembling its training samples.
2. Which machine learning algorithms are commonly used in generative AI? (a) SVM (b) Decision Trees (c) GANs and VAEs (d) Random Forests
(c) Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs).
3. What is the purpose of generative AI in text generation? (a) To create coherent and contextually relevant text based on given prompts (b) To identify patterns in text for classification (c) To analyse sentiment in social media posts (d) To generate code from natural language inputs
(a) To create coherent and contextually relevant text based on given prompts.
4. Which generative AI model is known for its application in text generation? (a) Meta AI's Voicebox (b) Google's Lumiere (c) OpenAI's ChatGPT (d) Stability AI
(c) OpenAI's ChatGPT.
5. In image generation, what analogy describes how generative AI models work? (a) Computers analyse sounds to produce new images (b) Computers make new pictures based on existing ones, resembling patterns they have learned (c) Computers generate images by understanding class boundaries (d) Computers use labelled data to predict outcomes
(b) Computers make new pictures based on existing ones, resembling patterns they have learned.
6. What distinguishes generative models from discriminative models in terms of their training focus? (a) Generative models learn to generate new data, while discriminative models focus on identifying class boundaries (b) Generative models draw lines to separate data, while discriminative models analyse sentiment (c) Generative models understand the data distribution, while discriminative models analyse patterns (d) Generative models identify classes, while discriminative models generate data
(a) Generative models learn to generate new data, while discriminative models focus on identifying class boundaries.
7. Which technology raises concerns about the authenticity of digital content and the spread of misinformation? (a) Deepfake AI (b) GANs (c) VAEs (d) CNNs
(a) Deepfake AI.
B. True or False (handbook)
1. Generative AI can only generate text and images, not audio or video.
False. It can also generate audio and video.
2. GANs involve competition between the Generator and the Discriminator networks.
True.
3. Discriminative models generate new data samples similar to the training data.
False. Generative models do that; discriminative models classify.
4. VAEs are generative AI models that can be used for tasks such as image generation.
True.
5. Deepfake technology is an application of generative AI that can create realistic fake videos.
True. The handbook itself lists deepfake algorithms under video generation.
6. Large Language Models like GPT and BERT cannot generate human-like text.
False.
C. Fill in the blanks (handbook)
1. Generative AI utilises ________ learning algorithms to learn from existing datasets.
machine
2. Examples of Generative AI include ChatGPT, ________, Gemini and Claude.
DALL-E
3. The full form of GAN is ________.
Generative Adversarial Network
4. ________ is an application of Generative AI where computers create new images that resemble the ones they have seen before.
Image generation
5. OpenAI's ChatGPT and Google's Bard (Gemini) are examples of Generative AI used for ________.
text generation
6. ________, like GPT models developed by OpenAI, are trained on vast amounts of text data to understand and generate human-like text.
Large Language Models (LLMs)
D. Short answer questions (handbook)
★★ 1. What is Generative AI?
Generative AI is a facet of artificial intelligence that creates new content resembling its training samples, including text, images, audio and video. Examples: ChatGPT, Gemini, DALL-E.
★★ 2. How does Generative AI work?
It learns patterns from existing datasets using machine learning and deep learning (neural networks) and then autonomously generates new samples similar to the data. Models such as GANs and VAEs are used for this.
★★ 3. What distinguishes generative models from discriminative models?
Generative models understand and replicate the underlying data distribution to generate new samples, while discriminative models focus on distinguishing between classes by learning the boundaries between them.
4. Give examples of Generative AI applications.
ChatGPT for text generation, DALL-E for image generation, Google's MusicLM for audio generation and Google's Lumiere for video generation.
★★ 5. What are Generative Adversarial Networks (GANs)?
GANs are a neural network architecture used in Generative AI for tasks like image generation. Two networks, a generator and a discriminator, work against each other: the generator creates fake samples and the discriminator tries to tell real from fake, which improves the quality of the generated output.
★★ 6. What is a Large Language Model (LLM)?
An LLM is a deep learning algorithm trained on massive datasets of text and code that can perform NLP tasks such as generating and classifying text, answering questions conversationally and translating languages.
7. How is Generative AI used in image generation?
The model analyses patterns and features in many input images and generates new images with similar features, for example creating new cat images after learning from many cat photos. Tools: Canva, DALL-E, Stable Diffusion.
★★ 8. What ethical considerations surround Generative AI?
Deepfakes that spread misinformation, bias and discrimination in outputs, plagiarism and copyright violations, and lack of transparency about AI use.
★★ 9. What are the limitations and risks of Large Language Models?
Limitations: high computational cost and response time; may produce incorrect information confidently; may memorise rather than generalise. Risks: bias from internet data, data privacy concerns, leakage of sensitive training data, and harmful outputs from deliberately confusing inputs.
E. Case study analysis (handbook)
Scenario: A marketing agency, "Creative Horizons", uses Generative AI for advertising: AI-generated images, personalised email text, dynamic video ads and audio jingles. Its key project is launching a client's new line of eco-friendly products, and success depends on unique, engaging content that highlights sustainability.
1. What are the primary types of AI models used by Creative Horizons?
Generative AI models: image and text generation models, video generation algorithms and audio synthesis tools.
2. How does Generative AI help create personalised email content?
It analyses customer data and past engagement to produce personalised text for each audience segment, improving engagement and response rates.
3. Identify one ethical consideration the agency must address.
Ensuring the AI-generated content does not spread biases or stereotypes, maintaining ethical representation and messaging.
4. What is a significant advantage of Generative AI for video ads?
It can quickly produce diverse, innovative videos tailored to different platforms and audiences, reducing production time and cost while boosting creativity.
5. How can the agency ensure originality and copyright compliance?
Check content for uniqueness, use models trained on copyright-compliant data, and provide proper attribution or licences for AI-generated outputs.
F. Competency-based questions (handbook)
★★ 1. Anita's social media company wants to use GANs to generate personalised content. What ethical concerns are involved?
- Manipulating users' perceptions, possibly leading to misinformation or exploitation.
- Invasion of privacy.
- Amplifying biases, leading to unfair treatment or discrimination.
★★ 2. A research team uses Generative AI to create synthetic medical images for detecting rare diseases. How can they reduce bias and ensure accuracy?
- Train on data representing diverse demographics, including under-represented groups.
- Validate synthetic data against real medical images.
- Involve medical professionals and imaging specialists.
- Keep refining the model using expert feedback and performance results.
3. How can a music streaming platform use Generative AI to make playlists that match user taste and introduce new music?
- Analyse users' listening habits to guide playlist generation.
- Add some randomness to introduce new music that still matches their preferences.
4. How can an interior design company make AI room renderings both attractive and practical?
- Curate diverse room-design data for training.
- Build design principles into the model.
- Get feedback from experienced interior designers.
5. How can a marketing agency use Generative AI for engaging social media visuals?
- Collect relevant images to train the model.
- Generate visuals that match the campaign's branding.
- Review and refine the visuals for maximum impact.
Ethical dilemma (handbook): "InnovateAI" built a model that generates original music. It sometimes copies distinctive styles and melodies of copyrighted songs, and even elements of unreleased songs by living artists that were in the training data without consent. Should it release the model?
Model answer
It should not release the model until it fixes these issues. Steps: (1) Transparency about capabilities, limits and training data sources; (2) consent and copyright compliance: audit the data and remove material used without permission; (3) creative attribution of the styles or artists that influenced a track; (4) clear user guidelines against passing off AI music as fully original; (5) technology to detect tracks too similar to copyrighted works; (6) engage stakeholders such as artists, copyright holders and legal experts, for example through licensing agreements.
G. Long answer questions (extra practice, 4 to 5 marks)
★★ 1. Explain the architecture and working of a GAN with a labelled diagram. Write its applications.
Draw the GAN diagram above. A GAN is a neural network architecture with two networks that compete:
- Generator: takes random input and generates new (fake) samples such as images, aiming to make them indistinguishable from real data.
- Discriminator: receives real data and generated data and tries to identify which is real and which is fake.
- Adversarial training: the discriminator's decisions act as feedback. The generator keeps improving to fool it, and the discriminator keeps improving at catching fakes, so the generated samples become increasingly realistic.
Applications: image generation, style transfer, data augmentation. GANs are excellent for visually realistic outputs.
★★ 2. Explain the working of a VAE with a diagram. How is it different from a GAN?
Draw the VAE diagram above. The encoder understands the input and converts it into the latent space, a compressed representation of the data. The decoder translates the information from the latent space back into its original form. By capturing the underlying patterns, a VAE can generate new samples. Applications: data generation, anomaly detection, filling missing information.
Difference: a GAN uses two competing networks and is best for visually realistic outputs; a VAE uses an encoder-decoder with a latent space and is better for structured data generation and tasks needing interpretable latent spaces.
★★ 3. What is an LLM? Why is it called "large"? Write its applications and limitations.
Definition: a deep learning algorithm that performs NLP tasks such as generating and classifying text, answering questions conversationally and translating languages. Large because it is trained on massive datasets of text and code containing trillions of words. LLMs use the transformer architecture. Examples: GPT-4o, Gemini 1.5 Pro, LLaMA 3.1, Claude 3.5, Mixtral 8x7B.
Applications: text generation (content, stories, code, autocomplete); supporting text-to-speech; image captioning; video scripts and subtitles.
Limitations: high computational cost; confident but incorrect answers; memorising instead of generalising.
★★ 4. Discuss the ethical and social implications of Generative AI.
- Deepfakes: fake images, audio and video created with tools like DeepFaceLab and FaceSwap reduce trust in media and spread misinformation.
- Bias and discrimination: models can disadvantage some groups, for example AI hiring tools trained on biased historical data.
- Plagiarism: presenting AI content as your own violates academic integrity and may infringe copyright.
- Transparency: AI use must be disclosed, especially in academic and professional work, to maintain trust.
Responsible use: be transparent, respect copyright, verify facts and cite the AI tool with the date.
5. Differentiate between generative and discriminative models on any four bases, with examples.
Use the 7.3 table: purpose, models, training focus, applications and example algorithms. Generative examples: GAN, VAE, LLM, Naïve Bayes. Discriminative examples: Logistic Regression, Decision Tree, SVM, Random Forest.
H. Case-based questions (extra practice)
Case 1: A Hyderabad startup has 50,000 photos of Pochampally ikat designs. One network creates new saree patterns and a second network checks whether each pattern looks genuine. After many rounds, experts can't tell new designs from real ones.
(a) Which generative model is used?
GAN (Generative Adversarial Network).
(b) Name the two networks and their roles.
Generator: creates new patterns. Discriminator: judges whether a pattern is real or generated.
(c) Why do the designs improve over time?
Through adversarial training: each time the discriminator catches a fake, the generator improves to produce more realistic patterns.
(d) One ethical point the startup should consider.
Respect and credit the weavers' traditional designs and avoid copying any artist's copyrighted work; disclose that the designs are AI-generated.
Case 2: A transport helpline plans a chatbot that answers bus-timing questions in Telugu and English and summarises complaints for officers. During testing, it confidently gave a bus timing that doesn't exist.
(a) Which type of model suits this chatbot?
A Large Language Model (LLM), because these are NLP tasks.
(b) Two tasks from the case an LLM can perform.
Answering questions conversationally; translating between Telugu and English; summarising complaints (any two).
(c) Which limitation of LLMs does the wrong timing show?
LLMs prioritise natural language over accuracy, so they can generate factually incorrect information with high confidence.
(d) Suggest one way to reduce the problem.
Connect the chatbot to the official, up-to-date timetable so it answers from verified data, and hand uncertain queries to a human.
Case 3: A hospital has very few X-rays of a rare lung disease. A researcher suggests a model that compresses each X-ray into a few key numbers and rebuilds new, slightly different X-rays from them to create more training data.
(a) Which generative model is described?
VAE (Variational Autoencoder).
(b) Which part compresses and which part rebuilds?
Encoder compresses; decoder rebuilds.
(c) What are the "few key numbers" called?
Latent space: the compressed representation of the data.
(d) Why must the new X-rays be checked?
Synthetic data can contain biases or inaccuracies, so it should be validated against real images by medical experts before use.
Last-minute revision
- Generative AI creates new data resembling training samples; it's a weak AI.
- GAN = Generator vs Discriminator → realistic images, style transfer, data augmentation.
- VAE = Encoder → Latent space → Decoder → data generation, anomaly detection, missing data.
- Generative: Naïve Bayes, GDA, GAN, VAE, LLM, DBM, Autoregressive. Discriminative: Logistic Regression, Decision Tree, SVM, Random Forest.
- LLM = NLP deep learning algorithm; "large" = massive text and code data; uses transformers.
- LLM limits: cost, confident errors, memorisation. Risks: bias and privacy, sensitive-data leaks, crafted inputs.
- Ethics: deepfakes, bias, plagiarism, transparency; always cite the AI tool and date.
Based on the CBSE Class XII Artificial Intelligence (843) Handbook, Unit 7: Generative AI. Notes and extra questions by Richa Tiwari, AI Logic School. Spotted an error? Tell me in the comments.
Comments
Post a Comment