The Paper That Put the “T” in ChatGPT
A crane lands by the marsh. A crane lifts a piano through a third-floor window. If you’re translating those sentences, you’d better figure out which crane has feathers before you get to the piano.
You did it by noticing a few words around crane. Teaching a computer to make that connection used to involve passing information along a sentence, word by word. In 2017, eight researchers showed how a machine could compare words across a sentence directly. They called their design the Transformer. Years later, its name would supply the T in ChatGPT. The job that first put it to the test was translation. The team gave its paper a title with a little swagger, Attention Is All You Need.
The trouble with waiting your turn
Picture a translator working on a long sentence. The subject appears near the start. Then come a name, a place, a date and a bit about the weather. By the time the translator reaches the verb, it still matters who did what.
One popular kind of computer model worked through a sentence in order. Each step passed along an updated bundle of numbers that stood for what the model had read so far. That approach could work well. It also meant the calculation for word ten had to wait for word nine, which had to wait for word eight. Give the job to a room full of fast chips and some of those chips still had to wait.
Researchers already used a technique called attention to help translation programs reach back to useful words. The 2017 team made attention central to the design and let many of those comparisons happen at once. That change paid off twice. A word could draw directly on a distant clue, and the machine could do more work at the same time during training. One of the authors explains the change.
Which crane gets the piano?
Start with the word crane. The Transformer represents each piece of text with numbers. In one layer of the model, the numbers for crane help it score how strongly other pieces of the sentence relate to it. Information from pieces with higher scores gets a larger say in the next version of crane. That process is called self-attention because the clues come from within the same passage.
In our piano sentence, lifts is a useful clue. In the marsh sentence, lands points the other way. Word order matters, too. “The crane lifted the piano” would make a different news story if the piano lifted the crane. The researchers gave the model a signal for each piece’s position so it could use that difference.
To see whether all this helped, the team trained its larger model on eight graphics chips for three and a half days. On an English-to-German translation test, it beat the previously reported best scores, including those from groups of models working together. Translators now had a reason to take the design seriously. So did people working on other language problems. The paper gives the training times and test results.
How the T got into GPT
In 2018, researchers at OpenAI used part of that design to train a model to predict the next piece of text. Once it had practiced on a large collection of writing, they could train it further for jobs such as answering questions. The name GPT stands for generative pre-trained transformer. It generates text, gets an initial round of training, and uses the design that grew out of that translation work. OpenAI described the experiment in 2018.
Try giving a chatbot a whole sentence to translate. It can use a clue at the very end of your sentence to help pick the first word of its reply. By the time it has to choose which crane you meant, it’s already read about the feathers.
QUOTE:
"Amateurs hack systems, professionals hack people."