Skip to content
Finic
AI and agents

What is a transformer?

A transformer is a neural network design that uses a mechanism called attention to weigh how parts of an input relate to each other. It is the basis of most modern language models.

Also called: transformer architecture, transformer model

How it works

A transformer splits input into tokens and turns each token into a list of numbers. Attention layers then let every token look at every other token and decide which ones matter most for its meaning. Stacking many of these layers lets the model build up rich context.

Unlike older designs that read one word at a time, a transformer processes a whole sequence in parallel during training. That makes it practical to train on very large datasets, which is a main reason transformers power today's large language models.

Why it matters for fraud and trust

Transformers are not limited to text. Any data that can be written as a sequence can, in principle, be modeled this way: a list of transactions, the steps in a login session or the events on a device. Some risk teams use transformer-style models to find patterns in event sequences that simple rules miss.

Transformers also power the tools attackers use, from text generators to voice cloning. Knowing how they work helps teams set realistic expectations about what these models can and cannot do.

Practical trade-offs

  • Attention cost grows quickly with input length, which is why models have a fixed context window.
  • Large transformers need specialized hardware to train and run.
  • Their internal reasoning is hard to inspect, which can make decisions harder to explain.
  • For tabular risk data with clear features, simpler models are often just as accurate and much cheaper.
← All glossary terms

Ship fraud, bot and KYB checks in minutes.

Start with $5 of free credit, or copy a prompt and let your coding agent set Finic up.

Sign up See pricing