AI Foundations for Developers COURSE·LESSON 02 OF 410 completed

AI, Machine Learning, and Generative Models

Put the vocabulary in the right places

Artificial intelligence is the broad field of building systems that perform tasks associated with intelligence. It includes search, planning, rule systems, machine learning, and more. Machine learning fits patterns from data instead of requiring every decision rule to be written manually. Deep learning uses neural networks with multiple learned layers. A foundation model is trained on broad data and can be adapted to many downstream tasks; it need not be a language model.

A discriminative system predicts a label or value from input: is this email spam? A generative system models data well enough to produce new content: continue a paragraph or generate an image. These are useful distinctions rather than perfectly exclusive product categories. A generative model can perform classification by generating a label.

Rendering diagram…
flowchart TD
  A[Artificial intelligence] --> B[Rules and search]
  A --> C[Machine learning]
  C --> D[Trees and linear models]
  C --> E[Deep learning]
  E --> F[Many language and vision models]

Learning paradigms through Acorn

  • Supervised learning: use tickets labeled billing, bug, or account to learn a ticket classifier.
  • Unsupervised learning: cluster unlabeled tickets to discover recurring themes. Clusters still require interpretation.
  • Self-supervised learning: create training targets from the data itself, such as predicting the next token from previous tokens. Labels need not be manually written for every example.
  • Reinforcement learning: learn behavior from rewards for actions in an environment. A reward is a training signal; it is not automatically the true product objective.

Training adjusts model parameters. Inference uses those learned parameters to process a new input. Uploading a file into a chat normally supplies inference context; it does not necessarily change the weights.

A model is one component

An AI product also contains user authentication, data access, prompts, retrieval, validation, user interface, logging, and fallback behavior. If an answer leaks another customer's invoice, that is an application failure even if the generated sentence is fluent.

Consider a support classifier. A rule matching refund is transparent but misses “I want my money back.” A learned classifier can generalize, but it can also misclassify uncommon requests. A generative assistant can draft a reply, but needs current policy and approval rules.

Checkpoint with answers

Is every AI application an LLM application? No. A fraud classifier, search planner, or image detector may use completely different methods.

Is next-token prediction unsupervised because no person labels the tokens? It is usually described as self-supervised: the training target is derived from the text.

Does a fluent answer prove the system understands a policy correctly? No. Fluency and policy correctness must be evaluated separately.

Exercise

Classify these tasks: predicting tomorrow's ticket count, grouping complaints, drafting a reply. Answer: supervised regression if historical counts supply targets; unsupervised clustering; generative text production. An implementation may combine methods.

Learn at your own pace0 / 41 lessons complete