EE 641 - Unit 5
Dr. Brandon Franzke
Fall 2026
Encoder-decoder with one summary
Demands on one vector
Measured on a reverse-copy task, \(S = 24\)
Information already computed
Per target word
Fixed summary against this grid
Requirement from each row
One summary per output
Measured on the same reverse-copy task
Open definitions
Setup
Local averaging
Window
Nadaraya-Watson estimator
Three properties of the weights
Effective number of samples
Two ways to be wrong
Variance: averaging \(m\) noisy samples
Bias: averaging a curved function
Best bandwidth
Expand the exponent
Equal-norm stored inputs
Bandwidth as temperature
One bandwidth, two regions
One distance, every direction
Requirement
Replace the fixed pieces with learned ones
| Kernel regression | Attention |
|---|---|
| query \(x_0\) | query \(\mathbf{q}\) |
| stored inputs \(x_i\), compared to the query | keys \(\mathbf{k}_i\) |
| stored outputs \(y_i\), averaged | values \(\mathbf{v}_i\) |
| fixed kernel on distance | softmax of a learned score |
| bandwidth \(h^2\) | temperature \(\tau\) |
Keys and values