AI fed only another AI’s program output improves on real data

Self-Play Pretraining with Zero Data

TL;DR An AI trained only on output from a partner AI’s programs improved at predicting real text and images faster than one using random programs. The authors see a sign that some prediction skill can come from computing alone, though they tested only tiny models.

Words to know

programming language
A set of written instructions and rules that a computer follows to produce results.
byte
The basic unit of computer data, a small number that can stand for a letter, a color or a sound level.
internal settings
The numbers inside an AI that it adjusts as it learns.
made-up grammars
Randomly generated rule sets for building strings of symbols, used to create practice text with language-like structure.
computing power
The amount of computer work spent training a model.

The problem

Most AI models learn from text that people collect and clean for them. The authors want models that make their own practice material, limited by computing rather than human data. A tiny programming language can, in principle, describe any pattern a computer can make. But most programs print useless output. Among many millions of random programs, the team found none that printed Fibonacci-like numbers, where each is the sum of the two before.

The idea

Picture a gym’s route setter, praised most when a new route stretches moves a climber has practiced lately. Easy routes earn little, and so do routes with random, impossible holds. A generator AI sets the routes by writing programs, and a learner AI climbs them by predicting each next byte those programs print. Both start with random internal settings, the numbers a model adjusts as it learns. The generator earns reward when a program’s lesson lines up with the learner’s recent progress. The authors call this self-play, and they compared it with learners fed random programs or made-up grammars. They argue this keeps practice at the edge of the learner’s skill.

What they showed

  1. Steady gains. As computing power grew, the learner’s prediction errors on real text, images, audio and code fell along a predictable curve. Learners fed random programs from the same language improved much more slowly.
  2. Where it lost. Learners trained on made-up grammars, built to mimic the structure of language, did better on text and code. The self-play learner did better on images, music, audio and speech.
  3. Head start. The team then used the self-play learner as the starting point for normal training on real data. On sound clips, it finished training after 320 million bytes of real data, against 496 million for a model that started with random settings.

Why it matters

Teams that train AI models and worry about running out of good data should care. The head-start result suggests self-play could come before normal training. The authors note that facts about the world must still come from real data. If it scales, which is untested, self-play might supply general patterns alongside real data, not replace it.

The catch

Every model here has under 25 million internal settings, so nobody knows whether the curves hold at larger sizes. The team picked training options using scores on real text and DNA, so real data shaped the setup slightly, though never the training. The head-start test left out the cost of self-play, and the gap shrank by the end of training. DNA was also the odd case, scaling unlike the other data types.

Who wrote it

Aditya Cowsik, Kfir Dolev and Michael Y. Li are equal contributors among seven authors. Cowsik is an independent researcher. The others are at Tel Aviv University, Stanford University and LAPTh, USMB. Yoav Levine, one of the authors, co-authored In-Context Retrieval-Augmented Language Models (2023).