Inducing Functions through Reinforcement Learning without Task Specification

Junmo Cho, Donghwan Lee, Young-Gyu Yoon

TL;DR

This paper proposes a novel bio-inspired framework for training neural networks using reinforcement learning (RL) to induce complex cognitive functions like image classification and hidden variable estimation, without explicitly specifying these tasks. By placing an agent in a survival-oriented environment where these functions are beneficial for decision-making, the authors demonstrate that the network naturally learns them, mimicking how animals might develop capabilities through evolution.

What Problem Does This Paper Address?

Traditional machine learning and deep learning approaches often require explicit task specification and pre-training for specific functions. For instance, to train a network for image classification, you need labeled image datasets and a classification loss function. Similarly, for tasks requiring an understanding of underlying states, explicit mechanisms for state estimation are usually built-in. This contrasts with biological intelligence, where complex cognitive abilities like object recognition and prediction seem to emerge as a byproduct of survival and fitness maximization, rather than being directly trained for. The paper aims to bridge this gap by exploring whether RL, in a carefully designed environment, can lead to the unsupervised induction of such high-level functions within a neural network, mirroring this evolutionary process.

Methods

The core of the paper's methodology lies in a custom-designed partially observable Markov decision process (POMDP) environment that simulates an animal's survival task. The agent receives visual inputs (images representing objects like "none," "predator," "prey," or "rotten food") and has access to two hidden variables: "hunger" and "sickness." The agent's goal is to maximize its lifespan by choosing actions like "stay," "eat," or "run."

The proposed agent architecture (M1) consists of:

  1. Convolutional Neural Network (CNN): Encodes the visual input (image) into a 4-dimensional feature vector.
  2. Recurrent Neural Network (RNN): Takes the previous hidden state, the previous CNN output, and the previous action to predict the current hidden state (hunger and sickness). This is crucial because the true hidden variables are not directly observable.
  3. Multilayer Perceptron (MLP): Combines the CNN output and the RNN's predicted hidden state to estimate Q-values for each action, guiding the agent's decision-making.

The training uses a sequential update method for the recurrent network, which is particularly important for handling the temporal dependencies of the hidden variables. This method involves splitting episodes into smaller sub-episodes for mini-batch updates.

Two baseline models were used for comparison:

  • Baseline B1: Similar to M1 but directly receives the true hidden variables, bypassing the need for the RNN to predict them. This serves as an upper bound for M1's performance.
  • Baseline B2: Only uses the CNN output, completely ignoring the hidden variables. This serves as a lower bound.

Datasets

The paper uses the MNIST dataset to generate images for the "none," "predator," "prey," and "rotten food" classes. Random digits from MNIST were assigned to each class to ensure the network learned contextual meanings rather than just visual similarity to specific digits. The environment itself, a custom-designed survival task simulator, acts as the benchmark.

Key Insights and Ideas

  • Emergent Functionality: The most significant insight is that complex cognitive functions like image classification and hidden variable estimation can emerge naturally through reinforcement learning in an environment where these functions are instrumentally useful for survival, without explicit task specification.
  • Bio-inspiration as a Design Principle: The work strongly suggests that mimicking evolutionary pressures and biological intelligence's adaptive nature can be a powerful paradigm for developing AI with sophisticated capabilities.
  • Decoupling of Vision and Action: The experiments demonstrate that the agent learns to classify images (CNN) and predict hidden states (RNN) independently of the final action selection, even though these learned functions directly influence the action choices. This is highlighted by the fact that the image class and optimal action are not directly linked in the environment.
  • Importance of Temporal Dependencies: The success of the RNN in predicting hidden variables underscores the necessity of handling sequential data and temporal dependencies for tasks involving unobservable states.

Key Results

  • High-Level Function Induction: The trained agent (M1) achieved high accuracy in image classification (average test accuracy of 93.57% for CNN-M1) and strong correlation with true hidden variables (Pearson correlation coefficients of 0.9772 for hunger and 0.9450 for sickness).
  • Performance Close to Optimal: The agent M1's performance (average return) approached that of baseline B1 (which had direct access to true hidden variables), significantly outperforming baseline B2 (which ignored hidden variables). This indicates the RNN's learned prediction of hidden variables was highly effective.
  • Robustness to Digit Assignment: The image classification accuracy of CNN-M1 remained consistent across different permutations of digit assignments to object classes, suggesting it learned to classify based on general image features rather than specific digit patterns.
  • Effective Sequential Update: The sequential update method for the RNN proved more effective than random updates or other methods for learning with recurrent units in this context.

Limitations and Future Work

  • Environment Complexity: The authors acknowledge that the current environment, while custom-designed, is still a simplification of the real world. Developing agents that can learn in more complex, dynamic, and interactive environments is a crucial next step.
  • Direct Real-World Interaction: To truly mimic biological intelligence, enabling agents to interact directly with the real world, rather than simulated environments, is suggested as a future direction.
  • Assessing Network Architecture Suitability: Without pre-defined tasks, it's challenging to assess a priori whether a given network architecture is suitable for inducing specific functions. The authors suggest that fields like connectomics, which study biological brain architectures, might offer insights for designing AI architectures.
  • Unwanted Function Development: The absence of task specification means that unexpected or unwanted functions might be induced. This necessitates caution when deploying such agents in safety-critical applications.

Summary updated

BibTeX
@misc{cho2021inducing,
  author = {Junmo Cho and Donghwan Lee and Young-Gyu Yoon},
  title = {{Inducing Functions through Reinforcement Learning without Task Specification}},
  year = {2021},
  eprint = {2111.11647},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.11647},
}
Figure