Local Attention

Home > Computer Science > Natural Language Processing > Attention Mechanisms > Local Attention

Local attention is a type of attention mechanism that focuses only on a small subset of the input sequence, instead of the entire sequence. This can be useful when dealing with long sequences, as it reduces the computational complexity of the model.