This is an old version, saved 2 Dec 2026, 14:21 by ByteExplainededitors. It is the current version.

Large language model

A large language model (LLM) is an artificial intelligence model trained on a very large collection of text to predict what comes next. That single skill, at large enough scale, lets it answer questions, draft and edit text, summarise documents, translate and write computer code. Chatbots and assistants are built on top of LLMs.

Contents
  1. How they work
  2. Why scale mattered
  3. Limitations and risks
  4. See also
  5. References

How they work

Text is split into tokens — whole words or pieces of words. During training the model sees enormous numbers of examples and adjusts billions of internal numbers (parameters) to get better at predicting the next token. When you send a message, it generates a reply one token at a time.

Almost all modern LLMs use the Transformer architecture, introduced in the 2017 paper Attention Is All You Need. Transformers rely on an attention mechanism that lets the model weigh every part of the input against every other part.[1]

Why scale mattered

Researchers found that making models and training data much larger produced abilities that smaller models lacked. The 2020 GPT-3 paper showed a 175-billion-parameter model could do many tasks from just a few examples in the prompt, without task-specific training.[2]

After pre-training, models are usually fine-tuned on examples and human feedback so they follow instructions and behave more helpfully and safely.

Limitations and risks

  • Hallucinations. An LLM can state false information confidently, including invented facts and sources — a risk NIST lists among the main concerns of generative AI.[3]
  • Knowledge cut-off. A model knows only what was in its training data unless it is connected to search or other tools.
  • Context window. It can take into account only a limited amount of text at once.
  • Privacy and security. Sensitive information typed into a chatbot may be stored or exposed, and models can be manipulated with crafted inputs.[3]

See also

References

  1. ^ Attention Is All You Need. arXiv (Vaswani et al.). 2017. arxiv.org
  2. ^ Language Models are Few-Shot Learners. arXiv (Brown et al.). 2020. arxiv.org
  3. ^ Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1). NIST. 2024. nvlpubs.nist.gov