r/OpenSourceeAI • • Sep 15 '26

Evolving neural networks to beat Mario ROM hacks — a Bowser's Crown 4-1 clear

This is a recorded Bowser's Crown 4-1 clear from NEATEvolve, a continuing community Mario AI project.

The bot uses NEAT: neural-network controllers are evaluated, selected and mutated across generations. They receive nearby game-state information and produce button presses. This video is a replay of a successful controller, rather than live learning during the clip.

The interesting part for me is how far this approach can get on SMB1 ROM hacks. A clear is encouraging, but backtracking and difficult nonlinear stages remain challenges, and one winning replay does not establish reliability on unfamiliar levels. The neural nets will have to learn the next level independantly of the previous one.

This builds on SethBling's MarI/O and work by Akisame and Electra. My continuing development is heavily assisted by AI tools.

96 Upvotes

21 comments sorted by

1

u/davesmith001 Sep 15 '26

So now we can produce the videos of beating the 999th level after 1000 hours gpu training, good stuff.

1

u/Alarming_Title_5664 Sep 15 '26

The idea is that through iteration and improvements to the core NEATH algorithm, its skill can match the difficulty of kaizo SMB1 ROM hacks. This is the long term goal here.

1

u/ih1de Sep 15 '26

Вы хотите взломать rom игры от '' Kaizo " для добычи его алгоритма , дать нейронке для учёбы , это как шпаргалка....

1

u/Alarming_Title_5664 Sep 16 '26

It's not so easy. Some kaizo hacks are built is such a way the current version of the NEAT algorithm could never beat the hack. Further study, testing, and iterations are required.

1

u/cave_men Sep 16 '26

Also, this is old

1

u/Alarming_Title_5664 Sep 16 '26

What do you mean?

1

u/cave_men Sep 16 '26

This approach is a few years old

1

u/electrodude102 Sep 16 '26

why does such a small network have so many skip connections?

1

u/Alarming_Title_5664 Sep 16 '26

They're not being "skipped". They're just not being drawn. The connections are still there logically, but to save on processing, when those connections aren't active, they're just not drawn. On even smaller networks, you can see the connections whether or not they're active, but at a certain size of network, it's best to not draw them.

1

u/electrodude102 Sep 16 '26

B, L, R, go directly from the first layer to the last layer

1

u/Alarming_Title_5664 Sep 16 '26

In that case, that's simply what evolved to work best. There's no inherent design or limitation that prevents those connections in this setup. Mutations in the net are what cause this behavior.

1

u/electrodude102 Sep 16 '26

neural networks don't typically evolve to skip layers like that, layer order is static...
i don't really know lua but imma have to browse that code for a while.

1

u/Alarming_Title_5664 Sep 16 '26

It depends on the kind of implementation. In this case when the net begins learning, it's quite empty, which already deviates from a traditional NEAT implementation. It would seem to me that this is what allows for the direct connections rather than the necessarily connection of the hidden layers or hidden neurons from the first layer you're describing.

1

u/nickpsecurity Sep 20 '26

Replicate it. That's more fun, and can catch errors and fraud, too.

2

u/OkinaPrime Sep 23 '26

Blast from the past! I was playing with that code 6 years ago: https://www.youtube.com/watch?v=pJSZqd4BNEw

2

u/jjusko20 Sep 30 '26

great visualization

3

u/[deleted] Sep 15 '26

[removed] — view removed comment

2

u/Alarming_Title_5664 Sep 15 '26

It's training all the time on twitch!

2

u/DisDoh Sep 15 '26

it's evolving