1. Home
  2. Explore
  3. Computer Science
  4. Common AI Terminology

Study methods

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

Common AI Terminology

  • 73Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Foundations and Representation

What is a large language model (LLM)?

73 questions

  1. 1

    What is a large language model (LLM)?

    Model answer

    An LLM is a neural network trained to predict the next token in an input sequence.

    Explanation

    For example, given “all that glitters,” it may predict “is,” then continue generating the rest of the phrase.

  2. 2

    How does next-token prediction allow an LLM to generate a complete response?

    Model answer

    The model repeatedly predicts what comes next, using the input and tokens already generated to continue the sequence.

    Explanation

    A sequence of predictions can turn a partial phrase such as “all that glitters” into “all that glitters is not gold.”

  3. 3

    What is tokenization, and why is it used when processing text?

    Model answer

    Tokenization breaks input text into discrete tokens that an LLM can process.

    Explanation

    The resulting tokens are the units the model works with when interpreting and generating language.

  4. 4

    Why might tokenization preserve meaningful word parts rather than simply splitting text at spaces?

    Model answer

    Word parts such as suffixes can carry meaning, so preserving them can help a model interpret language more effectively.

    Explanation

    For instance, the suffix “-ing” can indicate an ongoing action, as in “eating,” “dancing,” and “singing.”

  5. 5

    How do tokens and vectors differ in an LLM?

    Model answer

    Tokens are the units of text the model processes, while vectors represent the meaning associated with those units.

    Explanation

    Tokenization breaks text into units; vectorization maps those units into a numerical representation.

  6. 6

    What does it mean to represent a word as a vector?

    Model answer

    A word is mapped to a coordinate in a multidimensional space that represents its meaning.

    Explanation

    The vector provides a numerical representation of the word’s meaning in that space.

  7. 7

    How are semantic similarities and differences reflected in a vector space?

    Model answer

    Words with similar meanings are positioned close together, while words with opposite meanings are positioned farther apart.

    Explanation

    This arrangement lets the model use distances between coordinates to represent relationships in meaning.

  8. 8

    How does attention help an LLM interpret an ambiguous word such as “apple”?

    Model answer

    It uses nearby words as context to determine which meaning of “apple” is intended.

    Explanation

    “Tasty apple” suggests the fruit, while “Apple’s revenue” suggests the company.

  9. 9

    Why is attention not simply the direct addition of word vectors?

    Model answer

    Attention is an operation that uses contextual information to shift a word’s representation toward the meaning relevant to its surroundings.

    Explanation

    With “revenue,” the representation of “apple” is pushed toward the company meaning; with “tasty,” it is pushed toward the fruit meaning.

  10. 10

    Why did attention contribute to more natural-sounding LLM responses?

    Model answer

    By helping models use context to interpret words, attention supports generating sentences that better reflect how people use language.

    Explanation

    Context helps the model choose among meanings and use those meanings when constructing a response.

  11. 11

    What is self-supervised learning?

    Model answer

    It is a training approach in which the structure of the input data provides the task or expected answer, rather than requiring a person to label every example.

    Explanation

    A model can be given existing text and trained to predict parts of it that were held back.

  12. 12

    How can a sequence or an image provide its own prediction task?

    Model answer

    A portion can be hidden, and the model can be trained to infer what belongs in the missing part from the surrounding structure.

    Explanation

    Examples include predicting a missing number in a sequence or a removed patch in an image.

  13. 13

    How does self-supervised training of text differ from supervised training with human-provided answers?

    Model answer

    In supervised training, people provide the expected answer; in self-supervised training, existing data supplies the target by allowing parts of it to be predicted.

    Explanation

    A human might label what should follow a prompt, whereas a self-supervised model can learn from text that already exists.

  14. 14

    How can one text sequence create multiple self-supervised training tasks for a next-token model?

    Model answer

    The model can be trained to predict the next token at multiple positions in the same sequence.

    Explanation

    For a sequence such as “At two Brutus,” prediction tasks can be formed at more than one point in the text.

  15. 15

    What happens to a neural network’s weights when its prediction is wrong during training?

    Model answer

    The error increases the loss, and the network’s weights are updated to reduce the error.

    Explanation

    The model is penalized for an incorrect prediction; a correct prediction need not require a weight update in that example.

  16. 16

    Why is self-supervised learning scalable?

    Model answer

    It lets models learn from large amounts of existing data without requiring people to create a separate label for every training example.

    Explanation

    The data’s own structure supplies prediction targets, reducing the need for human intervention.

  17. 17

    How can self-supervised learning be applied to text, images, and video?

    Model answer

    A model can predict missing text, image patches, or video content, learning structure from each kind of data.

    Explanation

    For images, the hidden material consists of pixels or patches; video prediction may help a model learn how objects move.

  18. 18

    What is a transformer, and how does it differ from an LLM?

    Model answer

    An LLM is a model trained to predict the next token, while a transformer is one particular architecture that can perform that task.

    Explanation

    The LLM describes the product or model goal; the transformer describes a method used to build it.

  19. 19

    What are the main components of a transformer layer as described in the content?

    Model answer

    Input tokens pass through an attention block and then a feedforward neural network, producing output vectors.

    Explanation

    Those output vectors can be passed to another attention layer and feedforward network.

  20. 20

    How can stacking attention layers help a transformer identify increasingly complex relationships?

    Model answer

    An early layer can resolve word meanings, while later layers can identify more complex implications or relationships.

    Explanation

    For example, later processing of “a crane was hunting a crab” might infer that the crane is hungry and the crab is fearful.

  21. 21

    How many layers can a transformer contain, according to the content?

    Model answer

    Transformers may have around 12 layers or more, and some recent GPT architectures are described as having hundreds.

    Explanation

    Stacking layers allows the model to process and manipulate input meaning repeatedly before predicting an output.

  22. 22

    What computational scaling is attributed to a transformer’s attention block?

    Model answer

    The attention block is described as having order-n2n^2n2 scaling.

    Explanation

    This means the amount of attention computation is described as scaling with the square of the sequence length.

  23. 23

    Could an LLM use an architecture other than a transformer?

    Model answer

    Yes. The transformer is one possible architecture, and other architectures, such as state-space or diffusion models, could be used.

    Explanation

    The LLM is the overall model or product, while its internal architecture can vary.

  24. 24

    What is fine-tuning, and when does it occur in the training process?

    Model answer

    Fine-tuning further trains a base model on question-and-answer examples so that it responds in a desired way.

    Explanation

    The base model is first trained to predict next tokens, then adapted for a particular response style or use case.

  25. 25

    Why might the same base model give different kinds of answers after fine-tuning?

    Model answer

    Different fine-tuning data can teach the model to use terminology and response patterns suited to different tasks or domains.

    Explanation

    For example, a medical model may favor medical terms, while a model trained on financial operations may favor financial terms.

  26. 26

    What kinds of responses can fine-tuning discourage, even if they are plausible?

    Model answer

    It can penalize responses that are not wrong but are undesirable, such as evasive answers when a direct answer or an admission of uncertainty is expected.

    Explanation

    Fine-tuning examples teach the model how it should answer, not just which next token is statistically likely.

  27. 27

    Can one base model be fine-tuned into several models for different users or organizations?

    Model answer

    Yes. Different sets of question-and-answer examples can produce multiple fine-tuned models from the same base model.

    Explanation

    A company could adapt a base model to respond to its customers’ specific queries.

  28. 28

    What is few-shot prompting, and when is it used?

    Model answer

    Few-shot prompting adds examples to a query at inference time so the model can use them when generating its response.

    Explanation

    The examples provide guidance alongside the user’s original request in a live system.

  29. 29

    How can examples in a prompt improve a model’s response?

    Model answer

    They show the model the kind of response or format that is expected, helping it produce a more appropriate answer.

    Explanation

    The model receives the examples together with the original query and can take them into account.

  30. 30

    What is retrieval-augmented generation (RAG)?

    Model answer

    RAG retrieves relevant information, adds it to a query’s context, and then uses an LLM to generate a response.

    Explanation

    The retrieved material may include company policies, terms and conditions, or other documents relevant to the user’s request.

  31. 31

    What roles do the user query, examples, and retrieved documents play in a RAG request?

    Model answer

    The query states the user’s need, examples guide the response format, and retrieved documents provide relevant subject or organization-specific context.

    Explanation

    Combining these inputs can help the model produce a more useful response.

  32. 32

    What is a vector database used for in an LLM application?

    Model answer

    It stores information in a form that supports efficiently finding documents similar in meaning to an incoming query.

    Explanation

    The retrieved documents can then be added to the LLM’s context.

  33. 33

    How can vector similarity help retrieve relevant documents when a query uses different words from the documents?

    Model answer

    Vectors represent semantic meaning, so a query can be close to documents with related meanings even when they use different wording.

    Explanation

    A request expressing that a customer is “upset” might match documents about low ratings or customer drop-offs.

  34. 34

    Besides vector databases, what other approaches to storing or retrieving context are mentioned?

    Model answer

    The content mentions graph databases, keeping information in memory, and using a cache.

    Explanation

    It presents vector databases as a common option, but says the retrieval approach can vary.

  35. 35

    What is model context protocol (MCP) intended to do?

    Model answer

    MCP provides a way to communicate with external tools or data sources and transfer their context to a model.

    Explanation

    It can connect an LLM with external systems that hold information or provide actions.

  36. 36

    How does an MCP client interact with an LLM and external MCP servers?

    Model answer

    The client forwards the user’s query to the LLM, connects to external MCP servers when needed, and passes their results back into the interaction.

    Explanation

    An MCP server can act as a wrapper around an external database or service.

  37. 37

    How can MCP support a request that needs current information from multiple external services?

    Model answer

    The client can obtain relevant results from multiple external servers and provide those results to the LLM along with the user’s query.

    Explanation

    For example, airline MCP servers could return flight details for the model to consider.

  38. 38

    How can an LLM use MCP to carry out an action, not just provide information?

    Model answer

    After using external information to decide what to do, the model can trigger a further API call through the relevant MCP server.

    Explanation

    In the example, the LLM chooses a flight and a booking call is then made through the airline’s MCP server.

  39. 39

    How does MCP change what a user can accomplish through an LLM application?

    Model answer

    It can let the application execute actions through connected services instead of only giving the user instructions to carry out.

    Explanation

    A booking can be completed through an external service rather than leaving the user with only a suggested recipe or plan.

  40. 40

    What is context engineering?

    Model answer

    Context engineering is the broader practice of assembling and managing the information given to a model, including examples, retrieved documents, and external data.

    Explanation

    It brings together techniques such as few-shot prompting, RAG, and MCP.

  41. 41

    Why might a system summarize earlier conversation history before sending it to an LLM?

    Model answer

    Summarizing older messages limits how much chat history must be sent while retaining useful context.

    Explanation

    One approach is to send the latest 100 chats and summarize all earlier chats in five sentences.

  42. 42

    What are two alternative strategies mentioned for selecting conversation history to include?

    Model answer

    A system might focus on keywords or send only the latest chat together with a summary of the earlier history.

    Explanation

    These are alternatives to sending a larger sliding window of recent chats.

  43. 43

    How could a system manage a retrieved document before giving it to an expensive LLM?

    Model answer

    It could summarize the document first, possibly using a smaller or distilled language model, and send the summary to the larger model.

    Explanation

    This creates a shorter context for the more expensive model to use.

  44. 44

    How does context engineering differ from prompt engineering in terms of state and personalization?

    Model answer

    Prompt engineering can use a consistent, stateless prompt, while context engineering can change with a user’s preferences and conversation history.

    Explanation

    Context engineering is described as a more long-term process that adapts what the model receives.

  45. 45

    What is an AI agent in the description provided?

    Model answer

    An agent is a long-running process that can use an LLM, external systems, and other agents to meet a user’s requirements.

    Explanation

    It can act like a server that receives requests and uses several capabilities over time.

  46. 46

    How might a travel agent use its capabilities to act on a user’s preferences?

    Model answer

    It could manage flights, hotels, and email, then make a booking when an opportunity fits the user’s preferences.

    Explanation

    For example, it might book when flights become inexpensive.

  47. 47

    What is reinforcement learning in the context of model training?

    Model answer

    It trains a model to favor behaviors or outputs that receive positive feedback and avoid those that receive negative feedback.

    Explanation

    The feedback score influences which generated responses the model is encouraged to produce.

  48. 48

    How can comparing two model responses provide reinforcement feedback?

    Model answer

    A person can select the better response, giving it a positive score and the other response a negative score.

    Explanation

    The comparison provides a preference signal about which output is more desirable.

  49. 49

    What is reinforcement learning from human feedback (RLHF)?

    Model answer

    RLHF uses human judgments of outputs as feedback to reinforce desirable model responses.

    Explanation

    A human preference can indicate which response should receive positive feedback and which should receive negative feedback.

  50. 50

    How does feedback on a response relate to the sequence of tokens that produced it?

    Model answer

    The response can be viewed as a path through token choices, and its positive or negative score can encourage or discourage that path.

    Explanation

    Repeated feedback helps define regions of outputs the model should prefer or avoid.

  51. 51

    What is one limitation of reinforcement learning as a way to represent human intelligence?

    Model answer

    It learns from outcomes and feedback but does not, by itself, provide the deeper mental models people use to understand how things work.

    Explanation

    A person who knows a coin is fair can reason that either heads or tails may occur, even after observing several heads.

  52. 52

    What does the fair-coin example show about outcome-based reinforcement?

    Model answer

    Rewarding a model for repeated outcomes can be misleading when those outcomes do not change the underlying probabilities.

    Explanation

    For a fair coin, heads and tails remain equally possible despite a run of heads.

  53. 53

    What does Pavlov’s dog example illustrate about reinforcement?

    Model answer

    Repeatedly pairing a signal with a reward can condition an expected behavior, even when the reward is later absent.

    Explanation

    After the bell was associated with food, the dog came to salivate at the bell alone.

  54. 54

    What is chain of thought in model training?

    Model answer

    It is an approach that presents or trains a model to work through a problem as a sequence of steps or deductions before giving a final response.

    Explanation

    The intention is for step-by-step practice to help the model handle new problems.

  55. 55

    Why can step-by-step reasoning produce a better answer than a direct response?

    Model answer

    Breaking a problem into steps can help the model work through its deductions instead of jumping directly to a conclusion.

    Explanation

    The content describes the quality of chain-of-thought responses as usually higher than that of direct responses.

  56. 56

    How does chain-of-thought prompting differ from few-shot prompting?

    Model answer

    Few-shot prompting provides examples, while chain of thought emphasizes a step-by-step breakdown that the model can extend as needed.

    Explanation

    Both can improve responses, but chain of thought focuses on the reasoning steps rather than only on example responses.

  57. 57

    What is a reasoning model?

    Model answer

    It is a model that can work out how to solve a problem step by step, using chain of thought or other methods.

    Explanation

    The content also mentions tree of thought, graph of thought, and tool use as possible approaches.

  58. 58

    How might a reasoning model adjust its process to the difficulty of a problem?

    Model answer

    It may use fewer steps for an easy problem and more steps for a harder one.

    Explanation

    The content describes this behavior as an ability observed in reasoning models.

  59. 59

    What other approaches to reasoning, besides chain of thought, are mentioned?

    Model answer

    The content mentions tree of thought, graph of thought, and using tools.

    Explanation

    These are presented as alternative ways a model may reason or improve its problem-solving.

  60. 60

    What does “multimodal” mean for an AI model?

    Model answer

    A multimodal model can work with more than one mode of input data, such as text, images, or video.

    Explanation

    It may accept or generate images and videos as well as process text.

  61. 61

    What are two image-related tasks a multimodal model may perform?

    Model answer

    It may analyze an image, such as counting apples, or modify an image to create a new one.

    Explanation

    These tasks involve interpreting or generating visual content.

  62. 62

    Why might training on both text and related images improve a model’s performance on images?

    Model answer

    Text and images can provide complementary information about objects and their meanings.

    Explanation

    Training with terms such as “cat” and “feline” alongside cat images may improve the model’s output quality for images.

  63. 63

    What potential effect could generative video models have on the cost of producing video content?

    Model answer

    If models can create useful video content, the cost of producing video, including advertisements, could decrease.

    Explanation

    The content notes that this is already happening to some extent, though model quality is not yet very good.

  64. 64

    What is a small language model (SLM), and how does its size compare with an LLM in the content?

    Model answer

    An SLM is a smaller neural language model, described as having about 3 million to 300 million parameters, compared with about 3 billion to 300 billion for an LLM.

    Explanation

    Fewer parameters mean fewer internal connections and weights.

  65. 65

    Why might a company choose a smaller, company-specific language model?

    Model answer

    It can give the company more control over outputs and help keep proprietary data within the company while serving specific tasks.

    Explanation

    The content describes companies training smaller models on their own data for targeted use cases.

  66. 66

    What is a trade-off of training a small language model on a narrow task?

    Model answer

    It may perform well on its specialized task but poorly on unrelated tasks.

    Explanation

    A customer-service model may handle customer queries well without being able to provide detailed weather analysis.

  67. 67

    How might different organizations choose distinct specialized models?

    Model answer

    They can train models on data suited to their goals, such as sales information for a sales-focused bot or weather data for weather prediction.

    Explanation

    A specialized model need not be good at tasks that are unimportant to its organization.

  68. 68

    What is model distillation?

    Model answer

    Distillation trains a smaller student model to mimic the outputs of a larger teacher model.

    Explanation

    The student is given the same input and its output is compared with the teacher’s output.

  69. 69

    How are a teacher model and a student model used during distillation?

    Model answer

    The teacher produces an output for an input, while the smaller student tries to produce a matching output; the student’s weights are updated when it does not match.

    Explanation

    A match indicates that the student is reproducing the teacher’s output for that example.

  70. 70

    Why can a distilled model be useful in production?

    Model answer

    It can respond faster and be easier to host than a much larger model, reducing the cost of inference.

    Explanation

    Distillation aims to retain reasonable performance in a smaller model with fewer parameters.

  71. 71

    What is quantization in a neural network?

    Model answer

    Quantization reduces the precision used to represent neural-network weights, such as changing from 32-bit to 8-bit numbers.

    Explanation

    The goal is to store the model’s weight information using fewer bits.

  72. 72

    How much memory could changing weights from 32 bits to 8 bits save, according to the content?

    Model answer

    It could save about 75% of the memory used for those weights.

    Explanation

    An 8-bit representation uses one-quarter as many bits as a 32-bit representation.

  73. 73

    Why does quantization mainly reduce inference cost rather than training cost?

    Model answer

    Quantization is applied after the model has been fully trained, so it reduces the cost of running the model rather than the initial training cost.

    Explanation

    The content notes that quantization does not directly reduce all model components or the cost of training.

1 of 73
Question 1 of 73

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent