TL;DR
The authors present AngyBER, an intelligent agent for the game Angry Birds that treats target selection as a regression problem. By representing game scenes as hierarchical tree structures and employing an ensemble of 35 Bayesian linear regression models (one for each bird-material pair), the agent learns to predict rewards and optimize its shots through online learning and a multi-armed bandit selection strategy.
What Problem Does This Paper Address?
Playing Angry Birds autonomously is surprisingly difficult for AI. The game features a continuous action space (slingshot angles and tap timing), complex physics, and noisy object detection. Previous AI approaches often struggled with extremely large feature spaces or required labor-intensive preprocessing to separate "winning" shots from "losing" ones.
The authors aim to bridge this gap by creating a framework that can efficiently represent the game state and learn optimal strategies on the fly, without needing a perfect physical model of the environment.
Methods
The AngyBER framework consists of five main stages, as illustrated in the flow diagram below:
-
Tree-Structure Representation: Instead of processing raw pixels, the agent builds a tree where each node represents a cluster of adjacent objects of the same material (e.g., wood, stone, ice). This provides a topological map of the structure. Each node is evaluated based on three features: its "personal weight" (area $\times$ material coefficient), the cumulative weight of its parent nodes, and its distance to the nearest pig.
Figure 2: The proposed tree structure consisting of 16 nodes at the first game level. -
Feasibility Examination: The agent calculates two trajectories—a direct shot and a high-arching shot—to determine if a target node is actually reachable or blocked by obstacles like mountains.
- Bayesian Ensemble Regression: The core of the decision engine. The authors assume that the effectiveness of a bird depends heavily on the material it hits. They maintain 35 separate Bayesian linear regression models (7 materials $\times$ 5 bird types). Each model predicts the expected reward for hitting a specific node.
- Target Selection (UCB): To decide which node to shoot at, the agent uses the Upper Confidence Bound (UCB) algorithm. This treats the different target nodes as "arms" in a multi-armed bandit problem, balancing the exploitation of known high-reward targets with the exploration of uncertain ones.
- Online Learning: After every shot, the agent receives a reward (score). It uses a recursive estimation framework to update the parameters of the specific regression model used for that shot, allowing the agent to improve its accuracy in real-time.
Datasets
The agent was evaluated on the first 21 levels of the "Poached Eggs" episode, a standard benchmark in the Angry Birds AI community. The authors compared AngyBER’s performance against:
- The Naive Agent provided by the AIBirds competition organizers.
- The published high scores from the IJCAI 2013 Angry Birds Competition participant teams.
Key Insights and Ideas
- Hierarchical Abstraction: By using a tree structure (bottom-up construction), the agent reduces a complex visual scene into a manageable set of potential targets with meaningful physical features.
- Specialization via Ensembles: Rather than one giant model trying to learn everything, the ensemble approach allows the agent to learn that "Yellow birds are great against wood" and "Blue birds are best for ice" through separate, specialized regressors.
- Bandits in Physics: Applying UCB to a physics-based game is a clever way to handle the uncertainty of noisy object detection and inaccurate physical simulations. It prevents the agent from getting stuck repeating the same failing shot.
Key Results
AngyBER demonstrated significant improvements over the baseline and competitive performance against state-of-the-art agents:
- Reliability: The agent successfully passed every level in every test run.
- High Scores: AngyBER achieved the highest score in 7 out of the 21 levels when compared to all participants of the IJCAI 2013 competition.
- Efficiency: The mean total score across all levels was approximately equal to the highest total score achieved in the 2013 competition.
- Speed: The agent required only about 40 minutes to complete the 21-level episode, well within the competition's time limits.
Limitations and Future Work
The authors identify a few areas for improvement:
- Feature Engineering: While the current three features are effective, the authors suggest that richer topological features could further improve the state representation.
- Model Complexity: A general drawback of regression is determining the right number of basis functions. The authors propose using Sparse Bayesian regression in the future to automatically select the most significant features and prevent overfitting.
- Generalization: While preliminary tests on levels 22-42 were promising, more systematic testing across different game episodes is needed to prove the agent's versatility.
Summary updated