Docsity

Robust Algorithms for Learning Non-Pure Binary Relations using Weighted Majority Voting, Papers of Computer Science

Toggle sidebar
bg1
Machine Leaming, 20, 245-271 (1995)
© 1995 Kluwer Academic Publishers, Boston. Manufactured in The Netherlands.
Learning Binary Relations Using Weighted
Majority Voting *
SALLY A. GOLDMAN
Dept. of Computer Science, Washington University, St. Louis, MO 63130
MANFRED K. WARMUTH [email protected]
Dept. of Computer and Information Sciences, University of California, Santa Cruz, CA 95064
Editor:
David Haussler
Abstract.
In this paper we demonstrate how weighted majority voting with multiplicative weight updating
can be applied to obtain robust algorithms for learning binary relations. We first present an algorithm that
obtains a nearly optimal mistake bound but at the expense of using exponential computation to make each
prediction. However, the time complexity of our algorithm is significantly reduced from that of previously
known algorithms that have comparable mistake bounds. The second algorithm we present is a polynomial time
algorithm with a non-optimal mistake bound. Again the mistake bound of our second algorithm is significantly
better than previous bounds proven for polynomial time algorithms.
A key contribution of our work is that we define a "non-pure" or noisy binary relation and then by exploiting
the robustness of weighted majority voting with respect to noise, we show that both of our algorithms can
learn non-pure relations. These provide the first algorithms that can learn non-pure binary relations.
Keywords:
on-line learning, mistake-bounded leaming, weighted majority voting, noise tolerance, binary
relation
1. Introduction
In this paper we demonstrate how weighted majority voting with multiplicative weight
updating can be applied to obtain robust algorithms for learning binary relations. Follow-
ing Goldman, Rivest and Schapire (1993), a binary relation is defined between two sets
of objects, one of cardinality n and the other of cardinality m. For all possible pairings
of objects, there is a predicate relating the two sets of variables that is either true (1)
er false (0). The relation is represented as an n x rn matrix M of bits, whose (r, j)
entry is 1 if and only if the relation holds between the corresponding elements of the two
sets. Furthermore, there area limited number of object types. Namely, the matrix M is
restricted to have at most k distinct row types among its n rows. (Two rows are of the
same type if they agree in all columns.) This restriction is satisfied whenever there are
only k types of identical objects in the set of n objects being considered in the relation.
We study the problem of learning binary relations under the standard on-line (or in-
cremental) learning model (Littlestone 1989; Littlestone 1988). The learning session
consists of a sequence of trials. In each trial, the learner taust predict the value of some
* The first author was supported in part by NSF grant CCR-91110108 and NSF National Young Investigator
Grant CCR-9357707 with matching funds provided by Xerox Corporation, Palo Alto Research Center and
WUTA. The second author was supported by ONR grant NO0014-91-J-1162 and NSF grant IRI-9123692.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b

Partial preview of the text

Download Robust Algorithms for Learning Non-Pure Binary Relations using Weighted Majority Voting and more Papers Computer Science in PDF only on Docsity!

Machine Leaming, 20, 245-271 (1995) © 1995 Kluwer Academic Publishers, Boston. Manufactured in The Netherlands.

Learning Binary Relations Using Weighted

Majority Voting *

SALLY A. GOLDMAN Dept. of Computer Science, Washington University, St. Louis, MO 63130

[email protected]

MANFRED K. WARMUTH [email protected] Dept. of Computer and Information Sciences, University of California, Santa Cruz, CA 95064

Editor: David Haussler

Abstract. In this paper we demonstrate how weighted majority voting with multiplicative weight updating can be applied to obtain robust algorithms for learning binary relations. We first present an algorithm that obtains a nearly optimal mistake bound but at the expense of using exponential computation to make each prediction. However, the time complexity of our algorithm is significantly reduced from that of previously known algorithms that have comparable mistake bounds. The second algorithm we present is a polynomial time algorithm with a non-optimal mistake bound. Again the mistake bound of our second algorithm is significantly better than previous bounds proven for polynomial time algorithms. A key contribution of our work is that we define a "non-pure" or noisy binary relation and then by exploiting the robustness of weighted majority voting with respect to noise, we show that both of our algorithms can learn non-pure relations. These provide the first algorithms that can learn non-pure binary relations.

Keywords: on-line learning, mistake-bounded leaming, weighted majority voting, noise tolerance, binary relation

1. I n t r o d u c t i o n

In this paper we demonstrate h o w weighted majority voting with multiplicative w e i g h t updating can be applied to obtain robust algorithms for learning binary relations. F o l l o w - ing Goldman, R i v e s t and Schapire (1993), a binary relation is defined b e t w e e n two sets of objects, one o f cardinality n and the other of cardinality m. For all possible pairings of objects, there is a predicate relating the two sets of variables that is either true (1) er false (0). The relation is represented as an n x rn matrix M of bits, w h o s e (r, j ) entry is 1 if and only if the relation holds between the corresponding elements of the two sets. Furthermore, there a r e a limited n u m b e r of object types. Namely, the matrix M is restricted to have at most k distinct row types a m o n g its n rows. (Two rows are of the same type if they agree in all columns.) This restriction is satisfied w h e n e v e r there are only k types of identical objects in the set of n objects being considered in the relation. We study the p r o b l e m o f learning binary relations under the standard on-line (or in- cremental) learning m o d e l (Littlestone 1989; Littlestone 1988). The learning session consists of a sequence o f trials. In each trial, the learner taust predict the value of s o m e

  • The first author was supported in part by NSF grant CCR-91110108 and NSF National Young Investigator Grant CCR-9357707 with matching funds provided by Xerox Corporation, Palo Alto Research Center and WUTA. The second author was supported by ONR grant NO0014-91-J-1162 and NSF grant IRI-9123692.

246 GOLDMAN AND WARMUTH

unknown matrix entry that has been selected by the adversary 1. After predicting, the

learner receives the value of the matrix entry in question as feedback. If the prediction

disagrees with the feedback, then we say the learner has made a mistake. The learn-

ing session continues until the learner has predicted each matrix entry. The goal of the learner is to make as few prediction mistakes as possible.

One could view each row as a point in {0, 1} ~ and each row type of a binary relation as a cluster of points in {0, 1} m that are distance zero from each other. Initially, the learner knows nothing about how the points may be clustered, yet as the learning session proceeds the learner must infer both how the points are clustered (since this will be essential in reducing the mistakes) and the value of the m bits defining each cluster. We

thus use the term cluster rather than row type when talking about the grouping of the

rows.

One contribution of this paper is a formal definition for the problem of learning binary

relations in which the clusters are not "pure" in that two rows in the same cluster may

not be exactly the same. In other words, we remove the requirement that all points in a cluster are distance zero from each other. Thus even if the target matrix were known there remains an interesting clustering problem that one could address, namely, what clustering achieves the optimal tradeoff between the nnmber of clusters and the distances between the points in the clusters. Of course, our learning algorithm must perform the clustering in an on-line manner while also predicting the values of unknown matrix entries. By viewing the problem of learning binary relations under this more general formulation, we achieve two important goals. First, such a modification in the definition of the learning problem much better matches the motivation provided by Goldman, Rivest, and Schapire (1993). Second, we can greatly reduce the mistake bounds obtained under the original formulation of Goldman et al. since now a group of rows that have slight differences can be viewed as a single cluster rather than having each row as its own cluster. In addition, the final weights of the second algorithm we present may be used to obtain a solution to the problem of how to cluster the rows of the target matrix.

A second contribution of this paper is two new algorithms (both based on weighted majority voting with multiplicative weight updating) to learn both pure and non-pure binary relations. Weighted majority voting provides a simple and effective method for constructing a learning algorithm .A that is provided with a pool of "experts", one of which is known to perform weil, hut A does not know which one. Associated with each expert is a weight that gives ./t's confidence in the accuracy of that expert. When asked to make a prediction, A predicts by combining the votes from its experts based on their associated weights. When an expert suggests the wrong prediction, A passes that information to the given expert and reduces its associated weight. In this work, we use a multiplicative weight updating scheme to adjust the weights. Namely, the weight associated with each expert that mispredicts is multiplied by some weight 0 _</3 < 1. By selecting/3 > 0 this algorithm is robust against noise in the data. This robust nature of weighted majority voting enables us to apply our algorithms to the problem of learning non-pure relations by viewing discrepancies between the rows in the same cluster as noise.

248 GOLDMAN AND WARMUTH

standard halving algorithm makes at most

lg(2Æ~k~/k!) = k m + n l g k - Igk! _< k m + ~ lg k - k lg(Æ/~) = k m + ( n - k ) l g k + k l g e

mistakes 3. The halving algorithm can be viewed as keeping 2 k m k n / k! weights, one weight per possible binary relation. Initially, all weights start at 1, and whenever a binary relation becomes inconsistent with the current partial matrix, its weight is set to

  1. To make a prediction for a given matrix entry, each binary relation votes according to its bit in that entry. Since the halving algorithm predicts according to the majority of consistent relations (i.e. those with weight 1), each mistake halves the total weight in the system. Since the initial weight is 2kmk'~/k[ and the final weight is at least 1, at most k m + (n - k) lg k + k lg e mistakes can occur. Observe that the time used to make each prediction is linear in the number of weights. Thus we are interested in algorithms that use a small number of weights in representing their hypotheses. The algorithms we present update the weights according to a variant of the weighted majority algorithm of Littlestone and Warmuth (1989) called WMG. We view WMG as a node that is connected to each expert (or input) by a weighted edge. The inputs are in the interval [0, 1]. An input x of weight w votes with weight x w for 1 and with weight (1 - x ) w for 0. The node "combines" the votes of the inputs by determining the total weight qo (respectively qa) placed on 0 (respectively 1) and predicts with the bit corresponding to the larger of the two totals (and for the sake of discreteness with 1 in case of a tie). After receiving feedback of what the prediction should have been, for each input, the fraction of the weight placed on the wrong bit is multiplied by/3, where /3 C [0, 1). Thus the weight w of an input x becomes (1 - x + x/3)w if the feedback is 0 and ((1 - x)/3 + x ) w if the feedback is 1. If/3 = 0 then the total weight halves in each trial in which the node makes a mistake and we obtain an analysis like that of the halving algorithm.

3. Our Algorithms For Applying WMG

In this section we describe two different methods for applying WMG to the problem of learning a binary relation. The first algorithm uses one node and km/k! weights. Thus the number of weights is still exponential but lower than the number of weights used by

the halving algorithm by a multiplicative factor of 2km. For this case, the analysis is

straighfforward, and for the noise-free case, the bounds achieved are nearly optimal with respect to the known information-theoretic lower bound. The purpose of this algorithm is to show what is possible when computational resources are cheap. In the second algorithm we use one hode for each of the n rows and one weight for each pair of rows (i.e. (~) weights). Proving bounds for the second algorithm is much more involved and is the focus of the paper. The bounds obtained are non-optimal when compared to those obtained when computation time is not a concern. However, our bounds are significantly better than previous bounds obtained by a polynomial algorithm.

LEARNING BINARY RELATIONS 2 4 9

kn/k! partitions

Figure 1. This figure illustrates how the voting works in our first algorithm. In this example k = 2. We use the two degrees of shading to indicate how the rows of the matrices are partitioned. Thus on the fight we have shown the partially known matfix under three different partitions. Just to the left of each partition we show its vote for the unknown matrix entry. Recall that a partition voting with 1/2 can be viewed as a vote of 1 with half of its weight and a rote of 0 with half of its weight. So the overall prediction made in this example is 1 if and only if w 2 / 2 +... + w k ~ /k! > W l -}- w 2 / 2 -k....

LEARNING BINARY RELATIONS 251

J i~iiii:iii~i~~

w l i~:~iii~!::~¸¸~ili

r : : : I

l iii!!^0 ....

0 1

w3 1

M

Figure 2. This figure illustrates how predictions are made in our second algorithm. The weighted majority node corresponding to row r (heavily shaded) is used to predict Mrj. The predictions of the inputs coming from the nodes are shown. So for this example the shaded node predicts 1 if w l / 2 + w2 > w l / 2 + w3 + w and oredicts 0 otherwise.

252 GOLDMAN AND WARMUTH

the learning problem among themselves. Assume M~j is the next value to predict. To make its prediction, the node for row r combines the votes of the n - 1 inputs from column j of matrix M. Each node r ~ ¢ r votes with the weight w(er<) for the bit at M<j. If the bit M«j is unknown (corresponding to its vote being 1/2) then the weight is split between the two votes (see Figure 2). If a mistake occurs then only the n - 1 weights connected to node r a r e adjusted using a multiplicative weight update scheme 4. Thus we are running n copies of WMG in parallel, where in each trial only one of the copies makes a prediction. We show that this parallel composition of weighted majority style algorithm "learns" in the sense that if there are few clusters in the matrix then the algorithms eventually cooperate to make few mistake altogether. This holds even if the adversary gets to choose in what order the entries of the matrix M are uncovered 5. Also note that the final weight between two nodes can be used to partition the rows into clusters so that one obtains a good tradeoff between the number of clusters and the distances within each cluster. Namely, clusters should be formed of rows for which the weight between all pairs is sufficiently high. In Section 5 we provide a technique to adapt the worst-case mistake bounds proven for the weighted majority algorithm WMG to this parallel application. As a corollary to our main theorem, we show that when ~ = 0, our second algorithm obtains a mistake

bound of k m + min { ~ lge, n ~ } using only (2) weights. Here k is the size

of the smallest partition consistent with the whole matrix. The best previous bound for a polynomial algorithm was /cm + n v / ( k - 1)m (Goldman, Rivest & Schapire, 1993). An interesting aspect of our problem, besides its parallel nature, is that when node r is to predict for entry M~j, not all other n - 1 entries in the j-th column may have been uncovered. Such unknown ("sleeping") entries are naturally set to 1/2, leading to split votes. There are many relatives of the basic weighted majority algorithm that we could use within our two algorithms such as a probabilistic variant due to Vovk (1990) (see also Cesa-Bianchi, Freund, Helmbold, Haussler, Schapire and Warmuth (1993)). Also the Vee algorithm of Kivinen and Warmuth (1994) handles inputs and predictions in [0,1] and the algorithm of Littlestone, Long and Warmuth (1991) has small square loss against the best convex combination of the inputs. (Incidentally all these on-line prediction algorithms have multiplicative weight updates in common.) We chose the simplest setting for showing the usefulness of our method: the entries of the matrix are binary and the predictions must be deterministic.

4. A Generalization: Non-Pure Relations

A key contribution of this paper is showing how the robust nature of WMG enables us to solve an important generalization of the problem of learning binary relations with noisy data. To motivate this problem we briefly review the allergist example given by Goldman, Rivest, and Schapire (1993). Consider an allergist with a set of patients to be tested for a given set of allergens. Each patient is either highly aIlergic, mildly allergic, or not allergic to any given allergen. The allergist may use either an epicutaneous (scratch) test

2 5 4 GOLDMAN AND WARMUTH

in which the patient is given a fairly low dose of the allergen, or an intradermal (under the skin) test in which the patient is given a larger dose of the allergen. What options does the allergist have in testing a patient for a given allergen? He/she could just perform the intradermal test (option 0). Another option (option 1) is to perform an epicutaneous test, and if it is not conclusive, then perform an intradermal test. Which option is best? If the patient has no allergy or a mild allergy to the given allergen, then option 0 is best, since the patient need not return for the second test. However, if the patient is highly allergic to the given allergen, then option 1 is best, since the patient does not experience a bad reaction. The allergist's goal here is to minimize the number of prediction mistakes in choosing the option to test each patient for each allergen. Although Goldman et al. explore several possible methods for the selection of the presentation order, here we only consider the standard worst-case model in which an adversary determines the order in which the patient/allergen pairs are presented. This example makes an assumption that is a clear oversimplification. Namely, they assume that there are a c o m m o n set of "allergy types" that occur often and that most people fit into one of these allergy types. Thus the allergy types become the clusters of the matrix. However, while it is true that often people have very similar allergies, there are not really pure allergy types. In other words, it is unreasonable to assume that all rows in the same cluster are identical but rather they are just close to each other. Without this flexibility one may be required to have most patient's allergies correspond to a distinct allergy type. Henceforth, we refer to the original formulation of the problem of learning binary relations in which all clusters are "pure" as learning pure relations. We propose the following generalization of the problem of learning binary relations that we refer to as learning non-pure relations. For any column c of bits, let N0(c) be the number of zeros in c. Likewise, let .A/'I(c) be the number of ones in c. Suppose that the rows of the matrix are partitioned into a set of k clusters p = { S ~ ,... , Sk}. Let S] denote the j t h column of the cluster (or submatrix) S< For each cluster we define a distance measure m d(S{) = Z m i n { A f o ( S ] ) , H l ( S ] ) } j = l

In other words, think of defining a center point for partition S i by letting the value of column j in this center be the majority vote of the entries in S}. Then d(S i) is just the sum over all rows s in S ~ of the H a m m i n g distance between s and this center point. We define the noise of partition p, c~p, as m a p = Z d(Si)= Z Z m i n { N ' ° ( S } ) ' A f l ( S J )}' S iE p S iE p j=l

and the size of partition p, kp, as the number of clusters in partition p. For each cluster i and column j , we define ~i,j : m i n { N ' 0 ( S j ) , N ' t ( S } ) } , and 6i = ~ j = l77% 5<j. Thus O~p = E i = I (~i = Z-.-Ji=l A-~j=l ~ i , j. Due to the robust nature of W M G , we can use both algorithms to learn non-pure relations by simply using a non-zero update factor/3.

L E A R N I N G BINARY R E L A T I O N S 255

We now discuss both of our algorithms when applied to the problem of learning non- pure relations and give bounds for each. The key to our approach is to view minor discrepancies between rows in the same cluster as noise. This greatly reduces the mistake bounds that one can obtain when using the original formulation of Goldman, Rivest, and Schapire (1993) by reducing the number of clusters. The robust nature of the weighted majority algorithm enables us to handle noise. To demonstrate our basic approach, we now show that our first algorithm (i.e. the one

using kn/k! weights) can learn a non-pure relation by making at most 6

{ (~- k)lnk + k + ~~1~} }

min kpm + ap + in ~

1+~

mistakes in the worst case, where 0 _</3 < 1 is the update factor, and the minimum is

taken over all partitions p of size at most k and kp denotes the size and C~p the noise of

partition p. In the noisy case the first algorithm still uses a single copy of the weighted majority

algorithm with one weight for each of the k'~/k! partitions. (See Figure 4 for the complete

algorithm.) Assume Mrj is the hext value to predict. Then a particular partition predicts

with the majority of all already set entries from column j of rows in the same group as row r in the partition. In case of a tie the paltition predicts with 1/2. (Note that in the noise-free setting all entries known in a given partition for a given column must be

the same.) Finally, a partition with weight w and prediction x votes with xw for 1 and

(1 - x)w for 0. The Algorithm WMG totals the votes for 0 and for 1 and predicts with

the bit of the larger total (with 1 in case of atie). When a partition predicts incorrectly, its weight is multiplied by /3. A partition that

splits its vote has its weight multiplied by (1 + /3)/2. (Half of its weight remains

unchanged and the other half is multiplied by/3.) Finally, since WMG votes in agreement with at least half of the weight in the system, when a mistake occurs, at least half of the weight is multiplied by /3 (and the rest is unchanged). Thus for each trial in which a

mistake occurs the total weight after the trial is at most (1 + fl)/2 times the total weight

before the trial. We now argue that a partition p predicts incorrectly at most C~p times

and splits its vote at most kpm + eev times. To see this consider what happens in column

j of cluster i. The number of wrong predictions is at most cSi,j (i.e. the number of minority bits) and the number of ties at most 1 + ~Si,j. Thus the number of times partition kp m p predicts incorrectly is at most ~ ~ ~Si,j = C~p, and the number of times partition p i = 1 j = l kp rn

splits its rote is at most ~ ~-~~(1 + 5~,j) = kpm + C~p.

i=1 j = l Thus it follows that the final^ weight in the system is at least/3~p (l+_____~ß)Æpm+c~p.Since

the initial weight in the system is k'~/kl and for each trial in which a mistake occurs the

total weight after the trial is at most (1 +/3)/2 times the total weight before the trial, we ger the following inequality for the total number of mistakes #:

LEARNING BINARY RELATIONS 257

Solving for tt gives the bound given in Equation (1). An interesting modification of our first algorithm would be to consider all rows in the same group as row r and then predict with the number of l's already known in column j divided by the total number of known entries in column j (i.e. a prediction of

N1/(No + N1) using the notation of Figure 4). We did not use this rule because it is

harder obtain a lower bound on the final weight in the system. Finally, by applying the results of Cesa-Bianchi, Freund, Helmbold, Haussler, Schapire, and Warmuth (1993) we can tune/3 as a function of an upper bound c~ on the noise.

LEMMA 1 (Cesa-Bianchi, Freund, Helmbold, Haussler, Schapire & Warmuth, 1993)

For any real value z > 0 or z = oc,

z 2 + in a z

g(z) < l + z + - -

21n (^) l + g ( z ) 2 -- 2 1 n 2 '

where 9(z) = 1+2z+ 2~~2^1 and g ( ~ )^ = O.

THEOREM 1 For any positive integers k and e~, the first algorithm with

~:~(«~~ ~,~~~+~)oa~esao

min {kpm + 3C~p-4- 2V/c~((n - k) l n k + k) + (n - k ) l g k + k l g e }

mistakes, where the minimum is taken over all partitions p whose size kp is at most k

and whose noise O~p is at most ~.

Proof: Sincec~p_<c~and In / 2 1 n ~ > 1 f o r / 3 E [ 0 , 1 ) , i t f o l l o w s t h a t

(n - k) in k + k + C~pin^1

(tn~ ) In (^) 1+~ 2 + 209 + 2C~p (^) 2 In 2 1

( 1 )

< ( n - k ) l n k + k l n? 1

- i n (^) I+Z (^2) + 20~p + 2c~ (^) 2 in I+Z 2

( z 2 + l n ~ ' ~ i ( n - k ) l n k + k

= 2o~ 2 1 n ~ J + 2ap - 2o~, where z =

So by applying Lemma 1 with and fl = g@) to the bound (1) we obtain a worst-case

mistake bound of

min h p m + ~ p + 2 c ~ p + ~ / a ( ( n - k ) l n k + k ) + 21n

i n 2

( n - k) l n k + k

258 GOLDMAN AND WARMUTH

: m i n {kprn + 3C~p+ 2V/Ct((n - k ) l n k + k ) + ( n - k ) l g k + k l g e }

for our first algorithm, where the minimum is taken over all partitions p of size at most with noise at most c~, and kp denotes the size and c~p the noise of partition p.

For the above tuning we needed an upper bound for both the size and the noise of the partition. If an upper bound for only one of the two is known, then the standard doubling trick can be used to guess the other. This causes only a slight increase in the mistake bound (see Cesa-Bianchi, Freund, Helmbold, Haussler, Schapire, and Warmuth (1993)). Note that in the above mistake bound there is a subtle tradeoff between the noise Ctp and size kp of a partition p. Recall that when this first algorithm is applied in the noise-free case that it essentially matches the information-theoretic lower bound. An interesting question is whether or not it can be shown to be essentially optimal in the case of learning non-pure relations. As we show in the next section (Theorem 3), when using the second algorithm for [earning non-pure relations, our algorithm makes at most

min ~ { h p m +13mn21gk+4c~pmn (1- -~n) +mni24cm (1- -~n) lnk

mistakes in the worst case, where the minimum is taken over all partitions p, and kp denotes the size and C~p the noise of partition p where kp < k and C~p _< c~.

5. Algorithm Two: A Polynomial-time Algorithm

In this section we analyze our second algorithm, Learn-Relation, when applied to learning non-pure relations. (Recall that Learn-Relation is shown in Figure 3.) The mistake bound of Theorem 2 obtained for this algorithm is larger than the mistake bound of the first algorithm. However this algorithm uses only (~) weights as opposed to exponentially many. We begin by giving an update that is equivalent to the one used in W M G (Littlestone & Warmuth, 1989). Recall that in W M G if x is the prediction of an input with weight w, then i f t h e feedback is the bit p then w is multiplied by 1 - (1 - / 3 ) ] x - pl for/3 E [0, 1). I f / 3 = 3,/(2 - ~,), then for our application the update of W M G can be summarized as follows

  • If a node predicts correctly (so, ]x - pl = 0) its weight is not changed.
  • If a node makes a prediction of 1/2 then its weight is multiplied by 1 / ( 2 - 3,).
  • If a node predicts incorrectly (so, ]x - Pt = 1) then its weight is multiplied by ~ / ( 2 - ~).

260 G O L D M A N A N D WARiVIUTH

We now give an overview of the proof of our main result along with several key

lemmas that are used in the proof. Let p be any partition of size kp and noise c~p. We

note that the partition p is fixed throughout the analysis. Furthermore quantities such as g, Fi, ~~ (defined below) depend implicitly on p. Let # denote the total number of mistakes made by the learner, and let #i denote the number of mistakes that occur when the learner is predicting an entry in a row of cluster i. (Thus, ~ i = l^ kp #i = #-) Let ni be kp the number of rows in cluster i. (So n = ~ i = l nj.) Let A be all (~) edges and the set g contain all edges connecting two rows of the same cluster. We further decompose g into g l ,.. - , gkp where gi contains all edges connecting two rows in the same cluster i

of p. Observe t h a t / g d = n~(n~-l) 2 • When making an erroneous prediction for^ M~j,^ we

define the force of the mistake to be the number of rows in the same cluster as row r

for which column j was known when the mistake occurred. Ler Fi be the sum of the forces of all mistakes made when predicting an entry in a row of cluster i. Recall that the noise of a partition p is defined as

O~p

m

d(S~) = E E min{Af°(S~)'N'l(S~ )} =

S i Cp S ~Cp J = 1

~ ~ kp

i = 1 j = l i = 1

We now define Ji to be the number of times that a weight in gi is multiplied by 3" when making a prediction for an entry in cluster i. That is, Ji is the total number of times, over all trials in the learning session in which a mistake occurs, where an entry in cluster i incorrectly predicts the value of an entry in cluster i (voting with all its weight). We now give the key lemma used in our main proof. For ease of exposition, let

a = lg(2 - 3`) = lg l--4-fi^2 and b = l g ( 2 - ' ~ ' ~^ =l g ~. \ ' Y 2

LEMMA 2 For each i < i < kp,

Fi = b j i + -^1 ~-~"

eE/~

Proof: We begin by noting that, if C~p = 0, then J~ = 0 and the number of times some

weight in gi is multiplied by (2 - 7) equals Fi. Thus, in the noise-free case, it follows

that ( 2 - 7 ) Fz = [IeeE, w(e). When C~p > 0, then Fi is the number of times some weight in gi is multiplied by either (2 - 3') or 7. Since the number of times some weight in gi is multiplied by 3' is Ji we have that

= H ~(~). eßg~

Taking logarithms of both sides we obtain the stated result. []

Note that if ni = 1 then Ji = Igi[ = Ei = 0. The proof of our main theorem uses Lemma 2 as its starting point. We first obtain (Lemma 4) a lower bound for F~ that

L E A R N I N G B I N A R Y R E L A T I O N S 261

depends on the total number of mistakes, #i, made by our algorithm when making a prediction for an entry in cluster i. Next we must determine the maximum amount by which the "noisy" entries of the submatrix S i cause the weights in gi to be "weakened" (i.e. multiplied by "7) instead of being "strengthened" (i.e. multiplied by ( 2 - "7)) as desired. In Lemma 5 we show how Ji can be upper bounded in terms of 6i, the noise within cluster i. Finally in Lemma 7 we obtain an upper bound for the sum of the logarithms of the weights. We do this by observing that the total weight in the system never increases and then use the convexity of the logarithm function. The proof of our main theorem essentially combines all the lemmas and uses an additional convexity argument for combining the contributions from all clusters. We now obtain a lower bound for Fi. In order to obtain this lower bound, it is crucial to first obtain an upper bound on the number of mistakes for a given cluster and given force. This quantity characterizes the rate at which the weighted-majority nodes are gaining information.

LEMMA 3 For each cluster r and force f there are at most m mistakes of force f. Proof: We use a proof by contradiction. Suppose that for cluster i the learner makes m + 1 force f mistakes. Then there must be two mistakes that occur for the same column. Suppose the first of these mistakes occurs when predicting M r j and the second occurs when predicting M « j where both rows r and r ' are in cluster i. However, after making a force f mistake when predicting M r j that entry is known and thus the force of the M « j mistake taust be at least f + 1 giving the desired contradiction.

We now compute a lower bound for the force of the mistakes made when predicting entries in cluster i.

L E M M A 4 For any 1 < i < kp,

F i > m a x # i - m , 2 m 2 "

Proof: We proceed by showing that both expressions above are lower bounds for Fi. Ler {x) ~ denote a sequence containing the symbol x repeated m times. Let ~ri denote the sum of the first #i elements of the sequence ( 0 ) ~ ( 1 ) ~ ( 2 ) ~.. -. From Lemma 3 it follows that Fi _> cri. Thus, clearly our first lower bound

Fi > #i - m

follows since all but m mistakes have force at least one. We now compute a more sophisticated lower bound on cri. Ler s(x) (^) = ~ ~ : ~ z k = z(~+l) 2 "Using the structure illustrated in Figure 5 it is easily seen that

F{ > m s ( [ ~ ] -1)-(m[~]-#O(U~]-I)

L E A R N I N G B I N A R Y R E L A T I O N S 263

Since x 2 is convex, it follows that Ej=I^ m^ 52~,3" --> ~ " V This completes the proof of the lemma. •

Next we obtain an upper bound on the sum of the logarithms of the weights of a set of edges from .4. A key observation used to prove this upper bound is that the overall weight in the system never increases. Therefore, since the initial weight in the system

is n ( n - 1)/2 we obtain the following lemma.

LEMMA 6 Throughout the learning session for any `4~ C .4,

E w(e) < n(n- 1 ____~) e E. A '^ -^2

Proof: In trials where no mistake occurs the total weight of all edges ~ ~ e , a w(e)

clearly does not increase. Assume that a mistake occurs in the current trial. Ignore all weights that are not updated. Of the remaining total weight W that participates in the update let c be the fraction that was placed on the correct bit and 1 - c be the fraction placed on the incorrect bit. The weight placed on the correct bit is multiplied by 2 - 3' and the weight placed on the incorrect bit by 3". Thus the total weight of all

edges that participated in the update is (c(2 - 3") + (1 - c)~/)W at the end of the trial.

Since the latter is increasing in c and c < 1/2 whenever a mistake occurs, we have that the total of all weights updated in the current trial is at most ( - 7 -2-~ + ~ ) W"y = W at the end of the trial. We conclude that the total weight of all edges also does not increase in trials where a mistakes occurs. Finally since A I C `4, the result follows.

LEMMA 7 Throughout the learning session for any 4i C_4,

tgw(e) _< IA'llg 21A'------~ eEA'

Proof- This result immediately follows from Lemma 6 and the concavity of the 10g function. •

We are now ready to prove our main result.

THEOREM 2 For all/3 E [0, 1), Algorithm Learn-Relation when using the parameter

7 = T ~ makes at most

T-~~)lg 3rnn21gkp+2C~p(mn-ap)lg-~

min kpm + min ~ lg e + - - -"2" - ~ 2

lg ~ lg

mistakes in learning a binary-relation where the outside minimum is taken over all

partitions p, and kp denotes the size and ap the noise of partition p.

264 G O L D M A N A N D W A R M U T H

Proof: Let p be any partition of size kp and noise O~p. We begin by noting that for any cluster i and column j in partition p, (Si,j < nil2_ and thus (5i = ~ j = l^ m ~i,j _< nim/2. Let $1 = {i I n~ = 1}, and Sz = {i I n~ _> 2}. Clearly the total number of mistakes, #, can be expressed as

# = Z P i + ~ # i. iES1 iES

Recall that in Lemma 4 we showed that F.i > #i - m. Observe that if ni = 1 then Fi = 0, and thus it follows that ~iEs~ #i < ISltm._ As shown below, ~ i e s 2 #i is bounded from above by a function of the form IS2[m + x where x is some positive quantity. Thus

iES1 iES

Since it is easily seen that the value of x is maximized when IS2t = n, we will assume throughout the remainder of this section that ni > 2 for all i. As we have discussed, the base of our proof is provided by Lemma 2. We then apply Lemmas 4, 5 and 7 to obtain an upper bound on the number of mistakes made by Learn-Relation. We now proceed independently with the two lower bounds for Fi given in Lemma 4. Applying Lemma 2 with the first lower bound for Fi given in Lemma 4, summing over the clusters in p, and solving for # yields,

kp b kp # = ~. i < ]~pm + -- Za_ i = 1 i = 1

From Lemma 5 we know that

the function n~i - ~ is concave. kp ~ i = l ~i = C~p, we obtain:

kp (^) O~p 2 J~ < nc~p i = l -- k p m

+ i Z l g (2)

a e E g 67 ~ Ji ~ ~iTZi -- N ~ ~in -- -m" I t i s easily v e r i f i e d t h a t Thus, combining Jensen's inequality with the fact that

  • (3)

In addition, by applying Lemma 7 with .At = g we obtai~ .... at:

n(n - I) Zlg ( )_<ICllg 2qE--7-- eE£

Next observe that the function z lg ~ is concave and obtains its maximum value at X - - ,~(~-i).2e^ Thus we obtain that

Eeilg ~(n - i) < n(n- i)Ige ~ 21g - 2--e-" (4)