GBQA: A Game Benchmark for Evaluating LLMs as Quality Assurance Engineers

Shufan Jiang, Chios Chen, Zhiyang Chen

TL;DR

This paper introduces GBQA, a new benchmark for evaluating Large Language Models (LLMs) in autonomously discovering bugs within interactive game environments. Despite impressive progress in code generation, LLMs struggle with bug discovery, a critical aspect of software quality assurance, as demonstrated by their significantly lower performance on GBQA compared to code-fixing tasks.

What Problem Does This Paper Address?

The current paradigm of LLM-assisted software development primarily focuses on code generation and bug fixing, where the LLM is given explicit instructions or bug reports. However, a crucial part of the software development lifecycle – autonomous bug discovery – remains largely unexplored. This involves an agent proactively identifying "something is wrong" without explicit guidance, requiring complex exploration of dynamic environments and reasoning about the gap between expected and actual behavior. This is significantly harder than code generation or fixing, as it demands independent problem-finding capabilities. The paper aims to bridge this gap by creating a benchmark to evaluate and improve LLMs' abilities in this area.

Methods

The authors introduce GBQA (Game Benchmark for Quality Assurance), a novel benchmark designed for evaluating LLMs in autonomous bug discovery.

  • Benchmark Construction: GBQA is built using a multi-agent system that automatically generates 30 diverse game environments and injects 124 human-verified bugs. Human QA experts are involved to ensure the correctness of bug annotations and categorize them into three difficulty levels: Easy, Medium, and Hard, based on the reasoning required for detection.
  • Baseline Agent: A baseline interactive agent is developed to test LLMs. This agent is equipped with:
  • ReAct Paradigm: Interleaving explicit reasoning with environment actions for exploration.
  • Verification-based Reflection: A step-level reflection mechanism to critically evaluate observed behavior against expected game rules.
  • Hierarchical Memory Module: A system that separates short-term trajectory tracking (in-session memory) from long-term experiential accumulation (cross-session memory) to handle long-horizon bug discovery within LLMs' context window limitations.
  • Evaluation: A critic agent is used to automatically evaluate the LLM's reported bugs against the ground truth, primarily using Recall as the metric.

Datasets

The paper introduces the GBQA dataset, comprising:

  • 30 diverse game environments.
  • 124 human-verified bugs, categorized into Easy, Medium, and Hard difficulty levels.

This dataset is novel and specifically designed for evaluating autonomous bug discovery in interactive settings, differing from existing benchmarks that focus on code generation or fixing.

Key Insights and Ideas

  • Bug Discovery is Fundamentally Harder: LLMs, despite their prowess in code generation and fixing (e.g., high scores on SWE-Bench Verified), perform significantly worse on autonomous bug discovery tasks. This highlights a critical gap in their capabilities.
  • Game Environments as a Testbed: Interactive games are ideal for this task due to their dynamic state management, user input handling, and clear action/state transitions, making them representative of real-world software engineering challenges.
  • Long-Horizon Reasoning is Key: Harder bugs require sustained tracking of state over extended interactions, a capability that current LLMs struggle with, even with advanced memory mechanisms.
  • Quality Assurance Mode Outperforms Player Exploring Mode: Providing agents with design specifications and source code (Quality Assurance Mode) significantly improves bug detection, suggesting that explicit knowledge aids in establishing expectations.
  • Reasoning Capability Over Scale: For bug discovery, models with stronger reasoning capabilities (e.g., "Thinking" variants) often outperform larger models that rely solely on scale, indicating that the how of processing is more critical than just the how much.

Key Results

  • Challenging Benchmark: Even the best-performing model, Claude-4.6-Opus in thinking mode with 500 interaction steps, only achieved 48.39% Recall on GBQA. This is substantially lower than their performance on code-fixing benchmarks like SWE-Bench Verified (often exceeding 80%).
  • Performance Gap: Table 4 clearly illustrates this gap, showing models scoring around 80% on SWE-Bench Verified dropping to below 50% on GBQA.
  • Impact of Step Budget: Bug discovery generally improves with more interaction steps, especially for harder bugs, which show no clear saturation trend even at 500 steps.
  • Memory Module Benefits: The hierarchical memory module (in-session and cross-session) significantly improves performance by enabling systematic exploration and preventing redundant testing.

Limitations and Future Work

  • Current LLM Limitations: The paper acknowledges that current LLMs are susceptible to hallucinations, logical inconsistencies, and ambiguity in long-horizon tasks, hindering their bug discovery capabilities. They also lack systematic QA-specific training.
  • Future Work: The authors plan to extend GBQA to broader domains, incorporating multimodal perception and GUI interaction to better reflect real-world scenarios. They also aim to integrate autonomous bug discovery with code generation and fixing into a fully autonomous development pipeline.

Summary updated

BibTeX
@inproceedings{jiang2026gbqa,
  author = {Shufan Jiang and Chios Chen and Zhiyang Chen},
  title = {{GBQA: A Game Benchmark for Evaluating LLMs as Quality Assurance Engineers}},
  booktitle = {LLM Reasoning @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=8uWXFHZNNZ},
}
Figure