Home / Al Jazeera Net Essays

Four Years of ChatGPT: How AI Left the Vaults of the Giants

Many people believe artificial intelligence was born the day ChatGPT launched four years ago. Yet it had been working for years before that, inside banks and technology giants, in the language of numbers, out of ordinary people's reach. So what changed when the machine learned to talk?

Four Years of ChatGPT: How AI Left the Vaults of the Giants

Four years ago, on November 30, 2022, a simple chat window called ChatGPT appeared on the internet. Within two months, artificial intelligence was being talked about in homes and offices, and to many it seemed to have been born that day. In truth it is far older, and what changed that day was something else.

In 2003, the author of these lines was preparing a doctorate at the National Aviation University in Kyiv, the Ukrainian capital. He proposed a research topic to the dean of its College of Information Technology, Professor Sidorov: machine intelligence, or what is called "machine learning," meaning a machine that learns from examples instead of having its rules written for it. The answer came calm and final: this is a well-worn subject, finished on the mathematical side, and it has no practical application.

By the standards of his time, the professor was not wrong. The mathematical foundations of these systems had been known for decades, computers were too weak to run them at scale, and the data they learn from had not yet accumulated. But his answer held a paradox that was not visible then: in that very year, neural networks, one kind of machine learning system, were watching credit card transactions at major banks and flagging suspicious ones in real time, and the best known of these systems had gone into service in 1992.

So artificial intelligence was already at work, but behind a curtain. This is the story of that curtain: why this intelligence stayed out of people's reach for all those years, and what drew the curtain back four years ago.

Intelligence That Worked on Us, Not for Us

Until the late 2010s, artificial intelligence was present in each of our days without our calling it by name. It suggested the next film, ordered what appeared in your social media feed, and estimated, at the bank, the risk of lending to you. All of it worked the same way: organized numbers went in, and a number came out, a prediction or a probability.

This intelligence was the preserve of the big players, not because its mathematics was hard but because it was costly to run. The Netflix story bears witness. In 2006, the company announced a one-million-dollar prize for anyone who could improve the accuracy of its recommendations by 10%. Teams from around the world competed for three years until one of them won in 2009. In 2012, the company described on its technology blog what it had done with the results. It took two algorithms from the solution that led the competition in its first year, and could put them to work only after real effort, because they had been built to handle one hundred million ratings while the company had more than five billion, and the number kept growing. As for the solution that won the grand prize, the company never put it into its service: it judged that the extra accuracy did not justify the engineering effort needed to run it.

If a giant of that size found this kind of intelligence costly to run, what of a mid-sized company or an accounting office? It took a team of data specialists, servers for training and running the models, and then someone to interpret the number that came out at the end. And so, until quite recently, this intelligence reached great heights in the service of technology giants and banks, while ordinary people remained its subjects rather than its users: it rated them, sorted for them and predicted their behavior, and none of them could ask it anything.

What this intelligence lacked in 2003 arrived in the following decade. Data piled up as the internet and smartphones spread, and neural networks found, in graphics processors originally made for video games, computers powerful enough to train them. Victories followed, but they remained news people read about rather than something they could touch. In 2012, a neural network outperformed everything before it at recognizing images; in 2016, the program AlphaGo defeated one of the world's champions at the game of Go; and at the end of 2020, AlphaFold offered a solution to a problem that had occupied biologists for fifty years: predicting the structure of proteins. Great achievements, but no one could open them on a phone and ask them for something.

When the Machine Learned to Talk

The seed of change was planted in 2017, when researchers, most of them at Google, published a paper titled "Attention Is All You Need," describing a new architecture for neural networks they called the "Transformer." Its idea, at its simplest: instead of reading a sentence word by word, losing hold of its beginning by the time it reaches the end, the machine looks at all the words at once and weighs how each word relates to every other. The word "bank" in "she deposited money at the bank" is not the "bank" in "they fished from the river bank," and the machine tells them apart by weighing the word against its neighbors. This architecture made it possible to train models on enormous amounts of text, and it turned out that the bigger the model, the better it performed.

In 2020, OpenAI released GPT-3, which amazed specialists with what it could write. But there was no uproar, because using it required a programmer who knew how to address it. Then came ChatGPT at the end of 2022: a model from the same family, placed by the company behind a simple chat window. You type your question in your own language, and it answers you in your own language. Within two months it had about one hundred million users, by an estimate from the bank UBS, a number TikTok took about nine months to reach and Instagram two and a half years.

Here lies the key to the whole story. What changed between 2020 and 2022 was not so much the model's intelligence as the road to it. In the eyes of the public, the revolution was a revolution of the interface: for the first time, anyone could address this intelligence directly, with no intermediary and no numbers.

Yet a chat window would not have been enough without a deeper difference between the two kinds of intelligence. The old intelligence needs a model for each task: one for recommendations, another for detecting fraud, a third for assessing loans, each built by specialists from their own institution's data, and none of them fit for any other job. The language model, by contrast, is a single model that learned from text in general, so it can handle tasks it was never specifically trained for: it summarizes a report, translates a letter, explains a contract, writes a program. The first is a machine an institution builds for itself; the second is a general-purpose machine that anyone can ask for what they want.

Did COVID Have a Hand in It?

It is striking that these were the very years of the pandemic. Was that a coincidence? The honest answer is that the seeds came before the pandemic: the Transformer paper was published three years earlier. But the numbers say the pandemic hastened what was already coming. According to the AI Index published by Stanford University, global investment in the field grew 40% between 2019 and 2020, after growing only about 12% the year before. Private investment in using AI for drug discovery reached four and a half times its level of the previous year.

Still, the picture is not simple. About half of the respondents to a McKinsey survey said the pandemic had changed nothing in their companies' spending on AI, and about a quarter said it had increased it. The conclusion Stanford drew from the Index is that what happened was the continuation of an older trend, likely to outlast the pandemic's effects. So the most accurate reading is that the pandemic did not write the story, but it prepared the auditorium: it moved work and schooling onto screens and accustomed hundreds of millions of people to asking a program for what they needed. When the chat window arrived, it found an audience ready and waiting.

The New Intelligence Handed Over the Keys to the Old

Many people assume the new language models have closed the book on that older intelligence that works with numbers and images in banks and factories. In fact they have not replaced it, because they are not suited to its place: a giant chat model was not made to extract a statistical pattern from a long sales table, nor to follow fast movement in front of a camera in fractions of a second. Those tasks remain the domain of small, specialized models. But the new language intelligence did something more remarkable than replacing them: it became the engineer that builds them for those who could never afford them.

What held back mid-sized companies and startups was never the mathematics of prediction itself, but the engineering kit around it: cleaning the tables, choosing the method, writing the training program and reading the result. Today, language models are skilled at writing programs and running them through tools that carry out the steps one after another. A sales manager at a trading company need only hand them three years of sales records and ask, in plain words, for a forecast of next month's demand. They prepare the table, train a forecasting model tailored to that data, test it on past months to see how often it is right, and then explain the result and its limits in clear language. In the same way, a service business or a distribution company can learn, from its record of contracts and orders, which customers are about to leave.

Nor does it stop at tables and numbers. In a few weeks, our team built an experimental system, still under development, that uses a phone's camera to read a real chessboard during play and send the moves live to the internet, while the phone moves around the table in its owner's hand instead of being fixed on a stand, as the usual systems require. The models that read the board inside the phone are not language models but small, fast vision networks of the generation that came to prominence in 2012. Yet what wrote their training programs, prepared their images and measured their errors round after round was a coding tool running on a language model, which left our team free to set the goal and judge the result.

And so what once required a data science department at a large bank became available to a startup or a team of a few people: an intelligence that speaks our language and builds for us the intelligence that calculates and sees.

What Has Not Changed

Yet ease of building does not change an old law that governs every machine that learns from examples: a model is no more truthful than the data it was fed. If a company's records are incomplete or messy, the forecast will come out wrong, however logical and tidy its explanation may look.

And there is a deeper limit in the nature of this intelligence itself: it learns from the past and quietly assumes that tomorrow will resemble yesterday. If conditions change suddenly in ways the earlier records never saw, as happens in an unexpected crisis or a sharp turn in the market, the forecasts go astray however precise their calculations. The cost of building has fallen, then, but we still need the insight of the person who knows the field, and of the specialist, to know where a number came from and when to stop believing it.

The Subject Was Not Finished

When the professor said in 2003 that the subject was finished, he was describing half the truth precisely. The mathematical foundations were indeed known, but they lacked three things: computers that could handle them, data to learn from, and a language in which people could address the machine. The first two arrived in the 2010s, and the giants benefited from them. The third arrived after 2020, and everyone benefited from it.

The subject was not finished. It was waiting for someone to translate it into the language of ordinary people.

Emad Jumaah: AI Systems Architect and Researcher.

Sources & References

  1. Netflix Technology Blog: Netflix Recommendations: Beyond the 5 stars (Part 1), April 2012: https://netflixtechblog.com/netflix-recommendations-beyond-the-5-stars-part-1-55838468f429
  2. FICO blog: Explainable AI in Fraud Detection: A Back to the Future Story, on the Falcon neural-network card fraud system in use since 1992, September 2017: https://www.fico.com/blogs/explainable-ai-fraud-detection-back-future-story
  3. Attention Is All You Need, June 2017: https://arxiv.org/abs/1706.03762
  4. Language Models are Few-Shot Learners (the GPT-3 paper), May 2020: https://arxiv.org/abs/2005.14165
  5. Reuters on the UBS estimate of ChatGPT users (via Yahoo Finance), February 2023: https://finance.yahoo.com/news/1-chatgpt-sets-record-fastest-051929384.html
  6. Stanford Institute for Human-Centered AI: How Has COVID Affected the AI Economy?, March 2021: https://hai.stanford.edu/news/how-has-covid-affected-ai-economy
  7. DeepMind: AlphaFold: a solution to a 50-year-old grand challenge in biology, November 2020: https://deepmind.google/discover/blog/alphafold-a-solution-to-a-50-year-old-grand-challenge-in-biology/