Using Transformers for Teaching and Learning via Symbolic Distillation of Neural A-life Agents
Organizations: Department of Computing Science, University of Alberta, 116 Street and 85 Avenue, Edmonton, AB, T6G 2R3, Canada · Filuta AI, 1606 Headway Circle, Austin, TX 78754, USA · Department of Computer Science, Data Science, University of British Columbia, 6200 University Blvd, Vancouver, BC Canada V6T 1Z4, Canada · Department of Biology, University of Alberta, 116 Street and 85 Avenue, Edmonton, AB, T6G 2R3, Canada ·
Abstract
Neural networks controlling behavior of A-life agents can evolve over multiple generations. While effective in making the agents survive, such networks are generally opaque to a human observer. Furthermore, the neural weights cannot be transferred between agents with different neural architectures. Distilling such neural networks into compact symbolic policies can help humans understand agent behavior in A-life. Additionally, it allows the agents to share their knowledge in a compact fashion, improving population-level learning. Distilling a neural policy into a symbolic policy is typically performed by searching the space of symbolic policies to find one that approximates the neural policy. However, even with a domain-specific language the space of policies can be large, necessitating incomplete stochastic search such as genetic algorithms. Yet the distillation remains computationally expensive. We propose to instead use a transformer pre-trained on readily available random percept-action data. Doing so speeds up distillation substantially. We derive the transformer architecture via a neural architecture search. Empirical results compare different distillation methods and the influence of the symbolic space on A-life population dynamics through self-reflection and teaching and learning.
Figures & tables
| parameter | value |
|---|---|
| grass growth | |
| grass growth decay | |
| move energy | |
| live energy | |
| power coefficient | |
| max grass bite |
| component | minimum | maximum |
|---|---|---|
| number of layers | ||
| number of heads | ||
| embedding dimension | ||
| Q-K dimension | ||
| V dimension | ||
| MLP dimension |
| component | maximum size |
|---|---|
| encoder depth | |
| encoder heads | |
| encoder embedding dimension | |
| encoder Q-K dimension | |
| encoder V dimension | |
| encoder MLP dimension |
Policy Distillation
Policy distillation transfers behavior from expert or larger policies into compact, deployable learners while preserving task performance.
See all 54 papers