Learning Algorithmic Solutions to Symbolic Planning Tasks with a Neural Computer

Daniel Tanneberg, Elmar Rueckert, Jan PetersarXiv 2019

Introduction

While deep learning has achieved remarkable success in specialized pattern-matching tasks, it often struggles with "algorithmic reasoning"—the capacity to learn a general procedure that remains robust regardless of problem size or data representation. Standard neural networks are typically "end-to-end," meaning the logic of the solution is inextricably tangled with the data format. Consequently, increasing problem complexity or changing input representations often causes these models to fail.

To address this, researchers have proposed a modular "Neural Computer" architecture designed to satisfy three core requirements for algorithmic solutions:

  1. Generalization (R1): The ability to scale to unseen task configurations and significantly higher complexities.
  2. Data Independence (R2): The strategy must function even if the underlying data representation (e.g., binary vs. hexadecimal) changes.
  3. Domain Independence (R3): The learned strategy should transfer across different task domains, such as from a puzzle game to robotic manipulation.

The Modular Neural Computer Architecture

The proposed architecture is inspired by the von Neumann and Harvard computer architectures, enforcing a strict separation between logic and data handling. This decoupling allows the system to learn abstract strategies rather than just memorizing patterns.

The Modular Neural Computer Architecture: Separation of algorithmic control (Controller, Memory, Transform) from data-dependent modules (Input, ALU, Output).

Algorithmic vs. Data-Dependent Modules

  • Algorithmic Modules (The "Brain"): This core consists of a Controller, Computational Memory, and a logic transformer. These modules manage the control flow and are optimized using Natural Evolution Strategies (NES). Unlike standard Transformers that use "soft" differentiable attention, this model employs hard attention to select exact memory addresses, which the authors argue is essential for discrete logic and scaling.
  • Data-Dependent Modules (The "Hands"): These include the Input unit, Arithmetic Logic Unit (ALU), and Output unit. These are trained via supervised learning to handle specific data formats, allowing the "Brain" to remain data-agnostic.

To ensure the precision required for algorithmic tasks, the researchers implemented a "bad memories" strategy. This form of experience replay forces the model to focus on and correct previous failures, preventing the compounding errors that typically derail sequential logic.

Experimental Setup and Datasets

The architecture was evaluated on three symbolic planning domains requiring search and backtracking:

  1. Sokoban: A warehouse puzzle where an agent must push boxes to specific goals.
  2. Sliding Block Puzzle: The classic "15-puzzle" task of rearranging tiles.
  3. Robotic Manipulation: A simulation where a robotic arm moves objects into a target configuration.

Training utilized Curriculum Learning, starting with simple 5-step tasks and gradually increasing to Level 21 (approximately 85-89 steps).

Results: Extreme Scaling and Zero-Shot Transfer

The model demonstrated unprecedented generalization capabilities. A model trained on sequences requiring a maximum of 15 steps successfully solved complex planning problems requiring 330,631 computational steps—a generalization of four orders of magnitude.

Scaling from Training to Algorithmic Solution: (a) The limited complexity encountered during training versus (b) the massive search trees solved by the learned algorithmic strategy.

Furthermore, the model achieved Zero-Shot Transfer. Once the "Brain" learned a search algorithm in the Sokoban domain, it could be applied to the Sliding Block Puzzle and Robotic Manipulation tasks without retraining the algorithmic modules. Only the data-specific "Hands" needed adjustment, fulfilling the requirements for data and domain independence (R2 and R3). The architecture significantly outperformed baselines like the Differential Neural Computer (DNC) and stack-augmented networks, which failed to progress past the early stages of the curriculum.

Conclusion and Future Work

By decoupling logic from mechanics and utilizing hard attention with evolution strategies, this research provides a blueprint for neural networks that can learn truly algorithmic solutions. While the current structure requires manual modularization and focuses on symbolic inputs, it paves the way for systems that can run for an arbitrary number of timesteps, effectively acting as universal computers. Future work will explore how these architectures handle high-dimensional, noisy inputs like raw video or natural language.

Summary updated

BibTeX
@misc{tanneberg2019learning,
  author = {Daniel Tanneberg and Elmar Rueckert and Jan Peters},
  title = {{Learning Algorithmic Solutions to Symbolic Planning Tasks with a Neural Computer}},
  year = {2019},
  eprint = {1911.00926},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.00926},
}
Figure