Better HN
topnewbestaskshowjobs
Log inSign up

fireworkcrayon

2 karma · joined Apr 30, 2023 (3y ago) · 3 submissions

Submissions

comment 3y ago · link · parent

Thanks for stepping me through that. I was able to reread and understand your original explanation.

To be honest, though, I was really just trying to understand what my roadblock is in general. As I mentioned, I experience this kind of friction with most math-related writing. And, sadly, I do have at least a "passing familiarity" with math. I don't really struggle with the concepts. For me it's the communication layer: the variety of conventions that exist never seem to jell into a coherent system in the way that natural languages do - even with all of their idiomatic and arbitrary features.

Anyway, thanks again for the discussion.

comment 3y ago · link · parent

I wasn’t trying to be critical - sorry if it came across that way!

> Also, "a fixed number of features ... call it d_f", I don't know how to more clearly define what d_f is?

Perfect example. I would expect a fixed number to be represented by a single letter, like x. But here, a the fixed number seems to need two letters to represent it: d and f. When I see this, I wonder “what’s d?” “What’s f?” So I scan ahead: I see there is a d_k, so I think there must be some sibling relationship between f and k, but I can’t see what it is. As far as I can tell, Q/q and K/k are the ones that belong in a pair.

It gets very confusing trying to decipher the meaning and relationships.

comment 3y ago · link · parent

> You have a collection of N things, with some fixed number of features each (doesn't matter how many, but call it d_f). Call that collection {x_i}. You have two learnable matrices Q and K, which learn to project those items into some collection of "questions" and "answers", respectively. Doesn't really matter what those questions or answers are, the NN will figure out what they should be during training. These projection matrices map x_i -> k_i, and x_i -> q_i. k and q are each d_k-dimensional vectors (d_k is a number you choose) of features, so Q and K are d_k-by-d_f matrices.

Wait: this is the plain English version? I’ve just been presented an alphabet soup of symbols, most of which haven’t been defined:

N, d, f, x, i, Q, K, and q and k (lowercase). The only one I’m sure I understand is N.

The different letters seem to be drawn from certain regions of the alphabet, so I guess that’s significant in some way?

(I do understand vector, matrix, softmax, dimensionality, etc.)

I’m embarrassed to admit this here, but I run into this issue almost any time concepts are explained in math, including in the textbooks that teach math. What am I missing?