LIVE
Program code on a computer screen
Photo: Markus Spiske
Retrospective · Milestones

DALL-E, CLIP and Copilot: when language models learned to see and to code

· AInu-redaktionen

In January 2021 OpenAI showed an avocado-shaped armchair nobody had drawn, and in June GitHub Copilot began writing code for programmers. Two products of the GPT-3 era that showed the same technology could be used far beyond text.

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

On 5 January 2021 OpenAI published pictures of something that did not exist: armchairs shaped like avocados. Green upholstery, a brown stone as the backrest, sometimes half a fruit as the seat. The images were small, often a little odd, and no human had drawn them. They had been created by a model called DALL-E from the line of text “an armchair in the shape of an avocado”.

On the same day OpenAI presented a second model, CLIP, which got less attention but proved at least as important. Six months later GitHub launched Copilot, an AI that wrote code. Together the three marked the moment the technology behind GPT-3 left pure text behind.

Background

In 2020 GPT-3 had shown that a single large model, trained to predict the next word, could learn a host of tasks. The question was how far the idea would go. Could the same recipe, a transformer and huge amounts of data from the web, work for images? For code?

Image generation was not new. GAN models had been able to create convincing faces since the mid-2010s, and in 2019 the website ThisPersonDoesNotExist went viral. But those models did one thing at a time, such as faces or cats. Creating an image of anything from a free text description was something else.

DALL-E: text in, image out

DALL-E built directly on the GPT idea. According to the research paper, the model treated text and image as a single long sequence of symbols. The image was split into small pieces translated into “image words”, and the model was trained to predict the next symbol, just as GPT-3 predicts the next word. Given a text description, it could then continue the sequence with image words that together became a picture.

What impressed people was how the model combined concepts it had hardly seen together. Besides the avocado armchair, OpenAI showed examples such as “a baby daikon radish in a tutu walking a dog”. Researcher Mark Riedl at Georgia Tech told MIT Technology Review that text-to-image was a long-standing research challenge, but that the examples were impressive.

The images OpenAI showed had not been picked by hand, but ranked by the second model, CLIP, which selected the images that best matched the description.

CLIP: understanding images through language

CLIP solved a different problem. Traditional image recognition was trained on datasets like ImageNet, where people had labelled millions of images with one of a thousand fixed category names. The models became good at those categories but fared poorly outside them.

CLIP was instead trained on 400 million pairs of images and accompanying text collected from the web. The task was simple: work out which text belonged to which image. In the process the model learned to connect visual concepts with language. It could then recognise new things just by being given a description in words, without retraining. On ImageNet CLIP matched the accuracy of a classic, purpose-trained model, ResNet-50, without using a single one of the 1.28 million labelled training images.

CLIP became one of the period’s most used tools. It became a building block in almost every image generator that followed, because it offered a way to measure how well an image matches a text.

From DALL-E to diffusion

DALL-E was the beginning, not the end. Already in 2020 researchers at Berkeley had shown that diffusion models, which learn to remove noise from an image step by step, could produce very high image quality. In December 2021 OpenAI combined the ideas in GLIDE, which produced photorealistic images from text. In April 2022 came DALL-E 2, built on CLIP and diffusion, and over the summer of that year Midjourney and Stable Diffusion were released. Within a year generative images went from research curiosity to mass phenomenon, with all the questions about art, copyright and disinformation that followed.

Copilot: AI as a pair programmer

On 29 June 2021 Microsoft-owned GitHub launched a technical preview of Copilot. It was described as an “AI pair programmer”: as the developer typed, Copilot suggested the next line or a whole function, directly in the editor. According to GitHub it worked especially well for languages such as Python and JavaScript.

Copilot was powered by Codex, a version of GPT-3 further trained on large amounts of public code from GitHub. In July OpenAI published the research behind Codex and a new test, HumanEval, with programming problems where the solution is checked by running the code. Codex solved 28.8 percent of the problems, GPT-3 none at all. In August Codex became available to developers through OpenAI’s API and, according to The Verge, could translate plain English into code in more than a dozen programming languages.

The numbers were modest compared with today’s, but the principle was new. For the first time a large professional group had a generative AI assistant in its daily work. In June 2022 Copilot became generally available for ten dollars a month.

Reactions

The reception was mixed. In August 2021 a research group had Copilot write code in scenarios linked to common security weaknesses and found that about 40 percent of the 1,689 programs were vulnerable. It was also unclear what it meant that a model had been trained on code written by others under various licences. GitHub itself wrote that Codex was better at code than GPT-3 partly because it had been trained on far more public source code. The question of who owns what an AI has learned from became one of the big legal questions of the following years, for both code and images.

What it meant

DALL-E, CLIP and Copilot showed three things. That the language model recipe could be moved to images. That a model could learn to understand images through language instead of hand-labelled categories. And that generative AI could become an everyday tool, not just a demo.

All of this happened before ChatGPT. When the chatbot was released in November 2022, both the image generators and the coding assistants were already there, and they quickly became part of the same wave. From autumn 2026 it is hard to imagine programming or image-making without them.

Read more about the year in The year 2021.

Sources