Model collapse
Model collapse[note 1] is a phenomenon where machine learning models gradually degrade due to errors coming from uncurated training on the outputs of another model, including prior versions of itself.[8][9][10][11] Such outputs are known as synthetic data.
Shumailov et al.[8] coined the term and described two specific stages to the degradation: early model collapse and late model collapse. In early model collapse, the model begins losing information about the tails of the distribution – mostly affecting minority data. Later work highlighted that early model collapse is hard to notice, since overall performance may appear to improve, while the model loses performance on minority data.[12] In late model collapse, the model loses a significant proportion of its performance, confusing concepts and losing most of its variance.
Mechanism
[edit]Using synthetic data as training data can lead to issues with the quality and reliability of the trained model.[13][14] Model collapse occurs for three main reasons – functional approximation errors, sampling errors, and learning errors.[8] Importantly, it happens in even the simplest of models, where not all of the error sources are present. In more complex models the errors often compound, leading to faster collapse.
Disagreement over real-world impact
[edit]Some researchers and commentators on model collapse warn that the phenomenon could fundamentally threaten future generative AI development: As AI-generated data is shared on the Internet, it will inevitably end up in future training datasets, which are often crawled from the Internet. If training on "slop" (large quantities of unlabeled synthetic data) inevitably leads to model collapse, this could therefore pose a difficult problem.[15]
However, recently, other researchers have disagreed with this argument, showing that if synthetic data accumulates alongside human-generated data, model collapse is avoided.[16] The researchers argue that data accumulating over time is a more realistic description of reality than deleting all existing data every year, and that the real-world impact of model collapse may not be as catastrophic as feared.[17]
An alternative branch of the literature investigates the use of machine learning detectors and watermarking to identify model generated data and filter it out.[18][19]
Mathematical models of the phenomenon
[edit]1D Gaussian model
[edit]In 2024,[8] a first attempt has been made at illustrating collapse for the simplest possible model — a single dimensional normal distribution fit using unbiased estimators of mean and variance, computed on samples from the previous generation.
To make this more precise, we say that original data follows a normal distribution , and we possess samples for . Denoting a general sample as sample at generation , then the next generation model is estimated using the sample mean and variance:
Leading to a conditionally normal next generation model . In theory, this is enough to calculate the full distribution of . However, even after the first generation, the full distribution is no longer normal: It follows a variance-gamma distribution.
To continue the analysis, instead of writing the probability density function at each generation, it is possible to explicitly construct them in terms of independent random variables using Cochran's theorem. To be precise, and are independent, with and , following a Gamma distribution. Denoting with Gaussian random variables distributed according to and with random variables distributed with , it turns out to be possible to write samples at each generation as
and more generally
Note, that these are not joint distributions, as and depend directly on , but when considering on its own the formula above provides all the information about the full distribution.
To analyse the model collapse, we can first calculate variance and mean of samples at generation . This would tell us what kind of distributions we expect to arrive at after generations. It is possible to find its exact value in closed form, but the mean and variance of the square root of gamma distribution are expressed in terms of gamma functions, making the result quite clunky. Following,[8] it is possible to expand all results to second order in each of , assuming each sample size to be large. It is then possible to show that
And if all sample sizes are constant, this diverges linearly as :
This is the same scaling as for a single dimensional Gaussian random walk. However, divergence of the variance of does not directly provide any information about the corresponding estimates of and , particularly how different they are from the original and . It turns out to be possible to calculate the distance between the true distribution and the approximated distribution at step , using the Wasserstein-2 distance (which is also sometimes referred to as risk):
This directly shows why model collapse occurs in this simple model. Due to errors from re-sampling the approximated distribution, each generation ends up corresponding to a new step in a random walk of model parameters. For a constant sample size at each generation, the average distance from the starting point diverges, and in order for the end distribution approximation to be accurate, or for the distance to be finite, the sampling rate needs to increase superlinearly, i.e. one needs to collect increasingly more samples over time, perhaps quadratically. However, even in that case the expected distance after steps remains non-zero and the only case in which it does in fact end up being zero is when sampling is infinite at each step. Overall, this only shows us how far on average one ends up from the original distribution, but the process can only "terminate", if the estimated variance at a certain generation becomes small enough, effectively turning the distribution into a delta function. This is shown to occur for a general gaussian model[13] in the subsection below. Empirical investigation has confirmed this theoretical analysis.[20]
N-D Gaussian model
[edit]Furthermore, in the case of multidimensional model with fully synthetic data, exact collapse can be shown.[13][8]
Linear regression
[edit]In the case of a linear regression model,[21][22] scaling laws and bounds on learning can be obtained.
Statistical language model
[edit]In the case of a linear softmax classifier for next token prediction,[23] exact bounds on learning with even a partially synthetic dataset can be obtained.
Impact on large language models
[edit]In the context of large language models, research found that training LLMs on predecessor-generated text — language models are trained on the synthetic data produced by previous models — causes a consistent decrease in the lexical, syntactic, and semantic diversity of the model outputs through successive iterations, notably remarkable for tasks demanding high levels of creativity.[24]
See also
[edit]Notes
[edit]References
[edit]- ^ "'Generative inbreeding' and its risk to human culture". 26 August 2023.
- ^ "AI could choke on its own exhaust as it fills the web". 28 August 2023.
- ^ "AI Cannibalism and the Law – Colorado Technology Law Journal".
- ^ "The Curious Case of AI Cannibalism & Possible Solutions". 26 July 2023.
- ^ "Model Autophagy Disorder – the Livescu Initiative on Neuro, Narrative and AI".
- ^ "Generative AI Goes 'MAD' when Trained on AI-Created Data over Five Times". 12 July 2023.
- ^ Alemohammad, Sina; Casco-Rodriguez, Josue; Luzi, Lorenzo; Ahmed Imtiaz Humayun; Babaei, Hossein; LeJeune, Daniel; Siahkoohi, Ali; Baraniuk, Richard G. (2023). "Self-Consuming Generative Models Go MAD". arXiv:2307.01850 [cs.LG].
- ^ a b c d e f Shumailov, Ilia; Shumaylov, Zakhar; Zhao, Yiren; Papernot, Nicolas; Anderson, Ross; Gal, Yarin (July 2024). "AI models collapse when trained on recursively generated data". Nature. 631 (8022): 755–759. Bibcode:2024Natur.631..755S. doi:10.1038/s41586-024-07566-y. ISSN 1476-4687. PMC 11269175. PMID 39048682.
- ^ Shumailov, Ilia; Shumaylov, Zakhar; Zhao, Yiren; Gal, Yarin; Papernot, Nicolas; Anderson, Ross (2023-05-31). "The Curse of Recursion: Training on Generated Data Makes Models Forget". arXiv:2305.17493 [cs.LG].
- ^ Ozsevim, Ilkhan (2023-06-20). "Research finds ChatGPT & Bard headed for 'Model Collapse'". Retrieved 2024-03-06.
- ^ Mok, Aaron. "A disturbing AI phenomenon could completely upend the internet as we know it". Business Insider. Retrieved 2024-03-06.
- ^ Wyllie, Sierra; Shumailov, Ilia; Papernot, Nicolas (2024-06-05). "Fairness Feedback Loops: Training on Synthetic Data Amplifies Bias". The 2024 ACM Conference on Fairness, Accountability, and Transparency. FAccT '24. New York, NY, USA: Association for Computing Machinery. pp. 2113–2147. arXiv:2403.07857. doi:10.1145/3630106.3659029. ISBN 979-8-4007-0450-5.
- ^ a b c Alemohammad, Sina; Casco-Rodriguez, Josue; Luzi, Lorenzo; Humayun, Ahmed Imtiaz; Babaei, Hossein; LeJeune, Daniel; Siahkoohi, Ali; Baraniuk, Richard G. (July 4, 2023). "Self-Consuming Generative Models Go MAD". arXiv:2307.01850 [cs.LG].
- ^ Self-Consuming Generative Models Go MAD. The Twelfth International Conference on Learning Representations.
- ^ "What is Model Collapse and how to avoid it". The Register. Retrieved 11 July 2024.
- ^ Gerstgrasser, Matthias; Schaeffer, Rylan; Dey, Apratim; Rafailov, Rafael; Sleight, Henry; Hughes, John; Korbak, Tomasz; Agrawal, Rajashree; Pai, Dhruv; Gromov, Andrey; Roberts, Daniel A.; Yang, Diyi; Donoho, David L.; Koyejo, Sanmi (2024-04-01). "Is Model Collapse Inevitable? Breaking the Curse of Recursion by Accumulating Real and Synthetic Data". arXiv:2404.01413 [cs.LG].
- ^ "Big brains divided over training AI with more AI: Is model collapse inevitable?". The Register. Retrieved 11 July 2024.
- ^ Kirchenbauer, John; Geiping, Jonas; Wen, Yuxin; Katz, Jonathan; Miers, Ian; Goldstein, Tom (2023-07-03). "A Watermark for Large Language Models". Proceedings of the 40th International Conference on Machine Learning. PMLR: 17061–17084.
- ^ "My AI Safety Lecture for UT Effective Altruism". Shtetl-Optimized. 2022-11-29. Retrieved 2024-06-22.
- ^ Borji, Ali (2024-10-16). "A Note on Shumailov et al. (2024): "AI Models Collapse When Trained on Recursively Generated Data"". arXiv:2410.12954 [cs.LG].
- ^ Dohmatob, Elvis; Feng, Yunzhen; Kempe, Julia (2024-02-12). "Model Collapse Demystified: The Case of Regression". arXiv:2402.07712 [cs.LG].
- ^ Dohmatob, Elvis; Feng, Yunzhen; Yang, Pu; Charton, Francois; Kempe, Julia (2024-02-10). "A Tale of Tails: Model Collapse as a Change of Scaling Laws". arXiv:2402.07043 [cs.LG].
- ^ Seddik, Mohamed El Amine; Chen, Suei-Wen; Hayou, Soufiane; Youssef, Pierre; Debbah, Merouane (2024-04-07). "How Bad is Training on Synthetic Data? A Statistical Analysis of Language Model Collapse". arXiv:2404.05090 [cs.LG].
- ^ Guo, Yanzhu; Shang, Guokan; Vazirgiannis, Michalis; Clavel, Chloé (2024-04-16). "The Curious Decline of Linguistic Diversity: Training Language Models on Synthetic Text". arXiv:2311.09807 [cs.CL].