# Large language model (LLM) in finance

Large language model (LLM) in finance is an AI system that interprets or generates financial text to support research and analysis, but its output requires verification against reliable data.

## What it means

A large language model processes and generates text using patterns learned during training. In finance, it can help organize earnings commentary, explain market terminology, summarize news or express an analysis in plain English. It does not independently know whether a claim is current or correct. A fluent answer can contain an invented fact, omit a qualification or misread a number.

An LLM is different from a market-data feed, a deterministic risk formula and an order-execution system. Its usefulness depends on the task, the information supplied to it and checks on its output. Financial decisions also require attention to prices, quantities, trading costs and risk—not just a plausible written explanation.

## How it is calculated

An LLM has no single financial formula. During text generation, it assigns possible next tokens—units of text—a probability based on the input and text already generated. A simplified expression is `P(t_next | prompt, t_previous; model)`. Here, `P` is the model-assigned probability; `t_next` is a possible next token; `prompt` is the supplied question or context; `t_previous` represents tokens already generated; and `model` represents the model's learned parameters. This is a probability over text, **not** a probability that a trade succeeds or a return forecast.

A finance application may separately calculate spreads, volatility or other quantities with explicit formulas, then supply those results to an LLM for interpretation. The distinction matters: text generation does not validate the underlying calculation.

## Worked example

Suppose, hypothetically, an investor considers a basket containing 100 shares of Stock A at US$50 per share and 50 shares of Stock B at US$100 per share. The two line values are `100 × US$50 = US$5,000` and `50 × US$100 = US$5,000`, making a US$10,000 basket before trading costs.

1. A separate calculation establishes that each line is 50% of the basket: `US$5,000 / US$10,000 = 0.50`.
2. An LLM receives those figures and a supplied news summary. It explains that the basket has equal dollar weights and describes the news in plain language.
3. A check compares the explanation with the calculated weights and the supplied text. If the LLM calls Stock A a 60% position, that statement is wrong even if the rest sounds convincing.

The numbers and stocks are illustrative. This example does not establish that either stock is suitable or that a particular trade will succeed.

## Why it matters before you trade

Before placing an order, an investor may need to reconcile several types of information: order size, liquidity, estimated execution costs, volatility, concentration and recent company news. An LLM can make such information easier to read, but wording should not be mistaken for measurement. Check whether a numerical claim has a defined input and calculation, whether a news claim matches its source, and whether the analysis addresses the intended order and execution conditions.

A model's confidence-sounding language is not evidence of accuracy. In particular, a probability attached to an analytical verdict needs its own definition; it should not be inferred from the probability the LLM assigns to its next words.

## How PreTrAIde uses it

PreTrAIde is an AI pre-trade analysis platform for stock baskets. A user specifies one or more stocks, each with a buy or sell side, quantity and execution conditions. Its deterministic quantitative layer estimates measures including spread, market impact and daily volatility, and produces 0–100 liquidity, volatility and execution scores. AI agents then reason about each stock and the basket, anchored on those scores, news and analyst ratings, and provide plain-language reasoning.

PreTrAIde returns a GO, NO-GO or MODIFY verdict, a risk assessment, a suggested execution strategy and a model-estimated success probability between 5% and 95%. That probability is neither a guarantee nor a return forecast. Guardrails correct specified contradictions, including making a suspended stock NO-GO and downgrading a GO whose success probability is below 50%; they move verdicts only in a conservative direction. PreTrAIde does not receive, transmit or execute orders: its verdicts are decision support, not recommendations.

## Common mistakes

- **Treating fluent text as verified data.** Check figures and factual claims against their inputs.
- **Confusing token probabilities with trade probabilities.** They describe different things.
- **Assuming an LLM calculated a risk measure.** Ask whether a separate, defined calculation produced it.
- **Ignoring missing context.** An explanation may change when order quantity, execution conditions or news inputs change.
- **Treating an AI verdict as an instruction.** Analysis software does not replace an investor's decision or broker.

---
Source: https://pretraide.com/glossary/large-language-model
