Factorio Learning Environment

Jack Hopkins, Mart Bakler, Akbir Khan
3/6/2025
8 citations
cs.MAcs.CLcs.LG

Official code: JackHopkins/factorio-learning-environment (1,224 stars, Python, last commit 2026-04-07).

Abstract

Large Language Models (LLMs) are rapidly saturating existing benchmarks, necessitating new open-ended evaluations. We introduce the Factorio Learning Environment (FLE), based on the game of Factorio, that tests agents in long-term planning, program synthesis, and resource optimization.

Show full abstract

FLE provides exponentially scaling challenges -- from basic automation to complex factories processing millions of resource units per second. We provide two settings: (1) lab-play consisting of eight structured tasks with fixed resources, and (2) open-play with the unbounded task of building the largest factory on an procedurally generated map. We demonstrate across both settings that models still lack strong spatial reasoning. In lab-play, we find that LLMs exhibit promising short-horizon skills, yet are unable to operate effectively in constrained environments, reflecting limitations in error analysis. In open-play, while LLMs discover automation strategies that improve growth (e.g electric-powered drilling), they fail to achieve complex automation (e.g electronic-circuit manufacturing).

View on arXivView PDF

Code Implementations(1)

A non-saturating, open-ended environment for evaluating LLMs in Factorio

1,224107Python, LuaJun 19, 20217 months agoNOASSERTION

Similar Papers

Cite this paper

@article{hopkins2025factorio,
  title  = {Factorio Learning Environment},
  author = {Jack Hopkins and Mart Bakler and Akbir Khan},
  year   = {2025},
  eprint = {2503.09617},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.09617v1},
  journal = {NEURIPS 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.09617.svg)](https://codeofpaper.com/paper/2503.09617)

Discussion