limited discrepancy and or search and its application to
play

Limited Discrepancy AND/OR Search and its Application to - PowerPoint PPT Presentation

Limited Discrepancy AND/OR Search and its Application to Optimization Tasks in Graphical Models Javier Larrosa Emma Roll on Rina Dechter UPC BarcelonaTech (Spain), University of California at Irvine (USA) larrosa@cs.upc.edu,


  1. Limited Discrepancy AND/OR Search and its Application to Optimization Tasks in Graphical Models Javier Larrosa Emma Roll´ on Rina Dechter UPC BarcelonaTech (Spain), University of California at Irvine (USA) larrosa@cs.upc.edu, erollon@cs.upc.edu, dechter@ics.uci.edu July 6, 2016 Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 1 / 15

  2. Motivation Graphical Model X set of variables f i ( X i ) set of ( local , X i ⊂ X ) cost functions . Min-Sum Problem � min X F ( X ) = f i ( X i ) i Applications: Image processing, Natural Language Processing, Bioinformatics, Planning, Resource Allocation, ... Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 2 / 15

  3. Motivation Solving Method: Depth-first Search Search Space OR tree AND/OR tree AND/OR graph Size (exp. on) n. of variables path width induced width LDS (on the OR tree) very successful anytime algorithm ( toulbar2 , daoopt ) Can we adapt LDS to AND/OR search spaces??? We show that LDSAO is faster than LDS on the min-sum problem. Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 3 / 15

  4. Depth-first Search (DFS) on an OR Tree 1 The search is guided by a heuristic h ( n ) 2 h ( n ) is usually good, but not perfect 3 Advantage: memory efficient 4 Drawback: early mistakes are fatal X 1 X 2 X 2 X 3 X 3 X 3 X 3 X 4 X 4 X 4 X 4 X 4 X 4 X 4 X 4 X 4 Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 4 / 15

  5. Limited Discrepancy Search (LDS) [Harvey and Ginsberg, 95] 1 Discrepancy: right turn (going against the heuristic) 2 Leaf discrepancies: number of right turns 3 There are � n � leaves with k discrepancies k 4 LDS: Search in increasing order of discrepancies 5 k -th iteration: visits leaves with k or less discrepancies X 1 X 2 X 2 X 3 X 3 X 3 X 3 X 4 X 4 X 4 X 4 X 4 X 4 X 4 X 4 X 4 0 1 1 2 1 2 2 3 1 2 2 3 2 3 3 4 Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 5 / 15

  6. Algorithm Function LDS() begin for k = 0 . . . n do if Probe( root , k ) then return true return false end Function Probe( node , k ) begin if isLeaf( node ) then return isGoal( node ) if k = 0 then return Probe( left( node ) , 0 ) else return ( Probe( right( node ) ,k − 1 ) or Probe( left( node ) ,k ) ) end Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 6 / 15

  7. Limited Discrepancy Search (LDS) 1 Successful in a number of domains 2 Several enhancements have been proposed (e.g. ILDS, DBDS,...) 3 In optimization problems (i.e, find best solution) LDS becomes an anytime algorithm Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 7 / 15

  8. AND/OR search trees [Nilsson, 80] 1 OR nodes: decision points 2 AND nodes: independent sub-problems 3 Solution tree 4 Depth-first AND/OR Search X 1 X 2 X 3 X 2 X 3 X 4 X 4 X 4 X 4 Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 8 / 15

  9. Limited Discrepancy AND/OR search (LDSAO) Definition Discrepancies of a leaf: right turns after OR nodes Discrepancies of a solution tree: maximum among branches X 1 X 2 X 3 X 2 X 3 0 1 1 2 X 4 X 4 X 4 X 4 0 1 1 2 1 2 2 3 1 There are O ( n · � h � ) solution trees with k discrepancies k 2 LDSAO: searches solution trees in increasing number of discrepancies Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 9 / 15

  10. LDSAO Function ProbeOr( nodeOr , k ) begin if k = 0 then return ProbeAnd( left( nodeOr ) , 0 ) return ProbeAnd( right( nodeOr ) ,k − 1 ) or ProbeAnd( left( nodeOr ) ,k ) end Function ProbeAnd( nodeAnd , k ) begin if isLeaf( nodeAnd ) then return isGoal( nodeAnd ) for nodeOr ∈ Successors ( nodeAnd ) do if not ProbeOr( nodeOr,k ) then return false return true end Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 10 / 15

  11. Graphical Models Search in Graphical Models can be represented with either OR trees or AND/OR trees (exploiting conditional independencies). F ( x 1 , . . . , x 4 ) = f ( x 1 , x 2 ) + f ( x 1 , x 3 ) + f ( x 1 , x 4 ) + f ( x 3 , x 4 ) X 1 X 1 X 2 X 3 X 2 X 3 X 2 X 2 X 3 X 3 X 3 X 3 X 4 X 4 X 4 X 4 X 4 X 4 X 4 X 4 X 4 X 4 X 4 X 4 X 4 Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 11 / 15

  12. Graphical Models Therefore, one can use LDS or LDSAO. Properties LDSAO iterates faster than LDS (because paths are shorter in the AND/OR tree) LDSAO visits more complete assignments than LDS (because of k discrepancies in AND/OR may map to > k discrepancies in OR) Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 12 / 15

  13. Experimental Results Any-time performance of LDS vs LDSAO on the min-sum problem Heuristic: static MBE [Kask and Dechter 99; Ihler et al 2011] (i-bound set to 10, 15, 16) Six benchmarks (138 instances) Time limit: 1 hour Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 13 / 15

  14. Experimental Results cat_paths_60_160_0000 LDS LDSAO 106.0 UB (in thousands) 105.5 2 3 4 105.0 5 5 7 9 2 3 4 104.5 6 8 1012 19 10 0 10 1 10 2 10 3 10 4 14 time (sec.) Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 14 / 15

  15. Future Work Overcome the static ordering limitation of AND/OR search (dynamic variable orderings seem to be better) Overcome the non-any-time nature of LDSAO during each iteration Improvement of search effort (i.e, unbalanced AND/OR trees) Add AND/OR to LDS improvements Javier Larrosa, Emma Roll´ on, Rina Dechter (UPC) LDSAO July 6, 2016 15 / 15

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend