{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/mariogpt-open-ended-text2level-generation-1","title":"MarioGPT: Open-Ended Text2Level Generation through Large Language Models","arxiv_id":"2302.05981","date":"2023-02-12","proceeding":"NeurIPS 2023 11","authors":["Shyam Sudhakaran","Miguel González-Duque","Claire Glanois","Matthias Freiberger","Elias Najarro","Sebastian Risi"],"abstract":"Procedural Content Generation (PCG) is a technique to generate complex and diverse environments in an automated way. However, while generating content with PCG methods is often straightforward, generating meaningful content that reflects specific intentions and constraints remains challenging. Furthermore, many PCG algorithms lack the ability to generate content in an open-ended manner. Recently, Large Language Models (LLMs) have shown to be incredibly effective in many diverse domains. These trained LLMs can be fine-tuned, re-using information and accelerating training for new tasks. Here, we introduce MarioGPT, a fine-tuned GPT2 model trained to generate tile-based game levels, in our case Super Mario Bros levels. MarioGPT can not only generate diverse levels, but can be text-prompted for controllable level generation, addressing one of the key challenges of current PCG techniques. As far as we know, MarioGPT is the first text-to-level model and combined with novelty search it enables the generation of diverse levels with varying play-style dynamics (i.e. player paths) and the open-ended discovery of an increasingly diverse range of content. Code available at https://github.com/shyamsn97/mario-gpt.","url_abs":"https://arxiv.org/abs/2302.05981v3","url_pdf":"https://arxiv.org/pdf/2302.05981v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"mariogpt-open-ended-text2level-generation-1","repo_url":"https://github.com/shyamsn97/mario-gpt","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2302.05981","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2302.05981"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/shyamsn97/mario-gpt","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":5},"by_repo_kind":{"official":{"samples":5,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"db6e1984601d1826","entry":"characterize","repo":"shyamsn97/mario-gpt","repo_kind":"official","path":"mario_gpt/utils.py","file_url":"https://github.com/shyamsn97/mario-gpt/blob/HEAD/mario_gpt/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"db6e1984601d1826"}},{"code_sha256_prefix":"15583f138b7410fa","entry":"flip_and_transpose","repo":"shyamsn97/mario-gpt","repo_kind":"official","path":"mario_gpt/dataset.py","file_url":"https://github.com/shyamsn97/mario-gpt/blob/HEAD/mario_gpt/dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"15583f138b7410fa"}},{"code_sha256_prefix":"0f53ec8e41cca081","entry":"join_list_of_list","repo":"shyamsn97/mario-gpt","repo_kind":"official","path":"mario_gpt/dataset.py","file_url":"https://github.com/shyamsn97/mario-gpt/blob/HEAD/mario_gpt/dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0f53ec8e41cca081"}},{"code_sha256_prefix":"03f7c393be341064","entry":"split_given_size","repo":"shyamsn97/mario-gpt","repo_kind":"official","path":"mario_gpt/dataset.py","file_url":"https://github.com/shyamsn97/mario-gpt/blob/HEAD/mario_gpt/dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"03f7c393be341064"}},{"code_sha256_prefix":"2797feb9abcb6808","entry":"trim_level","repo":"shyamsn97/mario-gpt","repo_kind":"official","path":"mario_gpt/utils.py","file_url":"https://github.com/shyamsn97/mario-gpt/blob/HEAD/mario_gpt/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2797feb9abcb6808"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}