Large Language Models & Video Games

Sketch of the original Zelda II: The Adventure of Link scene in which the “I am Error” sentence appears.
The landscape of artificial intelligence (AI) in video games has evolved significantly from the early days of basic NPC interactions in games like The Legend of Zelda. This seminal title laid foundational principles for character AI, which has since developed into a sophisticated field involving the integration of advanced technologies like Large Language Models (LLMs).
Historical Context and Technological Evolution

Just five years ago, autoregressive language modeling was considered niche within the realm of natural language processing, used mainly for theoretical purposes or as simple writing aids. This perception shifted dramatically with the release of OpenAI’s GPT-2 in 2019, which showcased the ability of transformer models to generate coherent and high-quality text. These models, when prompted effectively, could control text generation to a surprising degree. Subsequent advancements through larger models, instruction fine-tuning, and reinforcement learning from human feedback, culminating in systems like ChatGPT in late 2022, have catapulted LLMs into the spotlight. Researchers now explore the dual goals of enhancing LLM capabilities and minimizing their computational demands.
LLMs in Gaming: Roles and Challenges
Games serve both as benchmarks for AI research and as critical application areas for AI techniques. LLMs can play several roles within video games:
- Players: LLMs can act as autonomous players in games, especially where game states and actions can be represented as sequences of tokens, such as in chess or other strategy board games.
- Non-player Characters (NPCs): Serving as NPCs, LLMs can enhance narrative depth, acting as enemies or dialogue partners.
- Game Masters and Designers: LLMs can control game flow or even participate in game design, assisting or replacing human designers.
- Commentators and Narrators: Beyond the gameplay, LLMs can also act as commentators during live sessions or narrate past events, enriching the game’s storytelling aspect.
The integration of LLMs faces significant hurdles!

The Nintendo Game Boy, a handheld gaming console released in 1989. The relatively simple and monochrome Game Boy faced off against multiple handhelds and dominated the portable gaming market for almost a decade. This system has a 4.19 MHz CPU, a 4-shade LCD and ran off of 4 AA batteries. It was a very long-running system, only seeing a minor upgrade with the Game Boy Pocket in 1996, then later the Game Boy Color in 1998.
- Computational Costs: The high computational resources required for LLMs necessitate substantial investment, limiting their practical deployment in consumer-grade hardware.
- Technological Maturity: The relatively recent development of models like GPT-3.5 and GPT-4 means that these technologies are still maturing, especially within the complex systems of video games that require stable and long-term development.
- Multi-modal Integration Needs: Effective game NPCs must understand and interact with complex environments, necessitating advancements in LLMs to process and integrate multiple types of input, including visual data.
Future Directions
As AI continues to advance, the potential applications of LLMs in gaming are vast. They promise not only to enhance narrative and interaction within games but also potentially revolutionize how games are designed and played. The ongoing research and development in this field are likely to address current limitations, paving the way for more sophisticated and integrated AI roles in gaming.
The integration of LLMs into mainstream gaming could follow the historical impact of AI in games like The Legend of Zelda, potentially leading to a new era where AI not only complements but significantly transforms the gaming experience. As we look forward, the intersection of AI and gaming continues to be an exciting frontier with the promise of creating more engaging, dynamic, and complex gaming environments.


