AI Day: how translating a long sentence grew into ChatGPT
Twelve years ago a paper came out about machine translation. Step by step, ChatGPT grew out of it.
September 1 — the day the school year traditionally starts, Knowledge Day in Russia and much of the post-Soviet world. It also makes a fine birthday for artificial intelligence.
ChatGPT — late 2022. Transformers, the architecture it stands on — 2017. And the idea that transformers and everything else sprouted from? Dig to the very root and you land on September 1, 2014, in a paper from Montreal. Twelve years ago to the day, right on Knowledge Day.
You couldn’t ask for a better excuse to wish AI a happy birthday.
That paper was about a narrow, practical thing: teach a program to "look" at the right words while it translates a long sentence. Twelve years later, that grew into systems that write code and hold a conversation. The idea got a name — attention — and everything started there.
What attention is — and why nothing works without it
Picture translating a long sentence out of a language you barely know. You can’t hold the whole thing in your head at once. You look at the first chunk, translate it, move your eyes to the next, keep the link to the beginning in mind — which noun is the subject, what that pronoun points back to — and so on to the period. At each step you’re looking at the word that matters right now, not the whole sentence. And when you reach the verb at the end of the German sentence, you still remember who, back at its start, was doing the thing.
That’s attention — a program’s ability, at each step, to look at exactly the source words it needs right now, instead of trying to take it all in at once.
Early machine translators worked differently. The program read the whole sentence start to finish and tried to squeeze its whole meaning into one small cell — a short, fixed-length list of numbers, an extremely compressed summary. Then, working from that one distillation and no longer looking at the original, it assembled the translation.
For a short phrase the trick held: everything fit in the summary. On a long one the cell overflowed. A whole sentence’s meaning won’t fit in a handful of numbers — something has to be dropped, and what gets dropped is exactly what didn’t fit. "The cat sat on the mat" you can still translate this way. A half-page paragraph, no.
Attention broke that squeeze open. No need to compress everything into one box and hope it all survives — you can glance back at any word of the original at any moment and take it directly. This is the mechanism that later ended up on the famous sign. But it was invented earlier.
2014, Montreal: fixing the translation of long sentences
A team in Yoshua Bengio’s lab (Dzmitry Bahdanau, Kyunghyun Cho; MILA, University of Montreal) was wrestling with machine translation. The model translated short phrases decently — and fell apart on long ones. The longer the sentence, the worse the translation. Not a minor rough edge — a wall the whole approach ran into.
The paper names the diagnosis without hedging: "the use of a fixed-length vector is a bottleneck." A long sentence simply won’t fit — and everything that doesn’t fit is lost. Half the work in science is naming the disease correctly. Here they named it, and it became clear where to strike.
Here’s how they struck. While building the translation, let the model, at each word, look at all the words of the original and take exactly what matters right now — with different weights, stronger here, weaker there. Not a compressed retelling of the whole sentence, but a live look that slides across the source. That’s how attention was born.
The model itself had a dry name — RNNsearch; the word "attention," which would later carry an entire era, was added, by Bahdanau’s own account, by Bengio — on one of the final passes, almost in passing. The reasoning was simple: a human really does keep one or two words in mind at a time, not the whole sentence at once. The word turned out to be apt — but it was set down without fanfare.
Why "real AI" still didn’t arrive after 2014
The idea was excellent — and it ran straight into the old design of the models.
- Recurrence. A model of those years read text in strict order, word by word, holding in mind a short "summary" of everything it had read so far. Each next word went on top of that summary. Like reading a book through a slit: one word visible, the next only when you slide further.
- And here’s the drag. Training ran in that same strict order: each step waited on the one before, and there was no way to split the work across many hands at once. So training the model on enormous volumes of text was agonizingly slow — and simply adding more power didn’t really help, because the next step still waited on the one before. Training was too slow and too costly to push to any serious scale.
Attention back then cured one disease — the overflowing cell. But the second — the slowness of reading in sequence — it left untouched: it stayed a bolt-on over the old design, which still read word by word. Training on big data got no faster. No revolution in models came after 2014 — not because the idea was weak, but because it had nowhere to stretch: attention could look in the right place, but it was bolted to an engine you couldn’t rev. For the idea to fire, someone had to swap the engine itself. That took three years.
2017: strip out everything else, keep attention alone
Three years later a different team took it on — Ashish Vaswani and seven colleagues. And they didn’t build their model out of thin air. Behind them was a whole arsenal of other people’s findings:
- the encoder-decoder scheme from Cho;
- the line of work on attention — first Bahdanau, then Luong refined it;
- residual connections from image recognition (ResNet);
- layer normalization (layer norm);
- techniques against overfitting (dropout);
- the Adam optimizer.
Every brick was borrowed and already proven — a precise assembly of what lay within reach of the whole field, not a bolt from the blue.
One single move was radical. Rip out the slow machinery entirely — both recurrence (reading word by word) and convolutions. Convolutions are another way to process sequences, slow in their own right; they came from image recognition, and they’d been tried for text too. Rip out both at once — and keep attention alone. The paper declares it outright, in its very first sentence: the model is built "dispensing with recurrence and convolutions entirely." The daring was exactly this — throw out what everything had rested on for years, and test whether attention could hold the whole structure by itself.
The paper was called "Attention Is All You Need." And it turned out exactly right: beyond attention, nothing else is needed. They threw out recurrence, threw out convolutions, kept attention alone — and it carried the whole load. The title sounded like a cocky slogan, but it was a precise description.
What opened the road: two findings that only worked as a pair
Two things opened the road together, and it matters not to confuse them. One was invented in 2014, the other in 2017, and they only started working as a pair.
- Attention (2014). The model learned to see the link between every word and every other word directly — no retelling through a cramped cell, no loss of meaning on a long sentence.
- Dropping recurrence (2017). While the model read text word by word, each step waited on the one before — the work ran in single file. Drop recurrence, and the queue vanishes: every word of the sentence can now be computed at once. And that’s exactly what the graphics cards models are trained on do best: not one hard operation fast, but thousands of identical ones in parallel.
Attention gave the model sharp sight; dropping the queue gave it speed.
And then everything went wide. Once training splits into parallel work, you can feed it ever more computation: more graphics cards, more text, in the same time. And then a fact turned up that was almost embarrassingly simple: this predictably turns into quality. More scale — a smarter model, and not by luck but along a fairly smooth curve (later measured and written up in the "scaling laws" — the work of Kaplan, then Chinchilla).
Before, making a model smarter took a new bright idea. Now, much of the time, it was enough to add computation and data — and wait.
Down this very path came BERT, then GPT, and at the end — ChatGPT, which by now everyone has talked to.
And the numbers confirmed it right away, still on translation. The base transformer beat all the previous champions — including heavy composite systems, where several models’ answers are averaged for an extra sliver of quality — at a small fraction of their cost. Training fit into 3.5 days on eight graphics cards; the previous champions cost several times, sometimes tens of times, more for the same quality. Best in class — and markedly cheaper. And that, not the high quality number alone, was the main signal: if the same result comes cheaper, then for the same money you can reach for something far bigger than translation.
For the curious: how it works under the hood. The 2014 attention mechanism is "soft alignment": the context for the next word is assembled as a weighted sum over all the encoder’s states. The transformer generalizes the same trick. For each word, three vectors are computed — Query, Key, and Value; the closeness of the query to the keys gives the weights, by which the values are averaged. The dot products are divided by √d (the square root of the dimension) — otherwise softmax drifts to where the gradients are nearly zero and training stalls. Attention is computed not with one "head" but with several in parallel (multi-head) — each looking at its own slice of connections. The price of every word’s direct access to every other is quadratic complexity O(n²) in length: twice as long an input, four times the work. It’s exactly this square that people would later find every way to get around.
Twelve years later
The best proof of how big the shift was: its skeleton still holds the frontier, nine years on. In a field where everything goes stale in a couple of years and yesterday’s breakthrough looks naive by tomorrow, that’s rare.
What survived into our flagships out of each of the two papers:
- from 2014 — the idea of attention itself. It’s at the heart of every large model today, without a single exception. When ChatGPT "understands" what that "it" refers to in your long question, the same mechanism is at work — the one invented to translate German sentences.
- from 2017 — Vaswani’s specific design at the very core: every word’s attention to every other, several parallel "heads" of attention at once, residual connections with normalization, blocks that alternate "attention → processing," and the very idea that word order has to be told to the model separately (since there’s no queue anymore, it won’t arise on its own).
Meanwhile the 2017 blueprint has been quietly rewritten in many places over these years:
- normalization was moved so training would go smoother — pre-norm (Xiong, 2020);
- how position is fed to the model was swapped for something more flexible — RoPE (Su, 2021), ALiBi (Press, 2021);
- from the encoder-decoder pair, large language models moved to a single decoder (the GPT line);
- the O(n²) square was taught to be computed more cleverly, without materializing the whole matrix in memory — FlashAttention (Dao, 2022);
- attention was thinned out for cheapness — GQA (Ainslie, 2023);
- dense processing was replaced by a "mixture of experts," where only part of the model switches on for each word — MoE/Switch (Fedus, 2021).
The skeleton is 2017’s; the flesh grown on it is largely new.
The frontier today is still that same transformer with attention at its core. Every flagship (models on the level of GPT-5, Claude, Gemini, Llama 4, DeepSeek, Qwen) is a transformer refined around the edges; the upgrades run around the core, and the core holds. One caveat: the makers of the closed models never disclosed their architecture — so for GPT-5, Claude, and Gemini this is a strong inference from indirect signs, not a confirmed fact.
There was a serious challenge too. Architectures without attention — above all Mamba — have already gone into use, but only as hybrids in niches of long context (Jamba, Nemotron-H, Granite 4.0): some of their layers still carry attention. Without it a model computes fast but "retrieves" poorly from a long text — it can’t precisely copy a fact named ten pages back. Which is exactly what attention was invented for in 2014. So the throne, twelve years later, still belongs to that idea from Montreal.
Happy AI Day
Out of a narrow task — translate a long sentence without losing the beginning — grew, over twelve years, systems that write code and hold a conversation.
And along the way a lesson about how technology moves shows through. We’re used to looking for the big shift wherever something was loudly added and given a ringing name. But it’s often the opposite — in someone deciding to strip out what’s extra and let the idea finally stretch. Attention was invented in 2014; it fired only three years later, when the slow old engine was yanked out from under it. And spotting where the real turn was doesn’t come at once — it comes years later, when a whole world has grown out of a small find, and you can see what it grew from.
So September 1 is a good day to wish artificial intelligence a happy birthday. It’s twelve. Happy AI Day.
День ИИ: как перевод длинной фразы дорос до ChatGPT
Двенадцать лет назад вышла статья про машинный перевод. Из неё, шаг за шагом, вырос ChatGPT.
Первое сентября — День знаний. И заодно неплохой день рождения у искусственного интеллекта.
ChatGPT — конец 2022 года. Трансформеры, архитектура, на которой он стоит, — 2017-й. А идея, из которой потом проросли и трансформеры, и всё остальное? Копнём к самому корню — и попадём в 1 сентября 2014-го, в статью из Монреаля. Ровно двенадцать лет назад, день в день с Днём знаний.
Лучшего повода поздравить ИИ не придумаешь.
Статья была про узкую, прикладную вещь: научить программу «смотреть» на нужные слова, когда она переводит длинную фразу. Двенадцать лет спустя из этого выросли системы, которые пишут код и ведут разговор. Идею назвали вниманием — и с неё всё началось.
Что такое внимание — и почему без него никак
Представьте, что вы переводите длинное предложение с чужого языка. Целиком в голове его не удержать. Вы смотрите на первый кусок, переводите, переводите взгляд на следующий, держите в уме связь с началом — какое подлежащее, к чему относится вот это местоимение, — и так до точки. В каждый момент вы смотрите на то слово, которое важно именно сейчас, а не на всё предложение разом. И когда доходите до глагола в конце немецкой фразы, вы всё ещё помните, кто в её начале этот глагол совершал.
Вот это и есть внимание — способность программы на каждом шаге смотреть ровно на те слова источника, что сейчас нужны, а не пытаться охватить всё скопом.
Ранние машинные переводчики работали иначе. Программа читала всю фразу от начала до конца и пыталась запихнуть её смысл в одну тесную ячейку — короткий набор чисел фиксированного размера, что-то вроде предельно сжатого конспекта. А дальше по одной этой выжимке, уже не глядя на оригинал, собирала перевод.
С короткой фразой номер проходил: в конспект всё умещалось. А на длинной ячейка переполнялась. Смысл целого предложения не влезает в горстку чисел — что-то приходится терять, и теряется как раз то, что не поместилось. Переводить «Кошка сидела на коврике» так ещё можно. Абзац на полстраницы — уже нет.
Внимание сняло эту тесноту. Незачем ужимать всё в одну коробку и надеяться, что там всё уцелеет, — можно в любой момент оглянуться на любое слово оригинала и взять его напрямую. Именно этот механизм потом попадёт на знаменитую вывеску. Но придумали его раньше.
2014, Монреаль: как чинили перевод длинных фраз
Команда в лаборатории Йошуа Бенжио (Дмитрий Богданов, Кёнхён Чо; MILA, Университет Монреаля) билась над машинным переводом. Модель прилично переводила короткие фразы — и разваливалась на длинных. Чем длиннее предложение, тем хуже перевод. Не мелкая недоделка — стена, в которую упирался весь подход.
Диагноз в статье сформулирован без обиняков: «вектор фиксированной длины — это бутылочное горлышко». Длинное предложение туда попросту не влезает — и всё, что не поместилось, теряется. Полработы в науке — верно назвать болезнь. Тут её назвали — и стало ясно, что чинить.
Сделали так. Пусть при сборке перевода модель на каждом слове смотрит на все слова оригинала и берёт оттуда ровно то, что сейчас важно, — с разным весом, где-то сильнее, где-то слабее. Не сжатый пересказ всей фразы, а живой взгляд, скользящий по источнику. Так родилось внимание.
Сама модель называлась сухо — RNNsearch; слово «внимание», под которым потом пойдёт целая эпоха, по воспоминаниям самого Богданова дописал Бенжио — на одном из финальных проходов, почти между делом. Довод был простой: человек ведь и правда держит в голове одно-два слова за раз, а не всю фразу сразу. Слово оказалось метким — но поставили буднично.
Почему после 2014 ещё не случилось «того самого ИИ»
Идея была отличная — но упёрлась в старое устройство самих моделей.
- Рекуррентность. Модель тех лет читала текст строго по порядку, слово за словом, держа в голове короткий «конспект» всего, что прочла до сих пор. Каждое следующее слово — поверх этого конспекта. Как читать книгу через щёлочку: одно слово видно, следующее — только когда сдвинешься дальше.
- В этом и тормоз. Обучение шло в том же строгом порядке: каждый шаг ждал предыдущего, разложить работу на много рук разом было нельзя. Значит, учить модель на огромных объёмах текста приходилось мучительно долго — и никакое «добавить мощности» тут толком не помогало: следующий шаг всё равно упирался в предыдущий. Считать становилось слишком медленно и слишком дорого, чтобы всерьёз расти в масштабе.
Внимание тогда вылечило одну болезнь — переполненную ячейку. Но вторую, медлительность чтения по очереди, оно не трогало: осталось надстройкой поверх старого устройства, которое по-прежнему читало слово за словом. Быстрее учить на больших данных от этого не стало. Революции в моделях после 2014 и не случилось — не потому, что идея была слабой, а потому, что ей негде было развернуться: внимание умело смотреть куда надо, но приделано было к двигателю, который не разгонишь. Чтобы идея выстрелила, кто-то должен был сменить сам двигатель. На это ушло три года.
2017: убрать всё лишнее, оставить одно внимание
Через три года за дело взялась другая команда — Ашиш Васвани и семеро его коллег. И собрали модель не из воздуха. За спиной была целая обойма чужих находок:
- схема «энкодер-декодер» от Чо;
- линия работ по вниманию — сначала Богданов, потом Луонг довёл его до ума;
- остаточные связи из распознавания картинок (ResNet);
- нормализация слоёв (layer norm);
- приёмы против переобучения (dropout);
- оптимизатор Adam.
Каждый кирпич был чужой и уже проверенный — точная сборка того, что лежало под рукой у всей области, а не гром среди ясного неба.
Радикальным был один-единственный ход. Убрать медленное устройство целиком — и рекуррентность (чтение слово за словом), и свёртки. Свёртки — это ещё один способ обрабатывать последовательности, тоже небыстрый по-своему; пришёл он из распознавания картинок, для текста его тоже пробовали. Убрать и то и другое разом — и оставить одно только внимание. В статье это заявлено прямо, в первой же фразе: модель построена «полностью отказавшись от рекуррентности и свёрток». Смелость была именно в том, чтобы выбросить то, на чём годами всё держалось, и проверить, удержит ли внимание всю конструкцию в одиночку.
Статью назвали «Attention Is All You Need» — «внимание — это всё, что нужно». И так и вышло: кроме внимания больше ничего и не нужно. Выбросили рекуррентность, выбросили свёртки, оставили внимание одно — и оно понесло весь груз. Заголовок звучал как дерзкий лозунг, а на деле был точным описанием.
Что открыло дорогу: две находки, работавшие только в паре
Дорогу открыли две вещи вместе, и их важно не спутать. Одна была придумана в 2014, другая — в 2017, и работать они начали только в паре.
- Внимание (2014). Модель научилась напрямую видеть связь каждого слова с каждым — без пересказа через тесную ячейку, без потери смысла на длинной фразе.
- Отказ от рекуррентности (2017). Пока модель читала текст слово за словом, каждый шаг ждал предыдущего — работа шла строго в затылок. Убрали рекуррентность — и очередь исчезла: все слова предложения теперь можно считать разом. А это ровно то, что лучше всего умеют видеокарты, на которых учат модели: не одно сложное действие быстро, а тысячи одинаковых — параллельно.
Внимание дало модели зоркость; отказ от очереди — скорость.
И тут всё пошло вширь. Раз обучение раскладывается на параллельную работу — в него можно подкидывать всё больше вычислений: больше видеокарт, больше текста, за то же время. А дальше — вещь почти до смешного простая: это предсказуемо превращается в качество. Больше масштаб — умнее модель, и не как повезёт, а по довольно ровной зависимости (её потом измерят и опишут в «законах масштабирования» — работы Каплана, затем Chinchilla).
Раньше, чтобы модель поумнела, нужна была новая светлая идея. Теперь во многом хватало добавить вычислений и данных — и ждать.
По этой самой дорожке и пришли BERT, потом GPT, а в конце — ChatGPT, с которым уже поговорил каждый.
И цифры подтвердили это сразу, ещё на переводе. Базовая версия трансформера обошла всех прежних чемпионов — включая тяжёлые составные системы, где ответы нескольких моделей усредняют ради лишней доли качества, — и обошлась при этом в малую долю их стоимости. Обучение уместилось в 3,5 дня на восьми видеокартах; прежние чемпионы стоили в разы, а то и в десятки раз дороже за то же самое качество. Лучший результат в своём классе — и заметно дешевле. И вот это, а не одна лишь высокая цифра качества, было главным сигналом: если тот же результат получается дешевле, значит, за те же деньги можно замахнуться на что-то куда большее, чем перевод.
Для тех, кто хочет глубже. Механизм внимания-2014 — это «мягкое выравнивание»: контекст для очередного слова собирается как взвешенная сумма по всем состояниям энкодера. Трансформер обобщает тот же приём. Для каждого слова считаются три вектора — запрос (Query), ключ (Key) и значение (Value); близость запроса к ключам даёт веса, по ним усредняются значения. Скалярные произведения делят на √d (корень из размерности) — иначе softmax уходит туда, где градиенты почти нулевые, и обучение застревает. Внимание считают не одной «головой», а несколькими параллельно (multi-head) — каждая смотрит на свой срез связей. Плата за прямой доступ каждого слова к каждому — квадратичная сложность O(n²) по длине: вдвое длиннее вход — вчетверо больше работы. Именно этот квадрат потом будут по-всякому обходить.
Двенадцать лет спустя
Лучшее доказательство того, насколько крупным был сдвиг, — что его костяк держит передний край до сих пор, девять лет спустя. В этой области, где всё устаревает за пару лет и вчерашний прорыв назавтра кажется наивным, так бывает редко.
Что дожило до наших флагманов из каждой из двух статей:
- из 2014 — сама идея внимания. Она в сердце каждой большой модели сегодня, без единого исключения. Когда ChatGPT «понимает», к чему в вашем длинном вопросе относится вот это «оно», — работает всё тот же механизм, придуманный ради перевода немецких фраз.
- из 2017 — конкретное устройство Васвани в самом ядре: внимание каждого слова к каждому, сразу несколько параллельных «голов» внимания, остаточные связи с нормализацией, чередование блоков «внимание → обработка», сама мысль о том, что порядок слов надо подсказывать модели отдельно (раз очереди больше нет, сам собой он ниоткуда не возьмётся).
При этом чертёж-2017 за эти годы тихо переписали по многим местам:
- нормализацию переставили, чтобы обучение шло глаже — pre-norm (Xiong, 2020);
- способ подсказывать позицию заменили на более гибкий — RoPE (Su, 2021), ALiBi (Press, 2021);
- от пары «энкодер-декодер» большие языковые модели ушли к одному декодеру (линия GPT);
- квадрат O(n²) научились считать умнее, не материализуя всю матрицу в памяти — FlashAttention (Dao, 2022);
- внимание проредили ради дешевизны — GQA (Ainslie, 2023);
- плотную обработку заменили на «смесь экспертов», где на каждое слово включается лишь часть модели — MoE/Switch (Fedus, 2021).
Скелет 2017, а мясо на нём наросло во многом новое.
Передний край сегодня — всё тот же трансформер с вниманием в ядре. Каждый флагман (модели уровня GPT-5, Claude, Gemini, Llama 4, DeepSeek, Qwen) — это доработанный по краям трансформер; апгрейды идут вокруг ядра, само ядро держится. Одно уточнение: архитектуру закрытых моделей их создатели не раскрывали — так что для GPT-5, Claude и Gemini это сильный вывод из косвенных признаков, а не подтверждённый факт.
Был и серьёзный вызов. Архитектуры без внимания — прежде всего Mamba — уже пошли в дело, но только как гибриды в нишах длинного контекста (Jamba, Nemotron-H, Granite 4.0): часть слоёв в них всё равно с вниманием. Без него модель быстро считает, но плохо «достаёт» нужное из длинного текста — не может точно скопировать факт, названный десять страниц назад. А это ровно то, ради чего внимание и придумали в 2014. Так что трон, двенадцать лет спустя, по-прежнему за той идеей из Монреаля.
С Днём ИИ
Из узкой задачи — перевести длинную фразу, не растеряв начало, — за двенадцать лет выросли системы, которые пишут код и ведут диалог.
И по дороге проступает урок про то, как вообще двигаются технологии. Мы привыкли искать большой сдвиг там, где что-то громко добавили и звонко назвали. А он часто в обратном — в том, что кто-то решился убрать лишнее и дать идее наконец развернуться. Внимание придумали в 2014; выстрелило оно только через три года, когда из-под него выдернули медленный старый двигатель. И разглядеть, где именно был настоящий поворот, удаётся не сразу — а спустя годы, когда из маленькой находки уже вырос целый мир, и видно, из чего он вырос.
Так что 1 сентября — хороший день поздравить искусственный интеллект. Ему двенадцать. С Днём ИИ.