Back to Glossary

Large Language Model (LLM)

Large Language Model (LLM) Definition: A large language model (LLM) is an AI system trained on very large amounts of text to understand and generate language by predicting the most likely next piece of text, called a token. Repeating that prediction one token at a time lets it answer questions, summarise documents, write code and follow multi-step instructions.

What Is a Large Language Model (LLM)?

Every chatbot answer you read is built one small piece at a time. The model behind it has learned, from billions of pages of text, which pieces of language tend to follow others, and it uses that knowledge to continue whatever you type. “Large” refers to scale: modern models have billions of adjustable values, called parameters, and train on a sizeable share of the public internet plus books and code.

The design behind almost all of them is the transformer, introduced by Google researchers in a 2017 paper. Its key idea, attention, lets the model weigh how every word in a passage relates to every other word, so “it” in a long sentence can be linked to the right noun several lines earlier. That ability made it practical to train on far more text than earlier approaches could handle.

Public awareness exploded when ChatGPT launched in November 2022 and reached millions of users within weeks. Since then, LLMs have become the engine inside chat assistants, coding tools and AI agents that act on a user’s behalf.

How Does a Large Language Model Work?

Training happens in two broad stages. In pre-training, the model reads huge volumes of text and repeatedly guesses the next token, adjusting its parameters each time it is wrong, until it captures grammar, facts and patterns of reasoning. In fine-tuning, people rate or correct its answers so it learns to follow instructions and avoid harmful output, a step often done with reinforcement learning from human feedback.

When you send a prompt, the model splits it into tokens, short chunks of text that are often a whole word or part of one. For each new position it calculates a probability for every token in its vocabulary. After “Bitcoin rose 5% after the”, it might score “Fed” at 18%, “ETF” at 12% and “report” at 9%, pick one, add it to the text and repeat until the answer is complete.

Everything the model can consider at once must fit inside its context window, measured in tokens. In English, 100 tokens equal roughly 75 words, so a 200,000-token window holds about 150,000 words, enough for several long annual reports. Anything outside the window is invisible to the model, which is why long chats can “forget” early details.

Large Language Model vs. Traditional Machine Learning Model

Large Language Model Traditional Machine Learning Model
Task range One model handles many tasks through instructions Built and trained for one task, such as classifying headlines
Input Free-form text, and in many models images too Fixed, structured features
Output Open-ended text A label, score or number
Explainability Hard to trace why a given answer appeared Often easier to inspect
Cost per query Higher, grows with tokens processed Low once trained

Why Are Large Language Models Important for Traders?

LLMs turn unstructured text into usable information. A model can read an earnings call transcript, a central bank statement and a dozen news stories, then summarise the points that matter for a position in seconds. That makes text-heavy work such as sentiment analysis or fundamental analysis far faster for an individual trader.

The main limitation follows from how the model works. It produces the most plausible continuation, not a checked fact, so it can invent a figure, a quote or a source that looks right and is wrong. Its knowledge also stops at a training cutoff, so without a live data connection it cannot know where any market trades now.

Arithmetic is a second weak spot. Because numbers are split into tokens rather than handled as values, a model can slip on a percentage or a position size unless it uses a calculator tool. Treat an LLM as a fast research assistant whose numbers you verify, not as a source of trading signals.

Key Takeaways

  • A large language model is an AI system that generates text by predicting the next token, one step at a time.
  • Pre-training on vast text teaches language and knowledge, while fine-tuning teaches the model to follow instructions.
  • The context window limits how much text the model can consider at once, and anything outside it is ignored.
  • Unlike single-task machine learning models, one LLM can summarise, classify, write and reason across many tasks.
  • LLMs can state false facts confidently, have no live market knowledge on their own and can miscalculate, so their outputs need checking before you trade on them.
FAQ section

Do LLMs know current market prices?

Not on their own. A model only knows what was in its training data, which ends at a cutoff date, so live prices must come from a connected tool or data feed. Without one, any price it gives you is a guess.

Why does an LLM give different answers to the same question?

Most apps sample from the model's probability scores rather than always taking the top choice, which adds controlled randomness. Lowering a setting called temperature makes answers more consistent but less varied.

Can an LLM predict stock or crypto prices?

Not reliably. An LLM is trained to predict text, not prices, and it has no special access to future information. It can summarise data and arguments, but its view on direction is not a forecast you can trust on its own.

What is a token in an LLM?

A token is a chunk of text the model reads and writes, often a whole short word or part of a longer one. In English, 100 tokens equal roughly 75 words, and both usage limits and prices for AI models are counted in tokens.

AI Trading
AI Trading Definition: AI trading is the use of artificial…
AI Hallucination
AI Hallucination Definition: An AI hallucination is an…
Prompt Injection
Prompt Injection Definition: Prompt injection is an attack…
Function Calling
Function Calling Definition: Function calling, also called…

Live Chat

Contact our support team via live chat.

Help Center

Questions about our services?
Check out our Help Center.

Risk Warning:
Trading in leveraged products carries a high level of risk and may not be suitable for all investors.