TextAtari: 100K Frames Game Playing with Language Agents

Wenhao Li, Wenwu Li, Chuyun Shen, Junjie Sheng, Zixiao Huang, Di Wu, Yun Hua, Wei Yin, Xiangfeng Wang, Hongyuan Zha, Bo Jin

TL;DR

TextAtari is a novel benchmark that translates classic Atari 2600 games into rich textual descriptions to evaluate language agents on ultra-long-horizon decision-making tasks of up to 100,000 steps. By testing various large language models (LLMs) and prompting frameworks, the paper reveals a massive performance gap between current language agents and human players, exposing severe limitations in long-term strategic planning and state tracking.

What Problem Does This Paper Address?

While LLMs have shown remarkable success in short-context reasoning and tactical decision-making, their ability to maintain coherent, long-term strategies over thousands of sequential steps remains largely unproven.

Most existing sequential decision-making benchmarks suffer from a "horizon gap." As shown in the paper's survey of 163 benchmarks, the median decision step count is under 50 for web and software tasks, and even text/video games rarely exceed 500 steps. Fewer than 2.5% of existing benchmarks reach the 100,000-step threshold required to simulate complex, real-world planning horizons that would take a human days or weeks to complete.

Furthermore, evaluating agents directly on visual game frames introduces confounding variables related to visual processing. TextAtari addresses this by converting visual environments into pure text, isolating an agent's core symbolic reasoning and long-horizon planning capabilities.

Figure 3: Horizon statistics.

Methods

The authors developed an environment verbalization pipeline using AtariARI (Atari Annotated RAM Interface). Instead of processing raw pixels, the pipeline extracts high-level state variables from the emulator's 128-byte RAM (such as player coordinates, scores, and enemy positions) and linearizes them into natural language templates at a fixed frequency of 5 Hz.

Figure 4: Environment verbalization with AtariARI.

To understand what drives agent performance, the benchmark evaluates models across four distinct textual scenarios:

  1. Basic Scenario: The control condition, providing only raw text observations and legal actions.
  2. Obscured Scenario: Replaces domain-specific nouns (e.g., "ghost", "paddle") with the neutral token "item" to test whether the model relies on semantic priors or actual structural/spatial reasoning.
  3. Manual Augmentation Scenario: Prepends a concise, LLM-summarized excerpt of the official game manual (≤ 300 tokens) to provide explicit rule knowledge.
  4. Reference-based Scenario: Injects a 400-token expert demonstration trajectory generated by a trained Reinforcement Learning (PPO) agent to serve as an in-context exemplar.

These scenarios are evaluated using three dialogue policies: Naive (zero-shot), Chain-of-Thought (CoT), and CoT with Reflection.

Datasets

The paper introduces the TextAtari benchmark suite, which features:

  • 23 classic Atari 2600 games categorized into Action Games (e.g., Asteroids, Berzerk), Puzzle & Strategy Games (Breakout, Montezuma’s Revenge), Sports Games (Boxing, Tennis), and Arcade Classics (Ms. Pac-Man, Seaquest).
  • Nearly 100 distinct tasks featuring diverse action spaces, varying complexities, and planning horizons spanning up to 100,000 steps.

Key Insights and Ideas

  • Prior Knowledge Trumps Prompt Engineering: Injecting external domain knowledge—specifically game manuals and expert trajectories—was the most consistent performance driver, yielding average improvements exceeding 100% across models. Conversely, popular reasoning techniques like Chain-of-Thought and Reflection showed highly inconsistent and architecture-dependent benefits.
  • The Semantic Crutch: The "Obscured" scenario revealed that language agents rely heavily on lexical priors (pre-trained associations with words like "paddle" or "bullet") rather than dynamically computing spatial relationships and numeric patterns. When these words were masked, performance tanked.
  • The Cognitive Wall: Current open-source LLMs fundamentally lack the cognitive mechanisms required for sustained state tracking and strategic planning over extended horizons. As the decision steps compound, the agents suffer from severe decision inconsistency.

Key Results

  • The Human-Agent Gap: Language agents struggle significantly on TextAtari; across more than 90% of the evaluated scenarios, the best agent configurations scored below 10% of human capability. Agents only approached or marginally exceeded human performance in two specific tasks.
  • Immense Computational Demands: Evaluating ultra-long horizons is incredibly resource-intensive. The comprehensive evaluation consumed approximately 820,000 GPU-minutes on A100 hardware. For instance, LLaMA3.1-8B required over 300 hours of processing time for multiple individual games.
  • Token Explosion: Context-heavy games like Boxing and BattleZone consumed between 40k to 50k tokens per decision step for certain models, pushing current context windows to their absolute practical limits and accumulating billions of processed tokens over full episodes.
Figure 5: Computational costs.

Limitations and Future Work

  • Resource Accessibility: The massive computational footprint (820k GPU-minutes) limits the benchmark's accessibility for smaller research groups. The authors note that future work must explore more efficient evaluation protocols.
  • Information Loss in Translation: Converting a highly visual, real-time environment into discrete text descriptions inherently discards some spatial and temporal granularity. The authors suggest that future iterations should explore multimodal extensions.
  • Lack of Diagnostic Depth: While TextAtari successfully exposes that language models fail over long horizons, it does not fully diagnose the underlying cognitive failures. The authors propose incorporating causal interventions and deeper error analysis in future work to pinpoint exact reasoning bottlenecks.

Summary updated

BibTeX
@misc{li2025textatari,
  author = {Wenhao Li and Wenwu Li and Chuyun Shen and Junjie Sheng and Zixiao Huang and Di Wu and Yun Hua and Wei Yin and Xiangfeng Wang and Hongyuan Zha and Bo Jin},
  title = {{TextAtari: 100K Frames Game Playing with Language Agents}},
  year = {2025},
  eprint = {2506.04098},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.04098},
}
Figure