AIF-C01 practice question 4 of 25

What are tokens in the context of generative AI models?

Full set: 397 questions

Domain Explain modeling in AI/ML

Answer options
A: Tokens are the basic units of input and output that a generative AI model operates on, representing words, subwords, or other linguistic units. Correct answer
B: Tokens are the mathematical representations of words or concepts used in generative AI models.
C: Tokens are the pre-trained weights of a generative AI model that are fine-tuned for specific tasks.
D: Tokens are the specific prompts or instructions given to a generative AI model to generate output.
Correct Answer:
A. Tokens are the basic units of input and output that a generative AI model operates on, representing words, subwords, or other linguistic units.
Explanation

In generative AI, particularly in Large Language Models (LLMs), a token is the fundamental unit of data that the model processes. Raw text input is first broken down into these smaller, manageable pieces by a process called tokenization. A token can represent a whole word (e.g., "apple"), a subword (e.g., "token" and "ization" from "tokenization"), a single character, or punctuation. The model operates on these sequences of tokens to understand context and generate a response. This segmentation allows the model to handle a vast vocabulary and understand the structure of language efficiently.

Why Incorrect

B. This describes word embeddings or vectors, which are the numerical, mathematical representations of tokens, not the tokens themselves.
C. This describes model weights or parameters, which are the values learned by the model during training to make predictions.
D. This describes a prompt, which is the entire input sequence or instruction given to the model. A prompt is composed of multiple tokens. ---

References

1. Amazon Web Services (AWS). (2023). Amazon Bedrock User Guide.

Section: Basic concepts for Amazon Bedrock.

Content: The guide explicitly defines tokens: "Tokens are the basic units of text that a large language model (LLM) processes. A token can be a word

part of a word

or punctuation... The process of converting text into tokens is called tokenization." This directly supports answer A.

2. Amazon Web Services (AWS) Machine Learning Blog. (2023). Understand the different types of foundation models in Amazon Bedrock.

Section: Foundational concepts.

Content: The blog post states

"A token is a sequence of characters that the model treats as a single semantic unit for processing. It can be a word

a sub-word

or even a punctuation mark." This reinforces that tokens are the basic operational units.

3. Manning

C. D. (2023). Lecture 6: Language Models and Recurrent Neural Networks. Stanford University

CS224N: Natural Language Processing with Deep Learning.

Section: Language Modeling and Tokenization.

Content: The course materials explain that before processing text

it must be split into atomic units called tokens. It details various tokenization strategies (word

character

subword)

establishing tokens as the foundational input/output units for language models.

Scroll to Top