KAGE-Bench: Fast Known-Axis Visual Generalization Evaluation for Reinforcement Learning
This paper introduces KAGE-Bench, a high-speed JAX-native benchmark built on the KAGE-Env platform that systematically isolates and evaluates the impact of specific visual distribution shifts on reinforcement learning agents, revealing that background and photometric changes often cause catastrophic failure while agent-appearance shifts are more benign.
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 teaching a robot to play a video game like Super Mario. You train the robot by showing it thousands of hours of gameplay where the background is a blue sky, the ground is green grass, and the character is a red plumber. The robot learns to jump over pipes and avoid enemies.
Now, imagine you hand that same robot a new level. The game mechanics (the pipes, the gravity, the enemies) are exactly the same. But the sky is now pitch black, the ground is neon pink, and the plumber is wearing a clown suit.
In many cases, the robot will crash immediately. It doesn't know how to play the game anymore, even though the "rules" haven't changed. It got too used to the look of the game rather than the logic of it.
This paper introduces a new tool called KAGE-Bench to study exactly why this happens and how to fix it. Here is a breakdown of the paper using simple analogies:
1. The Problem: The "Distracted Student"
Current AI agents are like students who memorize the answers to a specific test rather than learning the subject. If you change the font on the test paper or the color of the ink, the student panics and fails, even if the questions are the same.
Previous tests tried to measure this, but they were messy. They would change the font, the paper color, and the difficulty of the questions all at once. It was impossible to tell if the student failed because of the font or because the math got harder.
2. The Solution: The "Controlled Lab" (KAGE-Env)
The authors built a new video game environment called KAGE-Env. Think of this as a super-fast, digital laboratory.
- The "Knob" Analogy: Imagine a control panel with 93 different knobs. Each knob controls one specific visual thing: the background color, the brightness, the shape of the player character, or the presence of floating distractors.
- The Magic: The researchers can turn only one knob at a time. They can change the background from black to white while keeping the game physics, the rewards, and the rules exactly the same.
- The Speed: This lab runs on a special technology (JAX) that is incredibly fast. It can run 33 million game steps per second on a single graphics card. To put that in perspective, it's like running a million parallel universes of this game simultaneously. This allows them to test thousands of visual changes in the time it used to take to test just a few.
3. The Benchmark: The "Known-Axis" Test (KAGE-Bench)
Using this fast lab, they created a standardized test called KAGE-Bench. Instead of throwing random changes at the AI, they created 34 specific "challenges."
Each challenge isolates one visual change (an "axis"). For example:
- The Background Test: Train on a black background, test on a noisy, static-filled background.
- The Filter Test: Train with normal colors, test with a "hue shift" that turns everything green.
- The Distractor Test: Train with a clear screen, test with floating shapes that look exactly like the player.
4. What They Discovered: The "Brittle" AI
They tested a standard AI (called PPO-CNN) against these challenges and found some surprising things:
- Some changes are deadly: If you change the background or add lighting filters (like making the screen look like it's underwater), the AI's performance crashes. It goes from winning 90% of the time to winning almost 0%.
- Some changes are harmless: Surprisingly, changing the appearance of the player character (like swapping a clown skin for a skeleton skin) didn't hurt the AI much. It could still play the game fine.
- The "Moving Forward" Trap: Sometimes, the AI kept moving forward (walking) even when it failed to finish the level. If you only looked at "how far it walked," you'd think it was doing okay. But if you looked at "did it finish the level?", it was actually failing completely. This shows that simple scores can hide big problems.
5. Why This Matters
The paper argues that to build robots or self-driving cars that work in the real world, we need to know exactly which visual changes break our AI.
- Old way: "Our robot failed in the rain. Maybe it's the rain? Maybe it's the mud? Maybe it's the light?" (Too many variables).
- KAGE-Bench way: "We know our robot fails specifically when the lighting changes to 'low contrast,' but it handles 'rain' just fine." (Precise diagnosis).
Summary
The authors built a super-fast, digital video game lab where they can tweak the visuals like a sound engineer adjusting equalizer knobs. They used this to prove that AI is currently very fragile: it can handle a new character skin but will crash if the background changes color. Their goal is to give researchers a clear, fast way to find these weaknesses so they can build AI that is truly robust, not just lucky.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.