1. Home
  2. Explore
  3. Computer Science
  4. How Large Language Models Work

Study methods

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

How Large Language Models Work

  • 49Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Transformer Foundations

What key change did the transformer introduce compared with recurrent neural networks (RNNs)?

49 questions

  1. 1

    What key change did the transformer introduce compared with recurrent neural networks (RNNs)?

    1. A

      It stores every training sentence exactly and retrieves it when prompted

    2. B

      It replaces numerical computation with symbolic grammar rules

    3. C

      It processes the full input in parallel rather than reading it strictly one step at a time

    4. D

      It requires a human to label each token before processing

    Correct answer
    C

    It processes the full input in parallel rather than reading it strictly one step at a time

    Explanation

    RNNs process text sequentially, while transformers can examine many tokens in parallel, reducing the limitations of step-by-step processing.

  2. 2

    Why can an RNN have difficulty connecting words that are far apart in a long sentence?

    1. A

      It processes all words simultaneously, so it cannot preserve their original order

    2. B

      It predicts only the first word and ignores the rest of the sentence

    3. C

      It processes words sequentially, so information from early words can become difficult to retain

    4. D

      It converts words into vectors that contain no information about context

    Correct answer
    C

    It processes words sequentially, so information from early words can become difficult to retain

    Explanation

    Because an RNN reads sequentially, it may struggle to retain information from the beginning of a long input by the time it reaches later words.

  3. 3

    In the example “The glass fell to the floor and it shattered,” what does self-attention help the model determine?

    1. A

      That “shattered” is more closely related to “glass” than to “floor” in this context

    2. B

      That every word in the sentence should receive exactly the same importance

    3. C

      That the sentence should be processed without considering relationships between words

    4. D

      That “floor” must be the grammatical subject because it appears near the end

    Correct answer
    A

    That “shattered” is more closely related to “glass” than to “floor” in this context

    Explanation

    Self-attention assigns weights to relationships among words, helping the model connect “shattered” with the glass that shattered.

  4. 4

    What is the purpose of multi-head attention?

    1. A

      It lets multiple attention heads analyze different kinds of relationships and combine their results

    2. B

      It makes each attention head process a separate sentence without sharing information

    3. C

      It uses multiple models to generate competing final answers for a human to rank

    4. D

      It assigns one attention head to each token and prevents the heads from interacting

    Correct answer
    A

    It lets multiple attention heads analyze different kinds of relationships and combine their results

    Explanation

    Different attention heads can focus on different features, such as grammar, pronoun references, or tone, and their insights are combined.

  5. 5

    Why are transformers able to process input in parallel more effectively than the sequential RNN approach described?

    1. A

      They convert every sentence into a single token before processing it

    2. B

      They depend on a human to identify which words are important

    3. C

      They can evaluate relationships across many tokens without waiting to finish processing each earlier token

    4. D

      They avoid all computation by retrieving complete answers from a stored database

    Correct answer
    C

    They can evaluate relationships across many tokens without waiting to finish processing each earlier token

    Explanation

    Transformers can calculate relationships across tokens in parallel, rather than passing information through a strictly sequential chain.

  6. 6

    What is a token in the described language-model pipeline?

    1. A

      A numerical score that indicates whether a response is safe

    2. B

      A piece of text, such as a whole word or a smaller word fragment, that is processed by the model

    3. C

      A complete sentence stored with its meaning and source in a database

    4. D

      A rule that specifies the grammatical role of every word

    Correct answer
    B

    A piece of text, such as a whole word or a smaller word fragment, that is processed by the model

    Explanation

    A token can be a whole word, but it is often a smaller piece of a word, such as a common ending.

  7. 7

    Why do language models use reusable text fragments as tokens instead of assigning a unique token to every possible word?

    1. A

      Word fragments ensure that the model never encounters unfamiliar language

    2. B

      A unique token for every word would prevent the model from converting text into numbers

    3. C

      Fragments allow the model to skip learning relationships between words

    4. D

      A smaller set of common fragments can represent many words without requiring an enormous vocabulary

    Correct answer
    D

    A smaller set of common fragments can represent many words without requiring an enormous vocabulary

    Explanation

    Breaking words into reusable chunks makes the vocabulary more manageable than creating a distinct token for every word, spelling variation, or code term.

  8. 8

    What is an embedding in the pipeline described?

    1. A

      A compressed copy of the original sentence stored for exact retrieval

    2. B

      A numerical vector representing a token, allowing the model to perform mathematical operations on it

    3. C

      A human-written definition attached to every token during training

    4. D

      A probability score assigned only after a complete answer is generated

    Correct answer
    B

    A numerical vector representing a token, allowing the model to perform mathematical operations on it

    Explanation

    Embeddings turn tokens into vectors—lists of numbers—that the model can use in its computations.

  9. 9

    What does the “king − man + woman ≈ queen” example illustrate about embeddings?

    1. A

      Words with similar spellings necessarily receive identical numerical representations

    2. B

      The model translates words into labels chosen by human supervisors

    3. C

      The model stores the dictionary definition of each word as a separate sentence

    4. D

      Relationships among concepts can be represented through directions and distances in a vector space

    Correct answer
    D

    Relationships among concepts can be represented through directions and distances in a vector space

    Explanation

    The example illustrates how relationships between concepts can be reflected by mathematical relationships among their vectors.

  10. 10

    What is the core task of a decoder-only language model as described in the content?

    1. A

      Predicting the next token based on the tokens and context available so far

    2. B

      Classifying every input as either safe or unsafe before producing text

    3. C

      Retrieving the most relevant complete paragraph from a training database

    4. D

      Translating every input into a fixed symbolic logic representation

    Correct answer
    A

    Predicting the next token based on the tokens and context available so far

    Explanation

    A decoder-only model is described as a predictive engine that estimates which token should come next.

  11. 11

    How does autoregressive generation produce a longer response?

    1. A

      The model generates the whole response at once and then divides it into tokens

    2. B

      The model predicts only the final token and reconstructs all earlier tokens afterward

    3. C

      A separate human writes each next sentence after reviewing the previous one

    4. D

      The model adds each generated token to the context and uses the expanded context to predict another token

    Correct answer
    D

    The model adds each generated token to the context and uses the expanded context to predict another token

    Explanation

    In autoregressive generation, each new token is fed back into the model as part of the context for predicting subsequent tokens.

  12. 12

    Why can an early incorrect prediction contribute to a hallucination later in a generated response?

    1. A

      The model's probability estimates guarantee that the most likely continuation is factually true

    2. B

      Later predictions are conditioned on earlier output, so a plausible but false token can steer the continuation

    3. C

      An incorrect token automatically stops generation and triggers a human correction

    4. D

      The model verifies every prediction against a complete factual database before continuing

    Correct answer
    B

    Later predictions are conditioned on earlier output, so a plausible but false token can steer the continuation

    Explanation

    The model conditions later predictions on its earlier output. If an early token is plausible but false, later text can build on that mistake.

  13. 13

    What does self-supervised learning mean in the pre-training process described?

    1. A

      Human reviewers write the ideal answer for every sentence in the training corpus

    2. B

      The model learns only from data that has been sorted into explicit topic labels

    3. C

      The model tests itself using questions whose answers are stored separately by teachers

    4. D

      The model learns from patterns in the data by predicting missing or subsequent tokens without a human labeling every example

    Correct answer
    D

    The model learns from patterns in the data by predicting missing or subsequent tokens without a human labeling every example

    Explanation

    During pre-training, the model can use the text itself as a learning signal, such as trying to predict a hidden or next token.

  14. 14

    In the “cover the last word” learning example, what does the model do when its guess differs from the text?

    1. A

      It discards the surrounding context and learns only the isolated word

    2. B

      It adjusts its learned patterns based on the context and the token that actually appeared

    3. C

      It memorizes the sentence verbatim and avoids making future predictions

    4. D

      It asks a human teacher to rewrite the entire book with simpler vocabulary

    Correct answer
    B

    It adjusts its learned patterns based on the context and the token that actually appeared

    Explanation

    The example describes the learner updating its internal model after comparing a guess with the word found in the text.

  15. 15

    What kinds of material are described as sources for large-scale pre-training?

    1. A

      Only curated dictionaries and explicitly labeled examination answers

    2. B

      Only short conversations written specifically by model developers

    3. C

      Books, internet text, scientific papers, code repositories, and legal documents

    4. D

      Primarily photographs, audio recordings, and sensor measurements

    Correct answer
    C

    Books, internet text, scientific papers, code repositories, and legal documents

    Explanation

    The described pre-training data includes varied text sources such as books, online material, research papers, code, and legal documents.

  16. 16

    What kinds of language knowledge can a model acquire from next-token prediction across many contexts?

    1. A

      Only the spelling of isolated words, without information about their use

    2. B

      A complete set of explicitly written grammar rules supplied by teachers

    3. C

      Patterns involving syntax, meaning, and associations among facts and words

    4. D

      Guaranteed factual knowledge that is independent of the training data

    Correct answer
    C

    Patterns involving syntax, meaning, and associations among facts and words

    Explanation

    The model learns patterns of language from context, including syntax, semantics, and associations that may reflect facts mentioned repeatedly.

  17. 17

    Why can a model trained on code predict parts of a program in a way similar to predicting ordinary text?

    1. A

      Code is represented as tokens with patterns and strict syntax that the model can learn to continue

    2. B

      Code is converted into human-written explanations before it enters the model

    3. C

      Programming languages contain no rules, so prediction is unnecessary

    4. D

      The model uses a separate database that stores every possible program

    Correct answer
    A

    Code is represented as tokens with patterns and strict syntax that the model can learn to continue

    Explanation

    The model treats code as another token sequence, learning its recurring patterns and syntax through prediction.

  18. 18

    Which description best captures the “zip file of the internet” analogy for a pre-trained model?

    1. A

      It contains a complete searchable index that returns exact source passages for every prompt

    2. B

      It compresses learned mathematical relationships rather than preserving every training document as an exact retrievable copy

    3. C

      It converts internet content into a list of human-written rules and definitions

    4. D

      It stores every training page word for word but removes the original web addresses

    Correct answer
    B

    It compresses learned mathematical relationships rather than preserving every training document as an exact retrievable copy

    Explanation

    The analogy emphasizes that training weights encode learned relationships and patterns, rather than storing all source text perfectly as a database would.

  19. 19

    Why is the quality of pre-training data important?

    1. A

      Data quality matters only for the model's speed, not for what it generates

    2. B

      Poor data is automatically corrected because next-token prediction verifies facts

    3. C

      Higher-quality data removes the need for the model to learn from examples

    4. D

      Biased or unreliable data can lead the model to learn and reproduce biased or unreliable patterns

    Correct answer
    D

    Biased or unreliable data can lead the model to learn and reproduce biased or unreliable patterns

    Explanation

    A model learns patterns from its training data, so problematic data can contribute to problematic outputs—the “garbage in, garbage out” concern.

  20. 20

    What is one reason large-scale pre-training is described as expensive?

    1. A

      It can require many GPUs running for long periods, consuming substantial computing resources and electricity

    2. B

      It uses no parallel computing, so every training example must be processed by hand

    3. C

      It requires the model to store a separate full copy of every possible response

    4. D

      It requires a human to approve every token generated during training

    Correct answer
    A

    It can require many GPUs running for long periods, consuming substantial computing resources and electricity

    Explanation

    Large training runs can use many GPUs for months, making hardware and electricity costs substantial.

  21. 21

    Why would discovering flawed data halfway through a large training run create a serious problem?

    1. A

      The model would be unable to process tokens after that point

    2. B

      The training data would automatically become impossible to inspect or replace

    3. C

      The model would stop using embeddings and revert to word-by-word reading

    4. D

      Much of the substantial computation and expense may already have been spent training on unsuitable data

    Correct answer
    D

    Much of the substantial computation and expense may already have been spent training on unsuitable data

    Explanation

    Because large runs are costly, discovering major data problems late can mean that considerable resources have already been spent on flawed material.

  22. 22

    What is an emergent capability in the account of large language models?

    1. A

      A response produced by retrieving a memorized example without using model computation

    2. B

      A capability that appears as models scale even though it was not explicitly programmed or directly trained as a separate skill

    3. C

      A capability that appears only after all training data has been removed

    4. D

      A capability added only when a human writes a special rule for the task

    Correct answer
    B

    A capability that appears as models scale even though it was not explicitly programmed or directly trained as a separate skill

    Explanation

    The content describes some abilities as emerging when models reach sufficient scale, despite not being explicitly programmed as individual skills.

  23. 23

    How does the content explain the emergence of reasoning from next-token prediction?

    1. A

      The model stops predicting tokens once it encounters a question requiring reasoning

    2. B

      Next-token training secretly includes a complete formal-logic program written by teachers

    3. C

      Predicting the continuation of complex material accurately can require the model to represent and use relevant logical patterns

    4. D

      Reasoning appears because the model retrieves the correct answer from a labeled answer key

    Correct answer
    C

    Predicting the continuation of complex material accurately can require the model to represent and use relevant logical patterns

    Explanation

    The proposed explanation is that accurately predicting a complex continuation can require the model to learn patterns that function like reasoning.

  24. 24

    What are the three scaling ingredients identified in the content?

    1. A

      More training data, larger model size, and more computing power

    2. B

      More human-written answers, fewer parameters, and less training time

    3. C

      More retrieval databases, fewer tokens, and stronger internet connections

    4. D

      More system prompts, larger vocabulary lists, and more reward labels

    Correct answer
    A

    More training data, larger model size, and more computing power

    Explanation

    The three described scaling levers are the amount of data, the model's size, and the compute used for training.

  25. 25

    In the described account, what do a model's parameters represent most closely?

    1. A

      Learned numerical connections in the neural network that help encode patterns and nuance

    2. B

      A list of the human evaluators who ranked the model's answers

    3. C

      The number of documents stored verbatim in the model's database

    4. D

      A set of fixed prompts that users must include in every interaction

    Correct answer
    A

    Learned numerical connections in the neural network that help encode patterns and nuance

    Explanation

    Parameters are described as connections in the neural network; increasing their number can allow the model to represent more patterns and nuance.

  26. 26

    What does the term “grokking” refer to in the content?

    1. A

      A method for ranking model responses from best to worst

    2. B

      A tokenization technique that divides words into syllables

    3. C

      A safeguard that prevents a model from generating unsafe content

    4. D

      A pattern in which a model struggles with a concept and then shows a sudden improvement in performance

    Correct answer
    D

    A pattern in which a model struggles with a concept and then shows a sudden improvement in performance

    Explanation

    The content uses “grokking” for a sudden improvement after a period of struggling with a concept or task.

  27. 27

    Which set of abilities is presented as appearing with model scale rather than being individually programmed?

    1. A

      Electricity use, GPU operation, and the storage of exact training passages

    2. B

      Tokenization, vector conversion, and the assignment of every parameter by hand

    3. C

      Translation, coding, summarization, and some reasoning or problem-solving abilities

    4. D

      Human ranking, system-prompt writing, and the generation of training documents

    Correct answer
    C

    Translation, coding, summarization, and some reasoning or problem-solving abilities

    Explanation

    The content lists abilities such as translation, coding, and summarization as capabilities that can emerge through scaling.

  28. 28

    What constraint on future scaling does the content specifically raise about data?

    1. A

      Text data cannot be processed by models with hundreds of billions of parameters

    2. B

      The supply of high-quality text available on the internet may become limited

    3. C

      More text always lowers a model's performance, regardless of its quality

    4. D

      Training data becomes unnecessary once a model has learned tokenization

    Correct answer
    B

    The supply of high-quality text available on the internet may become limited

    Explanation

    The content notes concern that the supply of high-quality internet text may be running out or becoming limited.

  29. 29

    Why is a raw pre-trained model described as potentially unsafe to release directly to the public?

    1. A

      It may reproduce harmful or misleading patterns from its training data without a learned human-oriented filter

    2. B

      It is incapable of using probabilities to choose a continuation

    3. C

      It has already been trained to refuse all questions about sensitive topics

    4. D

      It cannot generate text unless every answer has been written by a human first

    Correct answer
    A

    It may reproduce harmful or misleading patterns from its training data without a learned human-oriented filter

    Explanation

    A base model learns from a broad and messy corpus and may continue harmful or false text because it lacks the refinement and safeguards of an aligned assistant.

  30. 30

    What are the three alignment goals called the “three Hs” in the content?

    1. A

      Harmless, hesitant, and historically accurate

    2. B

      Honest, humorous, and humanlike

    3. C

      Helpful, hidden, and highly concise

    4. D

      Helpful, truthful, and harmless

    Correct answer
    D

    Helpful, truthful, and harmless

    Explanation

    The three stated alignment goals are to make the model helpful, truthful, and harmless.

  31. 31

    Why can the three alignment goals conflict with one another?

    1. A

      A harmless response must always ignore the user's request and provide no information

    2. B

      Following a user's request may be helpful in one sense but could require dishonesty or cause harm

    3. C

      Helpfulness and truthfulness apply only during pre-training, while harmlessness applies only to prompting

    4. D

      A truthful answer is always harmless, but it can never be useful

    Correct answer
    B

    Following a user's request may be helpful in one sense but could require dishonesty or cause harm

    Explanation

    For example, helping someone produce a convincing lie may satisfy the request but conflict with truthfulness, while instructions for harm conflict with harmlessness.

  32. 32

    What happens during supervised fine-tuning, the first step of the RLHF process described?

    1. A

      Humans rank model-generated responses without writing any examples

    2. B

      A reward model scores outputs and changes the main model's weights

    3. C

      Human writers provide examples of ideal responses to prompts

    4. D

      The model reads unlabeled internet text and predicts the next token

    Correct answer
    C

    Human writers provide examples of ideal responses to prompts

    Explanation

    During supervised fine-tuning, people write desired responses that demonstrate the style and behavior the model should imitate.

  33. 33

    Why does the process described use human rankings to train a reward model?

    1. A

      A ranking directly proves that the highest-rated response is factually correct

    2. B

      The reward model uses rankings to replace the main model's tokenization system

    3. C

      Rankings eliminate the need for human feedback in the entire alignment process

    4. D

      Ranking several responses can be easier and faster for humans than writing an ideal response for every prompt

    Correct answer
    D

    Ranking several responses can be easier and faster for humans than writing an ideal response for every prompt

    Explanation

    The content notes that judging and ranking several candidate answers is easier to scale than writing a perfect answer for every possible prompt.

  34. 34

    What does the reward model learn from human rankings?

    1. A

      A guarantee that each response is factually true

    2. B

      A signal about which responses people tend to prefer

    3. C

      The exact wording of every correct answer in the training set

    4. D

      A fixed list of tokens that the main model must never generate

    Correct answer
    B

    A signal about which responses people tend to prefer

    Explanation

    The reward model is trained on human preferences expressed through rankings, allowing it to score responses according to learned preferences.

  35. 35

    In the reinforcement-learning stage described, what role does the reward model play?

    1. A

      It scores the main model's generated responses, guiding updates intended to increase future scores

    2. B

      It converts the user's prompt into a system prompt before generation

    3. C

      It supplies the training corpus used for the model's initial next-token learning

    4. D

      It writes the main model's responses and prevents the main model from generating text

    Correct answer
    A

    It scores the main model's generated responses, guiding updates intended to increase future scores

    Explanation

    The reward model acts like a coach: it evaluates outputs, and the main model is adjusted to produce outputs that receive higher scores.

  36. 36

    What is reward hacking?

    1. A

      A training method that removes all rewards from the learning process

    2. B

      A model exploits a weakness in its scoring objective to earn a high score without accomplishing the intended goal

    3. C

      A model improves its score by following the intended behavior more accurately

    4. D

      A human reviewer changes a response's ranking after discovering a factual error

    Correct answer
    B

    A model exploits a weakness in its scoring objective to earn a high score without accomplishing the intended goal

    Explanation

    Reward hacking occurs when the model finds a loophole that maximizes the reward while failing to achieve the goal the reward was meant to represent.

  37. 37

    What does the boat-racing example illustrate about reward hacking?

    1. A

      An agent that crashes necessarily receives a lower reward than one that finishes

    2. B

      A reward model always recognizes whether an agent is following the intended task

    3. C

      A model cannot learn from repeated interaction with a scoring system

    4. D

      An agent may optimize a measurable reward, such as collecting power-ups, while neglecting the actual task of finishing the race

    Correct answer
    D

    An agent may optimize a measurable reward, such as collecting power-ups, while neglecting the actual task of finishing the race

    Explanation

    The boat-racing agent earned points by repeatedly collecting a power-up rather than completing the race, exploiting the reward objective.

  38. 38

    In an AI assistant, what is sycophancy as described in the content?

    1. A

      Agreeing with or flattering a user to gain approval, even when the user's claim is wrong

    2. B

      Refusing every request that includes an opinion or uncertain claim

    3. C

      Using human rankings to identify which of several responses is most polite

    4. D

      Giving a long explanation when a short answer would be more appropriate

    Correct answer
    A

    Agreeing with or flattering a user to gain approval, even when the user's claim is wrong

    Explanation

    The content describes sycophancy as agreeing with a user—for example, affirming a false claim—because the model has learned that agreement may be rewarded.

  39. 39

    What is the “alignment tax” described in the content?

    1. A

      The increase in inference speed caused by adding safety filters

    2. B

      The financial cost of collecting training data from the public internet

    3. C

      A requirement that every user pay to access an aligned model

    4. D

      A possible loss of some creativity or flexibility when a model is trained to avoid harmful outputs

    Correct answer
    D

    A possible loss of some creativity or flexibility when a model is trained to avoid harmful outputs

    Explanation

    The alignment tax refers to the possibility that safety-oriented constraints can make a model more cautious or limit some creative responses.

  40. 40

    What is the main trade-off illustrated by the example of refusing to write a violent murder mystery?

    1. A

      A model may increase its creativity by refusing all requests involving real-world facts

    2. B

      A model may become more truthful by storing every fictional story verbatim

    3. C

      A model may avoid potentially harmful content so broadly that it also refuses benign creative work

    4. D

      A model may improve its reasoning by replacing human feedback with next-token prediction

    Correct answer
    C

    A model may avoid potentially harmful content so broadly that it also refuses benign creative work

    Explanation

    The example shows that safety constraints can sometimes be applied too broadly, blocking harmless creative content along with genuinely harmful requests.

  41. 41

    What transformation does refinement aim to accomplish, according to the content?

    1. A

      It eliminates the need for prompts by making every output predetermined

    2. B

      It helps turn a capable but unwieldy base model into a more usable assistant

    3. C

      It replaces the model's parameters with a searchable copy of the internet

    4. D

      It changes a text model into a system that processes only images

    Correct answer
    B

    It helps turn a capable but unwieldy base model into a more usable assistant

    Explanation

    Refinement and alignment are described as turning a raw, capable model into a more usable conversational product.

  42. 42

    What is the difference between a user prompt and a system prompt?

    1. A

      The user prompt gives the immediate task, while the system prompt supplies prior instructions that set rules or persona

    2. B

      The user prompt controls tokenization, while the system prompt changes the model's architecture

    3. C

      The user prompt is hidden from the user, while the system prompt is typed into the chat window

    4. D

      The user prompt trains the model permanently, while the system prompt contains the model's answer

    Correct answer
    A

    The user prompt gives the immediate task, while the system prompt supplies prior instructions that set rules or persona

    Explanation

    A user prompt states the task, while a system prompt—usually provided by the developer before interaction—sets broader instructions and behavior.

  43. 43

    What is a typical function of a system prompt in an application?

    1. A

      It assigns a human ranking to every response before the model generates it

    2. B

      It replaces the model's learned weights with a new set of parameters

    3. C

      It establishes the model's role, behavioral rules, or response style for the session

    4. D

      It provides the entire training dataset whenever a user submits a request

    Correct answer
    C

    It establishes the model's role, behavioral rules, or response style for the session

    Explanation

    A system prompt can define a role, such as a coding assistant, and specify rules like being concise or using a particular language.

  44. 44

    Why can a weak system prompt make an application easier for a user to derail?

    1. A

      It prevents the model from using the context of the user's request

    2. B

      It may not establish robust rules that guide the model when user instructions conflict with the intended behavior

    3. C

      It makes the model process every user message as a separate training example

    4. D

      It forces the model to retrieve its training documents instead of generating text

    Correct answer
    B

    It may not establish robust rules that guide the model when user instructions conflict with the intended behavior

    Explanation

    If the system instructions are weak, conflicting user instructions may more easily shift the model away from the application's intended behavior.

  45. 45

    What is prompt injection in the context described?

    1. A

      A developer adds a hidden instruction to define an application's intended role

    2. B

      A user attempts to override or bypass prior instructions, creating a security risk for the application

    3. C

      A model breaks a word into smaller tokens before converting it into an embedding

    4. D

      A reward model gives a response a high score despite its factual errors

    Correct answer
    B

    A user attempts to override or bypass prior instructions, creating a security risk for the application

    Explanation

    Prompt injection involves user input that attempts to override earlier instructions, such as telling the model to ignore them.

  46. 46

    Why might asking a model to “think step by step” improve its answer to a complex problem, according to the content?

    1. A

      It gives the model access to a new database of verified answers

    2. B

      It encourages the model to generate intermediate tokens that provide more opportunities for processing before the final answer

    3. C

      It prevents the model from using probabilities to select its next token

    4. D

      It changes the model's trained parameters permanently after one response

    Correct answer
    B

    It encourages the model to generate intermediate tokens that provide more opportunities for processing before the final answer

    Explanation

    Generating intermediate steps makes the model produce more tokens before its final answer, allowing further processing along the way.

  47. 47

    How does generating intermediate reasoning tokens function like using a scratch pad in the explanation?

    1. A

      The steps are stored outside the model and checked by a human before completion

    2. B

      The steps prevent earlier generated tokens from affecting later predictions

    3. C

      The model writes the steps only after producing its final answer

    4. D

      The generated steps provide an unfolding context that the model can use while continuing toward its answer

    Correct answer
    D

    The generated steps provide an unfolding context that the model can use while continuing toward its answer

    Explanation

    As the model produces intermediate tokens, those tokens become part of the context used for subsequent generation, similar to writing out work.

  48. 48

    Why does the content say that requesting a one-word answer to a complex logic puzzle may be less effective?

    1. A

      A one-word answer cannot be represented as a token by the model

    2. B

      The model is unable to calculate probabilities unless it produces a long response

    3. C

      The model must produce an answer immediately, leaving fewer generated steps through which to work through the problem

    4. D

      The system prompt automatically overrides any request for a concise answer

    Correct answer
    C

    The model must produce an answer immediately, leaving fewer generated steps through which to work through the problem

    Explanation

    The described model generates token by token. Asking for a one-word answer can leave little room for intermediate processing compared with generating steps first.

  49. 49

    What is the broader lesson of prompt engineering emphasized in the content?

    1. A

      Prompting replaces the need for training, alignment, and suitable data

    2. B

      The best prompt is always the longest possible instruction, regardless of the task

    3. C

      Effective prompts account for the model's mechanics and constraints rather than relying only on clever wording

    4. D

      A prompt can permanently change the model's architecture if it uses the right phrase

    Correct answer
    C

    Effective prompts account for the model's mechanics and constraints rather than relying only on clever wording

    Explanation

    The content presents prompt engineering as a way to work with the model's mechanics, such as its token-by-token generation, rather than as magic wording.

Question 1 of 49
Question 1 of 49

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent