ProxyWar: Dynamic Assessment of LLM Code Generation in Game Arenas
The paper introduces ProxyWar, a novel framework that evaluates large language model code generation by embedding agents in competitive game environments to reveal significant discrepancies between static benchmark scores and actual dynamic performance, thereby advocating for richer, competition-based assessment methods.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are hiring a team of chefs to cook a meal. Currently, the way we test these chefs (which represent AI language models) is by giving them a recipe and asking, "Did you follow the instructions?" If they hand you a dish that looks like the picture in the book, we give them a passing grade. This is like the current "static benchmarks" used to test AI code generators.
But here's the problem: Just because a chef followed the recipe doesn't mean the food tastes good, doesn't mean they cooked it fast enough, and doesn't mean they can handle it if the oven breaks or if a customer sends the dish back.
ProxyWar is a new way of testing these AI chefs. Instead of just checking if they followed the recipe, ProxyWar puts them in a competitive kitchen arena where they have to cook against each other in real-time.
Here is how the paper explains this new framework using simple concepts:
1. The Arena: A Game Board
Instead of a quiet test kitchen, ProxyWar sets up a game board. The AI models are asked to write code that creates a "player" (an agent) to play various games, like Sudoku, Tic-Tac-Toe, or Poker.
- The Setup: The AI is given the rules of the game and asked to write the code for a player.
- The Twist: It's not just about playing the game; it's about playing better than the other AI players.
2. The Three Rounds of Testing
The paper describes a three-step process to see if the AI is actually good, not just lucky:
- Round 1: The Safety Check (Unit Testing)
Before the game starts, the code is checked to make sure it doesn't crash. Did the chef remember to turn on the stove? Does the code have the right structure? If the code fails here, it gets sent back to the AI with a note saying, "Fix this error," and the AI tries again. This tests the AI's ability to debug itself. - Round 2: The Tournament (The Fight)
Once the code passes the safety check, the AI players are thrown into the arena. They play head-to-head against other AIs.- Why this matters: In a normal test, two AIs might both "pass" because they both followed the rules. But in the arena, one might be slow, make silly mistakes when the game gets hard, or get confused by a tricky opponent. ProxyWar measures who actually wins, not just who followed the rules.
- Round 3: The Scoreboard (TrueSkill)
Instead of a simple "Pass/Fail," the system uses a ranking system (like in video games) to give every AI a skill rating. This rating tells us not just if the code works, but how efficient, stable, and smart it is compared to the others.
3. What They Discovered
The researchers tested many different AI models (some made by big tech companies, some open-source) using this new method. They found some surprising things that old tests missed:
- The "Fast but Dumb" vs. "Slow but Smart" Trap: Some AIs wrote code that was theoretically perfect but so slow that they lost the game because they took too long to think. Old tests would have said, "Great job, perfect code!" but ProxyWar said, "You lost because you were too slow."
- Specialists vs. Generalists: Some AIs were great at writing code for simple tasks but fell apart when the game got complex or tricky. Others were good at strategy but bad at fixing their own mistakes.
- The "Memorization" Problem: Some AIs seemed to have memorized the answers to simple puzzles. But when the game changed slightly or they had to play against a tricky opponent, those memorized answers failed. ProxyWar exposed this weakness because the games were dynamic and unpredictable.
The Big Picture
The paper argues that we can't just ask an AI, "Can you write code that passes a test?" We need to ask, "Can you write code that survives and wins in a messy, competitive, real-world situation?"
ProxyWar is like a gladiator arena for code. It doesn't just check if the code is alive; it checks if the code is tough, fast, and smart enough to beat the competition. The authors believe this gives us a much clearer picture of which AI is actually ready for the real world.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.