Structural Tractability of Constraint Optimization Gianluigi Greco - - PowerPoint PPT Presentation

structural tractability of constraint optimization
SMART_READER_LITE
LIVE PREVIEW

Structural Tractability of Constraint Optimization Gianluigi Greco - - PowerPoint PPT Presentation

17th Int. Conf. on Principles and Practice of Constraint Programming Perugia, Italy, September 2011 Structural Tractability of Constraint Optimization Gianluigi Greco and Francesco Scarcello University of Calabria, Italy Constraint Optimization


slide-1
SLIDE 1

University of Calabria, Italy Gianluigi Greco and Francesco Scarcello 17th Int. Conf. on Principles and Practice of Constraint Programming Perugia, Italy, September 2011

Structural Tractability of Constraint Optimization

slide-2
SLIDE 2

Constraint Optimization Problems

Classically, CSP: Constraint Satisfaction Problem However, sometimes a solution is enough to “satisfy” (constraints), but not enough to make (users) “happy” Hence, several variants of the basic CSP framework:

E.g., fuzzy, probabilistic, weighted, lexicographic, penalty, valued, semiring-based, …

Any solution Any best (or at least good) solution

slide-3
SLIDE 3

Classical CSPs

Set of variables {X1,…,X26}

Set of constraint scopes r1h(X1, X2, X3, X4, X5) r1v(X1, X7, X11, X16, X20) P A R I S P A N D A L A U R A A N I T A r1h:

Set of constraint relations L I M B O L I N G O P E T R A P A M P A P E T E R r1v:

slide-4
SLIDE 4

Puzzles for Expert Players…

E.g., find the solution that minimizes the total number of vowels

  • ccurring in the words

The puzzle in general admits more than one solution...

slide-5
SLIDE 5

Typical Constraint Optimization Problems

Each mapping variable-value has a cost. Then, find an assignment:

Satisfying all the constraints, and Having the minimum total cost.

1 2 3 4 5 P A R I S P A N D A L A U R A A N I T A

slide-6
SLIDE 6

Typical Constraint Optimization Problems

Each mapping variable-value has a cost. Then, find an assignment:

Satisfying all the constraints, and Having the minimum total cost.

Each tuple has a cost. Then, find an assignment:

Satisfying all the constraints, and Having the minimum total cost.

1 2 3 4 5 P A R I S P A N D A L A U R A A N I T A Tuple-oriented problems (weighted CSPs) may be transformed easily to variable-value problems, without altering structural properties

slide-7
SLIDE 7

From WCSP to CSOP instances

1 2 3 4 5 P A R I S P A N D A L A U R A A N I T A 1 2 3 4 5 P A R I S P A N D A L A U R A A N I T A

slide-8
SLIDE 8

From WCSP to CSOP instances

The mapping:

1 2 3 4 5 P A R I S P A N D A L A U R A A N I T A 1 2 3 4 5 P A R I S P A N D A L A U R A A N I T A 6 PARIS PANDA LAURA ANITA Is feasible in linear time Preserves the solutions Preserves structural properties (any fresh variable occurs just once)

slide-9
SLIDE 9

Another Example: Combinatorial Auctions

slide-10
SLIDE 10

57

Combinatorial Auctions

slide-11
SLIDE 11

Combinatorial Auctions

105 40 38 50 57 35

slide-12
SLIDE 12

105 40 38 50 57 35

Winner Determination Problem

Determine the outcome that maximizes the sum of accepted bid prices

Combinatorial Auctions

slide-13
SLIDE 13

105 40 38 50 57 35

Total € 180.--

Combinatorial Auctions

slide-14
SLIDE 14

Combinatorial Auctions

Note that there are two possible encodings: Items as variables (as previous pictures suggest) Bids as variables, and constraint scopes associated with items (the bids where they occur) Note that the latter encoding yields a natural example of Constraint Optimization Formula

Costs are assigned to bids This is the only encoding with nice structural tractability properties

slide-15
SLIDE 15

Constraint Formulas: Formal Framework

Evaluation Functions Monotone Functions

slide-16
SLIDE 16

Lists of evaluation functions

We often want to express more preferences, e.g.,

minimize cost, then minimize total time, or maximize the profit, then minimize the number of different buyers, or transactions

Formally, Compare vectors by the lexicographical precedence relationship (Cascade of preferences)

slide-17
SLIDE 17

Example

slide-18
SLIDE 18

Example (cont’d)

slide-19
SLIDE 19

Linearization (following [Brafman et al’10])

Define the total order In our example

slide-20
SLIDE 20

Problems

Input: Min: Compute the best solution (if any) Top-K: Compute the K-best solutions,

K is a natural number additionally given in input

Next: Compute the best solution following θ

θ is a solution additionally given in input

slide-21
SLIDE 21

Objectives

Find efficient algorithms for all these problems In this paper: exploit structural properties

Identify large islands of tractability Chart the tractability frontier (at least for bounded arity instances)

slide-22
SLIDE 22

Known Good Results

Min is feasible in polynomial-time (P) and Top-K with polynomial delay (WPD) for formulas equipped with monononic functions and whose structures are

Acyclic hypergraphs [Kimelfeld and Sagiv‘06] Bounded treewidth [S. de Givry et al’06, Flerova and Dechter’10] Bounded hypertree-width [S. Ndiaye et al’08, Gottlob et al’09]

Proof hint: dynamic programming by exploiting the decomposition tree (and monotonicity)

slide-23
SLIDE 23

CSP Structures

Variables map to nodes

Scopes map to hyperedges

slide-24
SLIDE 24

Structurally Restricted CSPs

slide-25
SLIDE 25

Structurally Restricted CSPs

slide-26
SLIDE 26

Structurally Restricted CSPs

The hypergraph is acyclic

Acyclicity is efficiently recognizable Acyclic CSPs can be efficiently solved Generalized arc consistency  Global consistency

slide-27
SLIDE 27

Tractability of acyclic Instances

Adapt the dynamic programming approach in (Yannakakis’81)

A B E F A1 B1 E1 F1 A1 B1 E2 F2 A B C D A1 B1 C1 D1 A2 B1 C2 D2 A B H A1 B1 H1 A1 B1 H2

slide-28
SLIDE 28

Tractability of acyclic Instances (Monotone)

Adapt the dynamic programming approach in (Yannakakis’81)

A B E F A1 B1 E1 F1 A1 B1 E2 F2 A B C D A1 B1 C1 D1 A2 B1 C2 D2 A B H A1 B1 H1 A2 B1 H2

With a bottom-up computation:

Filter the tuples that do not match

slide-29
SLIDE 29

Tractability of acyclic Instances (Monotone)

Adapt the dynamic programming approach in (Yannakakis’81)

A B E F A1 B1 E1 F1 A1 B1 E2 F2 A B C D A1 B1 C1 D1 A2 B1 C2 D2 A B H A1 B1 H1 A2 B1 H2

With a bottom-up computation:

Filter the tuples that do not match Compute the cost of the best partial solution, by looking at the children cost(C/C1)=cost(D/D1)=0 cost(C/C2)=cost(D/D2)=1 cost(E/E1)=cost(F/F1)=0 cost(E/E2)=cost(F/F2)=1

cost(A/A1)+ cost(B/B1)+ cost(H/H1)+ cost(C/C1)+ cost(D/D1)+ cost(E/E1)+ cost(F/F1)

slide-30
SLIDE 30

Tractability of acyclic Instances (Monotone)

Adapt the dynamic programming approach in (Yannakakis’81)

A B E F A1 B1 E1 F1 A1 B1 E2 F2 A B C D A1 B1 C1 D1 A2 B1 C2 D2 A B H A1 B1 H1 A2 B1 H2

With a bottom-up computation:

Filter the tuples that do not match Compute the cost of the best partial solution, by looking at the children Propagate the best partial solution (resolving ties arbitrarily) C D E F C1 D1 E1 F1

slide-31
SLIDE 31

Tractability of acyclic Instances (Monotone)

Adapt the dynamic programming approach in (Yannakakis’81) Over “nearly-acyclic” instances…

slide-32
SLIDE 32

Tractability of acyclic Instances

Adapt the dynamic programming approach in (Yannakakis’81) Over “nearly-acyclic” instances… Apply “acyclicization” via decomposition methods

Bounded Hypertree Width Instances are Tractable

slide-33
SLIDE 33

Decomposition Methods

slide-34
SLIDE 34

Decomposition Methods

Transform the hypergraph into an acyclic one:

Organize its edges (or nodes) in clusters Arrange the clusters as a tree, by satisfying the connectedness condition

slide-35
SLIDE 35

Generalized Hypertree Decompositions

Transform the hypergraph into an acyclic one:

Organize its edges (or nodes) in clusters Arrange the clusters as a tree, by satisfying the connectedness condition

slide-36
SLIDE 36

Generalized Hypertree Decompositions

Transform the hypergraph into an acyclic one:

Organize its edges (or nodes) in clusters Arrange the clusters as a tree, by satisfying the connectedness condition

Each cluster can be seen as a subproblem

slide-37
SLIDE 37

Generalized Hypertree Decompositions

Transform the hypergraph into an acyclic one:

Organize its edges (or nodes) in clusters Arrange the clusters as a tree, by satisfying the connectedness condition

Each cluster can be seen as a subproblem

slide-38
SLIDE 38

Generalized Hypertree Decompositions

Transform the hypergraph into an acyclic one:

Organize its edges (or nodes) in clusters Arrange the clusters as a tree, by satisfying the connectedness condition

Each cluster can be seen as a subproblem

slide-39
SLIDE 39

Tractable Combinatorial Auctions

Theorem: The Winner Determination Problem is in P for classes having bounded hypertree-width hypergraphs (bid-vertices encoding)

[Gottlob & Greco ’07]

Theorem: The Winner Determination Problem is NP-hard even for acyclic instances (item-vertices encoding)

slide-40
SLIDE 40

Learning from Negative Results

Simple structures are not enough: Next is NP-hard even for acyclic formulas with monotone evaluation functions [Brafman et al’10]

Proof exploits large values

Moreover, we show that Min, Top-K, and Next are NP-hard even for acyclic formulas, even if the domain contains three elements at most and function images contain two small values at most (-1,1)

Proof exploits non-monotonicity, and lists of evaluation functions (whose size is not fixed---depends on the input)

slide-41
SLIDE 41

Directions

Multi-objective Optimization, through lists of preference functions Not only acyclicity, but any (purely) structural decomposition method Not only monotone functions, but also non-monotone

  • nes
slide-42
SLIDE 42

Smooth Functions

Manipulate small (polynomially bounded) values Occur in many applications (for instance, in counting- based optimizations) May be non-monotonic

slide-43
SLIDE 43

Example

  • 1. Finding solutions minimizing the number of variables

mapped to certain domain values

It is smooth and monotone

  • 2. Finding solutions with an odd number of variables

mapped to certain values (e.g. switch variables)

It is smooth and non-monotone

[2,1] (or viceversa) is a smooth list of evaluation functions

slide-44
SLIDE 44

Results for Bounded Hypertree-width classes

Tractability results are proved in the more general tree-projections framework (encompassing all known purely structural decomposition methods) For bounded-arity recursively-enumerable classes tractability results are tight (unless FPT=W[1]) (*) Many results on related settings or subcases in previous work

slide-45
SLIDE 45

Hints for Min, acyclic hyp., motonone lists

Extend the dynamic programming approach Because of linearization we have a total order The algorithm exploits an extended list of evaluation functions (still monotone) , where

A B E F A1 B1 E1 F1 A1 B1 E2 F2 A B C D A1 B1 C1 D1 A2 B1 C2 D2 A B H A1 B1 H1 A2 B1 H2 C D E F C1 D1 E1 F1 For each tuple, manage an Additional vector with the best Values for the m+1 functions F1 F2 F3 0 -1 5 Note that we have no ties, because of the additional function

slide-46
SLIDE 46

Top-K is feasible WPD, monotone case

Use the Min algorithm as a procedure, and Lawler’s approach

[Lawler’72] based on a log-time data structure HL keeping suitable

pairs (S,I’) where S is the best solution of some modified instance I’ Initialize HL by computing and inserting in it (Min(I),I), where I is the

  • riginal input instance

Repeat until we get the desired K solutions (or there are no more solutions): Extract from HL the pair (S,I’) with the best solution, and output this solution; Compute n modified instances of I’ such that S is no longer a solution, but no further relevant solution is missed Compute the Min solutions of these modified instances and put the resulting new pairs in HL Note that, after many iterations, HL may occupy exponential space. Yet, each iteration takes polynomial-time and each iteration outputs a new solution

slide-47
SLIDE 47

Tractability of Non-monotone (smooth) functions

The classical dynamic programming approach does not work

Good (partial) solutions in the subtree may lead to bad final solutions

However, smooth lists of evaluation functions have only polynomially-many possible values

slide-48
SLIDE 48

Min: smooth lists, acyclic instances

For each possible vector V of values, starting from the minimum one, Check whether there exists a solution with cost V;

In P (use a LogSpace Alternating Turing Machine)

Once we found the optimal vector Vo, compute the solution with that cost

Use a self-reduction argument Start with the least (cost) assignment for the more important variable (according to the given linearization)

slide-49
SLIDE 49

Algorithm SolutionExistence (smooth)

slide-50
SLIDE 50

Next and Top-K: smooth lists, acyclic instances

Next: same technique as for Min, starting from the given input solution Top-K: just use the polynomial-time algorithm for Next as a procedure

slide-51
SLIDE 51

Tractability frontier (bounded arity)

Assume FPT≠W[1]. Let C be any recursively enumerable class of instances

  • f bounded arity.

Then, the following are equivalent:

slide-52
SLIDE 52

Bounded-arity tractability frontier: proof hints

To prove that unbounded treewidth classes are intractable, show that if Next is FPT for any of these classes, then so is the W[1]- hard p-clique problem. Use The Excluded-grid Theorem Grohe’s reduction from p-clique for satisfaction problems Modify the construction by penalizing variables mapped to undesired values Define the constraint relations so that there is a special solution

  • having value 0, as well as any “good” solution (and no one

else) Computing any solution following o allows one to solve the p- clique problem.

slide-53
SLIDE 53

Conclusion

The paper provides a picture of the computational complexity of Constraint Optimization Formulas under structural restrictions Positive results for both monotone and some non- mononotone lists of evaluation functions Tight results for bounded-arity instances Future Work

Look at further possible interesting classes of non- monotone functions Find further positive results for unbounded-arity instances, e.g., exploiting non purely-structural notions as the submodular-width [Marx’10]

slide-54
SLIDE 54
slide-55
SLIDE 55

Tree Projections (by Example)

Structure of the CSP

slide-56
SLIDE 56

Tree Projections (by Example)

Structure of the CSP Available Views

slide-57
SLIDE 57

Tree Projections (by Example)

Structure of the CSP Tree Projection Available Views

slide-58
SLIDE 58

Tree Projections (by Example)

Structure of the CSP Tree Projection Available Views