Why Can AI Understand Human Language? The Answer Has Been Hiding in High School Math
Recently, driven by an intense curiosity about the underlying mechanics of Large Language Models (LLMs), I began diving into deep learning…
Why Can AI Understand Human Language? The Answer Has Been Hiding in High School Math
Recently, driven by an intense curiosity about the underlying mechanics of Large Language Models (LLMs), I began diving into deep learning literature. But the moment I opened the books, I was immediately hit with a wall of matrices, vectors, and complex formulas.
Let’s be honest: for a split second, I was transported back to the dread of my college linear algebra class, my mind flooded with memories of mindlessly calculating determinants and multiplying endless rows of numbers.
That was until I started digging into how Natural Language Processing (NLP) calculates “semantic similarity.” As I stared at the code calculating the angles between different features, a dormant memory suddenly clicked.
I dug up my old high school geometry notes. Right there, on the very first page, was a formula we all had to memorize:

This is the formula for the dot product of two vectors. Back in the exam room, it was nothing more than a mechanical tool to calculate the angle between two lines. Once the test was over, I couldn’t wait to forget it.
But looking at this formula now, I felt a strange sense of absurdity, followed immediately by a profound moment of clarity: This elementary geometry theorem — once used merely to solve textbook problems — is, in a higher-dimensional perspective, the ultimate cipher that allows LLMs to “understand” human language.
There is something incredibly captivating about this kind of “knowledge loop.” Forget the soul-crushing spreadsheets of numbers. Linear algebra is not merely a discipline of “solving equations”; it is the geometry of reshaping high-dimensional space.

Today, let’s look at how AI actually thinks, purely through the lens of spatial geometry.
I. The Dimensionality Shift: Does AI Actually “Understand” Semantics?
Here is a cold, hard truth: No matter how remarkably human-like an LLM appears, it is fundamentally just a calculator devoid of common sense. To an AI, the words “apple” and “calculus” are nothing but lifeless electrical signals.
So, how does it know that an “apple” and an “orange” belong together, while “calculus” is entirely unrelated?
The turning point occurred in 2013 with a breakthrough Google technology called Word2Vec. What this technology did was brilliantly brute-force:
It took every single word in the human dictionary and forcefully mapped it into a massive, multi-dimensional geometric space. Every word became a vector — an arrow with an absolute coordinate and direction.
In this space, our high school “dot product” is resurrected.
Geometrically speaking, calculating the dot product of two vectors is essentially calculating the length of the shadow one word casts when projected onto another.
- If you project “apple” onto “orange,” because their directions in this space are nearly identical (the angle between them is tiny), the projection is very long. The system interprets this as: Highly related.
- If you project “apple” onto “calculus,” the two arrows are almost perpendicular (orthogonal). The projection length is close to zero. The system interprets this as: Completely unrelated.
AI isn’t actually “understanding” semantics; it is simply measuring distances in a vast, high-dimensional universe.
What’s even more mind-blowing is that in this space, direction carries rigorous logic. Researchers back then conducted a now-legendary experiment:

If you take the coordinate for “King,” subtract “Man,” and add “Woman,” the computer calculates a new coordinate that points perfectly to the word “Queen.”
Why? Because the spatial gap between “Man” and “Woman” forms an invisible arrow representing a “gender shift.” When you take that exact same arrow and attach it to “King,” it naturally points to “Queen.”
This is the terrifying and beautiful power of mathematics: It translates the complex, abstract, and deeply emotional logic of human language into geometric coordinates that a computer can add, subtract, and multiply.
II. The True Face of Matrices and the “Origami” of Deep Learning
If words are just vectors in space, what exactly are these incredibly hyped Neural Networks doing to them?
Textbooks will tell you that the core calculation of any neural network layer is y = Wx + b, where Wis a massive weight matrix.
If you try to visualize tens of thousands of numbers multiplying and adding together, your brain will short-circuit. Let’s switch to a visual mindset instead: Stop looking at a matrix as a static grid of numbers. Think of it as an “action command” — a pair of invisible hands reshaping space itself.
When a matrix multiplies a data vector, it is actually stretching, squishing, tilting, or rotating the entire high-dimensional space. All the words and data points within that space are carried along with the underlying grid to new positions.
The training process of an AI is simply it fumbling in the dark, constantly adjusting these matrices (the “hands”), trying to find the perfect way to knead and mold the space so that chaotic data is neatly grouped into clean categories.
But there is a fatal flaw here: If matrices are so powerful, why don’t we just stack 1,000 matrix operations and call it a day?
The answer lies in the laws of linear algebra: Stacking 1,000 continuous matrix transformations is geometrically equivalent to just doing 1. Worse still, linear transformations have an unbreakable rule — no matter how much you stretch or tilt the space, points that originally lay on a straight line will remain on a straight line. The grid must remain flat and parallel.
Imagine a flat sheet of paper with red and blue dots drawn on it, swirling together in a complex spiral. Using only the linear stretching of matrices, you could never draw a single, straight line to separate the red dots from the blue ones.
This brings us to the true soul of deep learning: The Activation Function (Non-linear Transformation).
The role of an activation function (like ReLU or Sigmoid) is incredibly pure and somewhat violent: It shatters the “keep it flat” rule of linear algebra. It takes that space — which the matrix just stretched out — and forcefully bends, folds, and crumples it.
- The Matrix Layer (Linear): Stretches and tilts the data space, giving the data a directional momentum.
- The Activation Layer (Non-linear): Acts like origami, forcefully twisting and folding the space itself.
Deep learning is called “deep” precisely because it uses layer after layer of this alternating “Linear Stretch $\rightarrow$ Non-linear Fold” operation. It takes wildly complex, tangled data features and forcefully bends them into a neat, organized shape. By the final layer, a single, simple, straight cut is all it takes to make a perfect prediction.
III. Conclusion: Reshaping the Digital World
Looking back at all of this, you realize that many seemingly impenetrable technologies are built upon profoundly elegant foundations.
Computers of the past processed logical statements (If-Else). The AI of today processes massive amounts of Features. A sentence, a photograph, an audio wave — these discrete, chaotic signals of the real world must be converted into a unified format before they can be computed.
Linear algebra is the underlying compiler for this entire system. It provides us with:

- Vectors: To pinpoint the exact spatial location of any feature.
- Dot Products / Orthogonality: To measure the similarity and independence between concepts.
- Matrices: To act as the engine that executes the stretching and folding of space.
When we stop treating mathematics as a rote-memorization exercise and start viewing it as a pair of glasses designed to observe high-dimensional worlds, we realize something incredible: Those numbers lying flat on our old exam papers are currently the architects building the most advanced intelligent networks of our era.
메타데이터
- post_id
- 7766a8884af4
- slug
- why-can-ai-understand-human-language-the-answer-has-been-hiding-in-high-school-math-7766a8884af4
- url
- https://medium.com/@marottaale00/why-can-ai-understand-human-language-the-answer-has-been-hiding-in-high-school-math-7766a8884af4
- canonical_url
- https://medium.com/@marottaale00/why-can-ai-understand-human-language-the-answer-has-been-hiding-in-high-school-math-7766a8884af4
- author_url
- https://medium.com/@marottaale00
- status
- ok
- fetched_at
- 2026-06-20 20:29:01