by cduzz · 3y ago · 0 comments
So I asked him "what would the absolute value of i+1 be?" he thinks for a little bit and says "square root of 2" and I ask him "what about the absolute value of 2i + 2?" "square root of 8"
I ask him "why?" and he said "absolute value is distance; in the complex plane the absolute value is the hypotenuse of the imaginary and real numbers."
So -- first of all, this was a little surprising to me that he'd thought about this sort of thing having mostly just watched youtube videos about math, and second, this sort of understanding is a result of some manner of understanding the underlying mechanisms and not a result of just having a huge dictionary of synonyms.
To what degree can these large language models arrive at these same conclusions, and by what process?
He developed an understanding of the underlying mechanisms because he correlated concepts between algebraic and geometric domains, ie. multimodal training data. Multimodal models are already known to be meaningfully better than unimodal ones. We've barely scratched the surface of multimodal training.
He basically reiterated the definition, and had to know the formula.
If the child would explain why should we even use or have complex numbers that would be impressive. As otherwise it just seems nothing more than hypotenuse calculation while using different, and "complex" or "impressive" sounding terms.
Why should you be interested in this in the first place?
Not to dismiss this kid at all, I love that there are channels like 3Blue1Brown to share math to people in a way that really connects with them and builds intuition.
When I was a student you basically just had your math teacher and textbooks to learn from, which meant if you weren’t on the same page as them you’d get left behind. If you went to the library, most math books assume you’re familiar with the language of mathematics, so it can be tough to learn for that alone. I bet a lot of innumeracy is due to that style of teaching, often “I just don’t get math” is “I missed learning this connection and the class just moved on”.
I can offer no concrete solutions.
However, I have a friend who graduated from high school #1 of a big class and 2 years early. His mom explained that if he made at least a 1400(of 1600) on his SAT, she would buy him a new gaming computer. He then proceeded to make exactly a 1400. No more. No less.
I recommend if you haven't tried already, an iteration to this approach using a sliding scale reward system. Perhaps a gaming pc with nvidia 4060ti up to *insert parental budget* in event of a perfect SAT score.
Ofc this only works if he's a gamer. I feel this type of system can be applied in many areas though. In my view, the clever component his mother applied is that the computer he earned was not just a desirable reward... It was VERY desirable.
My parents also tried this system with me. It didn't work as well. The reward was not sizable enough. It just didn't seem worth it. Too low value. Also, I already had a job and bought my own. My parents were unwilling to budget a sufficient reward. It's gotta be something he more or less is unlikely to be able to get via other means.
Now my friend is a physician. He graduated top of his class from med school. I think he's pretty content with life.
The bored ones can be a little more trouble sometimes. Fun breed though. Best of luck.
Additionally, one very important thing to learn as a young adult is how to motivate yourself to do things that have only long term payoffs.
Of course I also understand that you can take SAT only once, so as bad as that is, it’s maybe not the best time to learn a life lesson.
Is a good idea if you need a (relatively) constant result because your brain adapts to the idea of getting a satisfying reward.
https://www.youtube.com/watch?v=s5geuTf8nqo (+ some other of his videos about rewards)
It only sounds complicated because of the words used like "complex", "imaginary", "real".
So if you studied Pythagoras at school and someone (a YouTube video) says you just have to do Pythagoras on the i multiplier and the other number, it would be fairly easy if you understand Pythagoras?
Pythagoras was around the same time. I'd like to warn people that not understanding these basic math concepts makes you appear uneducated to many people internationally.
LLMs comsume training data and can then be asked questions. How different is that to your son watching YouTube and then answering questions?
It's not 1:1 the same,yet, but it's in the neighborhood.
So -- to a large degree "bucket of neurons == bucket of neurons" but the training data is different and the processing model isn't necessarily identical.
I'm not necessarily disagreeing as much as perhaps questioning the size of the neighborhood...
Too many years to max compute. All models limited lifespan inherent.
Avg $200k+ training cost over 18 year in house data center costs. More for reinforcement.
He's still 38. Gates took much longer. To stop working 24/7.
And in a human, all those structures and substances, along with the tens of thousands more throughout the rest of the body, are collectively readied with millions of years of "pretraining" before processing a continuous, constant, unceasing mulitmodal training experience for years.
LLM's and related systems are awesome and an amazing innovation that's going to impact a lot of our experiences over the next decades. But they're not even the same galaxy as almost any living system yet. That they look like they're in the neighborhood is because you're looking at them through a very narrow, very zoomed telescope.
constant still can be not reachable yet: like 100T neurons in brain vs 100B in chatgpt, and also brain can involve some quantum mechanics for example, which will make complexity diff not constant, but say exponential.
Also, just to point out that my understanding of absolute value is different than your sons. Thats not to say one is right and another is wrong, but there are often different ways of seeing the same thing. I would imagine that LLMs would similarly see it a different way. Another example of this is people defining PI by its relation to the circumference of a circle. Theres nothing wrong with such a definition, but its certainly not the only possible definition.
Why does this make sense to you? You have some notion of what an absolute value should be, on an intuitive or conceptual level, and the mathematical definition you give is consistent with that (in the one dimensional case).
Now taking this valid definition for the 1-d case and generalizing that to higher dimensions is where you run into problems.
Instead, you can go back to the conceptual idea of the absolute value and generate a definition for higher dimensional cases from there.
Interpreting absolute value as the distance from the origin yields the same concrete definition of abs(x) = sqrt(x^2) for the 1-d case, but generalizes better to higher dimensions: abs( (x,y) ) = sqrt(x^2 + y^2) for the 2-d case equivalent to complex numbers.
In my mind abs(x) = x*sign(x) which is why the above formulation seems correct. This formulation is useful, for example, in formulating reflections.
> Instead, you can go back to the conceptual idea of the absolute value and generate a definition for higher dimensional cases from there.
This is an interesting idea...how would you define sign(x) in a higher dimension? Wouldnt sign in a higher dimension be a component-wise function? E.g. the reflection would happen on one axis but not the other.
> Interpreting absolute value as the distance from the origin
This seems to make sense in that it is a different interpretation of abs which seems simpler than reflection in higher dimensions, but seems like a different definition.
I know that there are applications of complex numbers in real systems. In such systems, the complex definition seems to not be as valuable. E.g. if I'm solving a laplace transform, the real number definition seems more applicable than the complex number definition, right?
I've asked wolfram alpha to solve the equation and it lists both answers: one using the formulation of sqrt(x^2) and the other using sqrt(re(x)^2 + im(x)^2) so it seems like there is merit to both...
I suppose in the laplace example, we are actually operating in one dimension and the imaginary component is approximating something non-real, but doesnt actually exist. I.e. any real/observable effect only happens when the imaginary component disappears meaning that this is still technically one dimension. So, since we're still in one dimension, the one dimensional formula still applies. Is that correct?
Your explanation has been the most helpful though, thanks.
> This is an interesting idea...how would you define sign(x) in a higher dimension?
You could think of the sign as the direction. In the 1-d case, you only have two directions. Positive sign means to the right of the origin, negative sign means to the left of the origin. But in higher dimensional case, you don't get a higher count of directions, instead direction becomes a space.
To see this analogy we can rewrite your abs(x) = x * sign(x) as x = abs(x) * sign(x). (Because 1/sign(x) = sign(x) except at 0, where the two equations agree anyway.)
Now consider that in higher dimensions, we can write x = ||x||*(x/||x||) for any vector x, where ||x|| denotes the magnitude and the term x/||x|| is the unit vector in direction of x. This term then plays the role of the sign.
A simple reflection can then still be done by multiplying this direction term with -1, which in the 2d case reflects at a line through the origin and perpendicular to the vector.
I can't comment on the Laplace transform, it's been too long since I used that.
True in 1 dimension, but not in higher dimensions, because, as you say:
> how would you define sign(x) in a higher dimension?
abs(x) is generally defined as distance of x from zero.
The fact that sqrt(x^2) or x*sign(x) happen to give the same result in 1 dimension doesn't necessarily imply that they can be applied in higher dimensions as-is to result in abs(x) with the same meaning. Although sqrt(x^2) is close, but the way to generalize it is sqrt(sum(x[i]^2)).
One trick about that inner product is that it need not be perfectly symmetric. To make it work on complex numbers we realize that we have to define it like p(a,b) = a . conj(b) where the . is normal multiplication and the conjugate operation reflects a complex number over the real line.
Now sqrt(p(i+1, i+1)) is sqrt((i+1) . (-i+1)) = sqrt(-i^2 + i - i + 1) = sqrt(2).
I’m skipping over a lot but I wanted to gesture toward where your intuition matches some well known concepts so that you could dive in more deeply. Also wanted to mention the conjugation trick to make your example work!
A special cases of the general definition where im(z)==0 yields an expression where some parts are multiplied by zero, and can then be omitted entirely.
This means that there is one definition. You can mentally ignore some parts of this when dealing with reals.
abs(i)
= sqrt(i^2)
= sqrt(-1)
= i
Now, i != 1... so clearly either the abs function you have in mind here is doing something that isn't quite aligned with the goal. If we assume that the goal of the absolute function is to always produce positive real numbers, the function is missing something to deal with imaginary components.
I'm not sure, but based on these cases so far, maybe you just need to "drop the i" in the same way as you need to "drop the negative" in the case of non-imaginary components. Now, "drop the i" is not an actual function so maybe there is something else that you can think of?
EDIT:
Maybe could do this(works for x = i at least...):
abs(x) = sqrt(sqrt((x^2)^2)
Now.. how about quaternions...
There is definitely a right and wrong answer for this, it's not a matter of opinion. There's two problems with your answer -- one is that it doesn't have a unique answer, the other is that it doesn't produce a real value, both of which are fairly core to the concept of a distance (or magnitude or norm), which the absolute value is an example of.
By having visual understanding more deeply integrated in the thought process, in my opinion. Then they wouldn't be Large Language Models, of course. There are several concepts I remember and operate on by visualizing them , even visualizing motion. If i want to add numbers, i visualize the carry jumping on top of the next number. If i don't trust one of the additions , I go back , but I can't say if it's because i "mark" the uncertainty somehow.
When I think about my different groups of friends, in the back of my mind a visual representation forms.
Thinking about my flight route forms a mini map somehow, and i can compare distances between places, and all.
This helps incredibly in logical tasks like programming and math.
I think it's something that we all learned growing up and by playing with objects around us.
As far as I can tell he inferred that |i+1| needs the Pythagorean theorem and that i and 1 are legs of the right triangle. I don't think anyone ever suggested that "absolute value" is "length". I asked him what |2i+2| would be an his answer of "square root of 8" suggests that he doesn't have it memorized as an answer because if it was he'd have said "2 square root two" or something similar.
I also asked if he'd seen a video about this and he said no. I think he just figured it out himself. Which is mildly spooky.