Lecture 06.1: Game Theory and Nash Equilibrium
Introduction to Adversarial Search, Game Theory, Payoff Matrices, Dominant Strategies, and Nash Equilibrium.
Adversarial search algorithms are fundamental in AI when agents operate in environments with competing interests and conflicting goals. These algorithms model strategic decision-making where each agent's success depends on anticipating and countering the actions of others.
Game Theory Foundation
Game theory studies mathematical models of strategic interactions among rational decision-makers. It helps model scenarios where an agent's decisions influence—and are influenced by—the actions of others.
Games can be:
- Cooperative: Players can form enforceable agreements.
- Competitive: No binding commitments exist; players act independently. (Historically developed around zero-sum games, where one player's gain is the other's loss).
Single Move Games
In single-move (simultaneous) games, all players choose their actions independently and without prior knowledge of others' choices. The outcome is determined by the combination of these single-shot actions.
Important Terminologies:
- Players: Agents making decisions (humans, AI).
- Actions: Choices available to the players.
- Payoff Function: A mapping that assigns a numerical utility (reward/penalty) based on the combination of actions.
- Strategic Form (Normal Form): Organizing payoffs in a matrix format.
The Prisoner's Dilemma
A classic example of a single-move game is the Prisoner's Dilemma. Consider two agents, Alice and Bob.
| Alice: Testify | Alice: Refuse | |
|---|---|---|
| Bob: Testify | ||
| Bob: Refuse |
To solve this, we look for solution concepts—subsets of outcomes that rational agents would gravitate towards.
Dominant Strategy
- Strongly Dominates: Strategy is strictly better than regardless of what the other player does.
- Weakly Dominates: Strategy is better than in at least one profile, and no worse in any other.
In the Prisoner's Dilemma, "Testify" is a dominant strategy for both Alice and Bob. No matter what Bob does, Alice gets a better payoff by testifying, and vice versa.
Therefore, the Dominant Strategy Equilibrium is for both players to testify, resulting in a payoff of .
Pareto Optimality
An outcome is Pareto optimal if there is no other outcome that all players would prefer. In our matrix, the outcome (both refuse) is strictly better for both players than the outcome. Thus, the equilibrium is Pareto dominated by .
Nash Equilibrium
A strategy profile forms a Nash Equilibrium if no player can benefit by unilaterally switching strategies, given that every other player sticks with their current strategy.
- Every game has at least one Nash equilibrium.
- A dominant strategy equilibrium is always a Nash equilibrium, but the reverse is not true.
- As seen in the Prisoner's Dilemma, a Nash equilibrium is not necessarily Pareto optimal. Rational agents might end up at a worse global outcome because neither can risk unilaterally switching to "Refuse" without being heavily penalized .
Games Without Dominant Strategies
Sometimes, optimal choices completely depend on mutual coordination.
| Bob: Football | Bob: Opera | |
|---|---|---|
| Alice: Football | ||
| Alice: Opera |
In the "Battle of the Sexes" game above, there are no dominant strategies. However, there are two Nash Equilibria: Both choosing Football, or both choosing Opera. Coordination is the key to achieving these equilibria.
Lecture 05: Heuristic Functions and Optimality
A deep dive into heuristic evaluation, admissibility, consistency, dominance, and generating heuristics from relaxed problems using the 8-puzzle as an example.
Lecture 06.2: Minimax and Alpha-Beta Pruning
Understanding sequential games, the Minimax algorithm for zero-sum games, and optimizing search trees with Alpha-Beta Pruning.