by immibis · 2y ago · 0 comments
How do you encode arbitrarily long positions, anyway?
What the RNN must be doing reminds me of "sliding window attention" --- the model learns how to partition its state between short- and long-range memories to minimize overall loss. The two approaches seem related, perhaps even equivalent up to implementation details.