CAX让细胞自动机模拟提速2000倍,代码几行即可实现新实验。
CAX: Cellular Automata Accelerated in JAX
- 用JAX实现硬件加速,支持任意维度的离散与连续模型
- 在经典与前沿任务中最高提速2000倍,1D自动机胜过GPT-4
- 模块化设计,三行代码即可开展创新实验,适合快速验证想法
细胞自动机已成为跨学科研究涌现与自组织现象的核心工具。然而,缺乏硬件加速的细胞自动机库限制了新方向探索、阻碍协作并影响可复现性。本文提出CAX(Cellular Automata Accelerated in JAX),一个高性能、灵活的开源库,通过硬件加速实现卓越性能,同时凭借模块化架构、直观API及对任意维度离散/连续自动机的支持保持灵活性。我们通过大量基准测试与应用验证其能力:从基础模型如初等细胞自动机和康威生命游戏,到高级应用如生长神经细胞自动机和自分类MNIST数字,仿真速度最高提升2000倍。此外,我们仅用数行代码展示了三个新颖的细胞自动机实验,证明简单一维自动机可在1D-ARC挑战中超越GPT-4。
原文摘要 · Abstract (English)
Cellular automata have become a cornerstone for investigating emergence and self-organization across diverse scientific disciplines. However, the absence of a hardware-accelerated cellular automata library limits the exploration of new research directions, hinders collaboration, and impedes reproducibility. In this work, we introduce CAX (Cellular Automata Accelerated in JAX), a high-performance and flexible open-source library designed to accelerate cellular automata research. CAX delivers cutting-edge performance through hardware acceleration while maintaining flexibility through its modular architecture, intuitive API, and support for both discrete and continuous cellular automata in arbitrary dimensions. We demonstrate CAX's performance and flexibility through a wide range of benchmarks and applications. From classic models like elementary cellular automata and Conway's Game of Life to advanced applications such as growing neural cellular automata and self-classifying MNIST digits, CAX speeds up simulations up to 2,000 times faster. Furthermore, we demonstrate CAX's potential to accelerate research by presenting a collection of three novel cellular automata experiments, each implemented in just a few lines of code thanks to the library's modular architecture. Notably, we show that a simple one-dimensional cellular automaton can outperform GPT-4 on the 1D-ARC challenge.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。