What is Generative AI (GenAI)?
Key Takeaways
Generative AI (GenAI) is a specialized subset of Deep Learning designed to create new, original unstructured artifacts—such as text, code, images, audio, and video—by learning patterns from massive pre-training datasets.
[ Unlabeled Internet Data ] ---> ( Massive Pre-Training ) ---> [ Foundation Model (FM) ]
|
+---------------------+-------------------+---------------------+--------------------+
| | | | |
v v v v v
[ Text Summarization ] [ Chatbot UI ] [ Code Generation ] [ Image Synthesis ] [ Task Extraction ]
Large Language Models (LLMs) and Diffusion Models power this space. Because LLMs operate probabilistically by predicting the next most likely token, their default behavior is non-deterministic (identical prompts can produce different completions).

Main Discussion
The AI Hierarchy & The Foundation Model Paradigm
Generative AI sits at the core of the modern AI hierarchy:
Instead of training isolated, single-purpose models from scratch for every task, the GenAI paradigm relies on Foundation Models (FMs):

- Foundation Models (FMs): Extremely large neural networks trained on vast amounts of unlabeled data. They possess generalized reasoning and multi-task adaptability.

- Resource Scale: Pre-training an enterprise-grade FM requires massive computational clusters, specialized accelerators (e.g., AWS Trainium, GPUs), and tens of millions of dollars, leading most organizations to consume pre-trained models rather than building them from scratch.
- Open-Source vs. Proprietary/Commercial:
- Open-Weights / Open-Source: Meta Llama, Google BERT.
- Commercial / API-Managed: Anthropic Claude, OpenAI GPT-4o, Amazon Titan.
Large Language Models (LLMs) & Next-Token Probability
An LLM is an FM engineered specifically for natural language understanding and generation. It processes user input (Prompts) and generates output iteratively by computing probability distributions over vocabulary tokens.


Why LLMs are Non-Deterministic
Traditional algorithms execute strict, deterministic conditional paths (IF x THEN y). LLMs use probabilistic sampling over candidate tokens. Even with identical prompts, sampling from probability distributions introduces variance across runs unless inference parameters (like Temperature) are set to force deterministic selection.
Image Synthesis Mechanics: Diffusion Models
Modern generative image models (such as Stable Diffusion or Amazon Titan Image Generator) use a two-phase mathematical process:

- Forward Diffusion (Adding Entropy): The model systematically injects Gaussian noise into training images across time steps until the image dissolves into pure static.
- Reverse Diffusion (De-noising / Generation): The model learns to reverse the noise addition. During inference, it begins with random noise and iteratively removes noise guided by text embeddings from the prompt to construct a clean, novel image.
Exam Guide
Exam Tips
- Taxonomy Precision: Remember that Foundation Models are the base architecture, LLMs are text-focused foundation models, and Diffusion Models are primarily used for image/media generation.
- Non-Determinism & Temperature: The exam tests your understanding of model variability. Higher Temperature increases output randomness and creativity, while lowering Temperature toward
0.0makes responses more deterministic and predictable. - Pre-training vs. Consumption: Developing FMs from scratch involves massive capital and compute requirements; standard enterprise architecture focuses on consuming, prompt engineering, fine-tuning, or augmenting existing FMs using services like Amazon Bedrock.
Practice Test
Question 1
A developer submits the exact same prompt to an LLM on Amazon Bedrock twice in separate sessions and receives two slightly different phrasing variations that convey the same core meaning. What fundamental characteristic of Large Language Models explains this behavior?
- A. Supervised regression overfitting
- B. Non-deterministic probabilistic token generation
- C. Lack of IAM permissions on the Bedrock foundation model
- D. High network latency across Availability Zones
Correct Answer
- B. Non-deterministic probabilistic token generation
- Explanation: LLMs generate responses through probabilistic next-token prediction rather than hardcoded deterministic rules. Because candidate tokens are selected from probability distributions during sampling, repeated calls with the same prompt naturally exhibit non-deterministic variations.
Question 2
An AI team wants to implement an image generation pipeline that synthesizes high-resolution product concepts from descriptive text prompts. Which generative AI model architecture is typically employed for this workload?
- A. Transformer-based Masked Language Models
- B. Rule-based Expert Systems
- C. Diffusion Models
- D. Linear Regression Models
Correct Answer
- C. Diffusion Models
- Explanation: Diffusion Models (such as Stable Diffusion) are the predominant generative AI architecture for synthesizing images and video by iteratively removing noise from a random latent space conditioned on text prompt inputs.