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

  • 71Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Language Model Foundations
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is a large language model (LLM)?

Tap to flipClick to flipspace

A neural network trained to predict the next token in an input sequence.

Or swipe the card

71 cards

  1. What is a large language model (LLM)?

    A neural network trained to predict the next token in an input sequence.

  2. How can an LLM complete the phrase “All that glitters…”?

    It predicts a likely continuation such as “is not gold,” generating the response one token at a time.

  3. What is tokenization?

    The process of breaking input text into discrete tokens for an LLM to process.

  4. Why might tokenization split text into units other than whole words separated by spaces?

    Subword units can capture meaningful patterns, such as shared suffixes, that help represent natural language.

  5. What is a vector in the context of language models?

    A coordinate representing a token’s meaning in a multidimensional space.

  6. What is vectorization?

    Mapping tokens into vectors so that words with similar meanings are positioned near one another and dissimilar or opposite meanings farther apart.

  7. How do tokenization and vectorization play different roles in language processing?

    Tokenization breaks text into units; vectorization represents those units’ meanings as coordinates.

  8. Why can the same word, such as “apple,” have different vector meanings in different sentences?

    Its meaning depends on context: “tasty apple” suggests fruit, “Apple revenue” suggests a company, and “apple of my eye” suggests someone cherished.

  9. What problem does the attention mechanism help solve?

    It helps a model use surrounding words to resolve the meaning of ambiguous tokens.

  10. How does attention use surrounding words to clarify a token’s meaning?

    It combines information from a token with relevant contextual information, shifting its representation toward the meaning suggested by the context.

  11. What does the example “tasty apple” illustrate about attention?

    The word “tasty” provides context that helps the model interpret “apple” as a fruit.

  12. What does the example “Apple revenue” illustrate about attention?

    The word “revenue” provides context that helps the model interpret “Apple” as a company.

  13. Why is contextual meaning important for generating natural-sounding text?

    It helps the model interpret words in context and use those meanings to construct appropriate sentences.

  14. What is self-supervised learning?

    A training approach in which the structure of existing data provides the learning task, without requiring a person to label every example.

  15. How can a language model create training challenges from existing text?

    It can use portions of a text sequence as inputs and train itself to predict the next token or a missing portion.

  16. How does self-supervised learning differ from supervised learning in the described examples?

    In supervised learning, a human provides the desired answer; in self-supervised learning, the training data itself supplies the expected answer.

  17. How does a model learn from a wrong prediction during training?

    The prediction incurs a loss, and the model’s internal weights are updated to reduce that error.

  18. Why does self-supervised learning make it cheaper to obtain training examples?

    Existing data can be turned into prediction tasks without having humans manually label every answer.

  19. How can self-supervised learning be applied to images?

    A model can be given an image with some patches removed and trained to predict the missing patches.

  20. What kinds of structure can self-supervised learning help models capture in text, images, and video?

    It can capture relationships among terms in text, pixels or patches in images, and patterns such as object movement in video.

  21. What is fine-tuning?

    Further training a base model, often on question-and-answer examples, to make it respond in a particular way or for a specific domain.

  22. How can fine-tuning adapt a model to a specialized domain?

    Training it on domain-specific examples can make it more likely to use relevant terms and provide suitable answers in that domain.

  23. What kinds of responses can fine-tuning discourage?

    Responses that may be plausible but are not desirable, such as failing to answer a question directly.

  24. Can one base model produce multiple specialized models?

    Yes. The same base model can be fine-tuned on different sets of examples for different uses.

  25. What is few-shot prompting?

    Providing a model with examples alongside a query at inference time so it can use them as context for its response.

  26. How does few-shot prompting differ from fine-tuning?

    Few-shot prompting adds examples to the input at response time; fine-tuning updates the model through further training.

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

    An LLM is defined by its next-token prediction task; a transformer is a particular architecture that can perform that task.

  28. What are the main stages in the transformer process described?

    Input tokens pass through an attention block and a feedforward neural network, producing outputs that can be passed through further layers.

  29. What can later attention layers learn beyond resolving basic word ambiguity?

    They can capture more complex relationships, such as implications or sarcasm.

  30. Why are transformer layers stacked?

    Repeated layers let the model process and manipulate input meaning multiple times before predicting an output.

  31. Does an LLM have to use a transformer architecture?

    No. The transformer is one method for building an LLM; other architectures could be used.

  32. What is chain of thought in the content’s description?

    A step-by-step sequence of deductions or inferences leading to a final response.

  33. Why might step-by-step problem solving improve a model’s response?

    Breaking a problem into steps can help the model work through it and produce a higher-quality final response.

  34. What is a reasoning model?

    A model that can work out how to solve a problem step by step.

  35. How might a reasoning model change its problem-solving process for easy versus difficult problems?

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

  36. What is retrieval-augmented generation (RAG)?

    A method that retrieves relevant information and adds it to an LLM’s context before generating a response.

  37. What are the basic steps in a RAG response process?

    Receive a query, retrieve relevant context, add it to the model’s input, and generate a response.

  38. What are examples of information a RAG system might retrieve for a company query?

    Relevant company documents, such as policies or terms and conditions.

  39. What is a vector database used for in an LLM system?

    Storing information in a form that supports efficient similarity searches for documents relevant to an incoming query.

  40. How can vector similarity retrieve useful documents even when they do not contain the query’s exact words?

    Vectors can represent semantic similarity, allowing a query to match related concepts or documents with different wording.

  41. In the example about an upset customer seeking a refund, why might a document about low ratings be relevant?

    Its meaning may be related to the customer’s dissatisfaction, even if the document does not use the word “upset.”

  42. What are some possible ways to store or retrieve information for a RAG system?

    A vector database, a graph database, or in-memory or cached information.

  43. What does a RAG system add to a model’s input besides the user’s query?

    Relevant retrieved documents and, when useful, examples or other instructions that guide the response.

  44. What is the Model Context Protocol (MCP) in the described system?

    A protocol for connecting a model with external systems so it can obtain context or use tools.

  45. How can an MCP client help an LLM access external information?

    It can connect to relevant MCP servers, request information, and pass the results back to the LLM as context.

  46. How can an LLM use MCP to carry out an action, such as booking a flight?

    The model can request a booking through the relevant MCP server; the client forwards the request and returns the result.

  47. What is context engineering?

    The broader practice of assembling and managing context for an LLM, including examples, retrieved documents, and external information or tools.

  48. How does context engineering differ from prompt engineering as described?

    Prompt engineering focuses on a single prompt; context engineering manages context that can evolve with user preferences and conversation history.

  49. Why might a context-engineering system summarize conversation history?

    To limit how much chat history is sent to the LLM while preserving useful context.

  50. Name two approaches to selecting or compressing conversation history for an LLM.

    Use a sliding window of recent chats, or combine the latest chat with a summary of earlier history; keyword-based selection is another option.

  51. How might a system summarize a retrieved document before sending information to a large model?

    It can summarize the document with a smaller or distilled model, then send the condensed context to the larger model.

  52. What is an agent in the described AI setting?

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

  53. What capabilities might a travel agent have in the example?

    It could book flights and hotels and manage email, acting according to the user’s preferences.

  54. How might an agent act when it detects an opportunity, such as a low flight price?

    It could make a booking that matches the user’s preferences.

  55. What is reinforcement learning in the described model-training example?

    Training a model using rewards or penalties for its outputs so it learns which behaviors are preferred.

  56. How does human feedback guide reinforcement learning from human feedback (RLHF)?

    A person indicates which response is better, providing positive feedback for a preferred response and negative feedback for a less-preferred one.

  57. What does the path analogy illustrate about how reward signals can influence a model’s outputs?

    Positive or negative scores can encourage or discourage the sequence of choices that led to a response.

  58. What limitation of reinforcement learning is illustrated by repeated heads from a fair coin?

    Feedback from observed outcomes alone may not capture the underlying rule that a fair coin still has a 50% chance of either result.

  59. According to the content, what can reinforcement learning do that it cannot do by itself?

    It can reinforce beneficial behavior, but it cannot by itself provide a full mental model of how the world works.

  60. What does “multimodal” mean for an AI model?

    The model can work with more than one kind of input or output data, such as text, images, or video.

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

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

  62. What video-related capability can a multimodal model have?

    It can accept or generate video and analyze visual content over time.

  63. Why might training on both text and images improve a model’s performance on image-related tasks?

    Combining text and image training can help the model connect words and concepts with visual objects.

  64. Why might companies choose smaller, company-specific models?

    They can provide greater control over outputs and help keep company data within the organization.

  65. What is a small language model (SLM), and how does its parameter range compare with that of an LLM in the content?

    An SLM has fewer parameters; the examples give about 3 million–300 million for an SLM versus 3 billion–300 billion for an LLM.

  66. Why can a task-specific small language model be useful even if it cannot answer every kind of question?

    It can perform reasonably well on a focused task, such as handling customer queries or sales, which may be all the organization needs.

  67. What is distillation in the context of creating a small language model?

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

  68. What is the main benefit of distilling a large model into a smaller one?

    It can reduce runtime cost and make the model faster and easier to host while aiming to retain useful performance.

  69. What is quantization?

    Reducing the precision or bit-width used to represent neural-network weights.

  70. What memory reduction does the content estimate when weights are reduced from 32 bits to 8 bits?

    About 75% for the weights represented that way.

  71. When is quantization typically applied, and what cost is it mainly intended to reduce?

    It is applied after training and is mainly intended to reduce inference or production-running costs, not training costs.

Card 1 of 71
Card 1 of 71

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent