arXiv:2610.05569cs.AIOct 2026

Manuscript Offprint

arXiv:2610.05569

Factoriax: A GPU-Accelerated Factorio-Style Simulator for Reinforcement Learning

Mickey Beurskens, Tristan Tomilin, Thiago D. Simão

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We introduce Factoriax, a GPU-accelerated factory-building simulator written in JAX. In Factoriax, an agent must collect resources, build machines using those resources, and then automate the collection and crafting process by arranging machines on the map to build production pipelines. This paper discusses the structure of the Factoriax simulator and an initial benchmark called Easy Rocket, in which an agent is tasked with building a resource-intensive machine called the Rocket in a limited number of game ticks to escape the planet. We also publish results from a number of PPO-based training runs on Easy Rocket. Factoriax is built to be fast. A 1-billion-step PPO training run, equivalent to 500,000 episodes, runs on Easy Rocket in about 8 minutes on a single NVIDIA A100. A standard laptop GPU can complete the same run in about 84 minutes. Our trained PPO agent learns to gather resources, craft machines from those resources, and place them on the map through a curriculum reward directly tied to a manually designed set of achievements. After training, the agent does not place machines in a functional spatial configuration, failing to fully complete the benchmark, and leaving the challenge open for future attempts.

1 Introduction

We introduce Factoriax 1^{1}, a GPU-accelerated factory building simulator written in JAX [Bradbury et al., 2018] for reinforcement learning (RL). In Factoriax, an agent spawns in a grid world (Figure 1), where it must collect resources, build machines, and ultimately automate resource collection and processing by building and maintaining factories. Factoriax enables research into factory layout design, often called facility layout problems [Bouramtane et al., 2024] in operations research (OR), with RL. Approaches to solve factory layout design tend to treat the problem as disembodied, with the inputs being some sort of matrix or graph and the output being a permutation of the factory layout. Studying embodied agents in a dynamically built factory setting such as Factoriax is less common. The order of construction becomes more important for an agent moving in an embodied way through a simulator, as it might create or obstruct its own routing. Concerns like reach and walking distance become apparent as well. Embodiment thus adds an additional spatial element to the planning, execution, and maintenance of factory layout design.

Factoriax is inspired by the game mechanics featured in Factorio 2^{2}. The Factorio Learning Environment (FLE) [Hopkins et al., 2025] uses the full Factorio game as a language model benchmark. However, the game is optimized for human gameplay and runs at a limited speed of 60 frames per second, making FLE impractical for RL. Although less faithful to the original game than FLE, Factoriax preserves the core challenges of long-horizon planning, layout design, and agent embodiment that make the game interesting for RL research. Moreover, by leveraging JAX to load both the model and

*Corresponding author: m.r.m.beurskens@tue.nl

1^{1}github.com/mickeybeurskens/factoriax

2^{2}factorio.com

19th European Workshop on Reinforcement Learning (EWRL 2026).

Figure

Figure 1: A typical early-game state in Factoriax. An agent (red dot) on a 2D grid mines raw materials using a miner (green), crafts machines, and arranges them so belts (yellow) carry the correct inputs to assemblers (purple). The assemblers create half-fabricates to speed up the production of more machines. A single coal miner on the right drops coal ore onto a belt, which is split between both lines through a belt splitter. Arms (brown) drop each assembler's output onto pallets (grey) acting as high-capacity item buffers.

the environment onto the GPU, Factoriax reduces communication overhead, resulting in significant improvements in computational throughput.

In addition to the simulator behind Factoriax and its key design ideas, this paper introduces Easy Rocket, the first benchmark built in Factoriax. A PPO-based agent shows that Easy Rocket is partly solved. Solving the full benchmark is still an open problem. Finally, this work includes a computational performance analysis of Easy Rocket and the PPO training run. It shows that a 1-billion-step PPO training run on the included Easy Rocket benchmark completes in about 8 minutes of wall-clock time on a single NVIDIA A100, and about 84 minutes on a standard laptop GPU.

References (28)