On scikit-learn's 1,797 handwritten digits (30 random half splits, medians), a generative model that fits a normal distribution to each class in 20 principal components classifies at 0.981 against logistic regression's 0.961, better in all 30 splits. It also scores real digits far above noise (average log-density −54.9 against −105.2) and draws new digits no nearer the training images than real digits are to each other. Deep models (variational autoencoders, GANs, diffusion) learn the curved distributions of real images, and autoregressive language models factor text as $\prod_t p(x_t \mid x_1, \ldots, x_{t-1})$. Kaplan et al.'s law $L(N) = (N_c/N)^{0.076}$ cuts loss 5% per doubling of parameters; Hoffmann et al. scale data equally with model size, and the two fitted laws rank Gopher and Chinchilla in opposite order.
None of the 80 digits below was written by a person.
Each was produced by drawing a random point from a probability distribution fitted to the 1,797 scanned digits that ship with scikit-learn (Alpaydin and Kaynak, 1998), and turning the point back into 64 pixels. They are recognizable as digits, they vary the way handwriting varies, and none of them is a copy of a training image. They are also blurry and speckled, which is the subject of most of this article: the step from a model that can produce digits like these to models that produce photographs, fluent essays and working code.
A generative model is a model of the data itself: a probability distribution from which new examples can be drawn. Generative AI is the name now given to systems built on such models that produce text, images, audio, video or code. This article starts with the statistical idea on the small example above, then describes the three families of deep generative models for images, the autoregressive models that generate text, what is known about how they improve with scale, and how they are evaluated. The prompt engineering article covers how such models are used, and the risks article what can go wrong.
Generative and discriminative models
A classifier needs $\Pr(Y = k \mid X = x)$, the probability of each class given the input. James, Witten, Hastie and Tibshirani (2021, §4.4) describe two ways to get it. A discriminative model such as logistic regression models that conditional probability directly. A generative model takes "an alternative and less direct approach": it models the distribution of the inputs $X$ separately within each class, $f_k(x)$, together with the class proportions $\pi_k$, and then uses Bayes' theorem,
$$\Pr(Y = k \mid X = x) = \frac{\pi_k f_k(x)}{\sum_{l} \pi_l f_l(x)}.$$
Linear and quadratic discriminant analysis and naive Bayes are generative classifiers in this sense, and the supervised learning overview works Gaussian naive Bayes by hand. The difference matters beyond classification. A discriminative model can only label inputs it is given. A generative model, having a distribution for $X$, can also score how probable an input is, and can draw new inputs.
The digits make the comparison concrete. The generative model projects the 64 pixels onto their first 20 principal components, which keep 89.4% of the pixels' variance (Principal Component Analysis), and models each digit class as a multivariate normal distribution in those 20 coordinates, with its own mean and covariance matrix. Trained on random halves of the data and tested on the other halves, 30 times:
| Model | Test accuracy, median (IQR) |
|---|---|
| Logistic regression on the 64 pixels | 0.961 (0.008) |
| Gaussian generative model in 20 principal components | 0.981 (0.006) |
The generative classifier was more accurate in all 30 splits, by a median of 1.9 percentage points. That is a property of these data, whose classes happen to be well described by a normal distribution in a few principal components, not a general rule; James et al. (2021, §4.4) note that generative classifiers of this kind may be more accurate than logistic regression when the predictors are approximately normal in each class and the sample is small.
The generative model also does two things logistic regression cannot. It assigns a probability density to any image: the 1,797 real digits have an average log-density of −54.9 under the fitted mixture, while 1,797 images of random noise have −105.2, so the model can tell a plausible digit from static. And it can sample, which is how the figure above was made. A natural worry about a model that generates data is that it copies its training examples. For each of the 80 samples, the closest real digit is at a median Euclidean distance of 17.4 gray levels (interquartile range 15.6 to 18.9, minimum 10.3), while real digits lie at a median of 16.1 from their nearest other real digit. The samples are about as far from the training set as the training digits are from each other.
One correction to a common description is worth making here. Generative AI is often presented as a subset of deep learning. The model above has no neural network at all, and generative models are much older than deep learning: a bigram language model that samples the next character from a table of counts is a generative model of text. What deep learning added is the ability to model very complicated distributions, which is what photographs and long passages of text require.
Why images need deep generative models
The Gaussian model's samples are blurry because a single normal distribution in 20 dimensions cannot represent sharp strokes, and pixel space is far larger for real images: a $256 \times 256$ color image has 196,608 numbers. The distribution of natural images occupies a thin, curved region of that space, and a model must learn where it lies. The three families below all use neural networks to learn a transformation between a simple distribution that is easy to sample, usually standard normal noise, and the distribution of the data.
Variational autoencoders. Kingma and Welling (2014) consider models with continuous latent variables: each image $x$ is generated by first drawing a hidden code $z$ from a simple prior, then drawing $x$ from a distribution $p_\theta(x \mid z)$ computed by a neural network, the decoder. Fitting such a model by maximum likelihood requires the posterior $p_\theta(z \mid x)$, which is intractable. Their method fits a second network, the encoder or recognition model $q_\phi(z \mid x)$, to approximate it, and maximizes a lower bound on the log-likelihood of each data point (§2.2),
$$\log p_\theta(x) \geq \mathbb{E}_{q_\phi(z \mid x)}\big[\log p_\theta(x \mid z)\big] - D_{\mathrm{KL}}\big(q_\phi(z \mid x) \,\|\, p(z)\big).$$
The first term rewards reconstructing $x$ from its code; the second keeps the codes close to the prior, so that codes drawn from the prior decode to plausible images. The key step that makes the bound trainable by gradient descent is the reparameterization: instead of sampling $z$ from $q_\phi$ directly, sample standard normal noise $\varepsilon$ and set $z = \mu_\phi(x) + \sigma_\phi(x) \varepsilon$, so that gradients flow through $\mu$ and $\sigma$ (Kingma and Welling, 2014, §2.3 and §2.4). The randomness enters as a draw from the encoder's distribution for each input, which is the precise version of the common summary that noise is "added in the latent space". To generate, draw $z$ from the prior and decode it.
Generative adversarial networks. Goodfellow et al. (2014) took a different route that avoids writing down a likelihood at all. A generator network $G$ maps noise $z$ to a sample $G(z)$; a discriminator network $D$ outputs the probability that its input came from the training data rather than from $G$. They are trained against each other: $D$ to tell real from generated, $G$ "to maximize the probability of $D$ making a mistake" (abstract). Their analogy is a team of counterfeiters trying to pass fake currency and police trying to detect it, with competition driving both to improve "until the counterfeits are indistiguishable from the genuine articles" (§1; the misspelling is in the original). Formally the two play a minimax game whose value is
$$\min_G \max_D \; \mathbb{E}_{x \sim p_{\text{data}}}\big[\log D(x)\big] + \mathbb{E}_{z \sim p_z}\big[\log\big(1 - D(G(z))\big)\big],$$
and they prove that, with unlimited capacity, the global optimum is reached exactly when the generator's distribution equals the data distribution, at which point the discriminator outputs 1/2 everywhere (§4.1, Theorem 1, and Figure 1). In practice they train the generator to maximize $\log D(G(z))$ instead, because the original term gives weak gradients early in training (§3). The authors list the method's disadvantages too: the model gives no explicit formula for the generator's distribution, and the two networks must be kept in step during training, since a generator trained too far ahead of its discriminator can collapse many different noise inputs onto the same output (§6).
Diffusion models. Ho, Jain and Abbeel (2020) developed a third approach, building on diffusion probabilistic models introduced by Sohl-Dickstein et al. (2015). A fixed forward process gradually destroys an image by adding small amounts of Gaussian noise over $T$ steps, until nothing but noise remains; in their experiments $T = 1{,}000$ and the noise variance at each step rises linearly from $10^{-4}$ to 0.02 (§4). A neural network learns the reverse process, removing a little noise at each step. With their parameterization the network is trained to predict the noise that was added to a noisy image, and they found that a simplified, unweighted version of the variational bound, the mean squared error between the true and predicted noise, gave the best samples (§3.2 and §3.4). To generate, start from pure noise and apply the learned denoising step 1,000 times. On the CIFAR-10 images they reported an Inception score of 9.46 and a state-of-the-art FID of 3.17 (abstract), measures discussed below. Adding a text input that the denoising network conditions on, so that the removal of noise is steered toward a written description, turns such a model into a text-to-image generator.
Autoregressive models of text
Text is generated differently. The chain rule of probability factors the probability of any sequence of tokens $x_1, \ldots, x_n$ exactly:
$$p(x_1, \ldots, x_n) = \prod_{t=1}^{n} p(x_t \mid x_1, \ldots, x_{t-1}).$$
An autoregressive language model learns the conditional distribution on the right, the probability of each possible next token given everything before it. Training is maximum likelihood: maximize the log-probability the model assigns to each actual next token in a large body of text, which is the same as minimizing the cross-entropy loss of Loss Functions for Classification with the vocabulary as the set of classes. Generation applies the factorization forward: sample a token from $p(x_1)$, then one from $p(x_2 \mid x_1)$, and so on, appending each to the input. The language article describes the transformer decoder that computes these conditionals.
The library's Language Models from Scratch builds such a model in five steps, from a bigram model whose conditionals depend only on the previous character to the full Shakespeare GPT with 10,788,929 parameters, and its introduction shows the same prompt producing two different poems from a chat model because each token is sampled. How the sampling is done, greedily or with a temperature, changes the output a great deal, and the prompt engineering article works through it.
Scaling
Language models improved for several years mostly by being made larger and trained on more data, and the improvement turned out to be strikingly regular. Kaplan et al. (2020) trained transformer language models from 768 to 1.5 billion non-embedding parameters on up to 23 billion tokens of web text, and found that the test loss followed power laws in model size, dataset size and training compute, "with some trends spanning more than seven orders of magnitude", while details such as the width and depth of the network mattered little within a wide range (abstract, §3). When performance is limited only by the number of non-embedding parameters $N$, the loss in nats per token is about
$$L(N) = \left(\frac{N_c}{N}\right)^{\alpha_N}, \qquad \alpha_N \approx 0.076, \quad N_c \approx 8.8 \times 10^{13}$$
(Kaplan et al., 2020, eq. 1.1). The exponent is what matters. Doubling the model multiplies the loss by $2^{-0.076} = 0.949$, a 5% reduction, as the paper notes; a tenfold increase multiplies it by $10^{-0.076} = 0.839$. Taken literally, the formula gives losses of 4.02 nats at a million parameters, 2.38 at a billion and 1.99 at ten billion. Each further 16% reduction costs ten times the parameters, and the paper cautions that the constants depend on the vocabulary and tokenization and "do not have a fundamental meaning" (§1.2).
Kaplan et al. concluded that for a fixed compute budget it is best to train very large models on relatively modest amounts of data (abstract). Hoffmann et al. (2022) revisited the question with over 400 models from 70 million to over 16 billion parameters and reached a different answer: model size and training tokens should be scaled equally, "for every doubling of model size the number of training tokens should also be doubled" (abstract). They tested the prediction by training Chinchilla, a 70-billion-parameter model, on 1.4 trillion tokens, with the same compute as a larger predecessor, and found it outperformed that model while being cheaper to use (§1).
Two cautions apply. A smooth fall in average loss does not mean every capability improves smoothly: the library's note on Predictability and Surprise in Large Generative Models summarizes the argument that predictable loss and unpredictable specific capabilities go together. And the data matter as well as their quantity: the notes on Learning from Repeated Data and A small number of samples can poison LLMs of any size describe how a small repeated or poisoned fraction of the training text can have outsized effects.
Scale also changed how models are used. Brown et al. (2020) trained GPT-3, with 175 billion parameters, and found that it could perform many tasks from a description and a few examples written into its input, with no further training, and that this ability grew more rapidly with model size than performance without examples did (Figure 1.3). That finding is the starting point of the prompt engineering article.
From a pretrained model to an assistant
A model trained only to predict the next token continues text; it does not necessarily follow instructions or decline harmful requests. Ouyang et al. (2022) fine-tuned GPT-3 first on demonstrations of desired responses written by labelers, then with reinforcement learning from human feedback (RLHF): labelers rank several outputs for the same prompt, a reward model is trained to predict their rankings, and the language model is optimized against the reward model. Labelers preferred the outputs of their 1.3-billion-parameter model to those of the 175-billion-parameter GPT-3 (Figure 1), a reminder that how a model is trained can matter as much as its size. The step has side effects of its own: Discovering Language Model Behaviors with Model-Written Evaluations reports that RLHF did not remove the sycophancy already present in pretrained models and that it made a 52-billion-parameter model state stronger political views and more desire for goals such as self-preservation, and Sycophancy to Subterfuge finds that a model trained on increasingly gameable rewards occasionally went on, untrained, to rewrite a mock version of its own reward function. The library's Anthropic Research collection follows one developer's versions of this step in its thread on Constitutional AI and written principles, from RLHF with crowdworker preferences to feedback generated from written principles and a long published constitution.
Some systems are also multimodal: one model accepts, and in some cases produces, several kinds of data, such as text and images, so that it can caption a photograph or answer a question about a chart. The note on Mapping the Mind of a Large Language Model reports internal features in one such model that respond to the same concept whether it appears in text or in an image.
Evaluating generated output
A classifier can be scored against labels; a generator has no single right answer. Three approaches are common, and each misses something.
- Likelihood. A model with a computable probability can be scored by the log-likelihood it gives held-out data, as the digit model was above and as language models are by their test loss. Likelihood measures how well the model covers the data, not how good its samples look, and Holtzman et al. (2020) found that for text the most probable continuations are often repetitive and bland, so the highest-likelihood output is not the best output.
- Sample statistics. For images, the Inception score and the Fréchet Inception distance (FID) compare features of generated and real images computed by a pretrained image classifier; Ho et al. (2020) report both. They are cheap and repeatable but depend on the classifier and say little about whether an image matches its prompt.
- Human judgment. People rate or compare outputs, as in Ouyang et al. (2022). It is the most direct measure and the most expensive, and it rewards what raters notice, which is not always what is correct.
Two further checks apply to any generative model. Whether it reproduces its training data: Carlini et al. (2021) extracted hundreds of verbatim passages from a language model, including personal information (Risks and Ethics in AI). And whether its output is factually right, which no statistic of the output distribution measures.
Worked problems
These problems were written for this article. The first proves the result the section on adversarial networks states, the second varies the digit model, and the third sets the two scaling laws against each other. The script tools/experiments/data-science/generative-ai.py computes every number in them and asserts it.
Problem 1 (why the adversarial game is won by copying the data distribution). Goodfellow et al. (2014, §4.1) state that, with unlimited capacity, the discriminator's best response is $D^*(x) = p_{\text{data}}(x)/\big(p_{\text{data}}(x) + p_g(x)\big)$ and that the game's value is smallest exactly when $p_g = p_{\text{data}}$. Derive both, and check them on two distributions over three points, $p_{\text{data}} = (0.5, 0.3, 0.2)$ and $p_g = (0.2, 0.3, 0.5)$.
Solution. Write the generator's samples through their distribution $p_g$, so that the value for a fixed generator is
$$V(G, D) = \sum_x \Big[p_{\text{data}}(x)\log D(x) + p_g(x)\log\big(1 - D(x)\big)\Big]$$
(an integral for continuous data). The discriminator chooses each $D(x)$ separately, so it maximizes each bracket on its own. For $a, b > 0$ the function $f(y) = a\log y + b\log(1 - y)$ on $(0, 1)$ has derivative $a/y - b/(1 - y)$, which is zero only at $y = a/(a + b)$, and second derivative $-a/y^2 - b/(1 - y)^2 < 0$, so that point is the maximum. If $b = 0$ (a point the generator never produces) the bracket $a\log y$ only grows as $y \to 1$, and if $a = 0$ it grows as $y \to 0$. Allowing $D(x)$ to be 1 or 0 at such points, with the convention $0 \log 0 = 0$, the value $a/(a + b)$ attains the supremum there too. This gives $D^*$ at every point, the paper's Proposition 1. Substituting it,
$$C(G) = \sum_x p_{\text{data}}(x)\log\frac{p_{\text{data}}(x)}{p_{\text{data}}(x) + p_g(x)} + \sum_x p_g(x)\log\frac{p_g(x)}{p_{\text{data}}(x) + p_g(x)}.$$
Write $m = (p_{\text{data}} + p_g)/2$. Each denominator is $2m(x)$, so each sum is a Kullback–Leibler divergence less $\log 2$:
$$C(G) = -\log 4 + D_{\mathrm{KL}}(p_{\text{data}} \,\|\, m) + D_{\mathrm{KL}}(p_g \,\|\, m) = -\log 4 + 2\,\mathrm{JSD}(p_{\text{data}}, p_g),$$
where JSD is the Jensen–Shannon divergence. A Kullback–Leibler divergence is nonnegative and zero only when its two arguments are equal, by Gibbs' inequality (Cross-Entropy and Kullback–Leibler Divergence). So $C(G) \ge -\log 4$, with equality exactly when $p_{\text{data}} = m = p_g$, and then $D^* = 1/2$ everywhere: the paper's Theorem 1. For the three-point example, $D^* = (0.7143, 0.5, 0.2857)$: the discriminator leans toward "real" where the data are more common than the samples. The value is $-1.2535$, the Jensen–Shannon divergence is 0.0664, and $-\log 4 + 2 \times 0.0664 = -1.2535$, against the minimum $-1.3863$. A grid search over each $D(x)$ finds the same maximizer. The proof works in the space of all distributions; a real generator moves only through its network's parameters, and the paper's §4.2 says as much about its convergence result.
Problem 2 (how many principal components the digit model should keep). The generative classifier above models each digit in 20 principal components. Repeat the 30 splits with 5, 10, 30 and 40 components and explain the pattern.
Solution. The same splits give:
| Components | Variance kept | Accuracy, median (IQR) | Parameters per class |
|---|---|---|---|
| 5 | 0.545 | 0.895 (0.021) | 20 |
| 10 | 0.738 | 0.964 (0.006) | 65 |
| 20 | 0.894 | 0.981 (0.006) | 230 |
| 30 | 0.959 | 0.978 (0.006) | 495 |
| 40 | 0.988 | 0.970 (0.006) | 860 |
A normal distribution in $K$ coordinates has $K$ means and $K(K + 1)/2$ variances and covariances, and each class has about 90 training images in a half split. With 5 components the model discards nearly half of the pixel variance, including differences that separate digits, so it errs from too little information. With 40 it keeps almost everything, but estimates 860 numbers per class from about 90 images, and the likely reason for the fall is that the noise in the estimated covariances costs more than the extra variance gains. A check supports it: with each class's covariance at 40 components shrunk toward a multiple of the identity by the Ledoit–Wolf estimator, the median accuracy over the same splits is 0.986 (IQR 0.004) instead of 0.970, higher than the unshrunk model reaches at any number of components in the table. That is the bias-variance tradeoff in the number of components. Linear Discriminant Analysis treats the classifier itself, quadratic discriminant analysis, and its remedy of a shared or shrunk covariance. One caution about the table: 20 components is the best of the five, but it was chosen while looking at these test halves, so 0.981 slightly flatters a model whose $K$ would be chosen from the data. Choosing $K$ by cross-validation within each training half, as Model Selection describes, would give an honest figure.
Problem 3 (Gopher against Chinchilla under both scaling laws). Gopher has 280 billion parameters trained on 300 billion tokens, Chinchilla 70 billion on 1.4 trillion (Hoffmann et al., 2022, Table 1). Check that they used similar compute, and compare the losses that Kaplan et al.'s and Hoffmann et al.'s fitted laws predict for them.
Solution. Training a transformer costs about $6ND$ floating-point operations for $N$ parameters and $D$ tokens, about two per parameter per token in the forward pass and twice that in the backward pass (Kaplan et al., 2020, §2.1). That gives $5.04 \times 10^{23}$ for Gopher and $5.88 \times 10^{23}$ for Chinchilla. Hoffmann et al. give Gopher's training compute as $5.76 \times 10^{23}$ (Figure 2) and, in Appendix F, compare it with the $6.3 \times 10^{23}$ of Gopher's own report, which counts implementation costs such as recomputing activations (Rae et al., 2021, Table A26 and Appendix F); their per-sequence count differs from $6ND$ by at most 10% on the models of their Table A4 (Appendix F). The four figures lie within 25% of one another, so "the same compute" holds to within the precision of the estimates. Chinchilla has 20 tokens per parameter, Gopher about 1.1.
Kaplan et al.'s law for a model of $N$ parameters trained on $D$ tokens is
$$L(N, D) = \left[\left(\frac{N_c}{N}\right)^{\alpha_N/\alpha_D} + \frac{D_c}{D}\right]^{\alpha_D}, \qquad \alpha_N = 0.076, \quad \alpha_D = 0.103, \quad N_c = 6.4 \times 10^{13}, \quad D_c = 1.8 \times 10^{13}$$
(eq. 1.5, with the values of its joint fit in Table 2, §4.2, which differ slightly from the one-variable fits of eqs. 1.1 and 1.2). For Gopher the bracket is $55.0 + 60.0$ and the loss 1.630; for Chinchilla $153.1 + 12.9$ and 1.693. Quartering the parameters nearly triples the first term, since $4^{0.738} = 2.78$, which outweighs the fall in the second. Kaplan's law prefers Gopher. Hoffmann et al.'s fitted law is
$$L(N, D) = 1.69 + \frac{406.4}{N^{0.34}} + \frac{410.7}{D^{0.28}}$$
(Appendix D.2, eq. 10). For Gopher it gives $1.69 + 0.0521 + 0.2511 = 1.993$; for Chinchilla $1.69 + 0.0835 + 0.1632 = 1.937$. Gopher's loss is dominated by its data term. Moving the same compute into data lowers that term by 0.088 at a cost of 0.031 in the parameter term, so Hoffmann's law prefers Chinchilla, as their experiment found. The absolute numbers of the two laws are not comparable, since they were fitted to different data, tokenizers and parameter counts (Kaplan's $N$ excludes embeddings); only the ranking within each law means anything. Hoffmann et al. (2022, §2) trace much of the disagreement to Kaplan et al.'s use of one learning-rate schedule for all runs, so that losses read partway through a long schedule overstate what a run with a schedule matched to its length achieves. The exercise shows how much a compute-allocation rule depends on the fitted exponents: the same two models change order.
Open questions
- Do the digit samples memorize at a smaller training size? The samples above lie as far from the training digits as the digits lie from each other. Refitting the Gaussian model on 50, 100 and 200 images per class, and comparing each sample's nearest-training-image distance with the real digits' nearest-neighbor distances, would show at what size a full-covariance model starts to reproduce its training images.
- Does a fitted scaling law extrapolate? Training the character-level model of Scaling the Shakespeare GPT at five widths with seeded reruns, fitting $L(N) = (N_c/N)^{\alpha}$ to the four smallest and predicting the largest, would test on a small scale whether a power law fitted below a size predicts above it.
- How far does a likelihood rank samples by quality? The digit model gives every image a log-density. Ranking real digits by it and checking whether the least probable ones are the hardest for the classifier to label, by the classifier's error on each decile, would show whether likelihood and sample quality agree on this model.
- What does a small diffusion model add over the Gaussian? Training a small denoising model on the same 1,797 digits, on CPU, and comparing its samples with the Gaussian's by a classifier's confidence and by nearest-neighbor distance, would measure what learning a curved distribution buys at this scale.
Where it leads
The Statistics collection proves the ideas beneath this article: Maximum Likelihood Estimation for fitting, Gaussian Mixture Models for the class-by-class normal model as a density, Variational Inference for the evidence lower bound of the variational autoencoder, and Cross-Entropy and Kullback–Leibler Divergence and Perplexity and Source Coding for why a language model's loss is a code length. Language Models from Scratch trains an autoregressive model end to end. Deep generative models of images (autoencoders, adversarial networks, flows and diffusion) and reinforcement learning from feedback have no articles of their own yet; they are natural subjects for later collections on deep learning and reinforcement learning. Prompt Engineering covers how a trained model is steered at the moment of use.
In Python
The generative digit model takes a dozen lines with scikit-learn and NumPy:
import numpy as np
from sklearn.datasets import load_digits
from sklearn.decomposition import PCA
X, y = load_digits(return_X_y=True)
pca = PCA(n_components=20, random_state=0).fit(X)
Z = pca.transform(X)
rng = np.random.default_rng(0)
def sample(digit, n):
Zc = Z[y == digit]
z = rng.multivariate_normal(Zc.mean(0), np.cov(Zc, rowvar=False), size=n)
return np.clip(pca.inverse_transform(z), 0, 16).reshape(n, 8, 8)
sevens = sample(7, 8) # eight new 7s
Classification with the same model applies Bayes' theorem to the class densities, which scipy.stats.multivariate_normal(...).logpdf computes. Deep generative models are built with PyTorch or similar libraries; the Hugging Face diffusers library provides pretrained diffusion models and transformers provides pretrained language models. The comparison with logistic regression, the densities, the nearest-neighbor distances and the scaling arithmetic in this article are computed by tools/experiments/data-science/generative-ai.py in the site's repository.
References
- Alpaydin, E., and Kaynak, C. (1998). Optical Recognition of Handwritten Digits [Data set]. UCI Machine Learning Repository. https://doi.org/10.24432/C50P49 record · 3 pages
- Brown, T. B., Mann, B., Ryder, N., et al. (2020). Language models are few-shot learners. In Advances in Neural Information Processing Systems 33. arXiv:2005.14165. record · 4 pages
- Carlini, N., Tramèr, F., Wallace, E., et al. (2021). Extracting training data from large language models. In 30th USENIX Security Symposium (pp. 2633–2650). Read in the arXiv version, arXiv:2012.07805. record · 2 pages
- Goodfellow, I. J., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., and Bengio, Y. (2014). Generative adversarial nets. In Advances in Neural Information Processing Systems 27. arXiv:1406.2661. record
- Ho, J., Jain, A., and Abbeel, P. (2020). Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems 33. arXiv:2006.11239. record
- Hoffmann, J., Borgeaud, S., Mensch, A., et al. (2022). Training compute-optimal large language models. In Advances in Neural Information Processing Systems 35. arXiv:2203.15556. record · 2 pages
- Holtzman, A., Buys, J., Du, L., Forbes, M., and Choi, Y. (2020). The curious case of neural text degeneration. In International Conference on Learning Representations. arXiv:1904.09751. record · 2 pages
- James, G., Witten, D., Hastie, T., and Tibshirani, R. (2021). An Introduction to Statistical Learning with Applications in R (2nd ed.). Springer. §4.4. record · 39 pages
- Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., and Amodei, D. (2020). Scaling laws for neural language models. arXiv:2001.08361. record · 3 pages
- Kingma, D. P., and Welling, M. (2014). Auto-encoding variational Bayes. In International Conference on Learning Representations. arXiv:1312.6114. record
- Ouyang, L., Wu, J., Jiang, X., et al. (2022). Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems 35. arXiv:2203.02155. record
- Rae, J. W., Borgeaud, S., Cai, T., et al. (2021). Scaling language models: Methods, analysis & insights from training Gopher. arXiv:2112.11446. record
- Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N., and Ganguli, S. (2015). Deep unsupervised learning using nonequilibrium thermodynamics. In Proceedings of the 32nd International Conference on Machine Learning, PMLR 37, 2256–2265. Cited by attribution (Ho et al., 2020); not read for this article. record
Reviewed: verified, 23 Nov 2026 · citations checked, 23 Nov 2026 · editorial review, 23 Nov 2026 · 7 revisions