Introduction
In the natural world, animals are rarely born as a tabula rasa. A spider instinctively knows how to spin a web from birth, and a newborn colt can walk within hours. This innate intelligence is encoded in their genes—the result of billions of years of evolution. In contrast, most modern Artificial Intelligence (AI) systems, including advanced Reinforcement Learning (RL) agents, typically start from scratch with random weight initializations. This makes the learning process extremely time-consuming and inefficient.
This paper introduces "learngenes," specific fragments of neural networks that mimic biological genes by allowing agents to inherit ancestral knowledge. By using a novel Genetic Reinforcement Learning (GRL) framework, the authors demonstrate that agents can be born with "instincts," significantly accelerating learning and adaptation in complex environments compared to traditional approaches.
The Genetic Reinforcement Learning (GRL) Framework
The authors propose a computational framework that operates in a generational loop, simulating the evolutionary process to refine these learngenes over time.
The Generational Loop
- Reinforcement Learning: A population of agents (using the PPO algorithm) learns to navigate environments during their "lifetime."
- Tournaments: Agents are evaluated based on their fitness (average rewards). Winners are selected to pass on their genetic material.
- Learngene Extraction: The "genes" are defined as specific fragments of the agent's neural network. Experimentation revealed that the last two layers of the actor network served as the most effective learngenes.
- Gene Pool & Gene Tree: Superior learngenes are stored in a "Gene Pool," while a "Gene Tree" tracks their kinship and evolution across generations.
- Inheritance: New generations are initialized by inheriting these learngenes, while the remaining parts of their networks are initialized randomly to maintain flexibility.
Notably, this framework follows Lamarckian inheritance, where knowledge acquired by an agent during its lifetime is encoded into the weights and passed directly to its descendants, rather than relying solely on random mutations.
Experimental Setup and Results
The experiments were conducted using the MuJoCo simulator, featuring an "ant robot" with a torso and four legs. Agents were trained across variable terrains such as Step, Hill, Bumpy, and Rubble, and then evaluated on entirely new terrains (Channel, Incline, Dune, and Square) to test generalization.
Key Insights
- The Genomic Bottleneck: Just as biological genomes have limited capacity, compressing ancestral knowledge into a few layers prevents the agent from becoming too rigid. This forces the evolution of fundamental, transferable knowledge rather than task-specific overfitting.
- Instincts at Birth: Newborn agents with learngenes exhibit purposeful behavior before any training. They move toward the finish line with control costs only 7% of those of randomly initialized agents.
- Superiority over Pre-training: Unlike standard pre-trained models that transfer all parameters, learngenes only transfer the "essence" of the task. This allows them to outperform full-model transfers on novel tasks where the latter often suffer from "negative transfer."
Performance Metrics
- Faster Convergence: Agents inheriting learngenes reached high reward levels at least 100 episodes faster than those learning from scratch.
- Higher Performance Ceilings: In the "Dune" environment, agents with learngenes performed better at birth than "scratch" agents did after their entire training cycle.
- Evolutionary Progress: By the 90th generation, newborn agents were outperforming 50th-generation agents that had already completed half their lifetime of learning.
Conclusion and Future Work
Learngenes provide a promising path toward more efficient AI by mimicking the evolutionary shortcuts found in nature. While currently focused on locomotion for specific robot morphologies, future research may explore scaling learngenes to more complex architectures like Large Language Models (LLMs) or multi-modal transformers. The authors also suggest investigating how this framework might facilitate "open-world" learning where tasks are not predefined, moving AI closer to the robust, innate intelligence seen in the biological world.
Summary updated