Case Study

Calculating a Gated Attention Output

A language model uses a learned gating mechanism to combine outputs from a local context attention (Att_local) and a k-NN retrieved context attention (Att_knn). The combination is performed using a learned gating vector g and the formula: Final_Output = g βŠ™ Att_local + (1 - g) βŠ™ Att_knn, where βŠ™ denotes element-wise multiplication. Given the following vectors, calculate the Final_Output vector.

0

1

Updated 2025-10-08

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science