In short
A Large Language Model (LLM) is an AI model that has been trained on vast amounts of text and specialises in understanding and generating human language. LLMs are the technology behind tools such as ChatGPT and form the heart of the generative AI wave.
Their core capability sounds astonishingly simple: they predict which word – or, more precisely, which linguistic unit – is most likely to come next. When carried out on a massive scale and trained using vast amounts of data, this seemingly simple task gives rise to the ability to write fluent text, answer questions, translate and programme.
The ‘Large’ in the name is to be taken literally: these models consist of billions of parameters – the internally learnt adjustment variables – and have been trained on a large proportion of publicly available text. It is precisely this scale that explains both their impressive capabilities and their characteristic weaknesses.
How an LLM works
At its core, an LLM operates on the basis of probabilities. It breaks text down into small units, known as tokens – these can be whole words, parts of words or characters. Based on the text so far, the model calculates which token is most likely to come next, selects it, appends it and repeats the process. This is how a response is generated, word by word. The underlying architecture is called a ‘Transformer’ and allows the model to establish connections between parts of a text that are far apart – which is why LLMs can maintain context across longer passages.
Crucial to understanding: an LLM ‘knows’ nothing in the human sense and does not look anything up. It generates the statistically most plausible continuation. This explains why it is often brilliant and sometimes confidently wrong.