Search arXiv⌕ Search

arXiv subjects

Muhammad Khaquan

Publications and source records attributed to Muhammad Khaquan.

2 recordsLinked to original sources

GameSWE: Evaluating Coding Agents in Live Game Runtimes

Coding agents are increasingly evaluated on repository-level tasks, where a change is judged by the repository's own tests. Yet much software runs inside a live host program, where correctness depends on runtime state, lifecycle events, and third-party components loaded alongside it. We introduce GameSWE, a benchmark of 150 repair and construction tasks built from open-source mods for 12 popular games across five programming languages. Each submission is compiled, loaded into the real game or its dedicated server together with the pinned third-party mods it depends on, and judged by fail-to-pass and pass-to-pass tests executed in the live runtime, without mocks or LLM judges. Across seven frontier and open-weight models, the best agent resolves 69.0% of tasks while three models remain at or below 25.0%, and even the best agent's per-game rate ranges from 40.0% to 93.3%. Our analysis shows that 70.0% of unresolved attempts end with the agent submitting its work as complete, and in at least 31.0% the agent reports that its own checks pass, yet the submission fails in the runtime, with failures concentrated at the boundary between code and host: interfaces the ecosystem does not provide, host conventions beyond the code, and logic not connected to the game's lifecycle. GameSWE provides a reproducible testbed for coding agents whose code must work where it runs.

cs.CL↗

Beyond Uniform Query Distribution: Key-Driven Grouped Query Attention

The Transformer architecture has revolutionized deep learning through its Self-Attention mechanism, which effectively captures contextual information. However, the memory footprint of Self-Attention presents significant challenges for long-sequence tasks. Grouped Query Attention (GQA) addresses this issue by grouping queries and mean-pooling the corresponding key-value heads - reducing the number of overall parameters and memory requirements in a flexible manner without adversely compromising model accuracy. In this work, we introduce enhancements to GQA, focusing on two novel approaches that deviate from the static nature of grouping: Key-Distributed GQA (KDGQA) and Dynamic Key-Distributed GQA (DGQA), which leverage information from the norms of the key heads to inform query allocation. Specifically, KDGQA looks at the ratios of the norms of the key heads during each forward pass, while DGQA examines the ratios of the norms as they evolve through training. Additionally, we present Perturbed GQA (PGQA) as a case-study, which introduces variability in (static) group formation via subtracting noise from the attention maps. Our experiments with up-trained Vision Transformers, for Image Classification on datasets such as CIFAR-10, CIFAR-100, Food101, and Tiny ImageNet, demonstrate the promise of these variants in improving upon the original GQA through more informed and adaptive grouping mechanisms: specifically ViT-L experiences accuracy gains of up to 8% when utilizing DGQA in comparison to GQA and other variants. We further analyze the impact of the number of Key-Value Heads on performance, underscoring the importance of utilizing query-key affinities. Code is available on GitHub.

cs.CV↗