SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

Large language models

Large language models learn statistical patterns in sequences of tokens, which can represent words, parts of words or punctuation. Many use the Transformer, whose attention mechanism allows the model to weigh relationships among tokens in the input. The authors introduced that architecture in 2017 and reported results on machine translation and syntactic parsing. In an autoregressive model, generation proceeds one token at a time, with each new token added to the context for the next prediction. 1 2

Brown and colleagues tested GPT-3 in 2020 by putting instructions or a few examples into the input. The model's weights stayed fixed during the task. Performance varied across tasks, and the authors documented limitations in using web-trained models on benchmarks that could overlap with training material. The demonstration established that a prompt could supply examples at inference time. 2

Fluent output can contain invented facts or citations. NIST's generative AI risk profile calls this confabulation and recommends checking citations and evaluating systems on evidence relevant to the intended use. A result on a language benchmark measures performance under those test conditions. A deployment that depends on factual accuracy needs its own evaluation of the model's output. 3

Source · Language Models are Few-Shot Learners (opens in a new tab) · Brown et al. (arXiv)

References

  1. Attention Is All You Need (opens in a new tab) · Vaswani et al. (arXiv) · June 12, 2017 ↩
  2. Language Models are Few-Shot Learners (opens in a new tab) · Brown et al. (arXiv) · May 28, 2020 ↩ ↩
  3. NIST AI 600-1: Generative Artificial Intelligence Profile (opens in a new tab) · NIST · July 26, 2024 ↩

Research articles

Papers

  • Attention Is All You Need (opens in a new tab)

    The authors build a translation model around attention instead of passing information token by token through a recurrent network. Each layer uses several attention heads so token representations can draw on different relationships in the sentence. Positional encodings supply information about order. The paper reports results on English to German and English to French translation, and shows that the architecture can also handle constituency parsing.

    The Transformer became the architecture on which many later language models were built.

In the news

See what connects to it on the map of ideas →

See also