惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
B
Blog
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
Jina AI
Jina AI
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
L
LangChain Blog
M
MIT News - Artificial intelligence
Blog — PlanetScale
Blog — PlanetScale
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell
Y
Y Combinator Blog
F
Fortinet All Blogs
H
Help Net Security
B
Blog RSS Feed
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
S
SegmentFault 最新的问题

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Three Ideas Made Modern AI Possible. None of Them Are Magic.
Karthi Raman · 2026-06-20 · via DEV Community

Modern AI looks like magic from the outside. You type a sentence and a machine writes back something coherent, finishes your function, or turns a paragraph into Japanese. It's tempting to assume something exotic is happening in there.

It isn't. The architecture behind almost every model you've heard of rests on a handful of plain engineering fixes, each one invented to get around a specific, annoying problem. No single genius moment, no secret sauce. Just people noticing their networks were broken and patching them.

This is the story of three of those patches. If you can read a stack trace, you can follow all three.

The wall everyone hit

Around 2014, the recipe for a smarter neural network seemed obvious: make it deeper. More layers meant more capacity, which should have meant better results. Except past a certain point it stopped working. Deeper networks got worse, and not in the way you'd guess.

The tell was the training error. A 56-layer network did worse on the very data it was being trained on than a 20-layer one. That rules out the usual suspect, overfitting, because the deep network couldn't even memorize the answers in front of it. The problem wasn't capacity. The network just couldn't be trained.

Two things were going wrong. The error signal that teaches each layer (the gradient) has to travel backward through every layer to reach the early ones. Push a number through dozens of layers and it tends to either shrink to nothing or blow up, so the early layers got almost no usable feedback. And even when you wrestled the signal into shape, the optimization itself got harder the deeper you went.

So depth, the thing that was supposed to make networks powerful, was the thing breaking them. Here's how three ideas knocked that wall down.

Idea one: give the signal a shortcut

The first fix is almost insultingly simple. Instead of forcing every layer to transform its input, you let the input skip ahead and get added back in later.

Picture a block of layers that takes some input x. Normally you ask it to produce a brand-new output from scratch. A skip connection (the core trick in ResNet, 2015) changes the question. The block computes a small adjustment, and then you add the original x back on top:

output = (what the layers compute) + x

That little + x does two big things.

First, it makes "do nothing" easy. If the best move for a block is to leave its input alone, a plain stack of layers has to learn the identity function, which is surprisingly hard to do through a pile of nonlinear math. With a skip connection, the block just nudges its adjustment toward zero and the input flows through untouched. Adding more layers can't hurt you anymore, because any extra layer can fall back to doing nothing. Depth stopped being a gamble.

Second, it gives the gradient a clear road home. That added x creates a direct path from the output straight back to the input, around all the layers in between. The teaching signal no longer has to survive the full gauntlet. It gets an express lane. Almost overnight, people were training networks more than 100 layers deep, and the networks actually got better with depth.

Think of it as a bypass road around a congested town. Traffic that needs the town center still goes in. Everything else flows straight past.

Idea two: stop the signal from drifting

Shortcut or not, there's a second problem. As data moves through a network, the scale of the numbers drifts. One layer puts out values around 0.01, the next around 5000. When activations wander out to extremes, learning stalls, because the math that updates the weights goes numb out there.

Normalization fixes this the way you'd prep a bunch of audio tracks before mixing them: level the volume. At each step you take the numbers heading into a layer, recenter them around zero, and rescale them to a consistent spread. Then you hand the network two tunable knobs so it can stretch or shift that result back if it turns out it wanted to. (The 2015 version, batch normalization, levels across a batch of examples. A later cousin, layer normalization, levels across the features of a single example, which suits text much better.)

The payoff is boringly practical. The signal stays in a range where learning works. You can turn the learning rate way up and train faster. You stop having to baby the starting weights. It's the least glamorous idea of the three and probably the one that saves the most hours of debugging.

With shortcuts and leveling in place, networks could finally go deep and stay trainable. For language, though, depth alone still wasn't enough.

Idea three: let every word look at every other word

Here's the problem specific to language. For years, models read text the way you'd read through a straw: one word at a time, holding a running summary in memory. These were recurrent networks, and two flaws sank them.

They were slow. Word number 50 couldn't be processed until word 49 was finished, because each step fed the next. There was no way to spread the work across a GPU, a chip built to do thousands of things at the same instant.

And they were forgetful. To connect the first word of a paragraph to the last, information had to survive being handed forward through every word in between. By the end, the beginning was a smear.

Attention throws out the straw. Instead of reading left to right with a fading memory, every word gets to look directly at every other word in the sentence and weigh which ones matter to it. The word "it" can reach straight back to the noun it refers to, however far away, in a single hop. Distance stops mattering.

And since nothing depends on reading in order anymore, you can compute the whole thing at once, in parallel. The slow part evaporates.

This is the idea behind the 2017 paper that cheekily named itself "Attention Is All You Need." The bet in that title was this: take attention, which until then had been a helper bolted onto those slow sequential models, and make it the entire model. Drop the recurrence. Keep only the part where everything looks at everything.

What you're actually using

Stack these three together and you get the Transformer, the architecture under basically every large model people talk about today.

Look inside one and it's built from repeating blocks, and each block is an attention step (idea three), wrapped in skip connections (idea one), with normalization sitting between the parts (idea two). The two fixes that made networks deep are exactly what let you stack attention blocks dozens high without the whole tower collapsing.

Feed that a mountain of text and enough compute, and you've got the thing that writes back when you type into a chat box.

The unglamorous truth

None of this needed a breakthrough in how we understand intelligence. It needed three person-sized insights about why the previous thing was broken, each one fixable with a trick you could sketch on a whiteboard. The shortcut is an addition. The leveling is a rescale. The attention is a weighted lookup.

That's the part I find reassuring. The systems that feel the most like sorcery turn out to be the most legible once you trace where they came from. Somebody hit a wall, squinted at it, and added a + x.

Architecture is only one leg of the stool, of course. The other two are scale (oceans of data and compute) and the pretraining-plus-alignment recipe that turns a raw next-word predictor into something worth talking to. But those are a different post.