Token
A token is the discrete numeric unit of text, typically representing a word fragment, that a model processes as its fundamental building block.
Listen to this definition
Uses a voice available on your device
Audio options
On this page 5 sections
Related concepts 4 concepts
What it is
Models do not ingest raw strings but rather sequences of integers mapped to a vocabulary. A tokenizer breaks text into these units where one token roughly corresponds to 0.75 words or four characters in English. Because the underlying vocabulary size is finite, typically between 32,000 and 128,000 unique entries, common words are represented as single tokens while rare terms are decomposed into multiple sub-word parts. This conversion happens before data hits the model and is the primary factor determining input and output volume.
Why it matters
Token counts directly dictate your API costs, latency, and system reliability. Because the context window is strictly capped by the number of tokens, exceeding this limit triggers truncation errors or requires expensive data management strategies like retrieval-augmented generation. Predicting latency requires knowing that inference speed is bound by the serial generation of tokens, meaning longer responses incur higher wall-clock time linearly.
In practice
You must use an external tokenizer library to calculate the cost and validity of a prompt before sending it to an API. In your production code, you monitor the token usage returned in the metadata of each response to track budget consumption and ensure prompt length fits within the provider's constraints. You will often adjust your system prompts or chunking strategies to minimize token consumption while maintaining the performance of the model.
The tradeoff
Engineers often conflate word count with token count, which leads to budget overruns and unexpected context window overflows.
Where it appears
Research summaries that use Token, each linked to its source paper.
-
Why Large Language Models Miss Information
Reading Is Not Using: Retrieval, Judgment, and the Design of AI Financial Research Workflows
This paper shows that while models can retrieve relevant financial data from long documents, they fail to act on that information unless the data is restated specifically for the decision prompt.
-
Efficient Reference Caching for Diffusion Transformers
Anchoring Instruction Outside Mask: Exact Reference Caching for Efficient In-Context Diffusion Transformers
The researchers developed a text anchor method to enable high-speed reference image caching in diffusion transformers without sacrificing model performance.
-
Dynamic Orchestration for Scientific AI Agents
Eureka: Task-Conditioned Meta-Agent Orchestration for Scientific Discovery
Eureka introduces a meta-agent architecture that dynamically promotes specialized agents to solve long-horizon scientific tasks while minimizing computational overhead.
-
Structuring Video Data for Creative Agents
AVA-Encoder: Towards Agent-Native Video Representation Learning
The AVA-Encoder converts complex video content into a structured knowledge graph to enable more accurate video reconstruction and agent-based editing.
-
How Token Budget Changes LLM Rankings
Who Thinks Best Depends on How Long You Let Them: Budget-Dependent Rankings in LLM Evaluation
The paper demonstrates that model rankings shift significantly based on the token generation budget allowed during inference, challenging the reliability of standard static evaluation benchmarks.
-
Argus Agentic Runtime for Long Tasks
Argus: A General-Purpose Agentic Runtime for Long-Horizon Reasoning
Argus is a persistent runtime system that improves research agent performance by evolving operational state and project objectives alongside human guidance.
-
Flamingo Visual Language Model
Flamingo: a Visual Language Model for Few-Shot Learning
Flamingo is a visual language model that adapts to novel multimodal tasks using only a handful of annotated examples.
-
Improving Long Term Geographic Change Analysis
GeoChrono: Benchmarking and Rethinking Long-Term Temporal Understanding in Remote Sensing
The paper introduces GeoChrono, a multi-modal large language model designed to track and reason about geographic evolution over time using a new cognitive hierarchy and dataset.
-
Securing Large Language Models with Semantic Overlays
Semantic Overlays: Mitigating Prompt Injection with Annotations Beyond Tokens and Steering Vectors
Semantic Overlays add an out-of-band annotation layer to input streams to help models distinguish between trusted instructions and untrusted content, significantly reducing prompt injection success rates.
-
Predicting Stocks Using Language Model Tokens
Financial Numerical Prediction and Allocation as Token Generation
Researchers successfully used a single causal language model to perform stock forecasting and portfolio allocation by treating financial data as tokens rather than using traditional task-specific numerical heads.
-
Processing Time Series as Images Improves Efficiency
A Picture is Worth a Thousand Tokens: How Vision Language Models Cut AI Energy Costs While Improving Accuracy
Researchers achieved significant energy and token savings by converting time series data into visual plots for processing by vision-language models.
-
Optimizing User Representation with Behavioral Densing
Towards a Densing Law for User Representation Learning at Billion-Scale Capacity
The researchers introduce a strategy called ALGN to improve user representation learning by reducing redundant behavioral data and optimizing model capacity.
-
Processing Time Series as Images Improves Efficiency
A Picture is Worth a Thousand Tokens: How Vision Language Models Cut AI Energy Costs While Improving Accuracy
Researchers achieved significant energy and token savings by converting time series data into visual plots for processing by vision-language models.
-
Learning 3D Robot Actions from Video
LAWM-3D: Learning 3D-Aware Latent Actions from Human Videos for Generalizable Robot World Models
LAWM-3D enables robots to learn 3D-aware actions by training world models on human videos using a new geometric alignment method.
-
Universal Node Representation Learning Without Tuning
Node4All: Learning Node Representation Beyond Datasets
Node4All introduces a general-purpose method for learning graph node representations that works across arbitrary datasets without needing dataset-specific optimization or hyperparameter tuning.
-
Omni-modal Understanding for E-commerce Live Streaming
TLive-Omni: An Omni-Modal Understanding Model for E-Commerce Live Streaming
TLive-Omni is a multimodal model designed to process and understand the complex mix of speech, text, and video signals found in e-commerce live streams.
-
Optimizing Robot Control Through Action Sensitive Compression
Just Noticeable Difference Modeling for Token Compression in Vision-Language-Action Models
The authors introduce a method to compress token data in vision-language-action models by identifying and prioritizing information that has the least impact on physical robot movements.
-
Optimizing Reinforcement Learning for Autonomous Agents
Agent Lightning v1.0: Towards Harnessed Agentic RL
Agent Lightning v1.0 provides a declarative framework to manage the complex training loops required for agents that interact with external environments.
-
Removing Unwanted Concepts in Image Models
MapRoute++: Surrogate-Guided Semantic Routing for Visual Concept Unlearning
MapRoute++ provides a system for removing specific visual concepts from diffusion models using input-conditioned routing to redirect target tokens toward safe surrogates.
-
Structuring Scientific Knowledge from Full Text
MUSE: A Full-Text Cross-Domain Knowledge Base of Scientific Problems, Solutions, and Rationales
The paper introduces MUSE, a large-scale knowledge base of 36,960 structured problem-solution-rationale triplets extracted directly from full-text scientific papers.
-
Stress Testing LLM Reasoning via Taboo
Decoding-Level Taboo: A Diagnostic Stress Test for LLM Robustness
Researchers developed a diagnostic framework called Decoding-Level Taboo that forces language models off their primary prediction paths to test how robust their internal reasoning is when constrained.
-
Optimizing Agentic Context via Blast Radius
Blast Radius
Blast Radius reduces LLM token consumption by identifying and archiving redundant or concluded context in agentic coding environments.
-
Using AI to Reduce Belief in Conspiracy Theories
Reducing belief in conspiracy theories as they unfold using large language models
The researchers evaluated if multi-turn LLM conversations can effectively debunk conspiracy theories as they emerge during crisis events.
-
Making Synthetic Clinical Benchmarks More Realistic
Improving the Realism of Synthetic Clinical Benchmarks Under Utility Constraints
The researchers developed a method to increase the clinical realism of synthetic datasets for AI agents while maintaining operational utility through constrained optimization.
-
Efficient Token Pruning for Multimodal Models
OmniDelta: Skill-Driven Budget Allocation for Token Compression in OmniLLMs
OmniDelta optimizes token compression in audio-video large language models by dynamically allocating processing budgets based on task-specific relevance.
-
Improving Model Reasoning With On Policy Delta Distillation
On-Policy Delta Distillation
The paper introduces On Policy Delta Distillation, a new method that improves how reasoning capabilities are transferred from a teacher model to a student model.
-
Efficient Token Pruning for 3D Vision Models
CoverPrune: Coverage-Driven Token Pruning for 3D VLMs via Optimal Transport
CoverPrune improves 3D vision model efficiency by using optimal transport to intelligently prune visual tokens while preserving essential scene coverage.
-
Embedding Assistant Personas During Model Training
Synthetic Persona Pretraining: Alignment from Token Zero
Researchers developed Synthetic Persona Pretraining to embed desired assistant behaviors into language models starting from the very first token of training.
-
Pricing and Default Token Design for LLM Reasoning Services
Keep, Customize, or Exit: Default Design and Token Pricing in LLM Reasoning Services
This paper investigates how to set per-token prices and default reasoning-token allocations for an LLM reasoning service where users can accept defaults, customize allocations, or exit.
-
How Token Budget Changes LLM Rankings
Who Thinks Best Depends on How Long You Let Them: Budget-Dependent Rankings in LLM Evaluation
The paper demonstrates that model rankings shift significantly based on the token generation budget allowed during inference, challenging the reliability of standard static evaluation benchmarks.
-
Predicting Stocks Using Language Model Tokens
Financial Numerical Prediction and Allocation as Token Generation
Researchers successfully used a single causal language model to perform stock forecasting and portfolio allocation by treating financial data as tokens rather than using traditional task-specific numerical heads.
-
Fixing On-Policy Distillation Mismatch
Mismatch Matters: On-Policy Distillation Beyond Token Agreement
The paper introduces TIDE, a method to fix model distillation failures caused by degenerate token agreement and teacher-student mismatch.
-
Optimizing Vision Language Models for Driving
Depth-Wise Probing and Pruning of the Planning Token in a Driving Vision-Language-Action Model
The paper investigates how to reduce the computational depth of vision-language-action models by analyzing how navigation commands are processed across decoder layers.
-
Automating Visual Token Pruning for LLMs
An AI4AI Framework for Visual Token Pruning
The paper introduces AutoPrune, a framework that uses large language models to automatically design efficient algorithms for reducing the number of visual tokens in multimodal models.
-
Extracting Hidden Reasoning from Large Models
EchoCoT: Extracting Hidden Chain-of-Thought from Large Reasoning Models
Researchers developed a method to extract near-verbatim chain-of-thought reasoning traces from black-box reasoning models using adversarial API injection techniques.
-
Processing Recipe Data with Transformers
RecipeNet: A Hierarchical Transformer for Recipe Data
RecipeNet is a hierarchical transformer model designed to process heterogeneous recipe data with variable schemas and sequential procedural steps.
-
Reprogramming Models into Assertive Socratic Assistants
Behavioral Reprogramming of Open-Weights Models: Cognitive Plasticity and Alignment Bounds
The paper demonstrates how to fine-tune open-weights models to shift from passive assistant behaviors to a proactive Socratic persona using targeted parameter-efficient techniques.
-
Expanding LLM Tokenizers Without Discarding Weights
In-Place Tokenizer Expansion for Pre-trained LLMs
This paper presents an in-place recipe to expand pre-trained model tokenizers to better support underrepresented languages without discarding existing model weights.