Abstraction for Deep Reinforcement Learning

Murray Shanahan, Melanie Mitchell

Abstract

Deep Reinforcement Learning (DRL) has achieved remarkable success in closed-world environments but continues to struggle with out-of-distribution generalization. This paper argues that the missing ingredient is the capacity for human-like abstraction and analogy-making. By reviewing techniques across symbolic AI, associative memory, and representation learning, we propose a framework centered on composable, variable-bound templates. We highlight the current "transfer gap" using the Animal-AI testbed, where DRL agents fail tasks that children solve intuitively, and identify differentiable variable binding as a critical frontier for future research.

Introduction

Current Deep Reinforcement Learning (DRL) agents are incredibly capable within their training distributions, yet they suffer from low sample efficiency and a severe inability to transfer knowledge to novel situations. In short, they lack common sense. When humans encounter a new problem, we rely on abstraction and analogy-making. For example, a child wanting a toy stuck in a tree might use a stick to knock it down, drawing on a generalized concept of "using a tool to move an out-of-reach object."

In contrast, current DRL agents rely on backpropagation to memorize specific features of their environment. This means a superficial change in a task's appearance can completely break the agent's policy. To achieve zero-shot transfer, agents must be capable of seeing structural similarities between past experiences and present challenges.

A Framework for Abstraction

We propose a conceptual framework for abstraction based on templates—abstract representations of states or events with "slots" that can be bound to new objects (e.g., an "obtain-object" template). To build such an architecture, several existing AI methodologies must be synthesized:

  • Structure Mapping & Active Symbol Architectures: Classical symbolic AI approaches map systematic conceptual structures (graphs of objects and relations) from one situation to another. The challenge lies in making these discrete representations end-to-end differentiable.
  • Associative Memory: Modern Hopfield Networks (Dense Associative Memory) are mathematically equivalent to the self-attention mechanisms in Transformers. These could serve as a differentiable, associative "world model" that performs pattern completion to predict future states.
  • Latent Spaces: Variational Autoencoders (VAEs) and self-supervised contrastive learning can force neural networks to learn compressed, disentangled representations where independent factors like shape, size, and color are separated.
  • Language as a Catalyst: Using auxiliary linguistic tasks during training can "turbocharge" an agent's ability to learn discrete, abstract structures. Language naturally decomposes the world into compositional objects and relations, providing a pre-packaged blueprint for abstraction.

The Transfer Gap: Animal-AI Case Study

To demonstrate the scale of the problem, we reference the Animal-AI testbed, a 3D physics-based arena designed to test foundational common sense and tool use.

The Animal-AI environment requires agents to use tools, such as pushing a box to reach a reward, a task that current DRL agents struggle to solve zero-shot.

In a comparative study (Voudouris et al., 2022), a reward (a green sphere) is placed on a tall pillar, out of reach. The agent must push a tall box into the pillar to knock the reward down. While 42% of children aged 6-10 solved this task zero-shot by mapping past real-world experiences to the virtual puzzle, 0% of the AI agents submitted to the 2019 Animal-AI competition were successful. This highlights a fundamental lack of "foundational common sense"—concepts like object, path, obstacle, and container that are indifferent to superficial details.

Conclusion and Future Work

While the reviewed techniques provide components for a more robust DRL agent, a complete blueprint remains elusive. The most critical missing piece is differentiable variable binding. For a template to work, a neural network must be able to dynamically bind novel, unseen objects to the slots of its abstract concepts (e.g., binding a "tall box" to a "tool" slot). Integrating discrete variable binding and hierarchical compositionality into end-to-end differentiable DRL remains the primary open challenge for achieving human-level generalization.

Summary updated

BibTeX
@inproceedings{shanahan2022abstraction,
  author = {Murray Shanahan and Melanie Mitchell},
  title = {{Abstraction for Deep Reinforcement Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/780},
}
Figure