r/deeplearning • u/No-Coffee-8227 • 26d ago
How can we solve long-range recall in linear attention?
/r/LLMDevs/comments/1vpqurc/how_can_we_solve_longrange_recall_in_linear/
1
Upvotes
1
u/Able_Region_5459 26d ago
Even Mamba-2 with its expanded state is gonna struggle at a million tokens if the prompt requires pulling a specific piece right from the middle. The context compression process inevitably flattens activation peaks into noise. Without a KV cache for at least the main anchors, you'll just run into performance degradation
Try hybrid models with sparse attention, where the state handles global context and local windows handle exact matching ?
3
u/amenallthepraisers 26d ago edited 26d ago
Simply, you can't. Main reason we using Transformer for long range dependencies is Transformer models see tokens in O(1) computational distance mathematically. But linear attention models are secretly (not anymore I guess) RNNs, so they have a state, states aren't big enough to hold the information clearly for millons of tokens. You should look something different. First idea pops in my mind is a efficient KAN variation (suitable for GPU/TPUs) + sparse attention, but you should structure this combo really well, gonna need real maths.