1. Home
  2. Explore
  3. Computer Science
  4. Introduction to Machine Learning

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Introduction to Machine Learning

  • 53Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Learning Foundations

Which idea is central to the classic definition of machine learning as learning without being explicitly programmed?

53 questions

  1. 1

    Which idea is central to the classic definition of machine learning as learning without being explicitly programmed?

    1. A

      A system follows a fixed set of hand-written rules but executes them more quickly than a person.

    2. B

      A system uses examples to improve its predictions or decisions instead of receiving a hand-written rule for every case.

    3. C

      A system can learn only when a human labels every possible output in advance.

    4. D

      A system stores its input data without using them to make predictions or decisions.

    Correct answer
    B

    A system uses examples to improve its predictions or decisions instead of receiving a hand-written rule for every case.

    Explanation

    The classic definition emphasizes that a computer can learn from data rather than being explicitly programmed with rules for each decision.

  2. 2

    In Mitchell’s definition of learning, what do the symbols EEE, TTT, and PPP represent?

    1. A

      The training set, the test set, and the validation score.

    2. B

      The model, its parameters, and the optimization procedure.

    3. C

      The experiences used, the task, and the performance measure.

    4. D

      The input features, the output labels, and the training algorithm.

    Correct answer
    C

    The experiences used, the task, and the performance measure.

    Explanation

    Mitchell describes a program as learning from experience EEE with respect to tasks TTT and performance measure PPP when performance improves with experience.

  3. 3

    Which example best illustrates what “experience” can mean in a modern machine-learning setting?

    1. A

      Only records generated by a model after it has finished training.

    2. B

      Only examples annotated by human experts.

    3. C

      Data from the web, human labels, real-world interaction, or synthetic examples.

    4. D

      Only measurements collected directly from physical sensors.

    Correct answer
    C

    Data from the web, human labels, real-world interaction, or synthetic examples.

    Explanation

    Experience is a broad term for the information a model learns from. It can include web data, real-world data, human-labeled data, and synthetic data.

  4. 4

    Why is a performance measure important in a definition of machine learning?

    1. A

      It determines how many input features must be collected.

    2. B

      It replaces the need for experience or training data.

    3. C

      It specifies the goal used to judge whether learning has improved.

    4. D

      It guarantees that the model will generalize to every possible task.

    Correct answer
    C

    It specifies the goal used to judge whether learning has improved.

    Explanation

    A performance measure defines what counts as doing better, giving the learning process a goal such as accuracy or game-winning rate.

  5. 5

    A model is trained on increasingly large datasets, but its measured performance does not improve. What conclusion best follows from the lecture’s account of learning?

    1. A

      The model is not demonstrating learning under that performance measure.

    2. B

      The performance measure is irrelevant once training has begun.

    3. C

      The model must still be learning because it has processed more examples.

    4. D

      The model has necessarily become an unsupervised learner.

    Correct answer
    A

    The model is not demonstrating learning under that performance measure.

    Explanation

    Learning is characterized by improved performance with experience. More data alone does not demonstrate learning if performance does not improve.

  6. 6

    How should the lecture’s three-part taxonomy of supervised, unsupervised, and reinforcement learning be understood?

    1. A

      As a permanent taxonomy that the field has fully standardized.

    2. B

      As a list of application areas that cannot overlap with one another.

    3. C

      As a strict division in which every method belongs to exactly one category.

    4. D

      As a useful way to organize methods, rather than a universally agreed-upon final classification.

    Correct answer
    D

    As a useful way to organize methods, rather than a universally agreed-upon final classification.

    Explanation

    The lecture presents the taxonomy as a reasonable viewpoint, while noting that the field has no universal consensus and that the categories can intersect.

  7. 7

    Why might supervised learning be described as a method or tool rather than the ultimate goal of a modern AI system?

    1. A

      Because supervised learning can only be used for image classification.

    2. B

      Because supervised learning cannot use labeled examples.

    3. C

      Because broad-purpose systems may use supervised learning as one technique among several.

    4. D

      Because general-purpose systems do not require any learning methods.

    Correct answer
    C

    Because broad-purpose systems may use supervised learning as one technique among several.

    Explanation

    The lecture distinguishes learning paradigms from end goals: supervised learning can help build general-purpose agents without itself being the final goal.

  8. 8

    Which statement correctly describes supervised fine-tuning (SFT) in the lecture?

    1. A

      It is one form of supervised learning used in building models.

    2. B

      It is a performance measure used only for reinforcement learning.

    3. C

      It is a type of clustering that groups unlabeled examples.

    4. D

      It is a method for generating images from random noise.

    Correct answer
    A

    It is one form of supervised learning used in building models.

    Explanation

    The lecture identifies SFT, or supervised fine-tuning, as one form of supervised learning.

  9. 9

    In a house-price prediction dataset, what do xxx and yyy typically represent?

    1. A

      xxx is the model’s performance score, and yyy is its training experience.

    2. B

      xxx is an input such as square footage, and yyy is the output price.

    3. C

      xxx is the house label, and yyy is the number of training examples.

    4. D

      xxx is the predicted price, and yyy is the house’s square footage.

    Correct answer
    B

    xxx is an input such as square footage, and yyy is the output price.

    Explanation

    The lecture uses xxx for an input, such as square footage, and yyy for the output to predict, such as price.

  10. 10

    A learner uses house size to predict price. What does fitting a line or a quadratic function do in this example?

    1. A

      It converts the price into a category without using house size.

    2. B

      It creates a mapping from the input size to a predicted price.

    3. C

      It guarantees that every prediction will equal the true selling price.

    4. D

      It groups houses by similarity without predicting an output.

    Correct answer
    B

    It creates a mapping from the input size to a predicted price.

    Explanation

    A fitted function represents a relationship between the input and output, allowing the model to predict a price for a given house size.

  11. 11

    A dataset uses square footage, lot size, and number of floors to predict house price. How should these input values be interpreted?

    1. A

      As separate output labels that the model must choose among.

    2. B

      As different names for the model’s predicted price.

    3. C

      As multiple performance measures for one example.

    4. D

      As multiple features describing each example.

    Correct answer
    D

    As multiple features describing each example.

    Explanation

    Features or inputs are the values given to the model. Multiple characteristics of a property make the input higher-dimensional.

  12. 12

    Which terminology pair matches the usage described in the lecture?

    1. A

      Features can mean outputs, while labels can mean optimization algorithms.

    2. B

      Features can mean performance scores, while labels can mean input dimensions.

    3. C

      Features can mean model parameters, while labels can mean unlabeled examples.

    4. D

      Features can mean inputs, while labels can mean outputs supplied for inputs.

    Correct answer
    D

    Features can mean inputs, while labels can mean outputs supplied for inputs.

    Explanation

    The lecture notes that “features” and “inputs” can refer to the given values, while “labels” can refer to designated outputs for those inputs.

  13. 13

    A model predicts the sale price of a home as a numerical value. What type of problem is this?

    1. A

      Clustering, because the output is associated with a property.

    2. B

      Reinforcement learning, because prices may change over time.

    3. C

      Classification, because the model predicts one output for each home.

    4. D

      Regression, because the output is a continuous quantity.

    Correct answer
    D

    Regression, because the output is a continuous quantity.

    Explanation

    Predicting a continuous value such as price is regression.

  14. 14

    A model decides whether an image depicts a house or a townhouse. What type of problem is this?

    1. A

      Classification, because the output is one of a finite set of categories.

    2. B

      Clustering, because the categories are represented by different labels.

    3. C

      Regression, because the model receives numerical input features.

    4. D

      Reinforcement learning, because the model must select an output.

    Correct answer
    A

    Classification, because the output is one of a finite set of categories.

    Explanation

    House and townhouse are discrete categories, so assigning one of them to an input is classification.

  15. 15

    In a two-feature classification problem, what does a decision boundary do?

    1. A

      It converts every class label into a continuous numerical output.

    2. B

      It groups examples without reference to any class labels.

    3. C

      It identifies which input feature was collected most recently.

    4. D

      It separates regions of the input space assigned to different classes.

    Correct answer
    D

    It separates regions of the input space assigned to different classes.

    Explanation

    A classifier can divide the input plane into regions, assigning different classes to points on different sides of a boundary.

  16. 16

    Why can a house-price problem become higher-dimensional when more property details are included?

    1. A

      Each additional input characteristic adds another dimension to the input description.

    2. B

      Each additional input characteristic makes the output necessarily multidimensional.

    3. C

      Each additional input characteristic eliminates the need for training examples.

    4. D

      Each additional input characteristic converts the continuous price into a label.

    Correct answer
    A

    Each additional input characteristic adds another dimension to the input description.

    Explanation

    Adding inputs such as lot size, floors, condition, or ZIP code increases the number of dimensions used to describe each property.

  17. 17

    For image classification, which pairing best matches the input and output described in the lecture?

    1. A

      Input: a bounding box; output: a continuous house-price estimate.

    2. B

      Input: raw image pixels; output: a discrete label for the main object.

    3. C

      Input: a word count; output: a sequence of image pixels.

    4. D

      Input: an object label; output: the raw pixels of the image.

    Correct answer
    B

    Input: raw image pixels; output: a discrete label for the main object.

    Explanation

    In image classification, the raw pixels form the input and the main object category is the discrete output label.

  18. 18

    What role did a large labeled image dataset such as ImageNet play in the image-classification example?

    1. A

      It provided only unlabeled images for discovering document topics.

    2. B

      It provided many image-and-label pairs for training image classifiers.

    3. C

      It supplied sequential robot actions and rewards for trial-and-error learning.

    4. D

      It replaced images with word vectors for language translation.

    Correct answer
    B

    It provided many image-and-label pairs for training image classifiers.

    Explanation

    The lecture describes ImageNet as a large collection of image-label pairs that supported training image-classification models.

  19. 19

    In object localization, how can a rectangular bounding box be specified using the representation described in the lecture?

    1. A

      By giving one class label and three confidence scores.

    2. B

      By giving the two coordinates of one corner and the two coordinates of the opposite corner.

    3. C

      By giving the object’s width and its predicted category only.

    4. D

      By giving four pixel colors from the center of the object.

    Correct answer
    B

    By giving the two coordinates of one corner and the two coordinates of the opposite corner.

    Explanation

    Two coordinates for the bottom-left corner and two for the top-right corner uniquely specify a rectangular box.

  20. 20

    How is machine translation represented as a supervised learning problem?

    1. A

      Both language texts are unlabeled inputs that must be clustered.

    2. B

      The model receives a reward but no text examples or target translations.

    3. C

      The source-language text is the output, and the translation is an input feature.

    4. D

      The source-language text is the input, and its translation is the output.

    Correct answer
    D

    The source-language text is the input, and its translation is the output.

    Explanation

    The lecture describes translation as mapping an input sentence in one language to an output sentence in another.

  21. 21

    Why can predicting the next token in a language model be viewed as classification?

    1. A

      The model directly predicts four coordinates for each word.

    2. B

      The model chooses among a discrete set of possible next tokens.

    3. C

      The model predicts a continuous price for every possible token.

    4. D

      The model groups completed documents without choosing any output.

    Correct answer
    B

    The model chooses among a discrete set of possible next tokens.

    Explanation

    A next token is selected from a finite vocabulary, making the prediction a choice among discrete labels.

  22. 22

    What is the defining difference between supervised and unsupervised learning in the examples discussed?

    1. A

      Supervised learning has input-output examples, whereas unsupervised learning has inputs without supplied outputs.

    2. B

      Supervised learning learns from more data, whereas unsupervised learning learns from no data.

    3. C

      Supervised learning uses only images, whereas unsupervised learning uses only text.

    4. D

      Supervised learning predicts continuous values, whereas unsupervised learning predicts discrete labels.

    Correct answer
    A

    Supervised learning has input-output examples, whereas unsupervised learning has inputs without supplied outputs.

    Explanation

    Unsupervised learning is described as working with inputs when the corresponding outputs or labels are not provided.

  23. 23

    What is the broad aim of unsupervised learning as described in the lecture?

    1. A

      To fit a known output using only one input feature.

    2. B

      To maximize a reward after every action in a sequence.

    3. C

      To find useful structure or patterns in data without relying on supplied labels.

    4. D

      To reproduce labels that have already been assigned by a human.

    Correct answer
    C

    To find useful structure or patterns in data without relying on supplied labels.

    Explanation

    Unsupervised learning seeks patterns or structure from input data without output labels, though what counts as interesting structure depends on the method.

  24. 24

    What does clustering aim to do?

    1. A

      Assign an exact continuous target value to every data point.

    2. B

      Translate every input into a sentence in another language.

    3. C

      Order actions according to their effect on a future reward.

    4. D

      Group data points that are similar to one another.

    Correct answer
    D

    Group data points that are similar to one another.

    Explanation

    Clustering identifies groups of data points that are similar, even when labels for those groups are not provided.

  25. 25

    How could clustering help analyze gene-expression data in the example?

    1. A

      It could assign a house price to each gene-expression measurement.

    2. B

      It could translate gene names into another language without training data.

    3. C

      It could directly prove which individual gene causes a particular disease.

    4. D

      It could group individuals with similar expression patterns for further investigation.

    Correct answer
    D

    It could group individuals with similar expression patterns for further investigation.

    Explanation

    Grouping individuals with similar gene-expression patterns can help identify types or patterns for further study, such as investigating possible disease relationships.

  26. 26

    How is a word-document table constructed in the lecture’s document example?

    1. A

      Each entry records the reward received for generating a particular word.

    2. B

      Each entry records whether a document was written by a particular author.

    3. C

      Each entry records the coordinates of an object in a document image.

    4. D

      Each entry records how often a particular word appears in a particular document.

    Correct answer
    D

    Each entry records how often a particular word appears in a particular document.

    Explanation

    The table represents documents by counting how often each word appears in each document.

  27. 27

    What pattern can emerge after documents and words are reordered using a method such as latent semantic analysis (LSA)?

    1. A

      Every document can be assigned a verified theorem proof.

    2. B

      The output labels can be converted into house-price estimates.

    3. C

      Groups of documents with related word patterns can become easier to see.

    4. D

      The model can guarantee that every word has only one meaning.

    Correct answer
    C

    Groups of documents with related word patterns can become easier to see.

    Explanation

    Reordering can reveal groups of documents that share word patterns, such as documents about space launches or environmental pollution.

  28. 28

    What is a word embedding in the account given?

    1. A

      A sequence of rewards assigned to a robot’s actions.

    2. B

      A human-written label attached to an image.

    3. C

      A bounding box that locates a word in a document.

    4. D

      A numerical vector representation of a word.

    Correct answer
    D

    A numerical vector representation of a word.

    Explanation

    The lecture describes representing each word as a numerical vector, often in a high-dimensional space.

  29. 29

    What relationship can be reflected by nearby word vectors?

    1. A

      Words with similar meanings can have similar vector representations.

    2. B

      Words with similar vectors must always be output labels for images.

    3. C

      Words with similar meanings must have identical spellings.

    4. D

      Words appearing in the same sentence must have opposite vectors.

    Correct answer
    A

    Words with similar meanings can have similar vector representations.

    Explanation

    The lecture notes that semantically similar words, such as names of capital cities, can have nearby vector representations.

  30. 30

    What does a consistent direction between country and capital word vectors illustrate?

    1. A

      Vector offsets can encode relationships, such as country-to-capital, across different word pairs.

    2. B

      Every word vector directly stores the full text of its definition.

    3. C

      The direction of a vector determines the number of times a word appears in a document.

    4. D

      A word vector can only represent whether a word is a noun or verb.

    Correct answer
    A

    Vector offsets can encode relationships, such as country-to-capital, across different word pairs.

    Explanation

    The lecture gives country-to-capital relationships as an example of a relation that can correspond to a direction in embedding space.

  31. 31

    What kind of data was used to learn the word embeddings described in the lecture?

    1. A

      Only pairs of countries and their capital cities supplied as labels.

    2. B

      Only reward-labeled robot trajectories.

    3. C

      Unlabeled text, including large collections such as Wikipedia.

    4. D

      Only manually labeled images of household objects.

    Correct answer
    C

    Unlabeled text, including large collections such as Wikipedia.

    Explanation

    The embeddings were described as being learned from unlabeled text, with Wikipedia given as an example of a corpus.

  32. 32

    What is the basic structure of a neural network as described in the lecture?

    1. A

      It has only a table of labels and no adjustable values.

    2. B

      It consists of a sequence of human-written rules with no learned parameters.

    3. C

      It has connected computational units and parameters associated with the connections.

    4. D

      It is a collection of input examples arranged into clusters.

    Correct answer
    C

    It has connected computational units and parameters associated with the connections.

    Explanation

    The lecture uses the analogy of neurons as nodes and connections as synapses, with network parameters associated with those connections.

  33. 33

    What is the role of a loss function when training a model?

    1. A

      It quantifies how poorly or well the model’s predictions match the training objective.

    2. B

      It specifies the number of labels that exist in the dataset.

    3. C

      It determines which course topic a model belongs to.

    4. D

      It generates new input examples without using a model.

    Correct answer
    A

    It quantifies how poorly or well the model’s predictions match the training objective.

    Explanation

    A loss function provides a quantity that training can use to guide changes to the model.

  34. 34

    Why are gradients useful when training a neural network?

    1. A

      They make the network’s outputs discrete rather than continuous.

    2. B

      They identify which examples were collected from the web.

    3. C

      They assign a human-readable label to every input.

    4. D

      They indicate how changes to model parameters affect the loss.

    Correct answer
    D

    They indicate how changes to model parameters affect the loss.

    Explanation

    Gradients describe how the loss changes with the model’s parameters, providing information used to update the model.

  35. 35

    What does backpropagation do in neural-network training?

    1. A

      It samples a sequence of tokens from a probability distribution.

    2. B

      It efficiently computes gradients through the network.

    3. C

      It groups unlabeled inputs according to similarity.

    4. D

      It converts a continuous output into a human label.

    Correct answer
    B

    It efficiently computes gradients through the network.

    Explanation

    Backpropagation is the method described for automatically computing gradients through a complex model.

  36. 36

    Why can a neural network have billions of parameters without having billions of neurons?

    1. A

      Parameters are output labels that are counted separately from neurons.

    2. B

      The number of parameters is fixed by the number of classes in the dataset.

    3. C

      Parameters include adjustable connection values, not just the computational units themselves.

    4. D

      Each neuron is always identical to one entire training example.

    Correct answer
    C

    Parameters include adjustable connection values, not just the computational units themselves.

    Explanation

    The lecture distinguishes neurons from parameters, noting that parameters can correspond to connection weights and can vastly outnumber the units.

  37. 37

    Which description best captures a large language model’s general-purpose character in the lecture?

    1. A

      It can only cluster documents according to word counts.

    2. B

      It can be used for many different tasks rather than being limited to one fixed prediction task.

    3. C

      It makes decisions without using any learned model.

    4. D

      It is trained to perform only one kind of image classification.

    Correct answer
    B

    It can be used for many different tasks rather than being limited to one fixed prediction task.

    Explanation

    The lecture contrasts general-purpose language models with earlier systems designed to perform one specific task.

  38. 38

    What does pretraining a language model on massive text primarily involve in the account given?

    1. A

      Learning from large-scale text data to model language and make token predictions.

    2. B

      Learning only from explicit human labels for every possible conversation.

    3. C

      Learning to assign bounding boxes to objects in photographs.

    4. D

      Learning only from robot actions and physical rewards.

    Correct answer
    A

    Learning from large-scale text data to model language and make token predictions.

    Explanation

    The lecture describes large language models as general-purpose models learned from massive datasets, with token prediction as a core task.

  39. 39

    Why does the lecture call next-token prediction a classification problem with many classes?

    1. A

      Each possible token is a discrete choice among a large vocabulary.

    2. B

      Each token is represented only by four bounding-box coordinates.

    3. C

      Each next token is a continuous measurement such as a house price.

    4. D

      Each sentence is divided into clusters without selecting a token.

    Correct answer
    A

    Each possible token is a discrete choice among a large vocabulary.

    Explanation

    The model selects a next token from many discrete vocabulary options, which makes the prediction classification-like.

  40. 40

    Why can the way a user phrases a prompt affect a language model’s response?

    1. A

      The prompt changes the model’s vocabulary into continuous price values.

    2. B

      The prompt guarantees the model will have access to new training data.

    3. C

      The prompt replaces the model’s learned parameters with human labels.

    4. D

      The prompt supplies instructions and context that influence the model’s generated output.

    Correct answer
    D

    The prompt supplies instructions and context that influence the model’s generated output.

    Explanation

    The lecture notes that responses depend on how questions are asked and that models can be trained to follow instructions more responsively.

  41. 41

    What is the purpose of training a model to be more responsive to instructions?

    1. A

      To turn all its predictions into continuous numerical values.

    2. B

      To ensure it uses no language-model pretraining.

    3. C

      To make its outputs follow user directions more reliably.

    4. D

      To prevent it from generating more than one token.

    Correct answer
    C

    To make its outputs follow user directions more reliably.

    Explanation

    Instruction-oriented training is described as improving how well a model responds to users’ instructions.

  42. 42

    What is the basic idea of a diffusion model for image generation in the lecture?

    1. A

      It can generate realistic images from noise or from instructions.

    2. B

      It translates image captions into robot actions.

    3. C

      It predicts a house price from the image’s square footage.

    4. D

      It assigns one fixed class label to every unlabeled image.

    Correct answer
    A

    It can generate realistic images from noise or from instructions.

    Explanation

    The lecture describes diffusion models as a way to generate realistic images from noise or instructions.

  43. 43

    Why is image generation described as unsupervised in the example?

    1. A

      The model learns only from a sequence of robot actions and rewards.

    2. B

      The model must receive a human-written class label for every generated pixel.

    3. C

      The model receives no examples and therefore cannot learn image patterns.

    4. D

      The model can learn from image collections without a supplied label for each image.

    Correct answer
    D

    The model can learn from image collections without a supplied label for each image.

    Explanation

    The example involves learning from realistic images without labels and then generating additional images.

  44. 44

    What distinguishes a typical reinforcement-learning task from a one-time prediction task?

    1. A

      The learner groups examples without interacting with an environment.

    2. B

      The learner makes a sequence of actions, and current actions can affect future outcomes.

    3. C

      The learner predicts only continuous outputs and cannot choose actions.

    4. D

      The learner receives a fixed input-output pair and never makes an action.

    Correct answer
    B

    The learner makes a sequence of actions, and current actions can affect future outcomes.

    Explanation

    Reinforcement learning is framed around sequential decisions, where an action taken now can influence later states and outcomes.

  45. 45

    Why is robot walking a useful example of sequential decision-making?

    1. A

      The robot receives a complete correct walking sequence as a label before acting.

    2. B

      The robot predicts a continuous house price after each step.

    3. C

      A movement choice can affect balance and constrain what actions are possible later.

    4. D

      Each movement is independent of every previous movement.

    Correct answer
    C

    A movement choice can affect balance and constrain what actions are possible later.

    Explanation

    In walking, an action can cause the robot to remain upright or fall, affecting its ability to act in the future.

  46. 46

    How does reinforcement learning differ from the traditional fixed-dataset setup described for supervised and unsupervised learning?

    1. A

      It trains only once on a fixed dataset and never gathers feedback.

    2. B

      It requires labels for every possible future action before training.

    3. C

      It can alternate between collecting experience through interaction and training on that experience.

    4. D

      It cannot use data collected by the learner itself.

    Correct answer
    C

    It can alternate between collecting experience through interaction and training on that experience.

    Explanation

    The lecture describes reinforcement learning as a trial-and-error process that iterates between data collection and model training.

  47. 47

    When a robot falls during a walking attempt, why can the attempt still provide useful training data?

    1. A

      The attempt removes the need to evaluate future actions.

    2. B

      A fall proves that the training objective has already been achieved.

    3. C

      A failed attempt automatically supplies the correct label for every future state.

    4. D

      The sequence of actions and observations records experience that can inform later training.

    Correct answer
    D

    The sequence of actions and observations records experience that can inform later training.

    Explanation

    Even a failed trial produces a trajectory of actions and observations that can be used as new experience.

  48. 48

    In the theorem-proving example, how can a model bootstrap its training data?

    1. A

      It clusters theorem statements without generating or checking proofs.

    2. B

      It replaces proof examples with image labels from a separate dataset.

    3. C

      It generates candidate proofs, verifies them, and uses correct proofs as new training examples.

    4. D

      It copies unverified proofs directly into its training set as guaranteed successes.

    Correct answer
    C

    It generates candidate proofs, verifies them, and uses correct proofs as new training examples.

    Explanation

    The model can generate candidate proofs, select verified correct ones, and train on them to help generate more correct proofs in later rounds.

  49. 49

    What role does a reward signal play when improving a language model’s generated text?

    1. A

      It supplies the exact next token for every position in the response.

    2. B

      It indicates how desirable a generated response is and guides later model updates.

    3. C

      It converts each generated response into an image bounding box.

    4. D

      It prevents the model from generating text stochastically.

    Correct answer
    B

    It indicates how desirable a generated response is and guides later model updates.

    Explanation

    A reward, potentially produced by a human or a reward model, provides guidance about the quality of generated text.

  50. 50

    Why can generating text pose a challenge for ordinary gradient-based training?

    1. A

      A generated response cannot be assigned any measure of quality.

    2. B

      A language model generates every token independently of previous tokens.

    3. C

      Sampling a token from a probability distribution is stochastic and is not directly differentiable in the usual way.

    4. D

      Text has no discrete choices, so a gradient cannot be defined.

    Correct answer
    C

    Sampling a token from a probability distribution is stochastic and is not directly differentiable in the usual way.

    Explanation

    The lecture explains that stochastic sampling steps are not directly differentiable in the traditional sense, making ordinary backpropagation through generation difficult.

  51. 51

    Why is generating a response token by token a sequential process?

    1. A

      All tokens are generated independently before the prompt is read.

    2. B

      Earlier generated tokens become context that influences later token generation.

    3. C

      The first token determines only the final reward, not later text.

    4. D

      Each token must be labeled by a human before the next can be generated.

    Correct answer
    B

    Earlier generated tokens become context that influences later token generation.

    Explanation

    The lecture describes each generated token as being fed back into the model to condition the generation of subsequent tokens.

  52. 52

    What is the role of policy gradient in the language-model training example?

    1. A

      It clusters prompts according to their word frequencies.

    2. B

      It converts every text response into a supervised image label.

    3. C

      It computes exact gradients through every discrete sampling step using ordinary backpropagation.

    4. D

      It provides a reinforcement-learning approach for updating a model when generation involves stochastic sampling.

    Correct answer
    D

    It provides a reinforcement-learning approach for updating a model when generation involves stochastic sampling.

    Explanation

    Policy gradient is identified as a technique for dealing with stochastic generation when direct differentiation through sampling is difficult.

  53. 53

    What does the reward model or human reward module evaluate in the language-model training process?

    1. A

      The number of parameters in the model, to determine its size.

    2. B

      The training dataset, to calculate how many documents it contains.

    3. C

      The text generated by the language model, to estimate how good it is.

    4. D

      The input vocabulary, to decide which tokens exist.

    Correct answer
    C

    The text generated by the language model, to estimate how good it is.

    Explanation

    A reward-producing module evaluates generated text and provides a signal that can guide the model toward better responses.

Question 1 of 53
Question 1 of 53

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent