Transformer

Intermediate

Architecture based on self-attention and feedforward layers; foundation of modern LLMs and many multimodal models.

AdvertisementAd space — term-top

Why It Matters

Transformers are foundational to modern AI, particularly in natural language processing and multimodal models. Their ability to handle large datasets and complex relationships has led to significant advancements in machine translation, text summarization, and even image processing. The architecture's versatility and efficiency have made it a standard in the industry, influencing a wide range of applications across various sectors.

The Transformer architecture, introduced in the paper 'Attention is All You Need,' revolutionized the field of natural language processing by utilizing self-attention mechanisms to process input sequences in parallel, rather than sequentially as in RNNs. The core components of a Transformer include multi-head self-attention, which allows the model to focus on different parts of the input simultaneously, and position-wise feedforward networks, which apply non-linear transformations to each position independently. The mathematical formulation of self-attention involves computing a weighted sum of values (V) based on the similarity of queries (Q) and keys (K), expressed as Attention(Q, K, V) = softmax(QK^T / √d_k)V, where d_k is the dimensionality of the keys. Transformers also employ positional encoding to retain information about the order of tokens, as the self-attention mechanism is permutation-invariant. This architecture has become the foundation for many state-of-the-art models, including BERT and GPT, and has significantly advanced the capabilities of machine learning in handling various modalities beyond text, such as images and audio.

Keywords

Domains

Related Terms

Welcome to AI Glossary

The free, self-building AI dictionary. Help us keep it free—click an ad once in a while!

Search

Type any question or keyword into the search bar at the top.

Browse

Tap a letter in the A–Z bar to browse terms alphabetically, or filter by domain, industry, or difficulty level.

3D WordGraph

Fly around the interactive 3D graph to explore how AI concepts connect. Click any word to read its full definition.