TL;DR
This paper demonstrates that high-level cognitive functions, such as image classification and hidden variable estimation, can emerge naturally in a neural network trained via reinforcement learning without any explicit task specification or supervised labels. By placing an agent in a custom "survival" environment where its only goal is to maximize its lifespan, the network spontaneously develops internal representations to categorize visual inputs and track unobserved internal states. This bio-inspired approach suggests a new paradigm for developing artificial intelligence by mimicking the evolutionary pressures that shaped biological intelligence.
What Problem Does This Paper Address?
In traditional deep learning, networks are trained to perform specific tasks using explicit loss functions—such as cross-entropy for image classification or mean squared error for regression. However, biological systems acquire complex cognitive abilities, like object recognition or object permanence, without explicit pixel-level labels or distinct task specifications. Instead, these functions emerged as a byproduct of evolutionary pressure to maximize overall fitness and survival.
The authors address a fundamental question: Can we induce high-level cognitive functions in artificial agents purely through reinforcement learning (RL) by designing an environment where these functions naturally facilitate optimal decision-making?
Methods
The authors designed a custom survival environment modeled as a partially observable Markov decision process (POMDP).
In this environment, the agent encounters four classes of objects (none, predator, prey, or rotten food) represented as images. Crucially, the environment contains two hidden variables that the agent cannot directly observe: hunger and sickness. The agent can choose between three actions at each time step: stay, run, or eat. Every action carries an opportunity cost (e.g., running avoids predators but increases sickness; eating rotten food satisfies hunger but increases sickness). The agent receives a constant reward of $+1$ for every step it survives, aligning its sole objective with maximizing its lifespan.
To navigate this, the authors proposed the M1 agent architecture, which consists of three interconnected components:
- Convolutional Neural Network (CNN): Processes the visual input image into a 4-dimensional feature vector.
- Recurrent Neural Network (RNN): Tracks historical information (previous actions, previous visual features, and initial hidden states) to estimate the current unobserved hidden variables (hunger and sickness).
- Multilayer Perceptron (MLP): Acts as the decision-making network, taking the outputs of both the CNN and RNN to calculate Q-values for action selection.
The network is trained end-to-end using a sequential update variant of Deep Recurrent Q-Learning (DRQN). The performance of M1 is compared against two baselines: B1 (which has direct access to the true hidden variables) and B2 (which only receives visual inputs and has no capacity to track hidden variables).
Datasets
The framework utilizes the standard MNIST dataset of handwritten digits. To simulate object classes without giving away explicit labels, the authors mapped pairs of digits to specific environmental objects (e.g., in one permutation, digits 6 and 7 represent a predator, while 2 and 3 represent prey). A total of 8,000 images were used for training the RL agent, and 32,000 unseen images were reserved to test the generalization of the induced classification capability.
Key Insights and Ideas
- Contextual Clustering over Visual Similarity: Even though the network was never given a classification loss, the CNN naturally learned to group visually distinct digits (like 6 and 7) into the same latent space because they shared the same functional meaning ("predator") in the survival task.
- Implicit Tracking of Unobserved States: The RNN learned to output values that were linearly proportional to the true hidden variables (hunger and sickness), despite never receiving ground-truth feedback or a regression loss for state estimation.
- Function Induction via Environmental Pressure: High-level capabilities do not necessarily require isolated, task-specific architectures or loss functions; they can be naturally induced simultaneously if the environment provides the right evolutionary-style pressure.
Key Results
- Survival Performance: The M1 agent successfully learned the survival task, achieving an average return (lifespan) close to 40, approaching the performance of the upper-bound baseline B1 (which had perfect information) and vastly outperforming baseline B2 (which scored under 20).
- Emergent Image Classification: When a linear Support Vector Machine (SVM) was trained on the frozen feature vectors extracted from the M1 agent's CNN, it achieved an average test accuracy of 93.57% across different digit permutations, proving that the visual representations were linearly separable by object class.
- Accurate Hidden Variable Estimation: The internal outputs of the RNN tracked the true trajectories of hunger and sickness remarkably well. The average Pearson correlation coefficients between the ground truth hidden variables and the RNN outputs were 0.9772 for hunger and 0.9450 for sickness.
Limitations and Future Work
While promising, the authors note several limitations:
- Environment Complexity: The custom survival environment is highly simplified. Replicating truly biological-like intelligence will require scaling up to environments as complex as the real world, or finding ways to let agents interact directly with physical reality.
- Architecture Suitability: Without knowing what functions an agent might need to develop beforehand, designing the optimal network architecture remains difficult. The authors point to the field of connectomics (the study of biological brain wiring) as a potential source of inspiration for flexible architectures.
- Safety and Alignment: Because functions are induced without explicit task specifications, agents might develop unexpected or unwanted internal behaviors, raising potential safety and privacy concerns for real-world deployment.
Summary updated