AI's Velocity Surge: Mercury's Quiet Upheaval
Months ago there was a big shift in how language models operate that went mostly unnoticed. One morning Inception Labs drops Mercury Coder. They claim to have AI that writes code at a rate of over 1,000 tokens per second (10x faster than ChatGPT). The demos look impossible: entire Python functions materialize in less than a second. Complex algorithms form faster than you can keep track of.
But then developers start testing it themselves. And it hits hard. Not hype. There's a huge fundamental shift in how AI works. Most people didn't even notice. What's the shift? Diffusion language models. If these early results are right, the way we thought about AI progress is now obsolete.
Standard language models work by writing out words, left to right, word by word like we type. Every word depends on all the words that came before. That's called the autoregressive model. It's been the way we've done it since GPT-3.
Now diffusion models work differently. They start with pure noise and gradually transform the noise into clear text. Like Stable Diffusion for images. It's not writing text one word at a time; instead it makes the whole text appear all at once from static.
The difference in speed is staggering. So I benchmarked against other small language models. I was able to get the same quality of output at nearly 10x the speed. This is the case for almost all the coding benchmarks I tried. Mercury comes from Inception Labs, whose founders include many of the big players in this area (the people behind Flash Attention, Decision Transformers, and Direct Preference Optimization). Not some random YC startup saying they "democratized AI" by repackaging ChatGPT. But some of the best engineers and researchers out there.
But what makes this so astonishing is what it says about the current landscape in the AI world. Remember the recent post I did about Meta's panicked $100 million offers to hire OpenAI engineers? The idea was that the only way to compete is with massive companies and unlimited computing resources, requiring hundreds of millions of dollars for training, and access to special H100 clusters. Well, that was the moat, that was the insurmountable barrier, right?
Nope. Here we have Mercury. Inception Labs, a company that has raised a tiny fraction of what OpenAI has. They don't have a giant computing cluster or an army of engineers. And yet, they are pumping out models as good as (or better than) the giants in quality, and at a much faster pace.
This didn't come from nowhere. Back in February, ML-GSAI researchers published a paper on LLaDA: Large Language Diffusion with mAsking. They demoed an 8-billion parameter diffusion model matching LLaMA 3 and solving some of the long-standing issues in language models.
For example, think of the reversal problem. Current LLMs can tell you "Tom Cruise's mother is Mary Lee Pfeiffer", but when you ask "Who is Mary Lee Pfeiffer's son?", they have no clue. Because all they've done is memorize facts in one direction. Like knowing 2+2=4 but not knowing what adds up to 4 (super embarrassing for something supposedly moving towards "superintelligence").
With diffusion models, you don't have this issue. Since you're not generating text in any direction, you can reason in any direction you like. And the math is pretty elegant. Autoregressive is maximizing P(next token | previous tokens). But diffusion is maximizing P(all tokens | noise + context). And with modern parallel hardware, the latter is much, much more efficient than the former.
Google's response is evidence. They demonstrated Gemini Diffusion at I/O in May. This is Google (the company that invented transformers) admitting that they've been thinking about language models wrong for years. Google is generally a bit slow to the trend, but when they jump in on something it tends to become mainstream. They rushed a reasoning model out the door after o1 came out and crushed everybody. Now they seem to be doing the same thing here.
They tried to downplay it in their technical blog but the message is still there. Diffusion models can "iterate on a solution very quickly and error correct during the generation process." Current models get committed to a token as they generate it. If they mess up, they're stuck. Diffusion models can look during the middle of generation and realize they're getting it wrong. So they can fix the entire output before it's presented.
Look at the benchmarks. Gemini Diffusion is performing on par with way bigger models, but it's "significantly faster than even our fastest model so far." If Google is admitting another approach is better, then you know something big is happening.
Here's the bad news for people that have been doubling down on scaling laws. For two years it's been clear. More compute power means better models. Jensen Huang made a trillion dollar company out of this. Every big lab had a plan where more is better.
But what if it's not just wrong, but totally, disastrously wrong? Like we've just been throwing money at the problem instead of rethinking it?
The business implications are huge. Why pay $20/month for ChatGPT when you can get something that's free and faster? How can you justify a $100B valuation when a startup can do something on par with what you're offering with 1% of your budget? What happens to all those GPU orders when efficiency trumps scale?
Open source is exploding. Less than 48 hours after Mercury announced it, there were already three different implementations on GitHub. The code of LLaDA has been forked hundreds of times. Now every grad student with a 4090 suddenly thinks they can make the next breakthrough. And maybe some of them can.