arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.01817cs.NE
收藏

面向GPU加速的张量增强拓扑神经进化

Tensorized NeuroEvolution of Augmenting Topologies for GPU Acceleration

Lishuang Wang, Mengfei Zhao, Enyu Liu, Kebin Sun, Ran Cheng

AI总结:

针对NEAT算法计算效率低、可扩展性受限的问题,提出张量化方法并开发基于JAX的TensorNEAT库,实现种群级并行计算,在机器人控制任务中最高达500倍加速。

摘要:

增强拓扑神经进化(NEAT)算法在神经进化领域已获得广泛认可,其有效性源于从简单网络起步,逐步进化网络拓扑与权重。尽管该算法在各类挑战中的能力已得到验证,但其计算效率仍是制约可扩展性的瓶颈。为此,本文提出一种针对NEAT算法的张量化方法,可将其多样的网络拓扑及相关操作转换为形状统一的张量进行计算,这一改进推动了NEAT算法在整个种群层面的并行执行。此外,我们开发了TensorNEAT库,实现了张量化NEAT算法及其变体(如CPPN和HyperNEAT)。TensorNEAT基于JAX构建,通过自动函数向量化与硬件加速实现高效并行计算,同时支持Gym、Brax、gymnax等多种基准环境。在Brax的一系列机器人控制环境中评估显示,TensorNEAT相较于NEAT-Python等现有实现最高可实现500倍加速。源代码可访问:https://github.com/EMI-Group/tensorneat。

英文摘要:

The NeuroEvolution of Augmenting Topologies (NEAT) algorithm has received considerable recognition in the field of neuroevolution. Its effectiveness is derived from initiating with simple networks and incrementally evolving both their topologies and weights. Although its capability across various challenges is evident, the algorithm's computational efficiency remains an impediment, limiting its scalability potential. In response, this paper introduces a tensorization method for the NEAT algorithm, enabling the transformation of its diverse network topologies and associated operations into uniformly shaped tensors for computation. This advancement facilitates the execution of the NEAT algorithm in a parallelized manner across the entire population. Furthermore, we develop TensorNEAT, a library that implements the tensorized NEAT algorithm and its variants, such as CPPN and HyperNEAT. Building upon JAX, TensorNEAT promotes efficient parallel computations via automated function vectorization and hardware acceleration. Moreover, the TensorNEAT library supports various benchmark environments including Gym, Brax, and gymnax. Through evaluations across a spectrum of robotics control environments in Brax, TensorNEAT achieves up to 500x speedups compared to the existing implementations such as NEAT-Python. Source codes are available at: https://github.com/EMI-Group/tensorneat.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑