The Artificial Experimentalist: Discovery and Control of Self-Organizing Phenomena with Autotelic Reinforcement Learning

Marko Cvjetko, Benedikt Hartl, Michael Levin, Clément Moulin-Frier, Pierre-Yves Oudeyer

### To cite this version: Marko Cvjetko, Benedikt Hartl, Michael Levin, Clément Moulin-Frier, Pierre-Yves Oudeyer. The Artificial Experimentalist: Discovery and Control of Self-Organizing Phenomena with Autotelic Reinforcement Learning. ALIFE 2026 - Conference on Artificial Life, Aug 2026, Toronto, Canada. ⟨hal-05698778⟩

HAL Id: hal-05698778
Submitted on 20 Jul 2026

HAL is a multi-disciplinary open access archive for the deposit and dissemination of scientific research documents, whether they are published or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

Distributed under a Creative Commons CC BY 4.0 - Attribution - International License

The Artificial Experimentalist: Discovery and Control of Self-Organizing Phenomena with Autotelic Reinforcement Learning

Marko Cvjetko, Benedikt Hartl, Michael Levin, Clément Moulin-Frier, Pierre-Yves Oudeyer

Inria Centre at the University of Bordeaux, Bordeaux, France
Allen Discovery Center at Tufts University, Medford, MA, USA
Wyss Institute for Biologically Inspired Engineering at Harvard University, Boston, MA, USA
Inria, INSA Lyon, CITI, UR3720, 69621 Villeurbanne, France
Corresponding Author: marko.cvjetko@inria.fr

Abstract

Existing methods for exploring cellular automata and other complex systems mostly operate in open loop: they set initial conditions, execute a full simulation, and observe the outcome, without intervening during execution. We introduce a closed-loop framework based on autotelic reinforcement learning, in which an agent autonomously samples diverse goals and learns a goal-conditioned policy to intervene in a complex system through minimal, local perturbations. We instantiate this framework on Lenia, a continuous cellular automaton known for life-like self-organizing patterns, in an agentic system we call CARL, and demonstrate three capabilities. First, CARL discovers stable solitons across a wide range of Lenia update rules at a higher rate than heuristic baselines. Second, it learns to steer the movement direction of existing solitons with few interventions, showing that CARL can control self-organizing patterns, not only create them. Third, humans can use the agents to guide solitons through maze environments in real time by specifying high-level directional commands that the agents translate into low-level interventions. Trained across diverse goals, update rules, and random initial states, the agents acquire policies that generalize zero-shot to various out-of-distribution conditions. These results suggest a path toward artificial experimentalist agents that, autonomously or with human guidance, discover and control emergent phenomena in complex systems.

Companion website and code available at:
https://developmentalsystems.org/carl/

Introduction

One of the central endeavors of science is understanding complex systems at all scales of organization, from elementary physics to astronomy, from molecular biology to ecology. Two general goals drive this research: (1) explaining and discovering the diverse phenomena that emerge in complex systems, and (2) learning to control complex systems toward desired states, ideally with minimal effort.

--- ©2026 [Marko Cvjetko, Benedikt Hartl, Michael Levin, Clément Moulin-Frier, Pierre-Yves Oudeyer]. Published under a Creative Commons Attribution 4.0 International (CC BY 4.0) license.

In biomedicine, for instance, the goal is not continuous intervention, but the restoration of healthy, self-sustaining dynamics. Rather than controlling individual components, we aim to guide systems back into stable regimes in which they can maintain their function autonomously. However, identifying such interventions is inherently challenging, as system behavior arises from interactions across many scales. This raises a fundamental question: how can we systematically control systems whose internal dynamics are complex or only partially understood (Levin, 2023, 2025)as discussed by Levin in twenty twenty-three and twenty twenty-five?

Computational approaches are essential for pursuing these goals, as they enable us to simulate complex systems in silico. Cellular automata (CAs) have long served as standard models for studying self-organization, and recent continuous extensions such as Lenia (Chan, 2020)introduced by Chan in twenty twenty produce increasingly complex and life-like patterns, making them ideal testbeds for discovering and controlling emergent phenomena. Because the space of behaviors a CA can produce is vast and difficult to anticipate, researchers have developed a range of methods to explore it (see Related Work). Most of these, however, operate in open loop: parameters and initial conditions are chosen upfront, with no interaction during rollout.

This stands in contrast to how humans typically engage with complex systems: continually observing and interacting with the system in real time to form an intuition of its causal dynamics (e.g., a gardener continuously pruning, watering, and reshaping a garden as it grows). As systems grow in complexity, however, effective intervention becomes increasingly difficult. Nonlinear interactions, feedback loops, and delayed effects make human intuition prone to systematic biases, and modern challenges — particularly in biomedical, ecological, or economic contexts — quickly reach the limit of human modeling capabilities (Tversky and Kahneman, 1974)as noted by Tversky and Kahneman in nineteen seventy-four.

To address these gaps, we propose an autotelic reinforcement learning (RL) framework as an interaction-driven approach to translate a diversity of desired experimental outcomes into actionable, causally effective interventions in complex systems. By autotelic, we mean an RL agent that autonomously self-generates and learns to achieve diverse

Diagram showing the CARL agent architecture and its interaction with Lenia states. It includes a goal generator, RL policy, and reward system affecting transitions from current to next state through interventions.Figure 1: CARL: an autotelic RL agent that learns to drive the evolution of Lenia toward desired dynamics. At the start of an episode, CARL generates a goal, e.g., a desired moving direction of a Lenia pattern. Then, at each step of the episode, CARL perceives the current Lenia state and outputs an action (adding or removing cell activations) conditioned on the goal, after which the Lenia update rule is applied.

goals — the operational counterpart of these outcomes — in the considered complex system (Colas et al., 2022). As a concrete instantiation, we introduce CARL (for Controlling Cellular Automata with Reinforcement Learning), which learns to intervene on CAs in a closed-loop fashion, continuously observing and shaping their dynamics over time (Fig. 1).

Through a series of experiments using Lenia as a testbed, we demonstrate that CARL can both discover interesting self-organizing phenomena and control their behavior, with limited interventions and in a sample-efficient manner. Moreover, CARL generalizes well to out-of-distribution scenarios, such as unseen world dynamics and action spaces. Lastly, we show that trained CARL agents can be deployed interactively, enabling humans to specify and adjust high-level goals in real time while the agents translate them into low-level interventions for controlling complex systems.

While the framework is demonstrated on Lenia, it is designed to be system-agnostic. Looking ahead, we hope to extend it to increasingly biologically grounded models.

AI for Scientific Discovery

AI is playing a growing role in scientific discovery. It has already driven breakthroughs in domains such as protein structure prediction and combinatorial optimization (Jumper et al., 2021; Fawzi et al., 2022), and recent work aims to go further by automating the scientific method end-to-end, from hypotheses to publication (Lu et al., 2026; Zenil et al., 2026). A key question in these efforts is how to design agents that can autonomously decide what to investigate and how. The autotelic AI paradigm (Colas et al., 2022), in which agents set their own goals and learn to achieve them, offers a natural framework for this — capturing the core loop of scientific inquiry: formulating questions and developing the skills to answer them. Population-based autotelic methods have been successfully applied in several scientific contexts, including the automated discovery of protocell behaviors (Grizou et al., 2020) and the exploration of gene regulatory networks (Etcheverry et al., 2025).

Cellular Automata (CAs)

CAs are dynamical systems consisting of grids of cells whose states are updated based on local neighborhoods. Despite their simplicity, CAs can produce remarkably complex phenomena, making them useful both as models of real-world processes (in ecology, urban development, physics) and as objects of study in their own right. In artificial life, foundational contributions include the work of Turing (1952)Turing, Von Neumann and Burks (1966)Von Neumann and Burks, Barricelli (1962, 1963)Barricelli, Langton (1986)Langton, and Wolfram (1983)Wolfram, who studied morphogenesis, self-replication, evolution, and complexity. CAs have recently seen a revival with prominent continuous models such as Lenia and Neural Cellular Automata (Chan, 2019, 2020; Mordvintsev et al., 2020), and extensions incorporating mass conservation that promote evolutionary phenomena (Plantec et al., 2025; Papadopoulos and Guichard, 2025). These more expressive CAs have garnered broad interest since they give rise to a plethora of self-organizing patterns that appear increasingly life-like, resembling artificial organisms and ecosystems (Hartl et al., 2025).

Automated Exploration of Cellular Automata

Over the years, many methods have been used to illuminate the range of possible CA behaviors, including random search, manual tuning, and hand-crafted heuristics. More recently, gradient-based methods have been used to optimize for specific phenomena (Mordvintsev et al., 2020; Miotti et al., 2025; Hamon et al., 2025), while diversity-driven algorithms — including novelty search, quality-diversity, and intrinsically motivated goal exploration processes (IMGEPs) — aim to discover a variety of distinct behaviors (Reinke et al., 2020; Etcheverry et al., 2020; Faldor and Cully, 2024; Khajehabdollahi et al., 2025; Michel et al., 2025). All of these methods, however, operate in open loop, with no ability to intervene during execution.

Some works have moved beyond this limitation. Rainwater (2024)Rainwater studies how external forces can impact the dynamics of Game of Life. Kumar et al. (2025)Kumar and colleagues optimize CA rules at specific checkpoints during evolution, though these are planned in advance rather than chosen reactively. Sánchez-Fibla et al. (2024)Sánchez-Fibla and colleagues train agents in a CA reproducing

forest-fire dynamics to manage resource acquisition with environmental extremes. Earle and Togelius (2024)Earle and Togelius train embodied agents in evolvable CA-based game environments.

Method

General Framework

We formalize a framework based on autotelic reinforcement learning (Colas et al., 2022)by Colas and colleagues for discovering and controlling phenomena in complex systems. In the first phase, an autotelic agent is trained to achieve a diversity of goals; in the second, the learned goal-conditioned policy serves as a high-level interface to produce self-organizing patterns and control them in real time. The framework is designed to be general, abstracting away the specifics of any particular system. Instantiating it requires defining three components: a complex system whose dynamics are to be studied, an intervention space through which a goal-conditioned RL policy can intervene in the system, and a task specification that defines the goals the policy must learn to achieve.

Complex system. We define a complex system as a tuple S, F, where S is a state space and F from S to S is an update rule that governs the system’s dynamics. At each discrete time step, the system evolves as s t plus one equals F of s t. We make no assumptions about F beyond the ability to simulate it; it may be deterministic or stochastic, continuous or discrete, and may operate over spatial grids, graphs, particle systems, or other structures.

Intervention space. An intervention is a modification to the system state. We define an intervention function alpha from the Cartesian product of S and A to S, where A is the set of available actions. Each action a in A produces a perturbation to the current state. The action space can optionally include a no-op action, leaving the system unmodified. Crucially, interventions are intended to be small relative to the system — the agent nudges the system rather than rewriting the whole state.

Task specification. A task is defined by a goal space G and a goal-conditioned reward function r mapping sequences of states and goals to real numbers, where S to the less than or equal to T denotes sequences of states of length less than or equal to T. At the start of each training episode, a goal g sampled from p of G is sampled from a predefined distribution. The reward r of the sequence from zero to t given g measures the degree to which the behavior of the system aligns with the goal. Importantly, goals are not limited to a single state: they can include properties of the trajectory, the system’s update rules, and constraints on intervention effort (e.g., adding action costs). By conditioning on goals sampled from this rich space, a policy must generalize across diverse objectives.

The loop. Given a complex system S, F, an intervention function alpha, and a task specification G, r, we can train a goal-conditioned policy pi from sequences of states and goals to actions through episodic reinforcement learning, to maximize cumulative reward for any goal g in G (see Algorithm 1).

Algorithm 1 The Autotelic Reinforcement Learning Loop

1: for do
2:     Sample goal and initial state
3:     for do
4:         Observe and over a time interval
5:         Select
6:         Apply intervention:
7:         Evolve system for steps:
8:         Receive reward
9:     end for
10:     (Optional) Roll out for to assess resulting phenomena
11: end for

During inference, the goal can change dynamically g to g t, which enables a human user to control the complex system in real time by issuing high-level commands that the trained policy translates into low-level interventions.

Instantiation: CARL

We instantiate CARL (Figure 1) on Lenia, a continuous generalization of Conway’s Game of Life (Chan, 2019)by Chan. Lenia’s simple update rules produce diverse self-organizing phenomena, making it an ideal testbed for our framework.

Lenia S, F. The state is a grid X t of dimensions H by W with values between zero and one with periodic boundary conditions. The update rule is:

X at time t plus d t equals the state at t plus d t times the growth function phi of the convolution of kernel K and X, clipped between zero and one

where K is a convolutional kernel, phi is an element-wise growth function, and d t is the step size.

The kernel is defined over a disk of radius rho, partitioned into b equals the length of beta concentric rings of equal width with peak values beta one through beta b. For a point at normalized distance r, the ring index is i and the local coordinate is r prime. The unnormalized kernel is:

and the final kernel is normalized: K equals K tilde divided by the sum of K tilde. The growth function maps the convolution output to via a Gaussian bump:

phi of u equals two times the exponential of negative u minus mu squared over two sigma squared, minus one

Key phenomena of interest in Lenia are solitons: localized patterns that persist and often move across the grid. We design our experiments with the intent of showing that

CARL can discover new solitons and control their behavior across a range of action costs, across a diversity of update rules, and from procedurally generated initial states. To detect solitons, we apply a simple soliton filter inspired by prior work (Hamon et al., 2025; Faldor and Cully, 2024)inspired by the work of Hamon and colleagues, and Faldor and Cully: after applying the Lenia update rule for 5,000 steps without intervention, we classify the resulting state as containing a soliton if its total mass is non-zero and is below 10% of the grid capacity. We omit additional checks used in prior work — such as a velocity threshold, mass variability, and robustness testing — since our goal is to evaluate CARL for its ability to create local, persistent patterns of any kind. We visually inspected many simulations that pass the filter and found no false positives (i.e., global, Turing-like patterns were never accepted)1.

Interventions over Lenia A, alpha. An action is a tuple a t equals x t, y t, delta t, where x t, y t are spatial coordinates and delta t in the set negative one, zero, plus one indicates whether to remove mass, take no action, or add mass. An action modifies all cell values within a radius R sub a around x t, y t by delta t times M sub a, with fixed hyperparameters R sub a and M sub a. Values are clipped to . In all experiments, we use and unless stated otherwise.

Policy Architecture and Training

We train policies using Double Deep Q-Networks (van Hasselt et al., 2016)by van Hasselt and colleagues. The network architecture is a U-Net (Ronneberger et al., 2015)by Ronneberger and colleagues, a fully convolutional network that produces dense Q-value maps over the grid for each action type (add, remove, no-op). This architecture mirrors the structure of CAs: it treats each cell locally while maintaining receptive fields large enough to perceive most or all of the grid. Similar architectures have been used in robotics (Zeng et al., 2018; Wu et al., 2020).

Observations consist of the last four Lenia grid states. Additional context — including the goal, action cost coefficient, current episode time step, and Lenia update rule parameters — is concatenated and provided through FiLM conditioning layers (Perez et al., 2018). Both trained agents (introduced below) have ~800K parameters.

We chose an off-policy algorithm for its sample efficiency. Full details of the hyperparameters and network architecture are provided in the code repository.

Experiments

We demonstrate CARL through three sets of experiments. First, we show that it can create stable solitons across a wide range of Lenia update rules and from procedurally generated initial states, and that trained agents generalize zero-shot to unseen goals, update rules and modified action spaces. Second, we train another agent to steer the movement direction of existing solitons, demonstrating that CARL can not only create self-organizing patterns, but also control them. Third, we show a proof of concept that humans can interact with complex systems through CARL agents by modifying their goals in real time, by having users navigate solitons through a maze using the movement direction agent.

We invite the reader to follow experimental results on the companion website, which contains many video examples.

Soliton Creation Task

Rather than searching for solitons directly — which would require defining what constitutes a soliton within the reward signal — we train CARL on a simpler proxy task: maintaining a target mass on the Lenia grid, for a given update rule and action cost. When actions are costly, the agent faces a choice between constantly intervening to hold the mass at the target, and finding a self-sustaining configuration that matches it. Action costs tip the balance toward the latter, making soliton creation an emergent byproduct of reward maximization rather than an explicit objective.

Goal space and reward. The goal space is defined as G equals T times C times Omega, where T is the set of target masses, C the set of action costs, and Omega the set of update rules. At the start of each episode, CARL samples a goal g equals tau, c, omega uniformly, with tau in zero to two hundred, c in zero to zero point two, and omega drawn from a set of training update rules. Sampling the action cost per episode rather than fixing it serves two purposes: it produces a single budget-adaptive policy that can operate across a spectrum of intervention regimes at deployment, and we speculate it also acts as an exploration mechanism during training — low-cost episodes allow the agent to freely discover viable configurations, while high-cost episodes pressure it to find self-sustaining ones. The reward at each step is:

The reward r is negative square root of the absolute difference between M t and tau over N, minus c times an indicator function that is one if delta t is non zero

where M t, the sum of all grid cell values X i j at time t is the total mass of the grid at time , is the total number of grid cells, and delta t in negative one, zero, or plus one is the action type selected by the agent. The first term penalizes deviation from the target mass, while the second penalizes non-trivial interventions, weighted by the sampled action cost . A single policy must therefore learn to act across diverse combinations of target masses, action costs, update rules, and initial conditions.

Experimental setup. Initial states are procedurally generated by randomly applying 20 actions to an empty grid without rolling out the CA in between, producing diverse unstructured configurations. Each episode step consists of an agent’s action followed by a single Lenia update step.

Four heatmaps showing Normalized Mass Tracking Error, Action Rate, Soliton Formation Rate, and Soliton Mass plotted against target mass tau and action cost c.Figure 2: Agent behavior and soliton creation metrics across different action costs c and mass targets tau, averaged over all training update rules. In every panel, the bottom-left quadrant represents the tau and c values seen during training. From left to right: averaged per-step mass error; action rate (fraction of steps where the agent intervenes); percentage of episodes resulting in solitons; and averaged mass of the generated solitons after the soliton-filter period.

(N steps equals one). Episodes last 150 steps on a grid. The model is trained on two million episode-step transitions. The training set of update rules consists of 85 hand-selected rules supporting diverse solitons discovered by Hudcová et al. (2025)Hud-cova and colleagues.

See our companion website for a detailed description of hyperparameters and included update rules. Unless stated otherwise, evaluation conditions are run for 16 episodes.

Mass tracking evaluation. We evaluate the agent on the Cartesian product of target masses tau in the set zero, twenty-five, fifty, up to four hundred, action costs c in the set zero, zero point zero five, zero point one, up to zero point four, and all 85 training update rules omega in the training set. For each triplet tau, c, omega, we run 16 episodes, yielding a three-dimensional evaluation grid. Both tau and c extend to twice their training range. Figure 2 shows projections onto the tau c plane, with metrics averaged over update rules.

The agent tracks the target mass reliably across most of the evaluation range (Figure 2, left). Performance degrades at boundary values of tau, particularly when action costs are high. This is expected: at both extremes, the system likely lacks stable self-sustaining configurations — mass dissipates at low tau and grows unboundedly at high tau — forcing the agent into costly continuous intervention. The action cost also shapes the behavior as intended: when c is greater than zero, the agent acts less frequently and relies more on the intrinsic dynamics of the system (Figure 2, center-left).

Soliton creation. We now turn to the central question: does the agent produce solitons? To test this, we take the final Lenia grid state from each evaluation episode above, roll it out for 5,000 Lenia steps without any agent intervention, and apply the soliton filter.

We observe that the agent produces solitons at a high rate, especially for target masses between tau equals one hundred and one hundred and fifty (Figure 2, center-right), and that the mass of created solitons correlates well with the target (Figure 2, right). For very low target masses, almost no episodes yield solitons, consistent with the observation above that such masses cannot persist without constant intervention. For high targets, the agent discovers an interesting strategy: creating several independent solitons whose combined mass matches the target. Action costs have little impact on the soliton formation rate, which decreases only slightly at very low values. However, we speculate that varying the action cost per episode was nonetheless crucial during training.

Comparison with baselines. We compare CARL against several heuristic baselines across all training update rules, with a fixed action cost of c equals zero point one and mass targets tau in the set fifty, one hundred, one hundred and fifty, two hundred. The baselines include: No-op (always selects no-op), Random (random action type and location), Mass-based (adds/removes mass toward target, placed randomly or at locations of existing mass), and Mass-based with deadzone (same, but only acts when mass deviates by more than 10% from target).

CARL outperforms all baselines in both the overall soliton creation rate and in the number of update rules for which at least one soliton is generated (Figure 3). The gap is particularly notable against the mass-based heuristics, which have access to the same mass information as CARL but lack spatial awareness: they cannot learn where to place mass to seed a viable pattern. The no-op baseline confirms that solitons rarely arise from random initial conditions alone, underscoring that the agent’s interventions are essential.

Generalization The results above show that CARL reliably creates solitons under training conditions. We now assess how robust this capability is by testing three axes of generalization: modified action parameters, rescaled update rule kernels, and entirely novel update rules.

Modified action parameters. We evaluate the agent when the action hyperparameters — R sub a and M sub a — are changed at test time. Importantly, the agent does not observe these hyperparameters. We fix tau equals one hundred and twenty-five and c equals zero point one, conditions that produce solitons reliably under training settings. The agent adapts well to combinations where R sub a times M sub a is approximately equal to the training values, i.e., when the integrated effect of each action matches that

A bar chart comparing CARL to various baseline methods such as Mass plus dz and Random, showing episode success rate and rule coverage.Figure 3: CARL compared to baseline methods for soliton creation, averaged across all training update rules with action cost c equals zero point one and mass targets tau in the set fifty, one hundred, one hundred fifty, and two hundred.

A heat map on the left showing soliton percentage for varying action radius and magnitude, and a line graph on the right showing soliton formation rate versus kernel radius for CARL and baselines.Figure 4: Soliton creation rate under modified parameters. Left: Varying action radius and magnitude; the red square marks training conditions. Right: Soliton creation rate for varying kernel radius rho contrasting CARL with baselines.

of the training conditions (Fig. 4, left), and degrades gracefully away from this curve. Performance drops to zero only for low-impact action hyperparameters, where individual actions are too weak to seed or sustain any mass on the grid.

Rescaled kernel radius. We evaluate whether the agent can create solitons when the update rule kernel radius rho is rescaled. This is a particularly challenging form of generalization: rescaling the kernel does not simply scale the emerging patterns, but can fundamentally alter their behavior due to discretization effects. The same update rule at different kernel radii can produce solitons with different shapes, sizes, movement patterns, and levels of robustness.

We deploy the agent across kernel radii rho in the set of even integers from four to twenty-six, all training update rules, target masses tau in the set fifty, one hundred, one hundred fifty, and two hundred, and action costs c equals zero point one. When rescaling rho, we proportionally adjust the action radius and grid size (linearly) and the target masses (quadratically), keeping the ratio between action scale, target mass, and pattern size roughly constant. This isolates the effect of rescaled dynamics on agent performance. All rescaled settings produce out-of-distribution values. Since the policy networks are fully convolutional, they can be deployed on different grid sizes without modification.

The agent adapts well to scaled Lenia worlds, particularly for up-scaled kernels (Fig. 4, right). Although performance drops compared to the training radius, the agent still creates solitons at a relatively high rate, even for kernels double or half the training size. Across all tested radii, the agent’s soliton creation rate remains well above the no-op baseline and comparable to or above the best heuristic baseline evaluated at the training radius. The success rate drops more sharply for down-scaled kernels, likely due to discretization effects.

Novel update rules. Finally, we deploy CARL on unseen convolutional kernels. We select seven convolutional kernels K not included in the training set, and sweep across growth function parameters mu from zero point two to zero point four and sigma from zero point zero two to zero point zero six with tau from fifty to two hundred fifty and c equals zero point one. We conduct these grid searches for kernel radii rho equals ten, fourteen, or eighteen, rescaling relevant hyperparameters as was done in the previous evaluation. Fig. 5 visualizes the resulting space and snapshots of some discovered solitons.

The results show that the trained agent can efficiently map novel update rule spaces, identifying which regions of mu sigma space support soliton formation. The agent discovers solitons across a range of unseen kernels, though the success rate varies considerably depending on the kernel — some kernels admit large regions of soliton-supporting parameters, while others are more restrictive. This suggests that a trained CARL agent can serve as a practical tool for rapid exploration of new Lenia update rules for downstream tasks.

Soliton Direction Task

To demonstrate that CARL can control self-organizing phenomena, not only create them, we train a new agent on a task where it must steer a soliton toward a target direction. Each episode lasts 200 steps and begins with a uniformly sampled target direction, an action cost (as before), and a soliton drawn from a set of 48 that the first experiment’s agent discovered in the kernel-scaling generalization test (rho equals eighteen); we use the larger radius because solitons at smaller radii tend to move chaotically. To initialize the state, the sampled soliton is placed on the grid under its corresponding update rule and randomly rotated. A soliton’s movement direction is measured by the center-of-mass displacement vector over the last four timesteps. The reward combines two terms: (1) the cosine similarity between current and target direction, and (2) a mass penalty, as in the previous task, with the target mass set to that of the initial state. We train the agent for ten to the sixth episode-step transitions.

We evaluate generalization along two axes: solitons and directions. The 48 solitons are split into 24 training and 24 holdout (stratified across mu sigma), and the unit circle of target directions is partitioned into four quadrants, of which only

A collection of heatmaps and grids showing soliton formation rates and masses, alongside various grayscale images of discovered soliton shapes.Figure 5: Soliton formation rate maps for novel update rules. Left: likelihood of soliton creation as a function of growth function parameters mu and sigma, for a fixed kernel beta and radius rho. Right: mean soliton mass under the same conditions. Bottom: examples of solitons discovered in novel update rules.

two opposite ones are used during training. This yields a two by two generalization grid with 128 episodes per cell.

Fig. 6 shows the mean cosine similarity between the soliton’s center-of-mass displacement and the target direction, averaged over all 200 episode steps across the four conditions: On training solitons and training directions, the agent achieves a mean cosine similarity of zero point nine one plus or minus zero point one four, indicating strong directional alignment. Performance degrades gracefully under generalization: to zero point eight one plus or minus zero point one four for unseen directions (training solitons), zero point nine one plus or minus zero point one zero for unseen solitons (training directions), and zero point seven six plus or minus zero point one five when both are held out. Notably, generalization to unseen solitons within training directions is nearly lossless, suggesting that the steering policy captures direction-dependent strategies that transfer across soliton morphologies. The larger drop for holdout directions indicates that the mapping from direction to intervention pattern is only partially learned.

A bar chart titled "Direction Steering: Generalisation" comparing cosine similarity for train and holdout conditions.Figure 6: Generalization of the direction-steering agent. Mean cosine similarity between the soliton’s movement and the target direction, evaluated on a two by two grid of {train, holdout} solitons cross {train, holdout} directions. Error bars show one STD across 128 episodes per cell.

Human-in-the-Loop

We demonstrate how trained CARL agents can serve as real-time interfaces for human control. We extend the direction environment with procedurally generated mazes, where walls are regions in which cell values are fixed to zero. A soliton is placed in the maze and the user can modify the agent’s goal (target direction) and action cost in real time, steering the soliton through the maze (Fig. 7).

The agent has no explicit representation of the maze — it perceives only the single-channel Lenia grid, identical to its training setting. Furthermore, the agent was never trained with changing goals, yet it successfully redirects solitons multiple times within a single episode while preserving their coherent shape. Reducing the action cost makes the agent intervene more frequently and advance faster.

A timelapse sequence showing a soliton navigating a maze with blue target arrows and orange movement arrows.Figure 7: A timelapse of a human guiding a soliton through a maze by modifying the goals of the soliton steering agent in real time. The blue and orange arrows represent target and current movement directions, respectively. Note that the soliton’s shape is preserved well throughout the episode.

Although the agent performs well, several failure modes emerge. Wall collisions can cause the soliton to disintegrate or explode, though some solitons are robust to contact. High action costs can also lead to failure, as interventions become too sparse to maintain the soliton’s shape after perturbations, and the agent generally cannot recover a disrupted pattern.

Discussion

We introduce a closed-loop framework for autonomous discovery and control of self-organizing phenomena, based on autotelic RL. Rather than setting initial conditions and passively observing outcomes, a goal-conditioned policy observes the evolving complex system and applies minimal, local perturbations toward diverse self-generated goals. We instantiate the framework on Lenia as a system named CARL, which discovers solitons across a wide range of update rules and procedurally generated initial states, generalizes to out-of-distribution conditions, and can efficiently map novel update rule spaces to identify regions that support solitons. Beyond discovery, CARL agents can also learn to control solitons by steering their movement direction. Finally, we demonstrate that CARL agents can serve as real-time interfaces, enabling human users to guide solitons through maze environments with simple directional commands.

A key design choice is the use of action costs that incentivize the agent to act sparsely, reflecting the principle that effective control of self-organizing systems should work alongside the system’s intrinsic dynamics, not against them. In the mass tracking task, action costs lead the agent to discover self-sustaining solitons as a side effect of reward maximization — the cheapest way to maintain a target mass is to find a configuration that maintains itself. In the steering task, they produce a similar effect: instead of continuously micromanaging the soliton’s trajectory, the agent learns to apply a brief perturbation that redirects it, then withdraws, allowing the soliton to continue along the new heading unassisted.

CARL generalizes well to out-of-distribution conditions across variations in goals, action spaces, and novel update rules. This suggests the policies capture transferable system dynamics rather than overfitting. As a result, trained policies can be reused and composed to solve tasks beyond their original training objective. We demonstrate this through a maze-navigation task, where a human user modifies the agent’s goal (desired movement direction), while the policy handles the low-level control to achieve it in real time. This compositional reuse points toward functional integration, where distinct capabilities can be combined to solve increasingly complex tasks. Such integration suggests a path toward hierarchical control, where higher-level agents or processes set subgoals for lower-level controllers. We see CARL as a step toward artificial experimentalist frameworks, where agents not only learn how to autonomously act on complex systems, but also how to structure and combine those actions — deciding what to investigate through self-generated goals and how to achieve it.

A key limitation is that instantiating the framework requires domain expertise: the reward function, action space, and observation design all encode knowledge about what makes a given system interesting. While the mass tracking objective sidestepped the need to define solitons explicitly, it still reflects a designer’s intuition about Lenia. Domain expertise is inherent to scientific inquiry, but when the goal is to uncover phenomena we cannot yet characterize or anticipate, more open-ended approaches, such as intrinsic reward signals, adaptive goal sampling policies, or automated environment and task design, could reduce this dependence and broaden the scope of discovery.

While Lenia offers favorable conditions for closed-loop control — full observability, determinism, simple action space — extending CARL beyond such idealized systems is challenging: especially in biomedical and bioengineering settings, dynamics are partially observed, stochastic, high-dimensional, and multiscale in nature. Most biomedical efforts focus on micromanaging tangible targets — single proteins, genes, or circuits — but many biological systems are best understood not as static objects but as persistent, self-maintaining patterns across bioelectric, mechanical, metabolic, transcriptional, anatomical, and cognitive spaces, patterns that persist, grow, move, and reshape their surroundings (Mathews et al., 2023; Levin, 2025; Fields and Levin, 2025)as discussed by Mathews and colleagues, and Levin and colleagues. Thus, a central problem in biomedicine is to identify which low-level interventions can produce desired system-level outcomes, such as regeneration, cancer reprogramming, or rejuvenation (Levin, 2021; Pio-Lopez et al., 2025)as explored in recent research. In this sense, approaches like CARL point toward a new class of tools for treating self-organizing systems as programmable substrates, where high-level goals specified by the experimenter are interpreted by a layer of agents that infer multiscale interventions (Davies and Levin, 2023)as proposed by Davies and Levin.

Acknowledgements

We thank Barbora Hudcová for insightful discussions and guidance in navigating the Lenia Explorer dataset. We thank members of the Flowers AI and CogSci Lab and the Levin Lab for helpful discussions. We gratefully acknowledge support for this work provided through a sponsored research agreement with Astonishing Labs and from the Templeton World Charity Foundation, Inc. (Grant ID: TWCF-2021-20606). The opinions expressed in this publication are those of the authors and do not necessarily reflect the views of the funding agencies. The authors used generative AI tools to assist with writing the manuscript, developing experiment code and the companion website. All outputs were reviewed by the authors, who take full responsibility for the content.

References

Barricelli, N. A. (1962). Numerical testing of evolution theories: part i theoretical introduction and basic tests. *Acta Biotheoretica*, 16(1-2):69–98.

Barricelli, N. A. (1963). Numerical testing of evolution theories: part ii preliminary tests of performance. symbiogenesis and terrestrial life. Acta Biotheoretica, 16(3-4):99–126.

Chan, B. W.-C. (2019). Lenia: Biology of Artificial Life. Complex Systems, 28(3).

Chan, B. W.-C. (2020). Lenia and Expanded Universe. In ALIFE 2020: The 2020 Conference on Artificial Life, pages 221–229. MIT Press.

Colas, C., Karch, T., Sigaud, O., and Oudeyer, P.-Y. (2022). Autotelic Agents with Intrinsically Motivated Goal-Conditioned Reinforcement Learning: A Short Survey. J. Artif. Int. Res., 74.

Davies, J. A. and Levin, M. (2023). Synthetic morphology with agential materials. Nature Reviews Bioengineering, 1:46–59.

Earle, S. and Togelius, J. (2024). Autoverse: An evolvable game language for learning robust embodied agents.

Etcheverry, M., Moulin-Frier, C., and Oudeyer, P.-Y. (2020). Hierarchically Organized Latent Modules for Exploratory Search in Morphogenetic Systems. In Advances in Neural Information Processing Systems, volume 33, pages 4846–4859. Curran Associates, Inc.

Etcheverry, M., Moulin-Frier, C., Oudeyer, P.-Y., and Levin, M. (2025). AI-driven automated discovery tools reveal diverse behavioral competencies of biological networks. eLife, 13:RP92683.

Faldor, M. and Cully, A. (2024). Toward Artificial Open-Ended Evolution within Lenia using Quality-Diversity. In ALIFE 2024: Proceedings of the 2024 Artificial Life Conference. MIT Press.

Fawzi, A., Balog, M., Huang, A., Hubert, T., Romera-Paredes, B., Barekatain, M., Novikov, A., R. Ruiz, F. J., Schrittwieser, J., Swirszcz, G., Silver, D., Hassabis, D., and Kohli, P. (2022). Discovering faster matrix multiplication algorithms with reinforcement learning. Nature, 610(7930):47–53.

Fields, C. and Levin, M. (2025). Thoughts and thinkers: On the complementarity between objects and processes. Physics of Life Reviews, 52:256–273.

Grizou, J., Points, L. J., Sharma, A., and Cronin, L. (2020). A curious formulation robot enables the discovery of a novel protocell behavior. Science Advances, 6(5):eaay4237.

Hamon, G., Etcheverry, M., Chan, B. W.-C., Moulin-Frier, C., and Oudeyer, P.-Y. (2025). Discovering sensorimotor agency in cellular automata using diversity search. Science Advances, 11(44):eadp0834.

Hartl, B., Levin, M., and Pio-Lopez, L. (2025). Neural cellular automata: Applications to biology and beyond classical AI.

Hudcová, B., Dušek, F., Tuccio, M., and Hongler, C. (2025). Visualizing the Structure of Lenia Parameter Space. In ALIFE 2025: Ciphers of Life: Companion Proceedings of the Artificial Life Conference 2025. MIT Press.

Jumper, J., Evans, R., Pritzel, A., Green, T., Figurnov, M., Ronneberger, O., Tunyasuvunakool, K., Bates, R., Žídek, A., Potapenko, A., Bridgland, A., Meyer, C., Kohl, S. A. A., Ballard, A. J., Cowie, A., Romera-Paredes, B., Nikolov, S., Jain, R., Adler, J., Back, T., Petersen, S., Reiman, D., Clancy, E., Zielinski, M., Steinegger, M., Pacholska, M., Berghammer, T., Bodenstein, S., Silver, D., Vinyals, O., Senior, A. W., Kavukcuoglu, K., Kohli, P., and Hassabis, D. (2021). Highly accurate protein structure prediction with AlphaFold. Nature, 596(7873):583–589.

Khajehabdollahi, S., Hamon, G., Cvjetko, M., Oudeyer, P.-Y., Moulin-Frier, C., and Colas, C. (2025). Expedition & Expansion: Leveraging Semantic Representations for Goal-Directed Exploration in Continuous Cellular Automata. In ALIFE 2025: Ciphers of Life: Proceedings of the Artificial Life Conference 2025. MIT Press.

Kumar, A., Lu, C., Kirsch, L., Tang, Y., Stanley, K. O., Isola, P., and Ha, D. (2025). Automating the Search for Artificial Life With Foundation Models. Artificial Life, 31(3):368–396.

Langton, C. G. (1986). Studying artificial life with cellular automata. Physica D: nonlinear phenomena, 22(1-3):120–149.

Levin, M. (2021). Bioelectric signaling: Reprogrammable circuits underlying embryogenesis, regeneration, and cancer. Cell, 184(8):1971–1989.

Levin, M. (2023). Darwin’s agential materials: evolutionary implications of multiscale competency in developmental biology. Cellular and Molecular Life Sciences, 80(6).

Levin, M. (2025). The multiscale wisdom of the body: Collective intelligence as a tractable interface for next-generation biomedicine. BioEssays, 47(3):e202400196.

Lu, C., Lu, C., Lange, R. T., Yamada, Y., Hu, S., Foerster, J., Ha, D., and Clune, J. (2026). Towards end-to-end automation of AI research. Nature, 651(8107):914–919.

Mathews, J., Chang, A. J., Devlin, L., and Levin, M. (2023). Cellular signaling pathways as plastic, proto-cognitive systems: Implications for biomedicine. Patterns, 4(5):100737.

Michel, T., Cvjetko, M., Hamon, G., Oudeyer, P.-Y., and Moulin-Frier, C. (2025). Exploring Flow-Lenia Universes with a Curiosity-driven AI Scientist: Discovering Diverse Ecosystem Dynamics. In ALIFE 2025: Ciphers of Life: Proceedings of the Artificial Life Conference 2025. MIT Press.

Miotti, P., Niklasson, E., Randazzo, E., and Mordvintsev, A. (2025). Differentiable Logic Cellular Automata: From Game of Life to Pattern Generation. In ALIFE 2025: Ciphers of Life: Proceedings of the Artificial Life Conference 2025. MIT Press.

Mordvintsev, A., Randazzo, E., Niklasson, E., and Levin, M. (2020). Growing neural cellular automata. Distill, 5(2):e23.

Papadopoulos, V. and Guichard, E. (2025). MaCE: General Mass Conserving Dynamics for CAs. In ALIFE 2025: Ciphers of Life: Proceedings of the Artificial Life Conference 2025. MIT Press.

Perez, E., Strub, F., de Vries, H., Dumoulin, V., and Courville, A. (2018). FiLM: Visual reasoning with a general conditioning layer. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence and Thirtieth Innovative Applications of Artificial Intelligence Conference and Eighth AAAI Symposium on Educational Advances in Artificial Intelligence, AAAI’18/IAAI’18/EAAI’18, pages 3942–3951, New Orleans, Louisiana, USA. AAAI Press.

Pio-Lopez, L., Hartl, B., and Levin, M. (2025). Aging as a loss of goal-directedness: An evolutionary simulation and analysis unifying regeneration with anatomical rejuvenation. Advanced Science, 12(46).

Plantec, E., Hamon, G., Etcheverry, M., Chan, B. W.-C., Oudeyer, P.-Y., and Moulin-Frier, C. (2025). Flow-Lenia: Emergent Evolutionary Dynamics in Mass Conservative Continuous Cellular Automata. Artificial Life, 31(2):228–248.

Rainwater, J. H. (2024). Self-Organization and Phase Transitions in Driven Cellular Automata. Artificial Life, 30(3):302–322.

Reinke, C., Etcheverry, M., and Oudeyer, P.-Y. (2020). Intrinsically Motivated Discovery of Diverse Patterns in Self-Organizing Systems. In International Conference on Learning Representations (ICLR), Addis Ababa, Ethiopia.

Ronneberger, O., Fischer, P., and Brox, T. (2015). U-Net: Convolutional Networks for Biomedical Image Segmentation. In Navab, N., Hornegger, J., Wells, W. M., and Frangi, A. F., editors, Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015, pages 234–241, Cham. Springer International Publishing.

Sánchez-Fibla, M., Moulin-Frier, C., and Solé, R. (2024). Cooperative control of environmental extremes by artificial intelligent agents. Journal of The Royal Society Interface, 21(220):20240344.

Turing, A. M. (1952). The chemical basis of morphogenesis. Philosophical Transactions of the Royal Society of London. Series B, Biological Sciences, 237(641):37–72.

Tversky, A. and Kahneman, D. (1974). Judgment under uncertainty: Heuristics and biases. Science, 185(4157):1124–1131.

van Hasselt, H., Guez, A., and Silver, D. (2016). Deep reinforcement learning with double Q-Learning. In Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence, AAAI’16, pages 2094–2100, Phoenix, Arizona. AAAI Press.

Von Neumann, J. and Burks, A. W. (1966). Theory of self-reproducing automata.

Wolfram, S. (1983). Cellular automata. Los Alamos Science, pages 09–01.

Wu, J., Sun, X., Zeng, A., Song, S., Lee, J., Rusinkiewicz, S., and Funkhouser, T. (2020). Spatial Action Maps for Mobile Manipulation. In Robotics: Science and Systems XVI, volume 16.

Zeng, A., Song, S., Welker, S., Lee, J., Rodriguez, A., and Funkhouser, T. (2018). Learning Synergies Between Pushing and Grasping with Self-Supervised Deep Reinforcement Learning. In 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 4238–4245, Madrid, Spain. IEEE Press.

Zenil, H., Tegnér, J., Abrahão, F. S., Lavin, A., Kumar, V., Frey, J. G., Weller, A., Soldatova, L., Bundy, A. R., Jennings, N. R., Takahashi, K., Hunter, L., Dzeroski, S., Briggs, A., Gregory, F. D., Gomes, C. P., Rowe, J., Evans, J., Kitano, H., and King, R. (2026). The future of fundamental science led by generative closed-loop artificial intelligence. Frontiers in Artificial Intelligence, 9.

Footnotes

  1. Many examples of states that pass the soliton filter are available on the companion website