Google's DeepCrossAttention achieves comparable model quality up to 3x faster (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
I’ve often thought that something like this might lead to a real solution to the infamous strawberry problem.
Ignoring pesky issues like tokenization, the actual input data is visible to the model as the embedding fed to the first layer, but the first layer is probably nowhere near smart enough to understand that the model is trying to count R instances. But by the time whatever layer is reached that might understand the goal, the non-wasteful part of the low-level memory (the K’s and V’s from the first layer) can’t be queried any more.
But this cross-depth attention can query them!
Admittedly, there are holes in this argument. Beyond just tokenization (to the extent that the model can see letters at all, it is reconstructing them), the attention mechanism doesn’t really have a clean “count the hits” operation.
Replies (2)
Replies (1)
besides making the letters visible in some way, you need to remove softmax normalization (not for the full model! just for the sections of it that do the counting) since it only allows you to represent outputs as a fraction of the inputs. no model architecture that normalizes this way will ever truly learn integer counting that generalizes to unseen inputs.
you also need a different activation function, relu and family cut away some crucial information.
just copy paste what I told you into a claude conversation, they can train a small llm that shows it easily on their server cpu or locally on your machine.
Replies (3)
I’m not saying the strawberry problem is a big deal. I’m saying that models often have some difficulty perceiving their own input at a low level, and cross-layer attention seems like it could help in general.
Traffic is not a real problem because we have flying cars. We just don't do it yet because it's too expensive.
I don't get what you're saying, is engineering meaningless to you?
Replies (1)
This is well described in "The Bitter Lesson" (http://www.incompleteideas.net/IncIdeas/BitterLesson.html).