Methods › General › Attention Mechanisms › Dense Synthesized Attention
Dense Synthesized Attention
archive 2025-07-28 Description, source and code snippet are the archive's method entry.
Dense Synthesized Attention, introduced with the Synthesizer architecture, is a type of synthetic attention mechanism that replaces the notion of query-key-values in the self-attention module and directly synthesizes the alignment matrix instead. Dense attention is conditioned on each input token. The method accepts an input X ∈ℝ^(l x d) and produces an output of Y ∈ℝ^(l x d). Here l refers to the sequence length and d refers to the dimensionality of the model. We first adopt F(.), a parameterized function, for projecting input Xᵢ from d dimensions to l dimensions.
Bᵢ = F(Xᵢ)
where F(.) is a parameterized function that maps ℝᵈ to ℝˡ and i is the i-th token of X. Intuitively, this can be interpreted as learning a token-wise projection to the sequence length l. Essentially, with this model, each token predicts weights for each token in the input sequence. In practice, a simple two layered feed-forward layer with ReLU activations for F(.) is adopted:
F(X) = W(σ_R(W(X) + b)) + b
where σ_R is the ReLU activation function. Hence, B is now of ℝ^(l x d). Given B, we now compute:
Y = Softmax(B)G(X)
where G(.) is another parameterized function of X that is analogous to V (value) in the standard Transformer model. This approach eliminates the dot product altogether by replacing QKᵀ in standard Transformers with the synthesizing function F(.).
Papers archive 2025-07-28
1 shown of 1, newest first. Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code; it is per sample and not a correctness claim.
-
Synthesizer: Rethinking Self-Attention in Transformer Models 2 May 2020 · 1 repository · arXiv:2005.00743Syntology ran 1 of 1 samples · 0 unverified
Tasks archive 2025-07-28
10 tasks the archive attaches to papers tagged with this method, by distinct papers. A task without a page in the catalog is plain text.
Usage over time archive 2025-07-28
Components: the archive holds no method-to-method composition, so PwC's Components table cannot be rebuilt; the Papers list carries no Results column for the same reason (the archive does not join its leaderboard rows to method tags).
Categories archive 2025-07-28
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections