Influence of Search Depth on Position Evaluation

Slides:



Advertisements
Similar presentations
Adversarial Search Chapter 6 Sections 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
Advertisements

Artificial Intelligence 5. Game Playing
Deriving Concepts and Strategies from Chess Tablebases Matej Guid, Martin Možina, Aleksander Sadikov, and Ivan Bratko Faculty of Computer and Information.
Adversarial Search Chapter 6 Section 1 – 4. Types of Games.
Adversarial Search We have experience in search where we assume that we are the only intelligent being and we have explicit control over the “world”. Lets.
Adversarial Search Reference: “Artificial Intelligence: A Modern Approach, 3 rd ed” (Russell and Norvig)
Learning Positional Features for Annotating Chess Games: A Case Study Matej Guid, Martin Mozina, Jana Krivec, Aleksander Sadikov and Ivan Bratko CG 2008.
Computer analysis of World Chess Champions Matej Guid and Ivan Bratko CG 2006.
Artificial Intelligence Adversarial search Fall 2008 professor: Luigi Ceccaroni.
CS 484 – Artificial Intelligence
Adversarial Search Chapter 6 Section 1 – 4.
Adversarial Search Chapter 5.
"Programming a Computer to Play Chess" A presentation of C. Shannon's 1950 paper by Andrew Oldag April
Artificial Intelligence for Games Game playing Patrick Olivier
Adversarial Search 對抗搜尋. Outline  Optimal decisions  α-β pruning  Imperfect, real-time decisions.
1 Adversarial Search Chapter 6 Section 1 – 4 The Master vs Machine: A Video.
Games CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Chess AI’s, How do they work? Math Club 10/03/2011.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.6: Adversarial Search Fall 2008 Marco Valtorta.
Adversarial Search: Game Playing Reading: Chess paper.
Monte Carlo Go Has a Way to Go Haruhiro Yoshimoto (*1) Kazuki Yoshizoe (*1) Tomoyuki Kaneko (*1) Akihiro Kishimoto (*2) Kenjiro Taura (*1) (*1)University.
Factors Affecting Diminishing Returns for Searching Deeper Matej Guid and Ivan Bratko CGW 2007.
G OAL -O RIENTED C ONCEPTUALIZATION OF P ROCEDURAL K NOWLEDGE Martin Možina, Matej Guid, Aleksander Sadikov, Vida Groznik, Ivan Bratko Artificial Intelligence.
Adversarial Search CS30 David Kauchak Spring 2015 Some material borrowed from : Sara Owsley Sood and others.
Game Playing.
 Summary  How to Play Go  Project Details  Demo  Results  Conclusions.
Adversarial Search Chapter 6 Section 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
Application of Artificial Intelligence to Chess Playing Jason Cook Capstone Project.
For Friday Finish chapter 6 Program 1, Milestone 1 due.
GAME PLAYING 1. There were two reasons that games appeared to be a good domain in which to explore machine intelligence: 1.They provide a structured task.
Game tree search Chapter 6 (6.1 to 6.3 and 6.6) cover games. 6.6 covers state of the art game players in particular. 6.5 covers games that involve uncertainty.
ARTIFICIAL INTELLIGENCE (CS 461D) Princess Nora University Faculty of Computer & Information Systems.
Adversarial Search Chapter 6 Section 1 – 4. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 5 Adversarial Search (Thanks Meinolf Sellman!)
Adversarial Search Chapter 5 Sections 1 – 4. AI & Expert Systems© Dr. Khalid Kaabneh, AAU Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
ADVERSARIAL SEARCH Chapter 6 Section 1 – 4. OUTLINE Optimal decisions α-β pruning Imperfect, real-time decisions.
Why Minimax Works: An Alternative Explanation Mitja Luštrek 1, Ivan Bratko 2 and Matjaž Gams 1 1 Jožef Stefan Institute, Department of Intelligent Systems.
1 Chapter 6 Game Playing. 2 Chapter 6 Contents l Game Trees l Assumptions l Static evaluation functions l Searching game trees l Minimax l Bounded lookahead.
5/4/2005EE562 EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 9, 5/4/2005 University of Washington, Department of Electrical Engineering Spring 2005.
Artificial Intelligence AIMA §5: Adversarial Search
Adversarial Search and Game-Playing
EA C461 – Artificial Intelligence Adversarial Search
Instructor: Vincent Conitzer
Adversarial Search and Game Playing (Where making good decisions requires respecting your opponent) R&N: Chap. 6.
Pengantar Kecerdasan Buatan
Optimizing Minmax Alpha-Beta Pruning Real Time Decisions
CSC 110 – Fluency in Information Technology Chess
Minimax Pathology Mitja Luštrek 1, Ivan Bratko 2 and Matjaž Gams 1
Adversarial Search Chapter 5.
Expectimax Lirong Xia. Expectimax Lirong Xia Project 2 MAX player: Pacman Question 1-3: Multiple MIN players: ghosts Extend classical minimax search.
Dakota Ewigman Jacob Zimmermann
CSCI 5582 Artificial Intelligence
Game Playing in AI by: Gaurav Phapale 05 IT 6010
Heuristic AI for XiangQi
Adversarial Search.
Training Neural networks to play checkers
Artificial Intelligence
Minimax Pathology Mitja Luštrek 1, Ivan Bratko 2 and Matjaž Gams 1
Agent-Centered Search
NIM - a two person game n objects are in one pile
Artificial Intelligence
Instructor: Vincent Conitzer
Pruned Search Strategies
Expectimax Lirong Xia.
Instructor: Vincent Conitzer
Thinking too much: Pathology in pathfinding
Adversarial Search CS 171/271 (Chapter 6)
CS51A David Kauchak Spring 2019
Minimax Pathology and Real-Number Minimax Model
Adversarial Search Chapter 6 Section 1 – 4.
Presentation transcript:

Influence of Search Depth on Position Evaluation heuristic search Matej Guid, Ivan Bratko Faculty of Computer and Information Science University of Ljubljana, Slovenia The Fifteenth International Conference on Advances in Computer Games 2017 ACG 2017: Leiden, Netherlands, July 3-5, 2017

The Turing Test for Chess Engines White to move. What would you play? What would computers play?

Outline IMPACT ON PRACTICE AND THEORY OF GAME PLAYING Why minimaxed heuristic evaluations should not respect the minimax relation? Empirical evidence IMPACT ON PRACTICE AND THEORY OF GAME PLAYING searching to variable depths revisited decision changes with deeper search computer analysis of chess games detecting fortresses in chess

The Minimax Relation ... the principal variation ... ... ... ... ... ... ... ... ... ... ... ... ... ... game-theoretic values of positions respect the minimax relation

Do chess engines approximate some unknown true position value? Chess Engines and Position Evaluation Heuristic values are supposed to reflect goodness of a position… or position’s “worth”, “merit”, “strength”, “quality”, or “promise”. Do chess engines approximate some unknown true position value?

“True” Values in Chess Games chess players accepted the centipawn as the unit used as a measure of advantage +1.15 according to Houdini

WHAT ARE “TRUE” POSITION VALUES!? “True” Values in Heuristic Search Papers several examples of heuristic values approaching “true” values in the literature Luštrek, M. et al. "Is real-valued minimax pathological?." Artificial Intelligence 170.6-7 (2006): 620-642. WHAT ARE “TRUE” POSITION VALUES!? … and it is clearly not the game theoretical values what everyone seem to have in mind!

Searching Deeper ... the principal variation ... ... ... ... ... ... ... ... ... ... ... ... ... ... Should minimaxed heuristic values respect the minimax relation? Do minimaxed heuristic values approximate the true position value?

A Curious Phenomenon EXPERIMENT RYBKA 2.1c 32-bit (one of the strongest engines in 2006) assigned the same heuristic evaluations to all winning positions in this elementary endgame (+4.92) this phenomenon only occurred at fixed search depths of 4 or more plies EXPERIMENT 100 randomly chosen mate-in-16 positions black player defending optimally (using tablebases) the program searched to 4, 5, … , 12 plies even at 12-ply search the program often failed to deliver checkmate (!) however, 2-ply search (with variable evaluations) checkmated in 100% cases

+ = _ Progress Achieving Play the winning player should be increasing the advantage ≠ advantage-preserving play + evaluation = _ depth

Experiment a large number of chess positions was divided into six groups based on evaluations qualitatively similar results were obtained with different chess engines

Experiment with Won Positions backed-up (minimaxed) evaluations tend to increase with depth of search the evaluations of better moves on average increase more rapidly

Experiment with Balanced Positions backed-up (minimaxed) evaluations tend to approach to zero with depth of search as before, the positions were chosen based on the evaluation at the highest depth

Outline IMPACT ON PRACTICE AND THEORY OF GAME PLAYING Why minimaxed heuristic evaluations should not respect the minimax relation? Empirical evidence IMPACT ON PRACTICE AND THEORY OF GAME PLAYING searching to variable depths revisited decision changes with deeper search computer analysis of chess games detecting fortresses in chess

?? Search to Variable Depth Revisited White to move. Which move is stronger? a) 40. a5-a6 +3.89 at depth 15 b) 40. Nc7-e6 +5.29 at depth 26 “higher value and more reliable search depth” ?? Evaluations obtained at different depths are not directly comparable!

Decision Changes with Deeper Search in positions with decisive advantage there are far less decision changes with depth decision changes with depth evaluation changes with depth Less decision changes with deeper search in positions with advantage for one side are due to bigger differences in evaluations. Guid M., Bratko I. Factors Affecting Diminishing Returns for Searching Deeper. ICGA Journal, Vol. 30, No. 2, pp. 75-84, 2007.

x Computer Analysis of Chess Games the scores of computer analysis, reflecting the champions‘ performance based on the evaluation of individual moves Should the analysis be: time-limit based fixed-depth based ? x Guid M., Bratko I. Computer Analysis of World Chess Champions. ICGA Journal, Vol. 29, No. 2, pp. 65-73, 2006.

Detecting Fortresses in Chess White to play and draw. How could chess engines discover the path to draw?

Experiment: Detecting Fortresses in Chess go deep experiment with fortresses from Dvoretsky’s Chess Endgame Manual Fortress: minimaxed evaluations cease to increase or decrease with deeper search.

Fortresses Are Not a Rare Occurrence in Chess Karsten Müller: Knight vs bishop - the eternal duel. ChessBase, July 4, 2017.

Conclusions IMPACT ON PRACTICE AND THEORY OF GAME PLAYING Game-theoretic values of positions respect the minimax relation, but minimaxed heuristic evaluations should not respect it! They should change with deeper search. Heuristic evaluation functions of chess engines do have this property that enables progress achieving play. IMPACT ON PRACTICE AND THEORY OF GAME PLAYING Evaluations obtained at different depths are not directly comparable! Less decision changes with deeper search in positions with advantage for one side are due to bigger differences in evaluations. In assessing players’ performance, computer analysis of chess games should be fixed-depth (not time-limit) based. In the positions that could be regarded as fortresses, minimaxed evaluations cease to increase or decrease with deeper search.

Thank you