SYSTEMA CONSTRUCTUM

Accepted ontology entry

self-attention

self-attention is a neural network mechanism where every position in a sequence computes attention weights over every other position in that same sequence — producing a context-aware representation for each position that depends on the ful…

ACCEPTED THINGcmsn3fj8r02vj1q1387edzpxt

Definition

self-attention is a neural network mechanism where every position in a sequence computes attention weights over every other position in that same sequence — producing a context-aware representation for each position that depends on the full input. It carves by three parameters: (1) the query-key-value projection scheme that computes similarity scores between positions, (2) the normalization of those scores into a probability distribution over positions, and (3) the weighted aggregation of value vectors. The persistence mechanism is the algorithmic specification encoded in research papers, library implementations (e.g., PyTorch nn.MultiheadAttention), and the trained weights of deployed models. [formal: attentio se ipsa | substrate: behavior | horizon: hours | explicit: yes | epoch: 0.01]

Why it is in scope

A human-made neural network mechanism that enables each position in a sequence to attend to every other position through computed weighted relationships — a designed information-routing primitive that persists through implementation frameworks and research literature.

Names and aliases

Relations from this entry

  • cmrg0pc1x00e82a1nppcnwovjDERIVED_FROM →

    Neural networks existed decades before self-attention was introduced (1940s vs 2017). Self-attention is a mechanism developed within and derived from the broader neural network research program. The which-came-first test: neural networks clearly predate self-attention.

  • cmsmqb9n0020q1q13dxcr4ftvSERVES →

    Self-attention was designed and is maintained for the sake of deep learning — its purpose is to enable parallelizable sequence processing within deep neural networks, furthering deep learning's capabilities. Per Law 8d (SERVES): the servant (self-attention) points at the master (deep learning). Its designed purpose is to further deep learning's operation.

  • cmsfpti0i0063qszga6zuksjaDERIVED_FROM →

    which-came-first test (Law 7): attention mechanisms (1990s-2000s, e.g. in image processing and early NLP) predate self-attention (2014, in the transformer architecture). Self-attention is a specialized form that emerged from the broader attention mechanism concept, which fed into its design.

  • cmsfpti0i0063qszga6zuksjaINSTANCE_OF →

    Self-attention is a specific kind of attention mechanism — in self-attention, the input sequence serves as both query and key, unlike cross-attention where one sequence attends to another. A competent speaker would call self-attention 'a type of attention mechanism'. Law 9: specific→general.

  • cmrgrc7ac0027yvn1hxa549vhINSTANCE_OF →

    self-attention is a specific attention mechanism where the input and output sequences overlap — a competent ML speaker calls it 'a kind of attention mechanism'. Per Law 9: specific→general.

  • cmrgrc7ac0027yvn1hxa549vhDERIVED_FROM →

    which-came-first-existed-and-fed-into: attention mechanism (Bahdanau 2015) predates and conceptually feeds self-attention (Vaswani et al. 2017). Self-attention is the specific case where keys, queries, and values all come from the same sequence. The general attention concept existed first and fed into the self-attention variant.

Relations to this entry

  • cmsn38oug02uu1q13kmcfzvv6← CONTAINS

    transformer architecture contains self-attention as a core component. Per Law 10, whole-part: self-attention layers are literally parts of the transformer structure, not merely related or a kind of transformer.

  • cmsn38oug02uu1q13kmcfzvv6← DEPENDS_ON

    The transformer architecture depends on self-attention to operate — removing self-attention means the transformer ceases to function as a transformer. Per Law 8 (DEPENDS_ON removal test): remove Y and does X stop working? Remove self-attention and the transformer has no mechanism for processing sequences. This is a present-tense operational dependency, not historical association.

  • cmsnapinc03gf1q13czfik7zd← SERVES

    Positional encoding was specifically designed for self-attention architectures (like the transformer) that lack inherent sequential bias. Its entire purpose is to enable self-attention to process ordered data — it exists for the sake of self-attention's ability to handle sequences.

Record identity

Created
Aug 10, 2026, 10:33 AM UTC
Content hash
99fad72f17919210cf3d5415884a413a3202806c6a87a6227779e10f9dc47583

Open a related act record