AI

MarioGPT hints at a glorious AI-generated future where we will all play Nintendo forever

Comment

Image Credits: IT University of Copenhagen

There can never be too much Mario in the world. Sure, it’s probably been a while since you played one of the original NES games, but probably because they’re so familiar. What if I told you researchers had created a way to generate infinite Mario levels so you can play a brand new one every day until the sun burns out?

Update: The level generator now has a working web app where you can play your prompts. Go give it a shot!

A team at IT University of Copenhagen just released a (pre-pub) paper and GitHub page showing a new method for encoding and generating Super Mario Bros levels, which they call MarioGPT. (Somewhere in Redmond, a lawyer sips his coffee and begins typing.)

MarioGPT is based on GPT-2, not one of these newfangled conversational AIs. These large language models are good at not just taking in words in sentences like these and putting out more like them — they are genera-purpose pattern recognition and replication machines.

“We honestly just picked the smaller one to see if it worked!” said Shyam Sudhakaran, lead author on the paper, in an email to TechCrunch. “I think with small datasets in general, GPT2 is better suited than GPT3, while also being much more lightweight and easier to train. However, in the future, with bigger datasets and more complicated prompts, we may need to use a more sophisticated model like GPT3.”

Even a very large LLM won’t understand Mario levels natively, so the researchers first had to render a set of them as text, producing a sort of Dwarf Fortress version of Mario that, honestly, I would play:

Each tile is rendered as a different character. Image Credits: IT University of Copenhagen

Want to make a buck? Mario in the terminal. Just saying.

Once the level is represented as a series of ordinary characters, it can be ingested by the model much the way any other series of characters can, be they written language or code. And once it understands the patterns that correlate with features, it can reproduce them.

Its output includes a “path” represented as lowercase x’s, essentially showing that the level is technically playable. They found that of 250 levels, nine out of 10 were able to be completed by the game-playing software agent A*.

Of course that wouldn’t be much of a success if the levels were just flat with occasional pipes to clear. But they included a few functions to measure how simple the path is, and to compare it to levels from the dataset as well. High novelty and “interesting” path trajectories mean doable levels that don’t resemble existing ones, but don’t let the player just walk through.

The labeled input also made it so that the model can understand natural language prompts, like asking it to make a level with “lots of pipes and lots of enemies,” or “many blocks, high elevation, no enemies.”

Examples of levels created by text prompts. Image Credits: IT University of Copenhagen

One limitation is that, due to the way their source data in the Video Game Level Corpus is encoded, there’s only one symbol for “enemy,” instead of one each for goombas, koopas, etc. But this can be changed if needed — the concept that needed proving was more that good levels could be generated at all. (Sadly, water levels are also not currently possible due to not being represented in the dataset.)

“In future work, we’re gonna explore some richer datasets!” said Sudhakaran.

Coincidentally, Julian Togelius at NYU GameLab and his group just wrote a paper showing a similar process for “sokoban” or block-pushing puzzle games. The principles are similar, but you can read about the differences here.

That these approaches worked for two different genres suggests it could work for others of similar complexity — not quite generating infinite Chrono Trigger, but an AI-powered 2D Sonic isn’t out of the question.

It should be said that this isn’t the first Mario generator we’ve seen, but others tend to rely not on a generative AI but on assembling levels from pre-created tilesets and sequences. So you may get a new sequence, but it won’t be original on a tile-by-tile basis, just screen-by-screen.

As the first version of MarioGPT, this is purely experimental and hopefully will avoid the Sauron-like gaze of Nintendo, which is known for hammering fan projects involving its properties. But of course while infinite Mario does sound fun, the charm of the original games is in their hand-crafted difficulty and themes — something that isn’t quite so easy to recreate.

More TechCrunch

SpaceX President Gwynne Shotwell made a public plea to one of Brazil’s top judicial figures on Thursday, asking him to “please stop harassing Starlink” amid the ongoing battle in the…

‘Stop harassing Starlink,’ SpaceX president tells Brazilian judge

OSOM always had a difficult road, with plans to launch a privacy-focused handset.

Osom is shutting down on Friday, as it had ‘no customers for a mobile phone’

Salesforce has acquired Own Company, a New Jersey-based provider of data management and protection solutions, for $1.9 billion in cash. Own is Salesforce’s biggest deal since buying Slack for $27.7…

Salesforce acquires data management firm Own for $1.9B in cash

The U.S. government indictment demonstrated deep knowledge of the Russian spies’ activities, including their real-world meetings at a cafe in Moscow.

US charges five Russian military hackers with targeting Ukraine’s government with destructive malware

Welcome back to TechCrunch Mobility — your central hub for news and insights on the future of transportation. Sign up here for free — just click TechCrunch Mobility! Short week,…

Lyft restructures its micromobility business and Volkswagen brings ChatGPT to US vehicles 

The advancement of generative AI tools has created a new problem for the internet: the proliferation of synthetic nude images resembling real people. On Thursday, Microsoft took a major step…

Microsoft gives deepfake porn victims a tool to scrub images from Bing search

The new business-to-business division is a bet on what co-founder and CEO Thomas von der Ohe thinks is the future of mobility.

Driverless car-sharing startup Vay steers toward B2B services

Drip Capital has raised $113 million in a combination of $23 million in equity and $90 million in debt to provide credit to more small businesses in India and the…

Drip Capital, a fintech that provides working capital to SMBs, picks up $113M

Google said the feature could be used for more than just photo retrieval alone; users would also be able to ask questions to get helpful answers.

Google’s AI-powered Ask Photos feature begins US rollout

The stealthily operating startup thinks it can narrow the gap by helping miners extract more copper from their mines.

Endolith is using ‘Olympic-caliber’ copper microbes to address the copper shortage

Featured Article

A comprehensive list of 2024 tech layoffs

A complete list of all the known layoffs in tech, from Big Tech to startups, broken down by month throughout 2024.

A comprehensive list of 2024 tech layoffs

As with many open source startups, All Hands AI expects to monetize its service by offering paid, closed-source enterprise features.

All Hands AI raises $5M to build open source agents for developers

Mintlify offers a collection of documentation-authoring tools, including tools that can auto-generate docs from codebases.

Mintlify is building a next-gen platform for writing software docs

Europe doesn’t have many large language model (LLM) makers but one of these rare AI beasts — Germany’s Aleph Alpha — appears to be preparing to rule itself out of…

German LLM maker Aleph Alpha pivots to AI support

Featured Article

The AI industry is obsessed with Chatbot Arena, but it might not be the best benchmark

LMSYS’ Chatbot Arena is perhaps the most popular AI benchmark today — and an industry obsession. But it’s far from a perfect measure.

The AI industry is obsessed with Chatbot Arena, but it might not be the best benchmark

Every automaker is aiming to build and sell the so-called software-defined vehicle. Rivian may have actually done it, but getting there wasn’t easy. Just ask Rivian’s chief of software Wassym…

Rivian’s chief software designer is coming to TechCrunch Disrupt 2024

Google announced Thursday that it expanded its generative AI-powered virtual try-on tool to support dresses, allowing users to virtually wear thousands of dresses from hundreds of brands, including Boden, Maje,…

Google expands AI-powered virtual try-on tool to include dresses

Until six years ago, many e-commerce and SaaS businesses could have avoided paying sales tax to states where they had customers, but no physical presence. But as online shopping grew,…

Zamp targets growing demand for sales tax solutions

TechCrunch Disrupt 2024, which takes place from October 28-30 at Moscone West in San Francisco, is rapidly approaching. Today we’re thrilled to announce the 200 startups selected to participate in…

Announcing the Startup Battlefield 200 at TechCrunch Disrupt 2024

YouTube is going to limit teens’ exposure to videos that promote and idealize a certain fitness level or physical appearance, the company announced on Thursday. The safeguard first rolled out…

YouTube to limit teens’ exposure to videos about fitness and weight across global markets

Also of note, YouTube is in the early stages of coming up with a solution to address the use of its content to train AI models.

YouTube is developing AI detection tools for music and faces, plus creator controls for AI training

We’re not very close to any specifics on how, exactly, AI regulations will be implemented and ensured, but today a swathe of countries including the U.S., the U.K. and the…

US, UK and EU sign on to the Council of Europe’s high-level AI safety treaty

With a fresh $35M in the bank, French cleantech startup Calyxia has profitability within sight. But it’s just getting started.

French clean tech startup Calyxia nets $35M to tackle microplastics pollution

Hiring platform ZipRecruiter is launching a new tool, called ZipIntro, to let employers schedule introductory calls with potential candidates at a set time. The tool will also help recruiters suggest…

ZipRecruiter’s new tool will quickly match and schedule an intro call with potential candidates

This week at IFA in Berlin, DJI is once again going small with the new Neo. Like the Spark before it, the drone’s ability to land in the palm of…

DJI takes another crack at palm-sized drones, and this one is $199

Brittany Ennix launched Portex, a company that allows SMBs to connect with freight partners and manage shipments and operations in one place.

Portex founder Brittany Ennix learned the importance of supply chains from Uber and Flexport

Verizon’s big interest in Frontier is its fiber business and the fact that it extends to places that Verizon does not currently cover as well.

Verizon bets on fiber’s staying power as it acquires Frontier for $20B

For financial institutions, complying with regulations is becoming a costlier proposition. According to a recent poll, 76% of financial services firms increased their compliance expenditure from 2022 to 2023, with…

Sedric monitors the communications of employees at financial institutions to ensure compliance

Over a year ago, former Session M exec Eben Pingree received the news that his mother was diagnosed with Alzheimer’s. Two days later, his father-in-law was given the same diagnosis. …

Kinsome aims to bridge the generation gap with its new app for kids and grandparents

European regulators are pushing hard for greener energy. The REPowerEU plan calls for 10 million additional heat pumps to be added by 2027, and solar panels are also on the…

Reonic raises €13 million to help small installers of green tech like heat pumps and solar panels