Neural Network Quine
Not on the map. Why?
Abstract (arXiv)
Self-replication is a key aspect of biological life that has been largely overlooked in Artificial Intelligence systems. Here we describe how to build and train self-replicating neural networks. The network replicates itself by learning to output its own weights. The network is designed using a loss function that can be optimized with either gradient-based or non-gradient-based methods. We also describe a method we call regeneration to train the network without explicit optimization, by injecting the network with predictions of its own parameters. The best solution for a self-replicating network was found by alternating between regeneration and optimization steps. Finally, we describe a design for a self-replicating neural network that can solve an auxiliary task such as MNIST image classification. We observe that there is a trade-off between the network's ability to classify images and its ability to replicate, but training is biased towards increasing its specialization at image classification at the expense of replication. This is analogous to the trade-off between reproduction and other tasks observed in nature. We suggest that a self-replication mechanism for artificial intelligence is useful because it introduces the possibility of continual improvement through natural selection.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). First posted on arXiv 15 Mar 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 0; 2024: 1; 2025: 0; 2026: 1.
5 papers.
- 2024Heuristically Adaptive Diffusion-Model Evolutionary Strategycited by 6
- 2022Learning the Space of Deep Modelscited by 3
- 2026Self-Reference in Large Language Models: The Introspection Threshold for Recursive Self-Improvementcited by 2
- 2021Self-Replicating Neural Programscited by 0
- 2022Constructing Organism Networks from Collaborative Self-Replicatorscited by 0
- 2026Self-Reference in Large Language Models: The Introspection Threshold for Recursive Self-Improvement5 Jul 2026
- 2024Heuristically Adaptive Diffusion-Model Evolutionary Strategy20 Nov 2024
- 2022Constructing Organism Networks from Collaborative Self-Replicators20 Dec 2022
- 2022Learning the Space of Deep Models10 Jun 2022
- 2021Self-Replicating Neural Programs27 Sep 2021