GloVe & Adam Optimizer (2014) › The Problem: When Local Patterns Aren't Enough
History of Language AIAll chapters GloVe & Adam Optimizer (2014) › The Problem: When Local Patterns Aren't EnoughOne section · Sections in this chapter2 / 7 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
What Word2Vec Couldn't See
Word2vec had shown that neural networks could learn meaningful word representations automatically. But researchers quickly noticed gaps in what it could capture. Word2vec worked by sliding a small window across text.typically just five words at a time.and learning to predict which words appeared together. This local approach was fast and worked well, but it had a fundamental limitation: it could only learn from what it saw in those small windows.
Imagine you're an archaeologist trying to understand an ancient civilization, but you can only ever look at artifacts five at a time. You might learn that pottery and cooking tools appear together. You might notice that weapons and armor are related. But you'd miss the broader patterns visible only when you step back and look at the entire excavation site at once.patterns about how the civilization was organized, how different areas of the city related to each other, how resources flowed through the society.
Word2vec faced the same problem. By looking at text through five-word windows, it could learn local associations.which words tend to appear near each other.but it couldn't directly see patterns that emerged across entire documents or corpora. Consider the words "ice" and "steam." In local context, they might appear in similar positions: "the ice melted" and "the steam rose" follow similar grammatical structures. But if you could count every time these words appeared across millions of documents, you'd notice something revealing: "ice" appears frequently with "solid," "frozen," "cold," and "glacier," while "steam" shows up with "gas," "vapor," "boil," and "pressure." These global co-occurrence patterns tell you something fundamental about what these words mean.information that's invisible from any single five-word window.
The limitation became especially clear for rare words. Imagine a technical term that appears only three times in your corpus. Word2vec would generate perhaps a dozen training examples from those three occurrences.one for each nearby word. That's not much data to learn from. But if you could directly examine global statistics, you'd see exactly which other words in the corpus co-occurred with this rare term, giving you a clearer picture of its meaning even from limited appearances.
Here's the subtlety that bothered researchers: word2vec was indirectly trying to capture global statistics through its local training. When the model learned to predict context words, it gradually built up knowledge about which words appeared together across the corpus. But this knowledge came from accumulating millions of local predictions, not from directly examining the global patterns. It was like trying to understand the shape of a building by only ever touching one brick at a time.you could eventually figure it out, but wouldn't it be better to just step back and look at the whole structure?
The Optimization Bottleneck
Meanwhile, a completely different problem was frustrating every researcher training neural networks. The process of training.adjusting millions of parameters to improve the model.relied on an optimization algorithm. And in 2014, these algorithms were still frustratingly temperamental.
The most common approach, stochastic gradient descent (SGD), worked like this: for each parameter in the network, calculate how much changing it would improve performance (the gradient), then adjust it by a fixed amount in that direction. The "fixed amount" was the learning rate, and it was the same for every parameter in the network.
This caused endless headaches. Set the learning rate too high, and training would explode.parameters would oscillate wildly, never settling on good values. Set it too low, and training would crawl along at a glacial pace, taking days or weeks to reach acceptable performance. Finding the right value meant trying dozens of different settings, watching each one train for hours, and hoping you'd guessed correctly.
The problem got worse because different parameters in a neural network need different treatment. Think about it: some parameters in a network process raw input data and need careful, gentle adjustments. Others combine high-level features and can handle larger updates. Some parameters get gradient signals every training step, while others only see gradients occasionally. But SGD treated them all identically.
Researchers had developed some workarounds. Momentum-based methods kept track of which direction parameters had been moving recently and built up "velocity" in consistent directions, like a ball rolling downhill. This helped, but added another hyperparameter (the momentum coefficient) that also needed careful tuning. Getting momentum and learning rate to work well together required even more experimentation.
Adaptive methods like AdaGrad tried a different approach: give each parameter its own learning rate that automatically adjusts based on how much it's been updated. Parameters that had received large updates in the past would get smaller learning rates, while parameters with small historical updates would keep larger learning rates. Clever idea, but AdaGrad's learning rates could shrink too aggressively, eventually becoming so small that learning effectively stopped.
RMSProp improved on AdaGrad by using recent gradient history rather than all history, preventing the learning rates from vanishing. But it still required tuning multiple hyperparameters, and those hyperparameters interacted in complex ways. What worked for one task might fail spectacularly for another.
The core problem was clear: neural networks needed an optimizer that could automatically adapt each parameter's learning rate based on that parameter's specific needs, without requiring researchers to spend days tuning hyperparameters. Training neural networks shouldn't require a PhD in numerical optimization.