Evolution and learning in differentiable robots

Luke Strgar, David Matthews, Tyler Hummer, Sam Kriegman

Introduction

Designing an autonomous robot presents a fundamental "chicken and egg" challenge: the optimal control strategy (the brain) is inextricably linked to the physical structure (the body), yet the physical structure's utility is defined by how well it can be controlled. Historically, the co-optimization of morphology and control has been computationally prohibitive, often limited by the speed of non-differentiable simulators and the tendency for search algorithms to converge on simplistic, local optima.

Researchers at Northwestern University have addressed these bottlenecks by scaling the automated design of robots by several orders of magnitude. By leveraging a massively parallel differentiable simulator, they explored over 10 million unique designs, discovering that evolution does more than just optimize for speed—it naturally selects for "increasingly differentiable" robots with body plans that are fundamentally easier to train.

The Bilevel Optimization Framework

The study employs a hybrid approach that mimics the distinct timescales of biological adaptation through a bilevel optimization loop:

  1. The Outer Loop (Evolution): A genetic algorithm manages a population of 10,000 "progenitor" robots. This loop handles discrete morphological changes, such as adding, removing, or rearranging "cells" (masses and springs) within a triangular lattice.
  2. The Inner Loop (Learning): For every robot in the population, a neural network controller is optimized using gradient descent. The use of the Taichi differentiable simulator allows the system to calculate exact gradients, enabling the "brain" to be tweaked precisely to improve movement rather than relying on trial-and-error heuristics.

This system ran for 1,000 generations, evaluating a total of $10^7$ designs—roughly 15 times more than the largest previous studies in the field.

Scaling and Complexity

The scale of this research allowed for the emergence of sophisticated mechanical strategies that were previously unreachable. The robots featured up to 453 independent motors, a significant leap from previous records which typically stayed below 50 for closed-loop control.

When evolved on rugged terrains—including procedurally generated declines, inclines, and bumpy surfaces—the system naturally produced bipedal and multi-legged morphologies. Notably, some designs evolved "swinging limbs" that provided momentum without touching the ground, demonstrating that high-dimensional search spaces can yield complex, non-intuitive locomotive strategies when given sufficient computational scale.

The Selection for Learnability

The most significant insight from this work is that evolution selects for learnability. The researchers observed that over generations, the gap between a robot's initial performance (pre-training) and its post-training performance grew significantly.

While the "initial" fitness of new designs often remained flat, the "optimized" fitness rose steadily. This suggests that evolution is not merely finding robots that are fast by default; it is finding body plans that create "smoother" loss landscapes. These morphologies are inherently more compatible with gradient-based learning, making it easier for the inner loop to find an effective controller. This synergy between evolution and learning suggests that the physical form of a robot can be a prerequisite for the efficiency of its learning process.

Physical Validation (Sim2Real)

To ensure the evolved designs were not merely artifacts of the simulation environment, the researchers 3D-printed a physical robot using hexagonal masses and Nitinol (shape-memory alloy) springs. The physical realization successfully moved at a rate of 0.8 body lengths per 5 cycles, closely matching the simulated predictions.

To validate the functional necessity of the evolved coordination, the researchers manually replaced one of the physical robot's active motors with a passive spring. The resulting change in gait—which caused the robot to move backward—confirmed that the evolved coordination was a functional requirement for the specific morphology rather than a fluke of the hardware.

Conclusion and Future Work

This research demonstrates that the combination of differentiable simulation and large-scale evolutionary search can overcome the traditional barriers of robot co-design. By proving that evolution selects for differentiable body plans, the study opens new avenues for creating robots that are not only more capable but also more adaptable to learning.

Future work may address current limitations, such as the lack of transgenerational weight sharing (Lamarckian or Baldwinian effects) and the use of direct encodings for body plans. Transitioning to indirect encodings, such as generative grammars, could allow for even more complex, hierarchical structures, while co-evolving robots in dynamic environments could further drive morphological sophistication.

Summary updated

BibTeX
@inproceedings{strgar2024evolution,
  author = {Luke Strgar and David Matthews and Tyler Hummer and Sam Kriegman},
  title = {{Evolution and learning in differentiable robots}},
  booktitle = {Robotics: Science and Systems},
  year = {2024},
  doi = {10.15607/rss.2024.xx.100},
}
Figure