Why Creativity is a Bug in Financial LLMs (Understanding Temperature)

Temperature is the single dial that decides whether an LLM gives you the same answer every time or a different one, and in financial extraction that difference is everything.

2:49 video4 min readWatch on YouTube

Run the exact same prompt through the exact same model three separate times and you might expect the exact same answer back. Often you don't, and the reason isn't randomness in some vague sense, it's a single, specific, adjustable number: temperature.

The mystery of changing outputs

Feed a large language model the same earnings call quote three times, using the same model and the same prompt, and it's entirely possible to get three different answers each time. That inconsistency isn't a bug in the traditional sense or a sign the model is broken. It's the direct, predictable result of one setting: temperature. Understanding what that dial actually controls explains why the same input can produce different outputs, and why that matters enormously depending on what the output is being used for.

What temperature controls

Temperature governs how much randomness the model introduces when selecting its next token. At a temperature of zero, the model behaves deterministically: it picks the single most likely next token every single time, which means the same input reliably produces the same output. As temperature rises to around 0.5, the model considers a wider range of possible tokens, introducing some variation while still staying reasonably close to the most probable answer. Push temperature up to 1.0 and the underlying probability distribution flattens out considerably, giving rare, less likely tokens a real chance of being selected. That's what people usually mean when they say a model is being "creative": at high temperature, it's more willing to wander away from the statistically safest choice.

Watching it happen on a real financial quote

The clearest illustration of this comes from running the same earnings quote at all three temperature settings. At temperature zero, the model consistently reports the earnings guidance as "maintained," with a stated confidence of 0.71, and running the same prompt again and again produces the identical answer every time. It's locked. At 0.5, the model says "maintained" on two of three runs and "raised" once, meaning two out of three agree but the third introduces disagreement. At 1.0, the model produces three different answers across three runs: raised, maintained, and lowered. None of those three outcomes can be trusted individually, because there's no way to know which run, if any, reflects the actual guidance in the source material.

Why this distinction matters specifically in finance

In creative writing, that kind of variability is a feature. A model that takes an unexpected path through language can produce more interesting prose. In financial extraction, though, that same variability is not creativity, it's a hallucination risk. If a system is meant to extract a concrete fact from an earnings call, whether guidance was raised, maintained, or lowered, then getting a different answer each time the same input is processed means the system cannot be relied upon to report facts accurately. This is exactly why financial extraction systems are typically run at low temperature: the goal is not variety in the output, it's a stable, repeatable answer that matches the true content of the source document every time.

Self-consistency voting as a safeguard

Beyond simply lowering temperature, there's a second technique worth understanding: self-consistency decoding. This approach runs the same prompt multiple times and then votes across the resulting outputs. The underlying logic is straightforward: if a model cannot agree with itself across repeated runs on the same input, that's a signal the answer isn't stable enough to be trusted as a single, confident output. Voting across multiple runs surfaces that instability directly, rather than quietly accepting whichever single answer happened to come out first.

The one-dial takeaway

Temperature is one number, but it fundamentally decides whether a model behaves like a source of consistent, repeatable facts or a source of varied, creative output. Creativity has its place, particularly in tasks like fiction writing where an unexpected turn of phrase is valuable. But for financial extraction, where an incorrect or inconsistent read on a company's guidance carries real consequences, the priority has to be consistency, not creativity.

Key takeaways

  • Temperature controls how randomly an LLM samples its next token, ranging from fully deterministic at zero to highly varied at 1.0.
  • At temperature zero, the same prompt reliably produces the same output every time, which is essential for factual extraction tasks.
  • At temperature 1.0, the same earnings quote produced three different answers across three runs, none of which could be trusted individually.
  • In financial extraction contexts, output variability functions as a hallucination risk rather than useful creativity.
  • Self-consistency voting, running the same prompt multiple times and comparing the results, helps surface when a model's answer isn't stable enough to trust.

Try it yourself

Anyone building a pipeline that depends on an LLM producing the same answer for the same input should check what temperature and sampling settings their system is actually running. This walkthrough comes from Anjana as part of Humanitarians AI Fellows content on the mathematics behind LLM behavior.

Frequently asked questions

What should I do if I don't know what temperature my own pipeline is using? Start by identifying your current temperature and sampling settings, then decide whether your task needs consistency or creativity, and if the setting is mismatched, consider lowering temperature or adding self-consistency voting, where the same prompt is run multiple times and the results are compared.

Why does a higher temperature cause hallucinations in financial tasks specifically? Because financial extraction requires a single correct answer drawn from the source material, and a flattened probability distribution at high temperature lets the model select less likely, and potentially incorrect, tokens instead of consistently reproducing the fact stated in the source.

Chapters

  1. 0:00The mystery of changing outputs on the same input
  2. 0:30What is temperature? Token probability distributions explained
  3. 1:05Demonstrating three temperatures (0.0, 0.5, and 1.0) on financial quotes
  4. 1:50Why creativity is for poets, but consistency is for predictions
  5. 2:20Designing a self-consistency voting mechanism
Full transcript(auto-generated, with timestamps)

The mystery of changing outputs on the same input

[0:00]Run the same LLM on the same quote three times and you can get three different answers. I'm Anjana. Here's the one number responsible, temperature. You give an LLM the same earnings call quote three times, same model, same prompt, but you get three different answers. The output changed because you turned one dial, temperature. Temperature controls randomness. At zero, the model picks the single most likely next token every time, deterministic. Same input, same

What is temperature? Token probability distributions explained

[0:30]Output guaranteed. At 0.5, it considers a wider range of tokens. There is variation, but it stays close to the most probable answer. At 1.0, the distribution flattens. Rare tokens get a real chance. The model becomes creative. In fiction writing, that is interesting. In financial extraction, that is a hallucination. Here is the same earnings quote run at three temperatures. At zero, the model says maintained with 0.71 confidence. Run it again, same answer. And again, same answer. Locked. At 0.5, it says maintained twice, then

Demonstrating three temperatures (0.0, 0.5, and 1.0) on financial quotes

[1:05]Raised once. Two out of three agree. At 1.0, it says raised, then maintained, then lowered. Three runs, three different answers. None of them reliable. This is why financial extraction systems run at low temperature. And why self-consistency decoding runs the same prompt multiple times and votes. If the model cannot agree with itself, the answer is not stable enough to trust. Temperature is one number. It controls whether your model gives you the same answer every time or a different answer every time. In finance, you want the first one. Creativity is for poets. Consistency is for predictions. Let's recap with Claude. Temperature controls how the model samples its next token. At zero,

Why creativity is for poets, but consistency is for predictions

[1:51]It's deterministic, always the top choice. Turn it up and the distribution flattens, letting rare tokens through. For financial extraction, that instability looks like a hallucination, not creativity. Which is why low temperature and self-consistency voting are the standard defense. Your turn. I use an LLM output for a task where I need the same input to give me the same answer every time, and I honestly don't know what temperature or sampling settings it's running at.

Designing a self-consistency voting mechanism

[2:20]Can you help me? One, figure out what temperature my current setup is actually using. Two, tell me honestly whether that setting matches what the task needs, consistency or creativity. And three, if it's wrong, suggest a fix, including whether running the same prompt multiple times and voting would help. Paste that into Claude and find out if your own pipeline has a temperature problem hiding in it. One dial, two very different models. That's Anjana.

More from Humanitarians AI Fellows

Humanitarians AI Lyrical Literacy Project