AI Wiki中文/EN

Attention computation

Change parameters and inspect the actual computation behind attention computation.

Computed values
Thecatsat
The0.4010.1980.401
cat0.1980.4010.401
sat0.2480.2480.503
1Selected row sum
0.802Output component 1
0.599Output component 2
Toy Q=K=V=[[1,0],[0,1],[1,1]]. Compute softmax(QKᵀ/√2/temperature)V. There is no causal mask and no pretrained language model.
Use this experiment to test your understanding

Predict the effect of changing a parameter before inspecting the output. Identify the responsible term in the formula and explain how the teaching model differs from a real application.

Explore the related topic:Transformer →
No matches. Try a synonym or acronym.

0 results shown

Wrap the whole query in double quotes for a phrase match.