Baba is LLM: Reasoning in a Game with Dynamic Rules
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Large language models (LLMs) are known to perform well on language tasks, but struggle with reasoning tasks. This paper explores the ability of LLMs to play the 2D puzzle game Baba is You, in which players manipulate rules by rearranging text blocks that define object properties. Given that this rule-manipulation relies on language abilities and reasoning, it is a compelling challenge for LLMs. Six LLMs are evaluated using different prompt types, including (1) simple, (2) rule-extended and (3) action-extended prompts. In addition, two models (Mistral, OLMo) are finetuned using textual and structural data from the game. Results show that while larger models (particularly GPT-4o) perform better in reasoning and puzzle solving, smaller unadapted models struggle to recognize game mechanics or apply rule changes. Finetuning improves the ability to analyze the game levels, but does not significantly improve solution formulation. We conclude that even for state-of-the-art and finetuned LLMs, reasoning about dynamic rule changes is difficult (specifically, understanding the use-mention distinction). The results provide insights into the applicability of LLMs to complex problem-solving tasks and highlight the suitability of games with dynamically changing rules for testing reasoning and reflection by LLMs.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 37 of its 54 references that are in the map. First posted on arXiv 23 Jun 2025.
Builds on
37 of 54 references.
Closest ancestors · 1
Same direction, newest first
Other references · 36
- 2017Attention Is All You Needcited by 60,361
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2024GPT-4o System Cardcited by 4,588
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2019Mastering Atari, Go, Chess and Shogi by Planning with a Learned Modelcited by 1,353
- 2019Dota 2 with Large Scale Deep Reinforcement Learningcited by 1,103
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,075
- 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 656
24 more
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2023Instruction Tuning for Large Language Models: A Surveycited by 623
- 2022Towards Reasoning in Large Language Models: A Surveycited by 596
- 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 560
- 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 431
- 2023Scaling Data-Constrained Language Modelscited by 403
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 319
- 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessmentcited by 230
- 2023Large Language Models as General Pattern Machinescited by 197
- 2023Navigate through Enigmatic Labyrinth A Survey of Chain of Thought Reasoning: Advances, Frontiers and Futurecited by 184
- 2024Multi-Step Reasoning with Large Language Models, a Surveycited by 143
- 2025Agentic Large Language Models, a surveycited by 108
- 2023Large Language Models as Analogical Reasonerscited by 107
- 2024RLHF Deciphered: A Critical Analysis of Reinforcement Learning from Human Feedback for LLMscited by 90
- 2023ChessGPT: Bridging Policy Learning and Language Modelingcited by 75
- 2024Emergent World Models and Latent Variable Estimation in Chess-Playing Language Modelscited by 62
- 2024Fine-tuning and Utilization Methods of Domain-specific LLMscited by 36
- 2024Evaluating Large Language Models with Grid-Based Game Competitions: An Extensible LLM Benchmark and Leaderboardcited by 22
- 2020Baba is Y'all: Collaborative Mixed-Initiative Level Designcited by 20
- 2024Planning in Strawberry Fields: Evaluating and Improving the Planning and Scheduling Capabilities of LRM o1cited by 17
- 2025Complete Chess Games Enable LLM Become A Chess Mastercited by 16
- 2023Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Studycited by 15
- 2024Baba Is AI: Break the Rules to Beat the Benchmarkcited by 10
- 2021Puzzle Solving without Search or Human Knowledge: An Unnatural Language Approachcited by 8
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Reasoning Capabilities of Large Language Models. Lessons Learned from General Game Playing
- 2024GTBench: Uncovering the Strategic Reasoning Limitations of LLMs via Game-Theoretic Evaluations
- 2024GAMEBoT: Transparent Assessment of LLM Reasoning in Games
- 2024Puzzle Solving using Reasoning of Large Language Models: A Survey
- 2024GameArena: Evaluating LLM Reasoning through Live Computer Games
- 2025TextGames: Learning to Self-Play Text-Based Puzzle Games via Language Model Reasoning
- 2024LogicGame: Benchmarking Rule-Based Reasoning Abilities of Large Language Models
- 2024GameBench: Evaluating Strategic Reasoning Abilities of LLM Agents