TL;DR
SARFA (Specific and Relevant Feature Attribution) is a novel saliency method designed to help humans understand why Reinforcement Learning (RL) agents make specific choices. By filtering out "distractor" features that change the overall game state but don't actually drive the specific move, SARFA produces much cleaner, more interpretable heatmaps for complex environments like Chess, Go, and Atari.
What Problem Does This Paper Address?
Deep Reinforcement Learning agents are notoriously "black boxes." To trust them in real-world applications, we need to understand why they take certain actions. Saliency maps—heatmaps that highlight which parts of the input (like pixels on a screen or pieces on a board) influenced a decision—are the standard tool for this.
However, existing saliency methods for RL suffer from a "noise" problem. They often highlight features that are generally important to the game but irrelevant to the specific move being made. For example, in Chess, a Queen is almost always "important" to the overall value of a position. Traditional methods might highlight the Queen even if the agent is currently executing a checkmate using only a Rook and a Knight. This makes it hard for a human to distinguish between the agent's long-term evaluation and its immediate tactical reasoning.
Methods
The authors propose SARFA, a perturbation-based approach. Like previous methods, it works by slightly altering the input (e.g., removing a chess piece or blurring a group of pixels) and observing how the agent’s internal "preferences" (Q-values) change.
The core innovation lies in how SARFA calculates the saliency score by balancing two distinct properties:
- Specificity ($\Delta p$): This measures how much the perturbation affects the relative probability of the chosen action. If removing a piece makes the chosen move look much worse compared to other options, that piece is "specific" to that move.
- Relevance ($K$): This ensures the perturbation doesn't just cause chaos. It uses KL-Divergence to check if the relative ordering of all other actions remains stable. If removing a piece changes the values of every possible move equally, it’s a general feature, not a relevant one for explaining the specific action.
SARFA combines these using a harmonic mean, ensuring a feature is only highlighted if it is both highly specific and highly relevant.
Datasets
The researchers evaluated SARFA across several domains:
- Board Games: Chess (using Stockfish 10 and LeelaZero) and Go (MiniGo).
- Atari Games: Breakout, Pong, and Space Invaders.
- The Chess Saliency Dataset: A major contribution of this paper is a new benchmark consisting of 100 chess puzzles. For each puzzle, three human experts (ELO > 2200) marked the pieces essential to the correct move, providing a "ground truth" for evaluating saliency algorithms.
Key Insights and Ideas
- The Softmax Shift: Moving from raw Q-values (which represent expected reward) to a softmax distribution (which represents relative preference) is crucial. It allows the algorithm to ignore features that change the "score" of the game but don't change the "logic" of the move.
- Filtering Distractors: SARFA successfully ignores high-value "distractor" pieces that previous methods struggled with.
- Human-Centric Design: The authors emphasize that saliency isn't just a math problem; it's a communication problem. An explanation is only good if a human can use it to solve a problem faster or more accurately.
Key Results
- Better Accuracy: On the new Chess Saliency Dataset, SARFA achieved an AUC of 0.88, significantly outperforming previous state-of-the-art methods (which scored 0.72 and 0.53).
- Human Performance Boost: In a study with 40 chess players, those using SARFA saliency maps solved puzzles with 72.41% accuracy, compared to only 56.67% for those with no saliency maps.
- Efficiency: Players using SARFA solved puzzles 31% faster than those using competing saliency methods, proving that SARFA provides "cleaner" information that is easier for the human brain to process.
- Qualitative Clarity: Visualizations show that in Atari Breakout, SARFA precisely highlights the "tunnel" the agent is trying to build. Similarly, in games like Pong, SARFA provides a much sharper focus on the immediate action compared to the blurry, broad highlights of older methods.
Limitations and Future Work
- The "Nothingness" Problem: SARFA relies on removing existing features. It cannot currently explain why an agent didn't move to an empty square, or the importance of an open file in chess, because you can't "perturb" something that isn't there.
- Invalid States: Perturbing a state (like removing a King) can lead to illegal game positions that the agent was never trained on, potentially leading to erratic Q-values.
- Feature Dependencies: The current model perturbs features one by one. Future work could look at "groups" of features to understand complex dependencies (e.g., how a battery of two Rooks works together).
Summary updated