← Latest papers
🤖 machine learning

Reinforcement Learning in Super Mario Bros: Curriculum, Pedagogy, and Optimal Level Design in World 1-1

This paper empirically validates the pedagogical efficacy of Super Mario Bros. World 1-1's canonical design by demonstrating that a Monte Carlo reinforcement learning agent achieves superior learning efficiency and zero catastrophic failures only when the level's segments are presented in their original, progressive order rather than in random permutations.

Original authors: Jesse Ponnock, Lucas Ho

Published 2026-06-30
📖 5 min read🧠 Deep dive

Original authors: Jesse Ponnock, Lucas Ho

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a robot to play Super Mario Bros. You want to know two things:

  1. Which learning method works best? (Should the robot memorize every single step, or should it use a "neural network" brain that guesses patterns?)
  2. Does the order of the level matter? (Is the famous World 1-1 level actually designed to teach you how to play, or is that just a happy accident?)

The authors of this paper built a simplified, digital version of World 1-1 and let four different "robots" try to beat it. Here is what they found, explained simply.

The Four Robots (Algorithms)

The researchers tested four different ways for the robot to learn:

  • Q-Learning & SARSA: Think of these as super-memorizers. They keep a giant notebook where they write down exactly what happens if they jump at a specific spot. They don't guess; they remember.
  • Monte Carlo: This is the storyteller. It doesn't update its knowledge after every single step. Instead, it waits until the end of the whole game (the episode), looks back at the entire journey, and says, "Okay, that whole run was good, so every step I took was probably a good idea."
  • DQN (Deep Q-Network): This is the pattern guesser. It uses a complex brain (a neural network) to guess what to do based on what it has seen before. It's designed to handle huge, messy worlds, but the researchers wanted to see if it was overkill for a simple level.

The Three Levels of Difficulty

They tested these robots on three versions of the same level:

  1. Level 1 (Static): Just ground, pipes, and gaps. No enemies.
  2. Level 2 (+Blocks): Added breakable bricks and question blocks.
  3. Level 3 (+Enemies): Added Goombas and Koopas. This is the full, real deal.

The Big Surprises

1. The "Storyteller" Won the Race

When the level got hard (with enemies), the Monte Carlo robot was the clear winner. It beat the level 95% of the time.

  • Why? The other robots (like Q-Learning) tried to find the fastest path to the finish line. They ignored the little bonuses (like hitting question blocks) because they were focused on the goal.
  • The Monte Carlo robot, however, looked at the whole story. It realized that hitting question blocks along the way gave it extra points and made the journey safer. It learned to be a "rich" player, collecting everything on the way, rather than just a "fast" player.

2. The "Pattern Guesser" (DQN) Had a Meltdown

The DQN robot, which is usually famous for being the smartest, failed miserably on the easiest level (Level 1). It only won 10% of the time.

  • The Analogy: Imagine a student trying to learn math, but every time they get a question wrong, they get a huge "F" (a big negative score), and they rarely get an "A" (a win). The student gets so scared of the "F" that they stop trying to solve problems and just give up.
  • On Level 1, the robot kept falling into pits and getting huge penalties. Because it didn't hit many question blocks (which give small rewards), its "memory bank" was full of failures. It got stuck in a loop of fear.
  • The Fix: When they added question blocks (Level 2), the robot suddenly started winning 93% of the time. The small rewards from the blocks balanced out the fear of falling, allowing it to learn.

3. The Level Design is a Masterclass in Teaching

The most exciting part of the paper is the Curriculum Experiment.

  • The Setup: The World 1-1 level is made of 6 distinct sections (A, B, C, D, E, F). The original game plays them in order: A → B → C → D → E → F. This starts easy (just one enemy) and gets harder (groups of enemies).
  • The Test: The researchers scrambled the order. They made the robot play the hard parts first (F → E → D...) or random orders.
  • The Result:
    • Original Order (A→F): The robot learned fast, won almost every time, and never completely failed.
    • Reversed Order (F→A): The robot struggled terribly. It fell into pits constantly in the beginning, got scared, and many robots never learned to play at all.
    • Random Orders: Some random orders worked okay, but none were as perfect as the original.

The Takeaway: Why the Order Matters

The paper proves that World 1-1 isn't just a fun level; it's a perfectly designed teacher.

  • If you throw a student into a fire (the hard parts first), they panic and quit.
  • If you let them practice in a sandbox (the easy parts first), they build confidence.
  • By the time they reach the fire, they know exactly how to handle it.

The researchers found that the Monte Carlo robot was very sensitive to this order because it learns from the whole story. If the story starts with a disaster, the robot thinks the whole game is a disaster. The DQN robot, however, didn't care about the order. Because it uses a "memory bank" that mixes up all its past experiences (good and bad), it couldn't tell the difference between a level that started easy and one that started hard.

Summary

  • Best Learner: The "Storyteller" (Monte Carlo) was the best at beating the full game because it learned to enjoy the journey, not just the finish line.
  • Best Teacher: The original World 1-1 design is scientifically proven to be the best way to teach a player. It introduces challenges slowly, which prevents the learner from getting overwhelmed.
  • The Lesson: In AI (and maybe in life), how you introduce a problem is just as important as what the problem is. If you start too hard, even the smartest algorithms can fail.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →