Learning by Doing: Controlling a Dynamical System using Causality, Control, and Reinforcement Learning

Sebastian Weichwald, Søren Wengel Mogensen, Tabitha Edith Lee, Dominik Baumann, Oliver Kroemer, Isabelle Guyon, Sebastian Trimpe, Jonas Peters, Niklas Pfister

The "Learning by Doing" competition, held at NeurIPS 2021, represents a fascinating attempt to bridge three fields that often work in silos despite sharing a common goal: understanding how to perturb a system to achieve a desired outcome. By pitting Causality, Control Theory, and Reinforcement Learning (RL) against the same dynamical tasks, researchers revealed which paradigms hold up best when the underlying "rules of the game" are hidden.

The core finding of the competition was striking: model-based approaches, which first attempt to infer the underlying data-generating equations, significantly outperformed model-free methods across complex dynamical tasks using only offline data.

The Challenge: Offline Learning for Control

While Causality, Control Theory, and RL all deal with "intervening" in a system, they approach the problem from different angles:

  • Control Theory usually tries to identify a system's parameters to design a precise controller.
  • Reinforcement Learning often attempts to map states directly to actions to maximize a reward, sometimes ignoring the underlying physics.
  • Causality focuses on identifying which variables actually cause changes in others to predict the effects of interventions.

The authors argue that these fields are complementary but rarely benchmarked against one another on the same problems. Specifically, they address the challenge of offline learning for control: how do you learn to interact with a system when you only have a fixed dataset of past observations and cannot "practice" or explore in real-time?

The Competition Tracks

To test these different control paradigms, the competition featured two distinct tracks, each with its own newly introduced synthetic benchmark dataset containing hidden confounding structures.

Track CHEM: Open-loop Control

Participants were given data from 12 different chemical reaction networks governed by mass-action kinetics. Each system included 15 species and 8 possible control inputs, with training data consisting of 20 runs per system.

Causal graph representing a complex chemical reaction network

The goal was to choose a single initial "impulse" (concentration of reactants) to ensure a target chemical reached a specific concentration by the end of the reaction. This track heavily tested causal identification—understanding how an initial shock propagates through a complex network of variables.

Track ROBO: Closed-loop Control

In the second track, participants had to control the end-effector (tip) of various robotic arms (including 2-joint and 3-joint rotational and prismatic models) to follow a target trajectory. The dataset included 24 different robotic arm configurations with varying dynamics based on link mass, length, and friction.

Robotic arm configurations and target trajectories

Unlike the chemical track, this required continuous, real-time adjustments. A key difficulty was that participants could only set "abstract" control variables rather than the actual torques of the joints, forcing them to learn the interface between their commands and the robot's physical response.

Key Insights and Results

  • The "Model-Based" Advantage: The most significant takeaway was the dominance of model-based methods. Even when the exact physics were unknown, teams that tried to fit a structural model (like an Ordinary Differential Equation or a causal graph) to the data before optimizing their control strategy performed much better than those who tried to learn a direct mapping from state to action.
  • Structure as Regularization: The authors speculate that imposing a model structure—even if the parameters are initially wrong—acts as a powerful form of regularization. It prevents the learner from overfitting to the specific noise present in the offline dataset.
  • Robustness: Model-based winners were significantly more robust to environmental changes (e.g., switching from a 2-link robot to a 3-link robot) compared to model-free RL agents.
  • Cross-Pollination: The competition successfully demonstrated that "interventions" in causality are mathematically equivalent to "actions" in RL and "control inputs" in engineering. This unified view helps researchers from different backgrounds collaborate on system identification.

Limitations and Future Work

While the competition provided valuable baselines (with open-sourced code for the winning solutions), the authors acknowledge several areas for future growth:

  • Partial Observability: In these tracks, participants could see almost all the variables in the system. Real-world systems often have "latent" (hidden) variables. Future competitions will likely introduce partially observed systems to make causal inference much harder.
  • Non-linear Interfaces: In the ROBO track, the mapping between abstract commands and physical torques was linear. Real-world hardware often has non-linear, "messy" interfaces.
  • Active Learning: This competition was strictly offline. A natural next step is "active" learning, where the agent must decide which experiments to run, balancing the cost of experimentation against the value of the information gained.

Summary updated

BibTeX
@inproceedings{weichwald2021learning,
  author = {Sebastian Weichwald and Søren Wengel Mogensen and Tabitha Edith Lee and Dominik Baumann and Oliver Kroemer and Isabelle Guyon and Sebastian Trimpe and Jonas Peters and Niklas Pfister},
  title = {{Learning by Doing: Controlling a Dynamical System using Causality, Control, and Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=mcMwnM1d0D},
}
Figure