Home/Glossary/Transformer

Transformer

A transformer is a type of AI model architecture that excels at understanding and generating sequences of data, like sentences in a language, by focusing on the relationships between all parts of the input at once.

How it works

It works by using a mechanism called 'attention' to weigh the importance of different words or data points in a sequence relative to each other. This design allows it to process information in parallel, making it highly efficient and powerful for tasks like translation and text generation, and it forms the core of most modern large language models (LLMs).

Examples

  • 1.Models like GPT-4 and Google's Gemini are built on transformer architectures to generate human-like text.
  • 2.It is used for real-time language translation services, such as Google Translate.
  • 3.Transformers power AI that summarizes long documents or answers questions based on context.