decision jungles: compact and rich models for ......decision jungles: compact and rich models for...

8
Decision Jungles: Compact and Rich Models for Classification Supplementary Material Jamie Shotton Toby Sharp Pushmeet Kohli Sebastian Nowozin John Winn Antonio Criminisi Microsoft Research, Cambridge, UK 1 Bregman Clustering We now show a correspondence between the information gain objective (3) of the main paper and the Bregman clustering objective [1]. In the main paper we specify the partitioning of data between two layers by means of a directed graph assigning subsets to left and right arcs, which in turn are assigned to a child node. Here, the Bregman clustering is run on sets of instances derived from partitioned each parent node instance set into left and right subsets. If we fix these splits we can now solve the problem of assigning these sets S ii to the new child layer using Bregman clustering. We denote class counts of set i and class k by S i,k and use i j and j (i) to denote the assignment of set i to child node j in the next level. The counts are obtained by summation, S j,k = ij S i,k . We use μ j,k = ij S i,k /( k ij S i,k ) to denote normalized histograms. We start with the objective of Algorithm 1 in [1] and derive the equivalence by elementary manipu- lations as follows. X j X ij |S i | D KL (S i kμ j ) = X j X ij |S i | X k S i,k |S i | log S i,k |Si| μ j,k = X i |S i | X k S i,k |S i | log S i,k |Si| μ j(i),k = X i X k S i,k log S i,k - log |S i | | {z } =:C - log μ j(i),k = X j X ij X k S i,k - log μ j(i),k + C = X j X ij X k S i,k " - log sj S s,k k sj S s,k # + C = - X j |S j | X k S j,k |S j | log S j,k |S j | + C = X j |S j |H(S j )+ C. (1) 1

Upload: others

Post on 09-Sep-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Decision Jungles: Compact and Rich Models for ......Decision Jungles: Compact and Rich Models for Classification Supplementary Material Jamie Shotton Toby Sharp Pushmeet Kohli Sebastian

Decision Jungles:Compact and Rich Models for Classification

Supplementary Material

Jamie Shotton Toby Sharp Pushmeet KohliSebastian Nowozin John Winn Antonio Criminisi

Microsoft Research, Cambridge, UK

1 Bregman Clustering

We now show a correspondence between the information gain objective (3) of the main paper andthe Bregman clustering objective [1].

In the main paper we specify the partitioning of data between two layers by means of a directedgraph assigning subsets to left and right arcs, which in turn are assigned to a child node. Here, theBregman clustering is run on sets of instances derived from partitioned each parent node instanceset into left and right subsets. If we fix these splits we can now solve the problem of assigning thesesets Sii to the new child layer using Bregman clustering.

We denote class counts of set i and class k by Si,k and use i ∈ j and j(i) to denote the assignmentof set i to child node j in the next level. The counts are obtained by summation, Sj,k =

∑i∈j Si,k.

We use µj,k =∑

i∈j Si,k/(∑

k

∑i∈j Si,k) to denote normalized histograms.

We start with the objective of Algorithm 1 in [1] and derive the equivalence by elementary manipu-lations as follows.

∑j

∑i∈j

|Si|DKL(Si‖µj) =∑j

∑i∈j

|Si|∑k

Si,k

|Si|log

Si,k

|Si|

µj,k

=∑i

|Si|∑k

Si,k

|Si|log

Si,k

|Si|

µj(i),k

=∑i

∑k

Si,k

logSi,k − log |Si|︸ ︷︷ ︸=:C

− logµj(i),k

=

∑j

∑i∈j

∑k

Si,k

[− logµj(i),k

]+ C

=∑j

∑i∈j

∑k

Si,k

[− log

∑s∈j Ss,k∑

k

∑s∈j Ss,k

]+ C

= −∑j

|Sj |∑k

Sj,k

|Sj |log

Sj,k

|Sj |+ C

=∑j

|Sj |H(Sj) + C. (1)

1

Page 2: Decision Jungles: Compact and Rich Models for ......Decision Jungles: Compact and Rich Models for Classification Supplementary Material Jamie Shotton Toby Sharp Pushmeet Kohli Sebastian

Hence, except for an additive constant C that does not depend on the assignment, the Bregmanclustering objective using the KL-divergence is equivalent to the minimum information gain lossobjective (3) of the main paper.

2 DAG Visualization

Fig. 1 shows a visualization of one of the resulting merged DAGs.

3 UCI Experiments

Table 1 lists the UCI multiclass classification data sets we used together with the number of classes,the total number of samples available, and the number of feature dimensions. All data sets have beenobtained from the libsvm data set collection page.

DATA SET CLASSES SAMPLES DIMENSIONSPOKER 9 1025010 10COVTYPE 7 581012 54CODRNA 2 331152 8IJCNN1 2 141691 22SEISMIC 3 98528 50CONNECT4 3 67557 127W8A 2 64700 300MNIST 9 60000 780SHUTTLE 7 58000 9PROTEIN 3 24387 357LETTER 26 20000 16PENDIGITS 9 10992 16SECTOR 105 9619 55197USPS 10 9298 256GISETTE 2 7000 5000SATIMAGE 6 6435 36DNA 3 3186 180OIL 3 3000 12VOWEL 10 990 10WEBKB 5 877 1703VEHICLE 4 846 18SVMGUIDE4 3 612 10FACES-OLIVETTI 40 400 10304SVMGUIDE2 3 391 20SOY 3 307 35GLASS 6 214 9WINE 3 178 13IRIS 3 150 4

Table 1: UCI data set characteristics.

The experimental setup is as follows. For each data set all instances from the training, validation, andtest set, if available, are combined to a large set of instances. We repeat the following procedure fivetimes: randomly permute the instances, and divide them 50/50 into training and testing set. Train ofthe training set, evaluate the performance on the test set. We report average multiclass accuracy andstandard deviation over these five repetitions.

Tree/DAG parameters: each ensemble contains 8 trees or DAGs. The DAG is grown starting fromthe fifth layer for a maximum of 55 steps. Each DAG layer has at most 1.2 times the number ofnodes as the previous layer, or a maximum of 128. The number of feature tests is the same for treesand DAGs and set to 64 dimensions and 20 thresholds per dimension.

Figures 2 to 5 report the average test set accuracy as a function of the total number of nodes in themodel for the 28 UCI data sets.

2

Page 3: Decision Jungles: Compact and Rich Models for ......Decision Jungles: Compact and Rich Models for Classification Supplementary Material Jamie Shotton Toby Sharp Pushmeet Kohli Sebastian

References[1] A. Banerjee, S. Merugu, I. S. Dhillon, and J. Ghosh. Clustering with Bregman divergences. Journal of

Machine Learning Research, 6:1705–1749, Oct. 2005.

3

Page 4: Decision Jungles: Compact and Rich Models for ......Decision Jungles: Compact and Rich Models for Classification Supplementary Material Jamie Shotton Toby Sharp Pushmeet Kohli Sebastian

Figure 1: DAG Visualization. Colors indicate the most likely classes at each node, and saturationindicates purity. The visual layout of the DAG has been optimized slightly to minimize the sum ofabsolute horizontal edges from each level to the next.

4

Page 5: Decision Jungles: Compact and Rich Models for ......Decision Jungles: Compact and Rich Models for Classification Supplementary Material Jamie Shotton Toby Sharp Pushmeet Kohli Sebastian

102

104

106

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "poker", 10 classes, 5 folds

8 Standard Trees

8 Merged DAGs

102

104

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "covtype", 7 classes, 5 folds

8 Standard Trees

8 Merged DAGs

102

104

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "codrna", 2 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

104

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "ijcnn1", 2 classes, 5 folds

8 Standard Trees

8 Merged DAGs

102

104

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "sensit−seismic", 3 classes, 5 folds

8 Standard Trees

8 Merged DAGs

102

104

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "connect−4", 3 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "w8a", 2 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

104

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "mnist−60k", 10 classes, 5 folds

8 Standard Trees

8 Merged DAGs

Figure 2: UCI classification results.

5

Page 6: Decision Jungles: Compact and Rich Models for ......Decision Jungles: Compact and Rich Models for Classification Supplementary Material Jamie Shotton Toby Sharp Pushmeet Kohli Sebastian

101

102

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "shuttle−scale", 7 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

104

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "protein", 3 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

104

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "letter−scale", 26 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "pendigits", 10 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

104

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "sector−scale", 105 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "usps", 10 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "gisette−scale", 2 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "satimage−scale", 6 classes, 5 folds

8 Standard Trees

8 Merged DAGs

Figure 3: UCI classification results.

6

Page 7: Decision Jungles: Compact and Rich Models for ......Decision Jungles: Compact and Rich Models for Classification Supplementary Material Jamie Shotton Toby Sharp Pushmeet Kohli Sebastian

101

102

103

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "dna−scale", 3 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "oil", 3 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "vowel−scale", 11 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "webkb−small", 5 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

103

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "vehicle−scale", 4 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "svmguide4", 6 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "facesOlivetti", 40 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "svmguide2", 3 classes, 5 folds

8 Standard Trees

8 Merged DAGs

Figure 4: UCI classification results.

7

Page 8: Decision Jungles: Compact and Rich Models for ......Decision Jungles: Compact and Rich Models for Classification Supplementary Material Jamie Shotton Toby Sharp Pushmeet Kohli Sebastian

101

102

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "soy", 3 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "glass−scale", 6 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

las

s a

cc

ura

cy

Dataset "wine−scale", 3 classes, 5 folds

8 Standard Trees

8 Merged DAGs

101

102

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Total number of nodes

Mu

ltic

lass a

ccu

racy

Dataset "iris−scale", 3 classes, 5 folds

8 Standard Trees

8 Merged DAGs

Figure 5: UCI classification results.

8