Doomformer Compiles Neural Networks Into DOOM Maps

A GitHub repository posted October 30, 2026 demonstrates a compiler that translates integer neural networks into playable DOOM maps where the game engine itself performs the computation. Doomformer, released by developer mottopanikeiku, achieves 97.16% accuracy on MNIST digit classification using crowds of voodoo dolls, floor-crossing lines, and sector light levels as the arithmetic substrate.
How DOOM Game Mechanics Perform Neural Computation
Doomformer encodes neural network operations into DOOM's level geometry and enemy behavior. Values are represented as crowds of voodoo dolls, invisible enemy entities that trigger actions when they cross floor lines. Each line encodes a weight value, and crossing it increments the sum stored in a sector's light level or floor plane height. ReLU activation functions are implemented as staircase gates that dolls must climb, blocking negative values. Attention mechanisms use ceiling gates that lower based on other values, forcing dolls to squeeze underneath.
The verification standard is absolute. The README states that every value is read back and checked against NumPy with tolerance 0. All 248 exposed values in the compiled MNIST model matched the NumPy integer reference exactly. The developer fuzzed 20,000 random networks at range limits with zero mismatches detected.
MNIST Classifier Running Inside a Playable Map
The full MNIST evaluation on 10,000 handwritten digit images produced 9,716 correct classifications, a 97.16% accuracy rate. A smaller 1,000-digit sample scored 966 correct, and the first 100 digits achieved 99 out of 100. The compiled model runs entirely within DOOM's game loop, with no external code performing matrix operations.
Two playable demonstrations ship with the Doomformer code. DrawPad provides a 28×28 floor canvas where players sketch digits using movement controls. Pressing the READ action activates 1,355 voodoo dolls that execute inference across the network, lighting a 7-segment display with the predicted digit. Museum is a 136-doll level where pressing MUTATE rewires network connections in real time, demonstrating how toggling a single weight can flip a predicted 7 reading into a 1.
Performance and Technical Constraints
The approach runs approximately 23,000 times slower than NumPy, a performance penalty the developer attributes to idle conveyor belt mechanics in DOOM's game loop. Models are restricted to integer arithmetic with no floating-point support. LayerNorm is not implemented, limiting the compiler to architectures that avoid normalization layers.
- Integer-only arithmetic with no floating-point operations
- No LayerNorm support, restricting model architectures
- 23,000× slower than NumPy integer reference implementation
- Exact match verification against NumPy on 248 exposed values
Release Date and Availability
Doomformer was officially released on October 30, 2026 as an open-source repository on GitHub. The code includes the compiler, two playable demo maps, and verification scripts that check compiled networks against NumPy references. The release arrives alongside a small cluster of unconventional AI implementations, including TinyWorldformer running a world model on a Raspberry Pi Pico 2 W.
What This Means for Unconventional Computing
Doomformer extends a lineage of projects compiling computation into unexpected substrates. The approach proves that neural network inference can run on arbitrary Turing-complete systems, even those designed for first-person shooter gameplay. While the 23,000× performance penalty makes this impractical for production use, the exact-match verification against NumPy demonstrates that game engine mechanics can implement deterministic integer arithmetic without error accumulation. The playable DrawPad and Museum demos make the compiled networks tangible, letting players see inference as a physical process of dolls crossing lines and climbing stairs rather than matrix multiplications hidden in code.
on Emergent today





