通过对比AI直接操作与生成代码自主运行,揭示了构建独立程序在实时控制中的潜力。
Researchers gave AI coding agents access to games like Sekiro, Black Myth: Wukong, Forza Horizon 5, and Balatro. Then asked them to write programs that could play without AI assistance. 🎮
Meet Coding4Games, a new benchmark investigating whether coding agents can turn their observations of modern games into autonomous game-playing software.
And the results reveal an interesting distinction between playing a game with AI and writing code that knows how to play it.
🧠 Here's the challenge.
Traditional game-playing AI agents repeatedly send screenshots to a language model.
The model analyzes the screen, decides which button to press, and sends another action.
That approach is expensive and often too slow for real-time games.
Coding4Games takes a different approach.
The coding agent gets a development phase.
During this phase, it can:
▪️ Observe the game through screenshots.
▪️ Control it using ordinary keyboard and mouse inputs.
▪️ Write and execute programs.
▪️ Test different strategies.
▪️ Analyze failures and revise its code.
Once development ends, the final program is frozen.
Then comes the real test.
The program must play independently, with no further language-model inference.
🎮 The benchmark includes 15 games across five categories.
▪️ Action: Black Myth: Wukong, Sekiro, The King of Fighters '98.
▪️ Strategy: Balatro, Slay the Spire, Kingdom Rush 5.
▪️ Precision control: Forza Horizon 5, Riders Republic, NBA 2K25.
▪️ Movement: TrackMania, Brotato, BattleBlock Theater.
▪️ Multi-step tasks: Overcooked! 2, Aimlab, Palworld.
📊 How well did the agents perform?
The researchers evaluated 12 coding agents.
Across the 15 games:
▪️ The best generated program for each game outperformed the strongest GUI-agent baseline on 13 games.
▪️ It tied the GUI baseline on one additional game.
▪️ Human players still outperformed all evaluated agents on 10 games.
▪️ The best generated program matched or exceeded human performance on five games.
There's an important caveat: these comparisons select the best program separately for each game, rather than measuring one universal AI player.
🔬 What did the researchers learn?
More development time and additional test runs didn't always produce better programs.
Agents frequently observed a failure but struggled to turn that information into an effective strategic improvement.
The bigger idea?
Instead of asking AI to play every frame, use AI to build a program that can operate independently.
That's relevant far beyond games, including robotics, automation, and long-running autonomous systems.
Research:
https://arxiv.org/abs/2611.31974
#CodingAgents #GameAI #AIBenchmarks #AIResearch
来源:CuteGuy☣️ · x.com