Skip to content
elevatedevco

LLMs & Agents

Generative AI

A dense, interview-grade reference on modern generative modeling centered on diffusion (DDPM/DDIM, score-based SDEs, latent diffusion) and flow matching, p

Intermediate50 questions25 quiz questionsCheat sheet

Questions & Answers

Tap a question to reveal its answer. Written for self-study and interview preparation.

What is 'generative AI'?

Generative AI is a type of artificial intelligence that creates new content — text, images, music, video, code, or even 3D models — instead of just analyzing data or making predictions. When you ask ChatGPT to write a poem or DALL-E to paint a dragon, you're using generative AI. It learns patterns from enormous amounts of existing content and uses those patterns to produce something brand new.

What is the difference between 'generative' and 'discriminative' AI?

Discriminative AI decides between categories — it looks at a photo and says 'cat or dog?' Generative AI actually creates new examples — it produces a new photo of a cat that never existed. Both learn from data, but their goals are opposite. Discriminative models sort and label; generative models imagine and produce. Modern AI systems often combine both: a generative model trained partly by a discriminative one.

What is a GAN (Generative Adversarial Network)?

A GAN has two neural networks that compete. The 'generator' tries to create fake images that look real. The 'discriminator' tries to spot fakes. They're like a forger and an art expert in a constant battle — the forger gets better at faking, the expert gets better at catching fakes, and both improve rapidly. Eventually the generator produces images so realistic the discriminator (and humans!) can't tell they're fake.

What is a 'diffusion model'?

A diffusion model learns to create images by learning how to gradually remove noise from a completely scrambled image, step by step, until a clear image emerges. During training, it adds noise to real images and learns to reverse that process. At generation time, it starts with pure random noise and progressively denoises it into a beautiful, coherent image. DALL-E 3, Stable Diffusion, and Midjourney all use diffusion models.

What is ChatGPT and how does it work?

ChatGPT is an AI chatbot made by OpenAI that generates human-like text responses to questions and instructions. It's powered by a large language model (LLM) called GPT, trained on hundreds of billions of words from the internet. It predicts which word comes next based on all the words that came before — doing this millions of times to form complete, coherent, and often impressive responses. It's conversational, so you can ask follow-up questions.

What is DALL-E?

DALL-E is an AI system made by OpenAI that generates images from text descriptions. You type 'a cat wearing sunglasses riding a skateboard at sunset' and it produces a unique, detailed image. It was trained on millions of image-text pairs, learning the relationship between words and visual content. DALL-E uses diffusion model technology and can produce photorealistic images, artwork, cartoons, and more in any style you describe.

What is 'Stable Diffusion'?

Stable Diffusion is a free, open-source AI image generation model that anyone can download and run on their own computer. Unlike proprietary systems, it can be customized, fine-tuned, and modified by anyone. This openness sparked an explosion of creative tools, art communities, and apps built around it. It runs the same diffusion process as commercial tools but is available to everyone — democratizing AI art creation.

What is 'Midjourney'?

Midjourney is an AI image generation service accessed through Discord. You type a description of an image you want, and Midjourney produces four high-quality visual options in about a minute. It's known for producing particularly artistic, painterly, and cinematic images. Many designers, game developers, and concept artists use it for rapid creative exploration. Unlike Stable Diffusion, Midjourney is a paid subscription service with no open-source code.

What is 'AI music generation'?

AI music generation uses machine learning to compose original songs, melodies, harmonies, or even entire tracks in any style. Tools like Suno, Udio, and Google's MusicLM can produce a pop song from a text prompt in seconds. They're trained on vast libraries of existing music and learn patterns of melody, rhythm, chord progression, and timbre. Musicians use them for rapid prototyping and inspiration, though copyright questions remain unresolved.

What is 'text-to-video' AI?

Text-to-video AI generates short video clips from text descriptions. You type 'a golden retriever running on a beach at sunset' and the AI produces a realistic video clip. Sora by OpenAI, Runway, and Pika Labs are early examples. Current systems can generate realistic clips of several seconds, handling motion, lighting, and consistency. As quality improves, this technology could transform filmmaking, advertising, and education.

What is a 'deepfake'?

A deepfake is an AI-generated video or audio that realistically shows a real person saying or doing something they never actually did. Early deepfakes used GANs to swap faces; modern ones use diffusion models for photorealistic results. Deepfakes can be entertaining (putting celebrities in funny situations) but also dangerous — spreading misinformation about politicians, committing fraud, or harassing individuals. Detection tools are racing to keep up.

What is 'hallucination' in a generative AI system?

Hallucination is when a generative AI confidently makes up false information — invented facts, fake quotes, or nonexistent sources — because it's optimizing for plausible-sounding output rather than verified truth. Ask ChatGPT about a book that doesn't exist and it might describe it in convincing detail. Hallucinations happen because LLMs predict likely text, not verified facts. Always cross-check important AI-generated information with reliable sources.

What is a 'VAE' (Variational Autoencoder)?

A Variational Autoencoder is a type of generative model that learns a compressed representation of data, then can generate new data by sampling from that compressed space. Think of it as learning the 'essence' of faces — the key features that define them — and then being able to create new faces by mixing those features in new combinations. VAEs were early generative models; diffusion models and GANs have largely superseded them for image quality.

What is a 'prompt' in generative AI image tools?

A prompt in an image tool is the text description you write to guide what image the AI creates. 'Oil painting of a stormy ocean, dramatic lighting, high detail, Rembrandt style' would be a detailed prompt. Image AI is very sensitive to prompt wording — slight changes can dramatically alter the result. Prompt engineering for image generation has become its own art form, with communities sharing 'prompt recipes' for specific styles.

What is 'style transfer' in AI art?

Style transfer takes the artistic style of one image — Van Gogh's swirling brushstrokes, for example — and applies it to a completely different photo, like your selfie. The AI separates content (what's in the image) from style (how it's painted) and recombines them. Neural style transfer was one of the first popular applications of deep learning for art and inspired many modern generative art tools.

How does a generative AI model 'learn' to create art?

A generative model is trained on millions of images paired with text descriptions. It learns statistical patterns: what visual features correspond to which words, what color combinations appear in sunsets, what makes a face look human. After training, given a new text prompt, it generates an image that statistically matches those patterns. It doesn't 'understand' beauty or creativity the way humans do — it's sophisticated pattern matching.

What ethical issues surround AI-generated art?

Key ethical issues include: copyright (was the art trained on copyrighted works without permission?), artist credit (should artists whose styles were imitated be compensated?), misinformation (can AI art be used to deceive?), and job displacement (are professional illustrators losing income?). Courts and governments are still working out the legal answers. Many artists are angry; some are adapting by using AI as a tool themselves.

What is 'AI code generation'?

AI code generation tools like GitHub Copilot, Cursor, and Claude can write, explain, and debug code from natural language descriptions. You type 'write a Python function that reads a CSV and calculates the average of column B' and get working code in seconds. These tools dramatically speed up software development and make programming more accessible to beginners. They're trained on billions of lines of public code from the internet.

What is 'retrieval-augmented generation' (RAG)?

RAG combines a generative AI model with a retrieval system that looks up relevant documents before generating an answer. Instead of relying only on what it learned during training (which can go stale), the model first searches a database for current, relevant information, then generates an answer based on those retrieved facts. It reduces hallucinations and allows AI to answer questions about recent events or specialized private knowledge.

What is 'text-to-speech' AI?

Text-to-speech (TTS) AI converts written text into natural-sounding spoken audio. Modern AI TTS (like ElevenLabs, Google WaveNet, or OpenAI's text-to-speech) can clone voices, adjust tone and emotion, and produce speech virtually indistinguishable from a real human. It's used in audiobooks, accessibility tools for the visually impaired, video narration, and virtual assistants. Misuse to clone someone's voice without consent is a serious ethical concern.

What is 'fine-tuning' a generative model?

Fine-tuning takes a large pre-trained generative model and trains it further on a smaller, specialized dataset to make it better at a specific task or style. A general image model fine-tuned on thousands of anime images will produce much better anime-style art. A language model fine-tuned on medical records will give more accurate medical advice. Fine-tuning is faster and cheaper than training from scratch.

What is 'inpainting' in AI image generation?

Inpainting lets you select a specific region of an image and ask the AI to fill it in or replace it with something new. You could remove an unwanted person from a photo, replace a cloudy sky with a sunny one, or add new objects to an existing scene. Professional photo editors in advertising and film use inpainting to make changes that would have taken hours in traditional editing software now take seconds.

What is 'AI-generated text detection' and why is it needed?

AI text detection tools try to identify whether text was written by a human or an AI. As AI writing becomes more fluent and indistinguishable, teachers, news editors, and publishers want to detect AI-written content. Tools like GPTZero and Turnitin's AI detector analyze statistical patterns in writing. However, they're imperfect — they can falsely accuse human writers, and AI writers can evade detection by mixing AI and human writing.

What is a 'foundation model'?

A foundation model is a very large AI model trained on a broad dataset that can be adapted for many different tasks. GPT-4, DALL-E 3, and Claude are foundation models. Instead of training a separate model for each task, you use one massive model and fine-tune or prompt it for your specific need. Foundation models require enormous computing resources to train — typically only large companies or well-funded research labs can do it.

What is 'multimodal AI'?

Multimodal AI can process and generate multiple types of data — text, images, audio, and video — in one model. GPT-4V can look at a photo and discuss what's in it. Gemini can switch between text, images, and audio in one conversation. Humans naturally combine senses; multimodal AI tries to do the same. It enables richer interactions: showing the AI a photo and asking questions about it in plain text.

What is 'AI video dubbing'?

AI video dubbing translates speech in a video and generates new audio in a different language, then synchronizes the AI-generated speech to match the original speaker's lip movements. What used to require human voice actors and expensive animation work can now be done automatically. Streaming platforms and education companies use AI dubbing to quickly make content accessible in dozens of languages at a fraction of the traditional cost.

What is 'generative adversarial network' training instability?

GAN training is notoriously difficult because both networks must improve at the same pace. If the discriminator gets too good too fast, the generator gives up and produces nothing useful. If the generator fools the discriminator too easily, the discriminator stops improving. This leads to problems like 'mode collapse' (the generator produces only one type of output). Researchers developed improved training techniques like Wasserstein GANs to address these issues.

What creative careers are emerging because of generative AI?

New generative-AI-powered careers include: AI art director (guiding image generators for commercial work), AI musician (composing with AI tools), prompt engineer (crafting expert instructions), AI content creator (producing scaled personalized content), AI VFX artist (using AI for film visual effects), and AI game designer (generating assets and narratives). These roles combine traditional creative skills with AI fluency — mastering both is the competitive edge.

What is 'AI-generated 3D content'?

AI is beginning to generate full 3D models, environments, and textures from text descriptions or single images. Tools like Point-E and DreamFusion can produce 3D objects from prompts. Game developers, product designers, and architects are excited because creating 3D assets traditionally takes skilled artists many hours. AI-generated 3D content could dramatically speed up game development and product prototyping, though quality still lags behind 2D image generation.

What is 'synthetic data' and why is it useful?

Synthetic data is artificially generated data that mimics real data but contains no actual personal information. AI companies generate synthetic data to train models when real data is scarce, expensive, or privacy-sensitive. For example, generating millions of synthetic medical records to train a disease-diagnosis AI — without needing real patient data that would raise privacy concerns. High-quality synthetic data can match or even outperform real data in some training scenarios.

What is 'conditioning' in generative AI models?

Conditioning means guiding a generative model's output using specific inputs — text, a style image, a sketch, or a sound. Instead of generating randomly, the model 'conditions' its output on the signal you provide. Text-to-image generation is conditioning on text. ControlNet for Stable Diffusion lets you condition on a pose or outline — the AI generates an image that matches your input structure. Conditioning gives users precise creative control.

How might generative AI change the future of entertainment?

Generative AI could enable fully personalized movies where the plot adapts to each viewer's choices, video games with infinite AI-generated worlds and NPCs that hold real conversations, music that scores itself to your mood in real time, and interactive storytelling where AI co-writes narratives with you. While human creativity won't disappear, the tools creators use — and the experiences audiences have — will be transformed profoundly in the coming decade.

What is 'watermarking' AI-generated content?

AI watermarking embeds an invisible digital signature into generated images, audio, or video to identify that AI created them. Companies like Adobe and Google are developing watermarking standards so people can verify whether content is AI-generated. This helps fight misinformation, protect authentic journalism, and ensure proper disclosure. Detection-resistant watermarks are an active research area because sophisticated tools can sometimes remove or detect and strip watermarks.

What is the 'latent space' of a generative AI model?

The latent space is a compressed mathematical representation of the data the model has learned. Each point in the latent space represents a possible output. Moving through the latent space smoothly produces smoothly changing outputs — for example, slowly morphing from a cat face to a dog face. Artists can explore latent spaces to find interesting creative in-between images. It's the AI's 'imagination' expressed as a mathematical map.

What is 'AI writing assistance' and how is it different from AI replacing writers?

AI writing assistance helps human writers — suggesting next sentences, fixing grammar, expanding bullet points, or overcoming writer's block. The human still decides the message, direction, and editorial judgment. This is different from AI fully replacing writers, where AI produces finished content without meaningful human input. The ethical middle ground that most professionals occupy is 'AI-assisted writing' — using AI as a sophisticated writing partner rather than a ghostwriter.

What is 'generative AI' doing in scientific research?

Generative AI is accelerating science in remarkable ways: AlphaFold predicted the 3D structure of nearly every known protein, solving a 50-year challenge. AI generates candidate drug molecules with desired properties, shortcutting years of lab work. Climate models use generative AI to run faster simulations. In materials science, AI proposes new battery or superconductor materials. Generative AI is becoming a scientific co-investigator rather than just a tool.

Can generative AI replace human creativity?

AI can generate impressive poems, images, and songs, but it lacks genuine lived experience, emotion, intention, or the desire to say something meaningful. It mimics patterns from human creativity rather than inventing from authentic experience. Most experts believe AI is a powerful creative tool that extends human creativity rather than replacing it — the way cameras didn't kill painting. The most compelling future art will likely be deep collaborations between human imagination and AI capability.

What is 'prompt-to-3D' animation generation?

Prompt-to-3D animation is an emerging generative AI capability where you describe an animated 3D scene in text — 'a cartoon robot walking through a forest in autumn' — and the AI generates the full 3D animated clip. Companies like Runway and research projects from Meta and Google are building these systems. It's still in early stages, but within a few years it could allow a single person to produce animated films that once required teams of dozens.

What is 'Sora' by OpenAI?

Sora is OpenAI's text-to-video generative AI model that can produce realistic, high-definition video clips up to one minute long from text descriptions. Announced in 2024, it can simulate complex physical interactions, camera movements, and consistent characters across a scene. It represents a major leap in video generation quality. Sora opened debate about its potential for rapid content creation, but also for misuse in creating convincing fake videos.

What is 'prompt-to-music' generation?

Prompt-to-music AI creates original songs and compositions directly from text descriptions. You type 'an upbeat jazz instrumental with piano and trumpet, energetic, 90 BPM' and the AI generates a unique track. Tools like Suno, Udio, and MusicGen can produce vocals, lyrics, and full arrangements in seconds. This gives anyone — regardless of musical training — the ability to quickly prototype soundtracks, jingles, or full songs for creative projects.

What is a 'model card'?

A model card is a documentation document that AI developers publish alongside a generative AI model. It describes the model's intended use cases, training data sources, known limitations, potential biases, and evaluation results. Think of it like a nutrition label on food — it helps users make informed decisions about whether the model is appropriate for their use. Model cards are a responsible AI practice promoted by Google, Hugging Face, and others.

What is 'text-to-image' vs 'image-to-image' generation?

Text-to-image creates a new image entirely from a text description — you describe, AI draws. Image-to-image takes an existing image and transforms it based on prompts — you might start with a sketch and ask the AI to make it look like a watercolor painting. Image-to-image preserves the general structure and layout of the original while applying the style, level of detail, or other changes you specify. Both modes are available in tools like Stable Diffusion and DALL-E.

What is 'Claude' and who made it?

Claude is a family of large language models and AI assistants made by Anthropic, an AI safety company. Claude is designed to be helpful, harmless, and honest — with a strong focus on safety and avoiding harmful outputs. Anthropic was founded in 2021 by former OpenAI researchers, including Dario and Daniela Amodei. Claude competes with ChatGPT and Gemini and is known for handling long documents, careful reasoning, and nuanced responses.

What is 'Gemini' by Google?

Gemini is Google's family of large multimodal AI models, designed to process and generate text, images, audio, and video. Gemini powers many Google products including Google Search AI overviews, Gmail's help me write feature, and Google Workspace AI tools. It competes directly with GPT-4 from OpenAI and Claude from Anthropic. Gemini models range from Nano (runs on phones) to Ultra (Google's most powerful, runs in data centers).

What is 'constitutional AI'?

Constitutional AI is a technique developed by Anthropic to align language models with a set of principles (a 'constitution'). Instead of only using human feedback, the AI is trained to critique and revise its own outputs based on written principles like 'be helpful,' 'avoid harmful content,' and 'be honest.' This reduces reliance on costly human labeling for every type of harmful content and makes the model's values more transparent and auditable.

What is 'AI-generated code' and what risks does it carry?

AI-generated code is software written automatically by AI tools like GitHub Copilot, Claude, or ChatGPT from natural language descriptions or by completing existing code. It dramatically speeds up development, but carries risks: the AI may generate code with security vulnerabilities, subtle bugs, or outdated patterns. Developers must review AI-generated code carefully rather than blindly accepting it — understanding what the code does remains the developer's responsibility even when AI writes it.

What is 'multimodal generation' in generative AI?

Multimodal generation lets one AI model both understand and create content across multiple media types — text, images, audio, and video — in a single interaction. You could show a model a photo and ask it to write a poem about the scene, or describe a sound and have it generate the audio. GPT-4V, Gemini Ultra, and Claude with vision are examples of multimodal models. True multimodal generation that produces images, audio, and text in one model is an active area of research.

What is the 'scaling law' in generative AI?

Scaling laws describe the predictable relationship between model size, training data, computing power, and performance. Research by OpenAI and others found that as you scale up all three (more parameters, more data, more compute) in proportion, performance improves smoothly and predictably. This insight drove the race to build ever-larger models. The Chinchilla paper (2022) refined scaling laws, showing that many large models were undertrained and that doubling data could be as effective as doubling model size.

What is 'AI avatar generation'?

AI avatar generation creates personalized digital representations of people — realistic animated faces, cartoon versions, or fully synthetic characters — that can be used in videos, virtual meetings, games, or social media. Tools like HeyGen, D-ID, and Synthesia generate talking avatars that lip-sync to any audio, enabling companies to produce multilingual video content without filming the same person repeatedly. Ethics concerns focus on consent, identity fraud, and deepfake misuse.

Why is 'evaluation' of generative AI outputs difficult?

Unlike classification models where you check if the answer is right or wrong, generative AI outputs — poems, stories, summaries, images — can be good or bad in many subjective ways. A poem might be grammatically correct but emotionally flat. An image might be technically impressive but not match the prompt. Evaluation relies on human ratings, automated metrics (like BLEU for translation, FID for images), and increasingly, using AI to evaluate AI outputs — which has its own biases and limitations.

Put it into practice with AI Learning

This topic — and hundreds more — comes from our free, offline AI Learning app. Practice Q&A, quizzes and cheat sheets anywhere, no account needed.

  • Free
  • No account
  • Works offline
Coming soon toGoogle Play