• 沒有找到結果。

Construction of the Privacy-Preserving Decision Function

3.4 Privacy-Preserving SVM Classifier

3.4.1 Construction of the Privacy-Preserving Decision Function

The decision function of the Gaussian kernel SVM classifier is

f (x) =

m

i=1

αiyiexp(−g||SVi− x||2) + b (3.8)

The components of the classifier are the kernel parameter g, the bias term b, support vectors{(SV1, y1),· · · , (SVm, ym)} and their corresponding supports {α1,· · · , αm}.

The content of each attribute vector SViis considered to be sensitive, but the class labels yi’s are usually not. We intend to destroy the content of all support vectors’ attribute vectors in the decision function by an irreversible way similar to the effect the linear

combination causes in the linear kernel SVM classifier, as we have mentioned in Section 3.3.2.

The value of the Gaussian kernel function K(x, y) = exp(−g||x − y||2) depends on the relative distance between two instances||x − y||. In the decision function (3.8), the term||SVi−x||2 which calculates the square of the distance between the testing instance x and a support vector SVi can be computed by||SVi− x||2 =||SVi||2− 2(SVi· x) +

||x||2 . So the decision function (3.8) can be equivalently formulated as

f (x) = b+

In (3.9), the expanded form of the decision function, there are two terms contain-ing support vectors: exp(−g||SVi||2) and exp(2gSVi · x) in the summation operator.

The former term depends merely on the magnitude of SVi and hence can be computed a priori. All exp(−g||SVi||2), i = 1 to m can be combined with αiyi to constants

The term exp(−g||x||2) extracted from the summation operator in (3.9) or (3.10) is a scalar related only to the testing instance x. This term has no connection with the privacy of the training data. Now the support vectors exist only in the term exp(2gSVi· x) in the summation operator. We proceed to tackle it by replacing the exponential function with its infinite series representation:

By replacing exp(2gSVi · x) with its infinite series representation exp(2gSVi · x) =

d=0

(2gSVi·x)d

d! , the∑m

i=1ciexp(2gSVi· x) of the decision function (3.10) becomes

m

It follows that the support vectors exist only in the term (SVi · x)dof the inner sum-mation operator. We next take a key step by applying the monomial feature mapping.

The form of (x· y)d corresponds to the monomial feature kernel [47], which can be defined as the dot product of the monomial feature mapped x and y as (x· y)d = Φd(x)· Φd(y) where Φd() is the order-d monomial feature mapping (The rationale of the monomial feature mapping will be given in Section 3.4.1).

Thus the (SVi· x)din (3.12) with monomial feature kernel form can be equivalently computed by the dot product of the order-d monomial feature mapped support vector SVi

and testing instance x:

(SVi· x)d= Φd(SVi)· Φd(x)

A key step arises from writing the monomial feature kernel as the dot product of monomial feature mapped instances. By replacing the (SVi· x)dwith Φd(SVi)· Φd(x)

It is noted that in each order-d monomial feature mapped space, all the order-d

mono-mial feature mapped support vectors d(SV1),· · · , Φd(SVm)} can be linearly

In each wd, all support vectors are mapped into the order-d monomial feature space and linearly combined, and hence the content of each support vector SVi has been de-stroyed in the linear combination similar to the w =m

i=1αiyiSVi in the linear kernel

By substituting both (3.14) and (3.15) into (3.13), which is equivalent to the

m

i=1ciexp(2gSVi· x) of the decision function (3.10), the (3.13) can be represented as

m

By feeding the (3.16) into the decision function (3.10), the decision function becomes:

f (x) = exp(−g||x||2)

This is the privacy-preserving form of the decision function of the Gaussian kernel SVM classifier. In this new form of the decision function, the data which need to be pre-served in the classifier are wd’s of each order-d instead of support vectors in the original decision function. The private content of support vectors has been destroyed by the linear combinations, and the necessary information to perform classification originally provided from support vectors can be given by wd’s, which are linear combinations of monomial feature mapped support vectors.

The privacy-preserving decision function (3.17) has an infinite series, which contains wd, d = 1, . . . ,∞, the linear combinations of monomial feature mapped support vectors

from order-1 to order-∞, and the monomial feature mapped testing instance Φd(x) from order-1 to order-∞. The infinite complexity of the privacy-preserving decision function is surely impractical. However, since the infinite series in the privacy-preserving decision function is a Taylor series, it can be precisely approximated near the evaluating point by merely a little number of low-order terms and hence makes possible the practical use.

Later we will study the precision of approximating by the Taylor polynomial both in theoretical analyses and empirical experiments to show that the privacy-preserving deci-sion function can be precisely approximated by using merely a few low-order terms of the infinite series. Before going to the approximation of the privacy-preserving decision function, we first present the monomial feature mapping.

Monomial Feature Mapping

Lemma 6 below states how monomial feature mapping replaces (x·y)dby the dot product of Φd(x) and Φd(y), the order-d monomial feature mapped x and y.

Lemma 6 For x, y ∈ RN and d ∈ N, the monomial feature kernel K(x, y) = (x · y)d generates order-d monomial features of x and y. Suppose x and y are n-dimensional.

The feature map of this kernel can be defined coordinate-wise as

Φm(x) =

i=1mi = d. Every such m corresponds to each dimension of monomial features [46, 47].

Proof 10 All terms in the expansion of (x· y)d = (x1y1 +· · · + xnyn)d will be in the form (x1y1)m1(x2y2)m2· · · (xnyn)mn, where each mi is an integer with 0 ≤ mi ≤ d and

n

i=1mi = d. By multinomial theorem [18], the coefficient of each (x1y1)m1(x2y2)m2· · · (xnyn)mnterm ism d!

A simple example to illustrate the monomial feature mapping is given as follows. The order-2 monomial feature kernel of x, y∈ R2[47, 55]:

(x· y)2 = ((x1, x2)· (y1, y2))2 = (x1y1+ x2y2)2

= (x21,√

2x1x2, x22)· (y21,√

2y1y2, y22)

From Lemma 6, those m’s satisfying2

i=1mi = 2 with 0 ≤ mi ≤ 2 are (2, 0), (1, 1), and (0, 2). So the order-2 monomial features of x ∈ R2 are x21, x1x2, and x22. The corresponding coefficients are 1,

2, and 1 from the (3.18) of Lemma 6. Hence the order-2 monomial feature mapping of x = (x1, x2) (y, respectively) is (x21,√

2x1x2, x22).

The dimensionality of the order-d monomial feature mapping for n-dimensional vec-tors is stated in Lemma 7 below.

Lemma 7 For x ∈ Rn, the dimensionality of x’s order-d monomial feature mapping is (d+n−1

d

).

Proof 11 From Lemma 6, every m∈ Nnwithn

i=1mi = d where each miis an integer with 0 ≤ mi ≤ d corresponds to one dimension of monomial features. Enumerating all such m’s is equivalent to finding all integer solutions of the equation m1+m2+· · ·+mn = d where mi ≥ 0 for i = 1 to n. Enumerating all integer solutions to this equation is equivalent to enumerating all size-d combinations with repetitions from n kinds of objects [18], and the number of the combinations with repetitions is(d+n−1

d

).

To generate the monomial feature mapping, an algorithm to enumerate all size-d com-binations with repetitions from n kinds of objects is required. Due to the space limit, its detail is omitted. Notice that the monomial feature mappings do not need to be gener-ated in testing time. To make a more efficient classifier, those mappings can be genergener-ated off-line, and the classifier simply takes the corresponded mapping to use.

3.4.2 PPSVC: Approximation of the Privacy-Preserving Decision