Simple Algorithmic Principles of Discovery, Subjective Beauty, Selective Attention, Curiosity & Creativity

Jürgen Schmidhuber

Abstract

This paper proposes a formal, algorithmic theory of intrinsic motivation, positing that subjective beauty is simply data compressibility, and "interestingness" is the first derivative of that beauty. By rewarding an artificial agent for actions that improve its ability to compress its sensory history, we can mathematically formalize and generate behaviors that resemble curiosity, selective attention, and creativity.

Introduction: The Problem of Sparse Rewards

In traditional Reinforcement Learning (RL), agents are driven by external rewards ($r_{ext}$), such as points in a game. However, in the real world, external rewards are often sparse. Humans and animals spend vast amounts of time engaging in unsupervised exploration, play, and art appreciation without any explicit external payout. This paper tackles the challenge of mathematically defining this intrinsic motivation, building an agent that wants to explore and learn how the world works.

Methodology: Compression as Motivation

The author frames unsupervised learning and exploration as a data compression problem. The agent's goal is to find short algorithms (programs) that can accurately reconstruct its history of sensory inputs.

The Curiosity Reward Function

The core methodological novelty is the formal separation of the agent's reward into external reward ($r_{ext}$) and intrinsic/curiosity reward ($r_{int}$). The intrinsic reward is generated based on the following principles:

  • Compressor Performance: At any time, the agent has a "compressor" (e.g., a predictive neural network) trying to encode its sensory history. The shorter the compressed data, the better.
  • The Curiosity Reward: The agent is not rewarded just for experiencing compressible data (which could lead to it staring at a blank wall). Instead, it is rewarded for the improvement in its compressor. $r_{int}$ is calculated as the difference in compression performance between the agent's old compressor and its newly updated compressor on the same data history.
  • Asynchronous RL Framework: The paper outlines an architecture where a compressor continuously learns to predict/compress the environment in the background while an RL controller selects actions to maximize expected future intrinsic reward.

Beauty, Interestingness, and Boredom

Under this framework, a pattern is subjectively beautiful if it can be described by a short algorithm relative to the observer's current knowledge. Interestingness is the progress made in discovering that beauty.

A face constructed through simple geometric rules, illustrating beauty as compressibility.

As shown in Figure 1, a complex-looking drawing of a face is beautiful if the observer subconsciously realizes it is governed by a few simple geometric rules. A beautiful thing becomes "boring" once it is fully understood (compression progress drops to zero). Conversely, white noise is boring because it is fundamentally incompressible. "Interesting" data lies in the middle: it is data that initially seems complex but yields rapid improvements in compression as the agent learns.

Art and Science as Curiosity By-products

Art and science are viewed as natural by-products of this curiosity drive. Scientists conduct experiments to find simple laws that compress vast amounts of observational data. Artists create patterns that provide their audience with the intrinsic reward of discovering new, learnable regularities.

A butterfly and vase generated from intersecting circles, demonstrating algorithmic creativity.

Figure 3 demonstrates how intricate forms, such as a butterfly or a vase, can emerge from basic algorithmic principles like intersecting circles. The subjective pleasure derived from analyzing these images correlates with the brain's discovery of these underlying rules, mirroring the proposed $r_{int}$ reward function.

Theoretical Implications and Limitations

While the paper successfully defines a mathematically rigorous objective function for curiosity that avoids rewarding agents for seeking pure randomness or pure predictability, several limitations remain:

  • Incomputability: The truly optimal action selector for this framework (based on Solomonoff induction) is mathematically incomputable.
  • Computational Overhead: Computable alternatives, like Gödel machines, can suffer from massive constant slowdowns in practice.
  • Credit Assignment Delays: The asynchronous framework can cause long temporal delays between the controller's actions and the resulting curiosity reward, placing a heavy burden on the RL algorithm.

Future work involves implementing these principles using practical, albeit sub-optimal, RL algorithms and neural network predictors to foster genuinely creative behaviors in real-world agents.

Summary updated

BibTeX
@inproceedings{schmidhuber2007simple,
  author = {Jürgen Schmidhuber},
  title = {{Simple Algorithmic Principles of Discovery, Subjective Beauty, Selective Attention, Curiosity \& Creativity}},
  booktitle = {Discovery Science},
  year = {2007},
  doi = {10.1007/978-3-540-75488-6\_3},
}
Figure