Sony Pixel Power calrec Sony

Explaining Tokens - the Language and Currency of AI

17/03/2025

Under the hood of every AI application are algorithms that churn through data in their own language, one based on a vocabulary of tokens.

Tokens are tiny units of data that come from breaking down bigger chunks of information. AI models process tokens to learn the relationships between them and unlock capabilities including prediction, generation and reasoning. The faster tokens can be processed, the faster models can learn and respond.

AI factories - a new class of data centers designed to accelerate AI workloads - efficiently crunch through tokens, converting them from the language of AI to the currency of AI, which is intelligence.

With AI factories, enterprises can take advantage of the latest full-stack computing solutions to process more tokens at lower computational cost, creating additional value for customers. In one case, integrating software optimizations and adopting the latest generation NVIDIA GPUs reduced cost per token by 20x compared to unoptimized processes on previous-generation GPUs - delivering 25x more revenue in just four weeks.

By efficiently processing tokens, AI factories are manufacturing intelligence - the most valuable asset in the new industrial revolution powered by AI.

What Is Tokenization? Whether a transformer AI model is processing text, images, audio clips, videos or another modality, it will translate the data into tokens. This process is known as tokenization.

Efficient tokenization helps reduce the amount of computing power required for training and inference. There are numerous tokenization methods - and tokenizers tailored for specific data types and use cases can require a smaller vocabulary, meaning there are fewer tokens to process.

For large language models (LLMs), short words may be represented with a single token, while longer words may be split into two or more tokens.

The word darkness, for example, would be split into two tokens, dark and ness, with each token bearing a numerical representation, such as 217 and 655. The opposite word, brightness, would similarly be split into bright and ness, with corresponding numerical representations of 491 and 655.

In this example, the shared numerical value associated with ness can help the AI model understand that the words may have something in common. In other situations, a tokenizer may assign different numerical representations for the same word depending on its meaning in context.

For example, the word lie could refer to a resting position or to saying something untruthful. During training, the model would learn the distinction between these two meanings and assign them different token numbers.

For visual AI models that process images, video or sensor data, a tokenizer can help map visual inputs like pixels or voxels into a series of discrete tokens.

Models that process audio may turn short clips into spectrograms - visual depictions of sound waves over time that can then be processed as images. Other audio applications may instead focus on capturing the meaning of a sound clip containing speech, and use another kind of tokenizer that captures semantic tokens, which represent language or context data instead of simply acoustic information.

How Are Tokens Used During AI Training? Training an AI model starts with the tokenization of the training dataset.

Based on the size of the training data, the number of tokens can number in the billions or trillions - and, per the pretraining scaling law, the more tokens used for training, the better the quality of the AI model.

As an AI model is pretrained, it's tested by being shown a sample set of tokens and asked to predict the next token. Based on whether or not its prediction is correct, the model updates itself to improve its next guess. This process is repeated until the model learns from its mistakes and reaches a target level of accuracy, known as model convergence.

After pretraining, models are further improved by post-training, where they continue to learn on a subset of tokens relevant to the use case where they'll be deployed. These could be tokens with domain-specific information for an application in law, medicine or business - or tokens that help tailor the model to a specific task, like reasoning, chat or translation. The goal is a model that generates the right tokens to deliver a correct response based on a user's query - a skill better known as inference.

How Are Tokens Used During AI Inference and Reasoning? During inference, an AI receives a prompt - which, depending on the model, may be text, image, audio clip, video, sensor data or even gene sequence - that it translates into a series of tokens. The model processes these input tokens, generates its response as tokens and then translates it to the user's expected format.

Input and output languages can be different, such as in a model that translates English to Japanese, or one that converts text prompts into images.

To understand a complete prompt, AI models must be able to process multiple tokens at once. Many models have a specified limit, referred to as a context window - and different use cases require different context window sizes.

A model that can process a few thousand tokens at once might be able to process a single high-resolution image or a few pages of text. With a context length of tens of thousands of tokens, another model might be able to summarize a whole novel or an hourlong podcast episode. Some models even provide context lengths of a million or more tokens, allowing users to input massive data sources for the AI to analyze.

Reasoning AI models, the latest advancement in LLMs, can tackle more complex queries by treating tokens differently than before. Here, in addition to input and output tokens, the model generates a host of reasoning tokens over minutes or hours as it thinks about how to solve a given problem.

These
LINK: https://blogs.nvidia.com/blog/ai-tokens-explained/...
See more stories from nvidia

More from Nvidia

27/03/2025

The Dream Life Awaits: Play inZOI' on GeForce NOW Anytime, Anywhere

A new resident is moving into the cloud - KRAFTON's inZOI joins the 2,000+ games in the GeForce NOW cloud gaming library. Plus, members can get ready for a...

26/03/2025

Buzz Solutions Uses Vision AI to Supercharge the Electric Grid

The reliability of the electric grid is critical. From handling demand surges and evolving power needs to preventing infrastructure failures that can cause wil...

25/03/2025

NVIDIA NIM Microservices Now Available to Streamline Agentic Workflows on RTX AI PCs and Workstations

Generative AI is unlocking new capabilities for PCs and workstations, including ...

20/03/2025

EPRI, NVIDIA and Collaborators Launch Open Power AI Consortium to Transform the Future of Energy

The power and utilities sector keeps the lights on for the world's populatio...

20/03/2025

Assassin's Creed Shadows' Emerges From the Mist on GeForce NOW

Time to sharpen the blade. GeForce NOW brings a legendary addition to the cloud: Ubisoft's highly anticipated Assassin's Creed Shadows is now available ...

19/03/2025

Innovation to Impact: How NVIDIA Research Fuels Transformative Work in AI, Graphics and Beyond

The roots of many of NVIDIA's landmark innovations - the foundational techno...

19/03/2025

NVIDIA Blackwell Powers Real-Time AI for Entertainment Workflows

AI has been shaping the media and entertainment industry for decades, from early recommendation engines to AI-driven editing and visual effects automation. Real...

19/03/2025

NVIDIA Honors Americas Partners Advancing Agentic and Physical AI

NVIDIA this week recognized 14 partners leading the way across the Americas for their work advancing agentic and physical AI across industries. The 2025 Americ...

18/03/2025

AI on the Menu: Yum! Brands and NVIDIA Partner to Accelerate Restaurant Industry Innovation

The quick-service restaurant industry is a marvel of modern logistics, where spe...

18/03/2025

Telecom Leaders Call Up Agentic AI to Improve Network Operations

Global telecommunications networks can support millions of user connections per day, generating more than 3,800 terabytes of data per minute on average. That m...

18/03/2025

NVIDIA Aerial Expands With New Tools for Building AI-Native Wireless Networks

The telecom industry is increasingly embracing AI to deliver seamless connections - even in conditions of poor signal strength - while maximizing sustainability...

18/03/2025

From AT&T to the United Nations, AI Agents Redefine Work With NVIDIA AI Enterprise

AI agents are transforming work, delivering time and cost savings by helping peo...

18/03/2025

Full Steam Ahead: NVIDIA-Certified Program Expands to Enterprise Storage for Faster AI Factory Deployment

AI deployments thrive on speed, data and scale. That's why NVIDIA is expandi...

18/03/2025

NVIDIA Accelerated Quantum Research Center to Bring Quantum Computing Closer

As quantum computers continue to develop, they will integrate with AI supercomputers to form accelerated quantum supercomputers capable of solving some of the w...

18/03/2025

AI Factories Are Redefining Data Centers and Enabling the Next Era of AI

AI is fueling a new industrial revolution - one driven by AI factories. Unlike traditional data centers, AI factories do more than store and process data - the...

18/03/2025

Accelerating AI Development With NVIDIA RTX PRO Blackwell Series GPUs and NVIDIA NIM Microservices for RTX

As generative AI capabilities expand, NVIDIA is equipping developers with the to...

17/03/2025

Explaining Tokens - the Language and Currency of AI

Under the hood of every AI application are algorithms that churn through data in their own language, one based on a vocabulary of tokens. Tokens are tiny units...

13/03/2025

GTC 2025 - Announcements and Live Updates

What's next in AI is at GTC 2025. Not only the technology, but the people and ideas that are pushing AI forward - creating new opportunities, novel solution...

13/03/2025

Relive the Magic as GeForce NOW Brings More Blizzard Gaming to the Cloud

Bundle up - GeForce NOW is bringing a flurry of Blizzard titles to its ever-expanding library. Prepare to weather epic gameplay in the cloud, tackling the genr...

13/03/2025

Gaming Goodness: NVIDIA Reveals Latest Neural Rendering and AI Advancements Supercharging Game Development at GDC 2025

AI is leveling up the world's most beloved games, as the latest advancements...

13/03/2025

Drop It Like It's Mod: Breathing New Life Into Classic Games With AI in NVIDIA RTX Remix

PC game modding is massive, with over 5 billion mods downloaded annually. Mods p...

10/03/2025

Utah to Advance AI Education, Training

A new AI education initiative in the State of Utah, developed in collaboration with NVIDIA, is set to advance the state's commitment to workforce training a...

06/03/2025

Oscars Gold: NVIDIA Researchers Honored for Advancing the Art and Science of Filmmaking

For the past 16 years, NVIDIA technologies have been working behind the scenes o...

06/03/2025

Monster Hunter Wilds' Charges Onto GeForce NOW

Time for a roaring-good time with Capcom's hit Monster Hunter Wilds. GeForce NOW members can hunt even the largest, most daunting monsters with the sharpest...

05/03/2025

Roboflow Helps Unlock Computer Vision for Every Kind of AI Builder

Ninety percent of information transmitted to the human brain is visual. The importance of sight in understanding the world makes computer vision essential for A...

03/03/2025

Animals Crossing: AI Helps Protect Wildlife Across the Globe

From Seattle, Washington, to Cape Town, South Africa - and everywhere around and between - AI is helping conserve the wild plants and animals that make up the i...

28/02/2025

CUDA Accelerated: How CUDA Libraries Bolster Cybersecurity With AI

Editor's note: This is the next topic in our new CUDA Accelerated news series, which showcases the latest software libraries, NVIDIA NIM microservices and t...

27/02/2025

Telenor Builds Norway's First AI Factory, Offering Sustainable and Sovereign Data Processing

Norway's first sustainable and secure AI cloud service demonstrates how coun...

27/02/2025

Agentic AI Leaders to Showcase Latest Advancements at NVIDIA GTC

From improving customer experiences to boosting operational efficiency, agentic AI - advanced AI systems designed to autonomously reason, plan and execute compl...

27/02/2025

March Into Gaming With GeForce NOW's 14 Must-Play Titles for Spring

GeForce NOW is blooming further with an array of 14 new titles in March. A garden of gaming delights will have members marching straight into action and advent...

26/02/2025

Explore How RTX AI PCs and Workstations Supercharge AI Development at NVIDIA GTC 2025

Generative AI is redefining computing, unlocking new ways to build, train and op...

24/02/2025

NVIDIA Earth-2 Features First Gen AI to Power Weather Super-Resolution for Continental US

To better prepare communities for extreme weather, forecasters first need to see...

20/02/2025

It's a Sign: AI Platform for Teaching American Sign Language Aims to Bridge Communication Gaps

American Sign Language is the third most prevalent language in the United States...

20/02/2025

Calling All Creators: GeForce RTX 5070 Ti GPU Accelerates Generative AI and Content Creation Workflows in Video Editing, 3D and More

The NVIDIA GeForce RTX 5070 Ti graphics cards - built on the NVIDIA Blackwell ar...

20/02/2025

Into the Omniverse: How OpenUSD and Synthetic Data Are Shaping the Future for Humanoid Robots

Editor's note: This post is part of Into the Omniverse, a series focused on ...

20/02/2025

Step Into the World of Avowed' on GeForce NOW

Wield magic and steel as GeForce NOW's fifth-anniversary celebration summons Obsidian Entertainment's highly anticipated Avowed to the cloud. This firs...

19/02/2025

Temenos' Barb Morgan Shares How Chatbots and AI Agents Are Reshaping Customer Service in Banking

In financial services, AI has traditionally been used primarily for fraud detect...

19/02/2025

Massive Foundation Model for Biomolecular Sciences Now Available via NVIDIA BioNeMo

Scientists everywhere can now access Evo 2, a powerful new foundation model that...

19/02/2025

Telcos Dial Up AI: NVIDIA Survey Unveils Industry's AI Trends

The telecom industry's efforts to drive efficiencies with AI are beginning to show fruit. An increasing focus on deploying AI into radio access networks (R...

13/02/2025

Physicists Tap James Webb Space Telescope to Track New Asteroids and City-Killer Rock

Asteroids were responsible for extinction events hundreds of millions of years a...

13/02/2025

Physicists Tap James Web Space Telescope to Track New Asteroids and City-Killer Rock

Asteroids were responsible for extinction events hundreds of millions of years a...

13/02/2025

GeForce NOW Welcomes Warner Bros. Games to the Cloud With Batman: Arkham' Series

It's a match made in heaven - GeForce NOW and Warner Bros. Games are collabo...

12/02/2025

How Scaling Laws Drive Smarter, More Powerful AI

Just as there are widely understood empirical laws of nature - for example, what goes up must come down, or every action has an equal and opposite reaction - th...

12/02/2025

Safety First: Leading Partners Adopt NVIDIA Cybersecurity AI to Safeguard Critical Infrastructure

The rapid evolution of generative AI has created countless opportunities for inn...

11/02/2025

NVIDIA CEO Awarded for Advancing Precision Medicine With Accelerated Computing, AI

NVIDIA's contributions to accelerating medical imaging, genomics, computatio...

11/02/2025

Technovation Empowers Girls in AI, Making AI Education More Inclusive and Engaging

Tara Chklovski has spent much of her career inspiring young women to take on som...

07/02/2025

AI-Designed Proteins Take on Deadly Snake Venom

Every year, venomous snakes kill over 100,000 people and leave 300,000 more with devastating injuries - amputations, paralysis and permanent disabilities. The v...

06/02/2025

When the Earth Talks, AI Listens

AI built for speech is now decoding the language of earthquakes. A team of researchers from the Earth and environmental sciences division at Los Alamos Nationa...

06/02/2025

Medieval Mayhem Arrives With Kingdom Come: Deliverance II' on GeForce NOW

GeForce NOW celebrates its fifth anniversary this February with a lineup of five major releases. The month kicks off with Kingdom Come: Deliverance II. Prepare ...

05/02/2025

Building More Builders: Gooey.AI Makes AI More Accessible Across Communities

When non-technical users can create and deploy reliable AI workflows, organizations can do more to serve their clientele Platforms for developing no- and low-c...