1.3 AI, machine learning and deep learning

NCA-AIIO · Essential AI Knowledge (38% of the exam) · Official objective: “Differentiate the concepts of AI, machine learning, and deep learning.”

How the three terms nest inside each other, and where generative AI and LLMs fit.

Key points

  1. A neural network is a model built from layers of simple connected units. NVIDIA says 'deep' represents the many layers of algorithms, or neural networks, used to recognize patterns in data.

    What NVIDIA says (1)

    “The word "deep" in deep learning represents the many layers of algorithms, or neural networks, that are used to recognize patterns in data.”

    — What Is Deep Learning and Why Does It Matter?

  2. Artificial intelligence (AI) is the broad field. NVIDIA describes machine learning as a subset of AI that uses algorithms to parse data, learn from it, and make predictions. Deep learning is a subset of machine learning that can learn representations from data such as images, video or text without human domain knowledge.

    What NVIDIA says (2)

    “As a subset of AI, machine learning in its most elemental form uses algorithms to parse data, learn from it, and then make predictions or determinations about something in the real world.”

    — What is Machine Learning and Why Does It Matter?

    “Deep learning is a subset of machine learning, with the difference that DL algorithms can automatically learn representations from data such as images, video, or text, without introducing human domain knowledge.”

    — What Is Deep Learning and Why Does It Matter?

  3. Generative AI models use neural networks to identify patterns and structures in existing data. They then generate new and original content. NVIDIA says inputs and outputs can include text, image, audio, video and code.

    What NVIDIA says (2)

    “Generative AI models use neural networks to identify the patterns and structures within existing data to generate new and original content.”

    — What is Generative AI and How Does it Work?

    “Generative AI models can take inputs such as text, image, audio, video, and code and generate new content into any of the modalities mentioned.”

    — What is Generative AI and How Does it Work?

  4. A parameter is one of the learned numbers inside a model. NVIDIA says LLMs are trained on internet-scale datasets with hundreds of billions of parameters. That scale has unlocked the ability to generate human-like content.

    What NVIDIA says (1)

    “However, large language models, which are trained on internet-scale datasets with hundreds of billions of parameters, have now unlocked an AI model’s ability to generate human-like content.”

    — What are Large Language Models?

  5. NVIDIA describes training as passing data through layered connections where each neuron assigns weights to its input. The weights are adjusted based on feedback about whether the output was right or wrong. The trained model is, in effect, that balanced set of weights.

    What NVIDIA says (2)

    “Training a neural network, unlike human learning, involves passing data through layered connections where each neuron assigns weights and adjusts based only on “right” or “wrong” feedback.”

    — What's the Difference Between Deep Learning Training and Inference?

    “Now you have a data structure and all the weights in there have been balanced based on what it has learned as you sent the training data through.”

    — What's the Difference Between Deep Learning Training and Inference?

  6. A transformer is the neural network design behind most modern LLMs. NVIDIA says transformers use attention, or self-attention, to detect how even distant elements in a series influence each other. The math transformers use lends itself to parallel processing, so they run fast on parallel hardware like GPUs.

    What NVIDIA says (2)

    “Transformer models apply an evolving set of mathematical techniques, called attention or self-attention, to detect subtle ways even distant data elements in a series influence and depend on each other.”

    — What Is a Transformer Model?

    “In addition, the math that transformers use lends itself to parallel processing, so these models can run fast.”

    — What Is a Transformer Model?

  7. The kind of data you have decides the approach. NVIDIA's ML glossary says supervised learning uses labeled data, while unsupervised learning finds patterns in unlabeled data. Supervised learning trains on labels and features, then predicts labels on new data. Classification, one type of supervised learning, identifies which category an item belongs to.

    What NVIDIA says (3)

    “Supervised learning algorithms use labeled data, unsupervised learning algorithms find patterns in unlabeled data.”

    — What is Machine Learning and Why Does It Matter?

    “It then uses the trained model to predict the labels on a new dataset’s features.”

    — What is Machine Learning and Why Does It Matter?

    “Classification Classification identifies which category an item belongs to based on labeled examples of known items.”

    — What is Machine Learning and Why Does It Matter?

  8. NVIDIA's ML glossary lists supervised, unsupervised and semi-supervised learning, which uses a mix of labeled and unlabeled data. Reinforcement learning is different: it trains algorithms to maximize rewards based on feedback.

    What NVIDIA says (2)

    “Reinforcement learning trains algorithms to maximize rewards based on feedback.”

    — What is Machine Learning and Why Does It Matter?

    “Semi-supervised learning uses a mixture of labeled and unlabeled data.”

    — What is Machine Learning and Why Does It Matter?

  9. This is a key difference between deep learning and traditional ML. NVIDIA's deep learning glossary says the intermediate outputs of one layer, called features, become the input to the next layer. During training, the layers learn the best features for the model, so features do not need to be predetermined.

    What NVIDIA says (2)

    “The intermediate outputs of one layer, called features, are used as the input into the next layer.”

    — What Is Deep Learning and Why Does It Matter?

    “During this process, the layers learn the optimal features for the model, which has the advantage that features do not need to be predetermined.”

    — What Is Deep Learning and Why Does It Matter?

  10. Diffusion models are a family of generative AI models. NVIDIA's generative AI glossary says they train through two steps: forward diffusion slowly adds random noise to training data, and reverse diffusion reverses the noise to rebuild the data samples. Stable Diffusion is a well-known example.

    What NVIDIA says (2)

    “The two steps are forward diffusion and reverse diffusion.”

    — What is Generative AI and How Does it Work?

    “The forward diffusion process slowly adds random noise to training data, while the reverse process reverses the noise to reconstruct the data samples.”

    — What is Generative AI and How Does it Work?

  11. NVIDIA's generative AI glossary says generative AI can use unsupervised and semi-supervised learning on large amounts of unlabeled data to create foundation models. Foundation models serve as a base that can be adapted to many tasks across language, vision, code and other modalities.

    What NVIDIA says (1)

    “Foundation models serve as a base for AI systems that can be adapted to many downstream tasks across language, vision, code, and other modalities.”

    — What is Generative AI and How Does it Work?

Key terms

Try it

Sample question

What does the word 'deep' in deep learning refer to?

Show the answer

Answer: The many layers of neural networks used to recognize patterns in data.

A neural network is a model built from layers of simple connected units. NVIDIA says 'deep' represents the many layers of algorithms, or neural networks, used to recognize patterns in data.

What NVIDIA says (1)

“The word "deep" in deep learning represents the many layers of algorithms, or neural networks, that are used to recognize patterns in data.”

— What Is Deep Learning and Why Does It Matter?

Practice 1.3 (11 questions) Full Essential AI Knowledge guide

← 1.2 Training vs inference · 1.4 Why AI took off →