VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

What Is Vocabulary | Why Aren’t “Token”, “Word”, “Embedding”, “Vector” and “Meaning” the Same in AI?

A token is a unit of text processed by a language model; a word is a linguistic unit; an embedding is a numerical representation learned or constructed for a task; and a vector is the mathematical form often used to hold that representation. None of these is a complete, universally fixed unit of human meaning. A common word can be one token in a particular tokenizer and several tokens in another. Two sentences can be close in an embedding space while disagreeing about a crucial fact. A model may create fluent paragraphs from sequences of tokens without independently verifying the real-world claims it makes. These differences matter in search, translation, AI responses, data retrieval, software cost and attempts to engineer more reliable vocabularies.

To understand an AI language system, follow the original text, tokenization method, model vocabulary, numerical representation, context supplied, prediction task and verification of its output. Then zoom from one word through a sentence, document, semantic search service, organisational knowledge base and international language model. Tokens and vectors are powerful computational tools, but neither should be confused with an immutable semantic atom or a certificate of truth. A responsible vocabulary-engineering design protects source meaning, context, uncertainty and the reader’s intended action in addition to processing text efficiently.

  • Language zoom: A word can contain several morphemes, spellings or context-dependent senses.
  • Token zoom: Different tokenizers may split the same visible string into different units.
  • Vector zoom: Numerical coordinates encode patterns learned for particular objectives.
  • Embedding zoom: Similar words or texts may be near one another without expressing equivalent claims.
  • Context zoom: The same word can have different representations or interpretations across sentences.
  • Workflow zoom: Retrieval, generation, summarisation and fact-checking are distinct stages.
  • Practical rule: Inspect the task, source, tokenizer, model, evaluation and real-world consequences before treating an AI score as meaning.

What is a token?

A token is a processing unit used by a particular language model or text-processing system. It might correspond to a word, part of a word, punctuation or another text segment depending on the tokenizer.

The Google Machine Learning Crash Course introduction to large language models explains that modern models often use subword tokenization rather than treating every complete word as one indivisible unit.

The token is a computational unit, not a universally accepted linguistic atom. Its boundaries reflect the design and vocabulary of the particular tokenizer.

Is a token the same as a word?

Not necessarily. A short common word may be represented as one token in a particular model, while a longer or less common word may be represented by multiple subword tokens.

Punctuation and spaces can also affect tokenization. The exact token count depends on the implementation and the particular text.

That is why a “2,000-word article” and a “2,000-token model input” are not equivalent lengths. Treating them as identical can lead to truncation or unexpected processing limits.

Why models use subwords

A vocabulary containing every possible whole word and spelling variation would be extremely large and would still struggle with new terms, names and inflections.

Subword methods provide reusable pieces that can represent both common and rare expressions. A word may be decomposed into a familiar root and a prefix or suffix.

The Hugging Face tokenization algorithms documentation describes widely used approaches including byte-pair encoding, WordPiece and Unigram tokenization.

What is byte-pair encoding?

Byte-pair encoding, often called BPE, is an approach that iteratively builds a token vocabulary through frequently occurring symbol combinations under a particular training procedure.

The resulting tokens need not correspond to meaningful morphemes in the linguistic sense. They are chosen partly to support efficient representation of input sequences.

A reader should not assume that a BPE merge identifies a universal conceptual boundary. It reflects a statistical text-processing design.

What is WordPiece?

WordPiece is another subword tokenization method used in some language models. It constructs and uses a vocabulary of subword units according to its training objective and algorithm.

Its token boundaries may differ from BPE on the same word. Both can represent useful text while dividing it differently.

The existence of several successful tokenizers is evidence that token boundaries are engineering choices, not a single natural segmentation of human thought.

What is Unigram tokenization?

The Unigram approach begins with a candidate vocabulary and uses a probabilistic approach to select useful token pieces under its model.

The Hugging Face tokenizer overview explains how it differs from the merging procedures associated with BPE.

For a general reader, the central lesson is that the computer’s internal pieces are not guaranteed to align with the way human speakers perceive words or concepts.

Why token counts differ across languages

Languages differ in scripts, word formation and grammatical structures, and tokenizers differ in their vocabulary and training material.

The same amount of information may require different numbers of tokens in different languages or encodings. This can affect cost, context limits and output length under particular systems.

A universal translator cannot assume that equal word count means equal computational cost or equivalent expressive detail.

What is a context window?

A context window is the amount of relevant input that a particular model or application can consider within its operating constraints, commonly measured in tokens.

Larger context capacity can help with lengthy documents, but it does not guarantee that the model will faithfully use every fact. Retrieval choices, summarisation, attention and generation still matter.

An application might omit earlier conversation or supply a shorter summary. A user should not assume every old constraint necessarily remains active in every subsequent request.

Why missing context changes an answer

Imagine the question “Is it approved?” following a conversation about an initial product test. In another context the same words refer to legal authorisation.

The tokens are identical, but the intended referent and authority differ. A model that receives incomplete history may select the wrong interpretation.

The proper safeguard is to make consequential references explicit: what is being approved, by whom, under what rules and at which stage.

What is an embedding?

An embedding is a vector representation of data in a learned or constructed space, often designed to make relevant patterns more accessible to computational models.

The Google embeddings module explains how dense vector representations can capture relationships among items and improve efficiency for certain machine-learning tasks.

The vector’s numbers are not direct dictionary definitions. Their interpretation depends on the model, training data, objective and downstream use.

What is a vector?

A vector is a mathematical object that can be represented by a list of numeric components in a chosen coordinate system.

In embedding applications, those coordinates may encode patterns relevant to a task. The components are not necessarily labelled with human concepts such as “justice”, “beauty” or “truth”.

A user should be cautious when a vendor presents an embedding as if its coordinates were objective measurements of the meaning of a person or statement.

What is embedding space?

Embedding space is a mathematical space in which items have vector representations. Distances and directions can be compared using specified methods.

The Google guide to embedding space explains how representations can place related items closer together according to learned patterns.

What counts as similar depends on the model’s task. A representation useful for food recommendations may be unsuitable for detecting legal contradictions.

What does cosine similarity mean?

Cosine similarity compares the angle between two vectors under the relevant numerical convention. It can help rank items according to their representation in a particular embedding space.

A high score is not a universal probability that two statements are equivalent. It may reflect shared topics, vocabulary or learned relationships.

If a search tool returns two texts as highly similar, a reviewer should still check whether one negates or qualifies the other’s claim.

Similarity is not entailment

“The device is safe” and “The device is not safe” concern the same subject and may be close in a topic-oriented embedding space.

Yet the propositions are opposed. A high similarity score can therefore coexist with a critical meaning difference.

A semantic-fidelity system needs explicit tests for negation, logical conditions, role reversal and source support beyond nearest-neighbour retrieval.

Static embeddings and polysemy

Older word-embedding approaches such as word2vec can assign one fixed vector to a word, even when the word has several senses.

The Google explanation of obtaining embeddings describes this limitation and why contextual embeddings were developed.

“Orange” can refer to a colour or fruit. One static representation may blur the distinction even when surrounding sentences clearly select different senses.

What are contextual embeddings?

Contextual embeddings depend on surrounding input, allowing the representation of a token or word to vary across sentences.

The word “bank” in a financial report can therefore receive a different contextual representation from “bank” in a description of a river.

This can improve many language tasks, but the representation remains model-dependent. It is not an infallible or universally human-readable explanation of meaning.

Distributional patterns and actual knowledge

Models can learn that expressions occurring in similar contexts often share useful relationships. This is sometimes described through the distributional hypothesis.

But co-occurrence patterns do not establish the truth of every statement containing the words. Repeated false reports can also produce learned statistical associations.

A model might predict which words plausibly follow a statement without verifying whether the statement is supported by a reliable source.

A vector is not an invariant concept ID

A stable identifier in a controlled vocabulary can refer to a deliberately defined concept within a specified scheme.

An embedding vector depends on training, model version and the representation method. A different model may produce different coordinates for similar text.

A vocabulary-engineering project should distinguish reference identifiers, definitions and evidence from learned numerical representations that may change between model versions.

Why embedding models need versioning

An organisation may update its embedding model to improve retrieval. The new vectors may no longer be directly comparable with the old vectors.

Search rankings can change even if the underlying documents have not. That is a model migration, not necessarily evidence that the documents changed meaning.

A responsible system records the embedding model version, indexing process and evaluation results before claiming improved relevance.

Retrieval is different from generation

A retrieval system searches a collection for items that appear relevant. A generative model produces new text based on its inputs and operating process.

A retrieved document may be old, mislabelled or irrelevant to the user’s specific claim. A generated explanation may introduce further mistakes.

Good applications keep the retrieved sources and generated interpretation distinguishable so readers can check the connection.

What is semantic search?

Semantic search commonly uses models to retrieve text or items according to learned representations of relevance rather than exact word overlap alone.

It can find related material even when the query and document use different words. That can be valuable for large archives and multilingual collections.

But “semantic” in the name does not guarantee that the search system has comprehended every nuance or verified every returned claim.

Why nearest neighbours can mislead

A query about whether a company is not licensed may retrieve a page discussing its licence because most of the words and concepts are closely related.

The search result can be topically relevant while failing to answer the question correctly. A reasoning step must evaluate what the source actually asserts.

The quality of a search result and the truth of a proposed conclusion are separate matters.

What is a reranker?

A reranker is a model or procedure that evaluates candidate results to produce a new ordering, often using more information about the query-document relationship.

It can improve relevance for a defined benchmark but may still misrank certain questions or fail to recognise missing conditions.

Its outputs need the same evidence-based evaluation as other ranking systems. A high score is not a fact-check.

Retrieval-augmented generation

Retrieval-augmented generation, commonly called RAG, uses retrieved information as context for a generative model’s answer.

This architecture can help incorporate current or domain-specific material, but it does not guarantee that sources are accurate or that the model uses them correctly.

A successful answer should trace consequential claims to appropriate passages and distinguish quotations from inference.

Hallucinations and fluent text

A generative model can produce a plausible sentence that is factually wrong or unsupported. A high likelihood of a token sequence does not independently establish real-world truth.

The NIST Generative AI Profile discusses risks involving inaccurate or fabricated output.

An organisation using AI text should have a process to check important claims, dates, quantities, names and source references before publication.

Token prediction is not intent verification

A model’s generation process may be trained to predict text or otherwise optimise objectives related to language. It can follow instructions useful enough for many tasks.

That capability should not be mistaken for a guarantee that the model has identified the speaker’s full private intention or the legal effect of a sentence.

Intent fidelity requires comparing outputs with the actual task, context and approved requirements, not merely observing fluent continuation.

Tokens and moral or legal responsibility

A system may emit “Approved”, “Paid” or “Permission granted” as text. Those words cannot by themselves create an authorised transaction or decision.

If an AI application can take permitted actions through external systems, success must be confirmed through the authoritative action result.

The distinction between generated language and verified external action is crucial for public trust.

Token boundaries in names and cultures

Names and expressions from different language communities may be split into tokens differently. Rare or unfamiliar spellings can also affect the representation.

This is not evidence that one person’s name is less legitimate. It reflects the model’s tokenizer and training choices.

AI systems should test performance on the populations and languages they intend to serve, rather than assume one English-centred benchmark describes universal quality.

Unicode is another distinct layer

Unicode identifies abstract characters so digital systems can exchange text across scripts. Tokenizers operate on text representations to produce processing units.

A Unicode character is not necessarily a token, a word or a complete concept. A name may contain several code points and be divided into multiple tokens.

The Unicode Character Encoding Model explains the representation layers that precede machine-learning tokenization.

A universal language layer would need more than embeddings

A proposed semantic interlingua might include controlled concepts, actors, actions, conditions, time and authority.

Embeddings could help find candidate concept mappings or related expressions, but they cannot alone establish exact legal equivalence or justify a disputed category.

A robust architecture keeps structured meaning records and original source evidence alongside model representations.

How to test an embedding for meaning loss

Build a small collection of paired sentences: faithful paraphrases, negated versions, role reversals, changed deadlines and altered permissions.

Compare similarity scores. Then ask whether the system distinguishes material changes reliably and whether its performance generalises beyond examples used in development.

If an embedding treats opposites as near neighbours, that may still be suitable for topical retrieval but not sufficient for compliance verification.

A hypothetical safety search

A worker searches for “equipment is not approved for wet areas.” The system retrieves a manual section about the equipment’s approval.

A summariser then states “approved for wet areas” because the negation was overlooked.

The mistake involves retrieval, interpretation and output checking. Merely improving tokenization would not necessarily address the missing prohibition.

A hypothetical multilingual service

An international support tool translates “The customer may appeal within ten days” into several languages. The token counts and word orders differ.

The important invariant is the right to appeal, the person entitled to act and the actual time limit.

The system should be evaluated for those conditions, not for equal token counts or similar-looking embeddings alone.

A hypothetical research database

A research team embeds article abstracts for semantic search. Two studies discussing the same treatment are returned close together, even though one reports a benefit and another reports no detectable benefit.

The retrieval system may be functioning properly as a topic finder. The researcher still needs to read methods, results and limitations to determine what evidence supports each conclusion.

Semantic proximity is an aid to discovery, not a replacement for critical reading.

A practical AI vocabulary pipeline

First preserve the original text, language, date and source. Second record tokenization and model versions when they affect reproducibility. Third use embeddings or retrieval to identify candidates for interpretation.

Fourth verify the actual claims and required conditions. Fifth generate the message for the intended audience. Sixth check the final answer against the source and preserve a correction process.

Each stage answers a different question; a failure in one stage should not be concealed by apparent success in another.

Seven questions about an AI meaning claim

  • Unit: Is the claim about a word, token, vector, sentence or concept?
  • Tokenizer: Which scheme divided the text and how?
  • Model: What system and version produced the representation?
  • Objective: Was it trained for prediction, similarity, retrieval or another task?
  • Context: Which surrounding text and documents were available?
  • Evaluation: Were contradictions and boundary cases tested?
  • Evidence: Does the actual source support the generated answer?

A seven-day AI vocabulary experiment

  • Day 1: Compare words and tokens in a simple sentence.
  • Day 2: Examine how BPE and another tokenizer segment an unusual word.
  • Day 3: Learn why vectors can represent patterns without human-readable labels.
  • Day 4: Compare a static and contextual use of the word “bank”.
  • Day 5: Search for two opposing statements on the same topic.
  • Day 6: Test whether similarity alone notices a missing “not”.
  • Day 7: Audit an AI summary for source support, intent and changed conditions.

Common questions

Is one token always one word?

No. Tokenization can split words into subwords or other units, and schemes vary across models.

Is an embedding an exact definition of a word?

No. It is a numerical representation learned or constructed for a task.

Does high vector similarity prove two sentences mean the same thing?

No. Topic similarity can coexist with contradiction or a changed requirement.

Can one word have different contextual embeddings?

Yes. Contextual models can produce different representations depending on the surrounding input.

Does more context guarantee a factually correct AI answer?

No. It can help, but source quality, model behaviour and independent verification still matter.

Are tokens the immutable elements of a universal language?

No. Their boundaries depend on engineering choices and do not constitute universal atoms of meaning.

Conclusion: machine units are useful, but meaning needs more structure

Tokens make text processable. Embeddings make patterns measurable. Vectors make comparison efficient. Context helps systems select relevant interpretations. Together they support search, translation and AI generation across languages.

The essential distinction is between text segmentation, numerical representation, conventional meaning, speaker intent and factual verification. A reliable vocabulary-engineering system uses each tool for what it can establish and does not mistake a coordinate in embedding space for the truth of a proposition.

Continue the Vocabulary at Every Zoom Level

Continue exploring how words, time, logical structure, machine representations and the evidence behind records interact to shape society’s understanding.

Sources and further reading