A Think Again Media Group publication
Bot Stumper

Does generative AI just copy-paste its training data?

Generative models: learned patterns, new samples, and remembered text

By Phil Springer, Editor · Published · Bot Stumper

Generative models: learned patterns, new samples, and remembered text

Generative models produce outputs through learned statistical relationships. The mechanics vary: a language decoder extends a sequence, an image generator transforms a latent input, and a diffusion system repeatedly removes noise. Original research papers describe these operations as calculations with trained models. They also contain an essential qualification: learning patterns and retaining particular training examples can occur in the same system. New generation is a capability, rather than a guarantee that every output has never appeared before.

The 2017 Transformer paper by Ashish Vaswani and colleagues offers a concrete sequence mechanism. An encoder converts input symbols into continuous representations. A decoder produces output symbols one at a time, taking previously generated symbols as additional input. A learned transformation and a softmax operation supply probabilities for the next token. Self-attention lets the model relate positions within a sequence; masking prevents the decoder from using later output positions while predicting an earlier one. The original experiments concerned translation, including English-to-German and English-to-French tasks. Producing a translation meant generating a sequence conditioned on an input sequence and on its own preceding output.

Diederik Kingma and Max Welling approached generation through latent variables in their 2013 paper on variational autoencoders. Here, the hidden representation is a probabilistic code. An encoder maps an observed example to a distribution over possible codes, while a decoder maps a code to a distribution over possible observations. The two learned components allow training without repeatedly solving an expensive inference problem separately for every example. The decoder's job is to model how data can arise from those hidden variables.

Their image experiments make the distinction tangible. The researchers trained on handwritten digits from MNIST and images from the Frey Face dataset. They displayed a two-dimensional latent space by varying the hidden coordinates and plotting the corresponding generated images. They also displayed random digit samples with different numbers of latent dimensions. For these generative models, an image is obtained through a learned mapping from a code, rather than through an instruction to retrieve a named photograph. The hidden coordinates organize variations that the decoder has learned to express.

Ian Goodfellow and colleagues used a different training signal in their 2014 adversarial-network paper. A generator takes random noise as input and produces a sample. A discriminator estimates whether a sample came from the training collection or from the generator. Training alternates updates to the two networks: one learns to distinguish the origins, while the other learns to produce samples that the discriminator accepts. The generator receives its learning signal through the discriminator's gradients. Once trained, it can produce a sample by passing an input through its network, without running that contest again.

The experiments included handwritten digits, faces and small color images. The published figures placed generated samples beside nearby training examples so their similarity could be examined. The same paper described a failure mode in which too many different noise inputs collapse to the same output, reducing diversity. That limitation follows directly from the training setup: a successful-looking sample does not by itself establish that the generator represents the full variety of its training distribution. These generative models need both convincing individual outputs and useful variation among them.

Jonathan Ho, Ajay Jain and Pieter Abbeel's 2020 diffusion paper describes generation as a sequence of learned denoising steps. A fixed forward process adds small amounts of Gaussian noise to training images. A learned reverse process starts from Gaussian noise and progressively produces an image. The experiments used 1,000 steps. Their training objective emphasized predicting the noise involved at different stages, giving the network repeated examples of how corruption and image structure relate. Sampling then uses the learned reverse transitions to move from noise toward the data distribution.

The researchers tested synthesis on CIFAR-10 and larger LSUN images. They also examined interpolation by combining noisy representations and applying the reverse process. The resulting changes could vary pose, expression, hairstyle and background. This is a different operation from arranging existing rectangular image fragments: the intermediate state is itself a noisy image representation that the network updates. The paper's distinction between the fixed corruption process and the learned reconstruction process identifies precisely which part is learned and which part supplies the training task.

Memorization remains a measurable qualification. Nicholas Carlini and colleagues extracted 604 distinct training examples from GPT-2 in a study first submitted in 2020. The recovered material included code, contact information and strings such as unique identifiers. Their procedure generated candidates, ranked them for likely memorization, and checked selected candidates against training material. Larger tested models were more vulnerable than smaller ones. These results do not make generation equivalent to universal copying; they show that generative models can reproduce particular examples alongside their broader ability to generate from learned patterns.

The Question

How do generative AI models produce content?

Show the answer

The Answer

Generative AI uses generative models to produce text, images, video, audio, computer code, and other digital data. These models learn the underlying patterns and structures of their training data, then use them to generate new data in response to input, often natural language prompts.

Send this question to a friend

Read next

By clicking “Send me a stumper” you agree to Bot Stumper’s Terms of Use and Privacy Policy.