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

limited discrepancy and or search and its application to
SMART_READER_LITE
LIVE PREVIEW

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,


slide-1
SLIDE 1

Limited Discrepancy AND/OR Search and its Application to Optimization Tasks in Graphical Models

Javier Larrosa Emma Roll´

  • n

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´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 1 / 15

slide-2
SLIDE 2

Motivation

Graphical Model

X set of variables fi(Xi) set of (local, Xi ⊂ X) cost functions.

Min-Sum Problem

min

X F(X) =

  • i

fi(Xi) Applications: Image processing, Natural Language Processing, Bioinformatics, Planning, Resource Allocation, ...

Javier Larrosa, Emma Roll´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 2 / 15

slide-3
SLIDE 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´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 3 / 15

slide-4
SLIDE 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

X2 X3 X1 X4 X4 X4 X4 X4 X4 X4 X4 X4 X3 X3 X3 X2

Javier Larrosa, Emma Roll´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 4 / 15

slide-5
SLIDE 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

k

  • leaves with k discrepancies

4 LDS: Search in increasing order of discrepancies 5 k-th iteration: visits leaves with k or less discrepancies

X2 X3 X1 X4 X4 X4 X4 X4 X4 X4 X4 X4 X3 X3 X3 X2

1 1 2 1 2 2 3 1 2 2 3 2 3 3 4

Javier Larrosa, Emma Roll´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 5 / 15

slide-6
SLIDE 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´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 6 / 15

slide-7
SLIDE 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´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 7 / 15

slide-8
SLIDE 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

X2 X1 X4 X4 X3 X2 X4 X4 X3

Javier Larrosa, Emma Roll´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 8 / 15

slide-9
SLIDE 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

X2 X1 X4 X4 X3

1 1 2 1 3 1 2 1 2 2

X2 X4 X4 X3

1 There are O(n ·

h

k

  • ) solution trees with k discrepancies

2 LDSAO: searches solution trees in increasing number of discrepancies Javier Larrosa, Emma Roll´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 9 / 15

slide-10
SLIDE 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´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 10 / 15

slide-11
SLIDE 11

Graphical Models

Search in Graphical Models can be represented with either OR trees or AND/OR trees (exploiting conditional independencies). F(x1, . . . , x4) = f (x1, x2) + f (x1, x3) + f (x1, x4) + f (x3, x4)

X2 X3 X1 X4 X4 X4 X4 X4 X4 X4 X4 X4 X3 X3 X3 X2 X2 X1 X4 X4 X3 X2 X4 X4 X3

Javier Larrosa, Emma Roll´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 11 / 15

slide-12
SLIDE 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´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 12 / 15

slide-13
SLIDE 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´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 13 / 15

slide-14
SLIDE 14

Experimental Results

100 101 102 103 104

time (sec.)

104.5 105.0 105.5 106.0

UB (in thousands)

2 3 4 5 2 3 4 5 6 7 8 9 1012 14 19

cat_paths_60_160_0000

LDS LDSAO

Javier Larrosa, Emma Roll´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 14 / 15

slide-15
SLIDE 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´

  • n, Rina Dechter

(UPC) LDSAO July 6, 2016 15 / 15