LIVE
The Berzelius supercomputer at the National Supercomputer Centre in Linköping
Photo: Erik And30
Retrospective · Year in review

The year 2021: Images from text, AI that writes code and the EU's first AI law

· AInu-redaktionen

DALL-E and CLIP opened the door to generative images, GitHub Copilot brought AI into programmers' daily work and the European Commission proposed the world's first comprehensive AI law. The AlphaFold database opened, Anthropic was founded and the chip shortage turned semiconductors into security policy. In Sweden the Berzelius supercomputer was inaugurated.

Retrospective written in 2026 by the AInu editors with the help of AI, based on the sources below.

2021 was the year between the breakthroughs and the explosion. GPT-3 had shown what large language models could do, but ChatGPT was still almost two years away. In the meantime the technology spread in several directions at once: to images, to code, to biology and to lawmakers’ desks.

Much of what today, in autumn 2026, is taken for granted took shape this year. Generative images, AI assistants for programmers, risk-based AI regulation and the term “foundation models” all come from here. So does the company Anthropic.

Images from text: DALL-E and CLIP

On 5 January OpenAI presented two models. DALL-E created images from text descriptions, and the example of “an armchair in the shape of an avocado” instantly became iconic. CLIP had learned to connect images and text from 400 million image-text pairs from the web and could recognise things in pictures without being trained for that specific task.

DALL-E’s images were small and often strange. But together the models showed that the methods behind GPT-3 could be used for images. In December came GLIDE, which combined the CLIP idea with diffusion models and produced photorealistic results. It was a direct forerunner of DALL-E 2 and Stable Diffusion the following year. Read more in DALL-E, CLIP and Copilot.

AI that writes code

On 29 June GitHub launched a preview of Copilot, an “AI pair programmer” that suggested whole lines and functions directly in the developer’s editor. It was powered by OpenAI’s Codex, a GPT model fine-tuned on code from GitHub.

In July OpenAI published the research behind Codex. On a new test, HumanEval, Codex solved 28.8 percent of programming problems, while GPT-3 solved none. In August Codex became available through OpenAI’s API. According to GitHub, Codex beat GPT-3 at code partly because it had been trained on far more public source code. Models trained on other people’s work without asking later became one of the AI era’s big legal battles.

The EU proposes an AI Act

On 21 April the European Commission put forward its proposal for an AI Act, the world’s first attempt at a comprehensive law on AI. The idea was to regulate by risk. Some uses would be banned, such as social scoring by public authorities. High-risk systems, for example in recruitment, education and credit scoring, would have to meet requirements on data, documentation and human oversight. Chatbots and deepfakes would have to be labelled. Fines could reach six percent of global turnover.

The proposal did not single out generative AI or large language models, which would become the big fight when negotiations continued after ChatGPT. The regulation was adopted in June 2024. Read more in The EU proposes the AI Act.

Other regulatory tracks also gathered pace. China adopted a data protection law in August, the UK published a national AI strategy in September and in November UNESCO’s 193 member states adopted a shared recommendation on AI ethics. In the US the National AI Initiative Act became law on New Year’s Day.

AlphaFold for the whole world

In July DeepMind published the full description of AlphaFold 2 in Nature and released the code openly. A week later DeepMind and EMBL’s bioinformatics institute opened the AlphaFold database with more than 350,000 predicted protein structures, including almost all human proteins. Read more in AlphaFold 2 and protein folding.

Bigger models, new players

The pursuit of size continued. In January Google described the Switch Transformer, a sparse model with more than a trillion parameters. Microsoft and Nvidia presented the 530-billion-parameter Megatron-Turing NLG in October and DeepMind the 280-billion-parameter Gopher in December. Google showed its conversation model LaMDA in May.

China entered the race in earnest. Huawei showed PanGu-α with up to 200 billion parameters, trained on its own Ascend chips. The Beijing Academy of Artificial Intelligence presented Wu Dao 2.0 with 1.75 trillion parameters, and Baidu ERNIE 3.0.

Meanwhile the open movement grew. EleutherAI released the six-billion-parameter GPT-J in June, free for anyone to download.

In August more than a hundred Stanford researchers published On the Opportunities and Risks of Foundation Models. It coined the term “foundation models” for large models trained on broad data and then adapted to many tasks. The word caught on quickly.

Anthropic is founded

Early in the year a group of leading researchers left OpenAI, among them siblings Dario and Daniela Amodei. They founded Anthropic, and on 28 May the company announced a 124 million dollar funding round led by Skype co-founder Jaan Tallinn. The aim was to build AI systems that were more steerable, interpretable and safe. The founders had worked on GPT-3 and the scaling laws at OpenAI, among other things. Few could then have guessed how large a role Anthropic would play in AI just a few years later.

Ethics and the aftermath at Google

The conflict at Google continued. In February Margaret Mitchell, who had co-led the Ethical AI team with Timnit Gebru, was also fired. In March the paper “On the Dangers of Stochastic Parrots” was presented at the FAccT conference. The phrase “stochastic parrot”, a model that stitches language together without understanding it, became one of the most used in the coming debate about ChatGPT.

Facial recognition kept retreating. In November Facebook, which had just renamed itself Meta, announced it would shut down its system and delete more than a billion people’s face templates. In September Apple delayed plans to scan users’ photos for child abuse material, after criticism from privacy experts.

The chip shortage

The whole year was marked by a global semiconductor shortage. Carmakers had to shut factories and graphics cards were almost impossible to buy. In February President Biden ordered a review of supply chains with semiconductors at its centre, and in March Intel launched a strategy to become a contract manufacturer. Nvidia presented its first server CPU, Grace. In August Tesla showed its in-house D1 chip for the Dojo supercomputer at its AI Day, and Elon Musk unveiled a humanoid robot.

Sweden in 2021

For Sweden the big event of the year was the inauguration of Berzelius on 23 March. The supercomputer at the National Supercomputer Centre in Linköping had 60 Nvidia DGX A100 systems with a total of 480 GPUs and an AI capacity of 300 petaflops. It was paid for by the Knut and Alice Wallenberg Foundation and became the machine on which Swedish researchers could train large models. The first large Swedish generative language model, AI Sweden’s and RISE’s 3.5-billion-parameter GPT-SW3, was trained on Berzelius and presented in December 2021. Read more in GPT-SW3: when Sweden built its own language model. Read more in Berzelius and the Swedish language models.

In February the Authority for Privacy Protection announced that the Police Authority had broken the Criminal Data Act by using Clearview AI. The police had to pay 2.5 million kronor and inform the people whose images had been run through the service.

In June the government gave the Public Employment Service, the Companies Registration Office, Digg and the Tax Agency a joint assignment to strengthen the public sector’s ability to use AI, with Digg coordinating. It was a concrete step from the 2018 national approach to AI towards practical work in the agencies.

Among companies, Einride signed an agreement in October with GE Appliances for its first fleet of autonomous trucks in the US.

What we know now

From 2026, 2021 looks like the year the puzzle pieces were laid out. Generative images, coding assistants, open models, foundation models, risk-based regulation and a new safety-focused AI company were all in place. What was missing was an interface everyone understood. It arrived on 30 November 2022, when OpenAI released ChatGPT.

For Sweden it was the year the country got its own machine for training large models. Berzelius made it possible for Swedish researchers and AI Sweden to build a Swedish language model instead of only using others’. The question of whether Sweden has enough computing power has come back again and again since.

Go back to The year 2020.

Sources