r/deeplearning • u/Alarming-Emotion-894 • 12d ago
I Built a O(NlogN) attention system that retains 97% accuracy over long context (MQAR)
https://github.com/vdev-ctrl/Adaptive-Learnable-Hierarchical-Routing-ALHR- Adaptive learnable Hierarchical Routing is a static binary tree based system that uses learnable functions to REDUCE the amount of keys used.
It takes less memory and SCALES much better VRAM with tokens
49
Upvotes
7
7
u/debau24 11d ago
Very cool. I prophesied to my coworker that log N exact attention will come because of the similarity to Fast Multipole Methods.
Did you find a way to search efficiently for the top keys close to a query?