<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2017.52004</article-id><article-id pub-id-type="publisher-id">JCC-74258</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  A Study on Differential Private Online Learning
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Cheng</surname><given-names>Wang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Weilin</surname><given-names>Nie</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Huizhou University, Huizhou, China</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>wangch@hzu.edu.cn(CW)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>25</day><month>01</month><year>2017</year></pub-date><volume>05</volume><issue>02</issue><fpage>28</fpage><lpage>33</lpage><history><date date-type="received"><day>18,</day>	<month>December</month>	<year>2016</year></date><date date-type="rev-recd"><day>18,</day>	<month>February</month>	<year>2017</year>	</date><date date-type="accepted"><day>21,</day>	<month>February</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Online learning algorithms are very attractive, in which iterations are applied efficiently instead of solving some optimization problems. In this paper, online learning with protecting privacy is considered. A perturbation term is added into the classical online algorithms to obtain the differential privacy property. Firstly the distribution for the perturbation term is deduced, and then an error analysis for the new algorithms is performed, which shows the convergence and learning rate. From the error analysis, a choice for the parameters for differential privacy can be found theoretically.
 
</p></abstract><kwd-group><kwd>Online Learning</kwd><kwd> Differential Privacy</kwd><kwd> Output Perturbation</kwd><kwd> Error Decomposition</kwd><kwd> Learning Rate</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Online learning is widely used recently in computer sciences, due to its effi- ciency in calculation and well theoretical results. Compared with the classical batch learning in learning theory, online algorithms update the output only according to the last sample point. So such algorithms are very effective to handle the practical problems and have been studied in [<xref ref-type="bibr" rid="scirp.74258-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.74258-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.74258-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.74258-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.74258-ref5">5</xref>] and etc. However, as the technologic development of data analysis, there are risks for applying such algorithms on a big data set. A commonly used notion for mea- suring the risk is differential privacy [<xref ref-type="bibr" rid="scirp.74258-ref6">6</xref>] . Little references on this topic can be found except for [<xref ref-type="bibr" rid="scirp.74258-ref7">7</xref>] . There the authors conducted an analysis for online convex programming. Choice for the parameters of differential privacy and utilities ana- lysis are presented for algorithms such as implicit gradient descent and genera- lized infinitesimal gradient descent. In this paper, the line of work begins with [<xref ref-type="bibr" rid="scirp.74258-ref8">8</xref>] is considered which can be thought as a kernel online learning algorithm.</p></sec><sec id="s2"><title>2. Fundamental Principles</title><p>Our setting for online learning is introduced as follow. Let the input space X be a compact metric space, and output Y ∈ [ − M , M ] for some M &gt; 0 as a regression problem. Denote Z : = X &#215; Y as the sample space. Assume there is a probability measure ρ on Z , which can be decomposed to marginal dis- tribution ρ X on X and conditional distribution ρ ( y | x ) on Y at x ∈ X . Then the regression function is defined by</p><p>f ρ = ∫ Y y d ρ ( y | x ) (1)</p><p>which is indeed the conditional expectation of y given x . The regression fun- ction minimizes the least square generalization error (see [<xref ref-type="bibr" rid="scirp.74258-ref9">9</xref>] for more details)</p><p>E ( f ) : = ∫ Z ( f ( x ) − y ) 2 d ρ (2)</p><p>So learning algorithms always aim to approximate the regression function</p><p>based on samples { z t = ( x t , y t ) } t = 0 , 1 , 2 , ⋯ , which are drawn independently from</p><p>distribution ρ . Let K : X &#215; X → R be a Mercer Kernel, and H K is the in- duced reproducing kernel Hilbert space (RKHS, [<xref ref-type="bibr" rid="scirp.74258-ref10">10</xref>] ), i.e., the completion of</p><p>span { K x : x ∈ X } where K x ( x ′ ) = K ( x , x ′ ) for any x , x ′ ∈ X with respect to</p><p>the inner product 〈 K x , K x ′ 〉 K = K ( x , x ′ ) . The corresponding norm in H K is denoted as ‖ ⋅ ‖ K . Now our online learning algorithm as</p><p>f t + 1 = f t − η t [ ( f t ( x t ) − y t ) K x t + λ t f t ] ,   t = 0 , 1 , 2 , ⋯ (3)</p><p>with f 0 = 0 . Here η t &gt; 0 is the step size and λ t &gt; 0 is the regularization parameter.</p><p>When applying this online algorithm on private data set, it may leak some sensitive information. To deal with this privacy problem, Dwork et al. introdu- ced differential privacy in [<xref ref-type="bibr" rid="scirp.74258-ref11">11</xref>] . Which can be described as follow. For the sample space Z introduced above, the Hamming distance between two sample sets { z 1 , z 2 } ∈ Z m is</p><p>d ( z 1 , z 2 ) = # { i = 1 , ⋯ , m : z 1 , i ≠ z 2 , i } (4)</p><p>Definition 1 A random algorithm A : Z m → Range ( A ) is ϵ -differential pri- vate if for every two data sets z 1 , z 2 satisfying d ( z 1 , z 2 ) = 1 , and every set O ∈ Range ( A ( z 1 ) ) ∩ Range ( A ( z 2 ) ) , there holds</p><p>P r { A ( z 1 ) ∈ O } ≤ e ϵ ⋅ P r { A ( z 2 ) ∈ O } (5)</p><p>To endow our online algorithm the differential privacy property, a perturba- tion term is added into the output of (3), that is,</p><p>f t , A = f t + b t (6)</p><p>where b t takes value in R with distribution to be determined in following analysis.</p><p>Differential private online learning has already been studied in [<xref ref-type="bibr" rid="scirp.74258-ref7">7</xref>] , there the authors consider a differentially private online convex programming problem. Here our algorithm is different, which is based on the Mercer kernels. Our pur- pose in this paper is to firstly provide the explicit density function for b and then conduct an error analysis for (6), which reveals the learning rate.</p></sec><sec id="s3"><title>3. Differential Privacy Analysis</title><p>In this section, a detail analysis for the perturbation term b t in algorithm (6) will be conducted. Firstly recall the useful definition of sensitivity and lemma proposed in [<xref ref-type="bibr" rid="scirp.74258-ref11">11</xref>] .</p><p>Definition 2 denote Δ f t as the maximum infinite norm of difference betw- een the outputs when changing the last sample point in z . Let z = { ( x i , y i ) } i = 0 t and z = { ( x 1 , y 1 ) , ( x 2 , y 2 ) , ⋯ , ( x t − 1 , y t − 1 ) , ( x t &#175; , y t &#175; ) } , f t and f t &#175; derived from (3) accordingly, it is clear that</p><p>Δ f t : = sup z , z &#175; ‖ f t − f t &#175; ‖ ∞ (7)</p><p>Then a similar result to [<xref ref-type="bibr" rid="scirp.74258-ref11">11</xref>] is:</p><p>Lemma 1 Assume Δ f t is bounded by C t &gt; 0 , and b t has density function</p><p>proportion to e x p { − ϵ | b | C t } , then algorithm (6) provides ϵ -differential privacy.</p><p>Proof. For all possible output function r , and z , z &#175; differ in last element, then</p><p>P r { f t , A = r } = P r b t { b t = r − f t } ∝ e x p ( − ϵ | r − f t | C t ) (8)</p><p>and</p><p>P r { f t &#175; , A = r } = Pr b t { b t = r − f t &#175; } ∝ exp ( − ϵ | r − f t &#175; | C t ) (9)</p><p>So by triangle inequality,</p><p>Pr { f t , A = r } ≤ Pr { f t &#175; , A = r } &#215; e ϵ | f t − f t &#175; | C t ≤ e ϵ Pr { f t &#175; , A = r } (10)</p><p>Then the lemma is proved by a union bound. <inline-formula><inline-graphic xlink:href="/html.scirp.org/file/4-1730534x62.png" xlink:type="simple"/></inline-formula></p><p>It is obvious that if finding the upper bound for Δ f t , the distribution for b t can be derived. Set η t = 1 / ( t + t 0 ) θ and λ t = 1 / ( t + t 0 ) 1 − θ for some t 0 &gt; 0 and</p><p>0 &lt; θ &lt; 1 . Moreover, denote κ = sup x , x ′ ∈ X K ( x , x ′ ) (as K is Mercer Kernel</p><p>on compact metric space X ). The next lemma is taken from [<xref ref-type="bibr" rid="scirp.74258-ref1">1</xref>] to bound ‖ f t ‖ K .</p><p>Lemma 2 If t 0 θ ≥ κ 2 + 1 , then for all t ∈ ℕ , there holds</p><p>‖ f t ‖ K ≤ κ M λ t (11)</p><p>Now the main result for differential privacy for algorithm (6) follows.</p><p>Theorem 1 When choosing η t = 1 / ( t + t 0 ) θ and λ t = 1 / ( t + t 0 ) 1 − θ for some</p><p>1 2 &lt; θ &lt; 1 and t 0 θ ≥ κ 2 + 1 , let the density function of b t is 1 α e x p { ϵ | b | C t } with α = 2 C t / ϵ and</p><p>C t = 2 ( κ 2 + 1 ) κ M ( t − 1 + t 0 ) 2 θ − 1 (12)</p><p>then the algorithm (6) provides ϵ -differential privacy.</p><p>Proof. From (3) there holds</p><p>f t = f t − 1 − η t − 1 [ ( f t − 1 ( x t − 1 ) − y t − 1 ) K x t − 1 + λ t − 1 f t − 1 ] (13)</p><p>and</p><p>f t &#175; = f t − 1 − η t − 1 [ ( f t − 1 ( x t &#175; − 1 ) − y t &#175; − 1 ) K x t &#175; − 1 + λ t − 1 f t − 1 ] (14)</p><p>Then</p><p>f t − f t &#175; = η t − 1 [ ( f t − 1 ( x t &#175; − 1 ) − y t &#175; − 1 ) K x t &#175; − 1 − ( f t − 1 ( x t − 1 ) − y t − 1 ) K x t − 1 ] (15)</p><p>From the above lemma ‖ f t − 1 ‖ K ≤ κ M λ t − 1 for all t . By the reproducing proper- ty that f ( x ) = 〈 f , K x 〉 K ≤ ‖ f ‖ K ‖ K x ‖ K ≤ κ ‖ f ‖ K (see [<xref ref-type="bibr" rid="scirp.74258-ref9">9</xref>] ),</p><p>‖ f t − f t &#175; ‖ K ≤ 2 η t − 1 ( κ 2 M λ t − 1 + M ) κ (16)</p><p>Therefore</p><p>Δ f t = sup z , z &#175; ‖ f t − f t &#175; ‖ ∞ ≤ 2 κ 2 ( κ 2 + 1 ) M ( t − 1 + t 0 ) 2 θ − 1 (17)</p><p>Set B t to be the right hand side in lemma 1 then the theorem is proved. <inline-formula><inline-graphic xlink:href="/html.scirp.org/file/4-1730534x94.png" xlink:type="simple"/></inline-formula></p></sec><sec id="s4"><title>4. Error Analysis</title><p>In this section, f ρ ∈ H K is assumed for simplicity. It will be shown that f t obtained from (6) still converge to regression function f ρ by choosing appro- priate parameter ϵ under the choice of η t and λ t as in the theorem in the last section. To this end, an error decomposition is needed. Denote operators L t : H K → H K as L t ( f ) = f ( x t ) K x t for t = 0 , 1 , 2 , ⋯ , and I as the identity operator. It is easy to verify that ‖ L t ‖ ≤ κ 2 . Notice that f ρ ∈ H K , the following decomposition can be deduced:</p><p>f t + 1 − f ρ = ( I − η t λ t I − η t L t ) ( f t − f ρ ) + η t [ y t K x t − ( λ t I + L t ) f ρ ] (18)</p><p>= A t ( f t − f ρ ) + B t = A t [ A t − 1 ( f t − 1 − f ρ ) + B t − 1 ] + B t = ⋯ (19)</p><p>= A t A t − 1 ⋯ A 0 ( f 0 − f ρ ) + [ B t + A t B t − 1 + ⋯ + A t A t − 1 ⋯ A 1 B 0 ] (20)</p><p>Here A t = I − η t λ t I − η t L t and B t = η t [ y t K x t − ( λ t I + L t ) f ρ ] . In the follow- ing the first term is called initial error and second one is sample error. The initial error is easy to bound from the analysis above. Since t 0 is such that</p><p>t 0 θ ≥ κ 2 + 1 , A t is a positive operator with ‖ A t ‖ ≤ 1 − η t λ t = ( t + t 0 − 1 ) / ( t + t 0 ) .</p><p>‖ A t A t − 1 ⋯ A 0 ( f 0 − f ρ ) ‖ K ≤ ‖ A t ‖ ‖ A t − 1 ‖ ⋯ ‖ A 0 ‖ ⋅ ‖ f 0 − f ρ ‖ K ≤ Π j = 0 t j + t 0 − 1 j + t 0 ‖ f 0 − f ρ ‖ K = t 0 t + t 0 ‖ f ρ ‖ K .</p><p>For the sample error, it is more difficult and the Pinelis-Bernstein inequality [<xref ref-type="bibr" rid="scirp.74258-ref4">4</xref>] will be applied.</p><p>Lemma 3 Let ξ i be a martingale difference sequence in a Hilbert space. Sup- pose that almost surely ‖ ξ i ‖ ≤ B and ∑ i = 1 t E i − 1 ‖ ξ i ‖ 2 ≤ σ t 2 for some constants</p><p>B , σ t &gt; 0 ,   t = 1 , 2 , ⋯ . Then for any 0 &lt; δ &lt; 1 , with probability at least 1 − δ , there holds</p><p>‖ ∑ i = 1 t ξ i ‖ ≤ 2 ( B 3 + σ t ) ln ( 2 δ ) (21)</p><p>Now the error bounds for sample error can be derived. Notice that</p><p>‖ B t ‖ K ≤ η t [ M κ + ( κ 2 + λ t ) ‖ f ρ ‖ K ] ≤ η t [ M κ + ( κ 2 + 1 ) ‖ f ρ ‖ K ] . Set</p><p>ξ i = A t A t − 1 ⋯ A i B i − 1 ,   i = 1 , 2 , ⋯ , t , then</p><p>‖ ξ i ‖ K ≤ ‖ A t ‖ ‖ A t − 1 ‖ ⋯ ‖ A i ‖ ‖ B i − 1 ‖ K ≤ i + t 0 − 1 t + t 0 η i − 1 [ M κ + ( κ 2 + 1 ) ‖ f ρ ‖ K ] (22)</p><p>= 1 t + t 0 1 λ i − 1 [ M κ + ( κ 2 + 1 ) ‖ f ρ ‖ K ] ≤ 1 t + t 0 1 λ t [ M κ + ( κ 2 + 1 ) ‖ f ρ ‖ K ] (23)</p><p>= η t [ M κ + ( κ 2 + 1 ) ‖ f ρ ‖ K ] . (24)</p><p>And ∑ i = 1 t E i − 1 ‖ X i ‖ K 2 ≤ t η t 2 [ M κ + ( κ 2 + 1 ) ‖ f ρ ‖ K ] . So for any 0 &lt; δ &lt; 1 , with probability at least 1 − δ ,</p><p>‖ ∑ i = 1 t ξ i ‖ K ≤ 8 3 t η t [ M κ + ( κ 2 + 1 ) ‖ f ρ ‖ K ] ln ( 2 δ ) ≤ 8 3 t θ − 1 / 2 [ M κ + ( κ 2 + 1 ) ‖ f ρ ‖ K ] ln ( 2 δ ) (25)</p><p>Note that ‖ B t ‖ K ≤ η t [ M κ + ( κ 2 + 1 ) ‖ f ρ ‖ K ] , hence</p><p>‖ B t + A t B t − 1 + ⋯ + A t A t − 1 ⋯ A 1 B 0 ‖ K ≤ 11 3 t θ − 1 / 2 [ M κ + ( κ 2 + 1 ) ‖ f ρ ‖ K ] ln ( 2 δ ) (26)</p><p>Combining the initial error, sample error bounds and applying Markov in- equality for the fact that E | b t + 1 | = C t + 1 / ϵ , the total error estimation is obtained.</p><p>Theorem 2 Choose η t , λ t and b t as in the theorem in the last section, with confidence 1 − δ ( 0 &lt; δ &lt; 1 ) , there holds</p><p>‖ f t + 1 , A − f ρ ‖ K ≤ C ϵ 1 t θ − 1 / 2 4 δ (27)</p><p>where constant C ϵ = 4 ( κ 2 + 1 ) κ M / ϵ + t 0 ‖ f ρ ‖ K + 11 3 ( κ M + ( κ 2 + 1 ) ‖ f ρ ‖ K ) .</p></sec><sec id="s5"><title>5. Conclusion</title><p>In this paper, analysis is performed for the differential privacy (Theorem 1) and generalization property (Theorem 2) for the online differential private learning algorithm (6). Under the choice of parameters in our theorems, the algorithm (6) can provide ϵ -differential privacy and keep learning rate close to 1 / 2 , for any ϵ &gt; 0 . However, this error bound is not satisfactory enough. It might be an interesting problem to promote the error bound from 2 / δ to l n ( 2 / δ ) in our future work.</p></sec><sec id="s6"><title>Fund</title><p>This work is supported by NSFC (Nos. 11326096, 11401247), NSF of Guangdong Province in China (No. 2015A030313674), Foundation for Distinguished Young Talents in Higher Education of Guangdong, China (No. 2013LYM_0089), National Social Science Fund in China (No. 15BTJ024), Planning Fund Project of Humanities and Social Science Research in Chinese Ministry of Education (No. 14YJAZH040) and Doctor Grants of Huizhou University (No. C511.0206).</p></sec><sec id="s7"><title>Cite this paper</title><p>Nie, W.L. and Wang, C. (2017) A Study on Differential Private Online Learning. Journal of Computer and Communications, 5, 28-33. https://doi.org/10.4236/jcc.2017.52004</p></sec></body><back><ref-list><title>References</title><ref id="scirp.74258-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Ying, Y. and Zhou, D.X. (2006) Online Regularized Classification Algorithms. IEEE Transactions on Information Theory, 11, 4775-4788.  
https://doi.org/10.1109/TIT.2006.883632</mixed-citation></ref><ref id="scirp.74258-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Smale, S. and Zhou, D.X. (2009) Online Learning with Markov Sampling. Analysis and Applications, 7, 87-113. https://doi.org/10.1142/S0219530509001293</mixed-citation></ref><ref id="scirp.74258-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Guo, Z.C. and Wang, C. (2011) Online Regression with Unbounded Sampling. International Journal of Computer Mathematics, 88, 2936-2941.  
https://doi.org/10.1080/00207160.2011.587510</mixed-citation></ref><ref id="scirp.74258-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Tarrés, P. and Yao, Y. (2014) Online Learning as Stochastic Approximations of Regularization Paths. IEEE Transactions on Information Theory, 60, 5716-5735.</mixed-citation></ref><ref id="scirp.74258-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Ying, Y. and Zhou, D.X. (2015) Online Pairwise Learning Algorithms with Kernels. Computer Science, 10, 441-449.</mixed-citation></ref><ref id="scirp.74258-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Dwork, C., McSherry, F., Nissim, K. and Smith, A. (2006) Calibrating Noise to Sensitivity in Private Data Analysis. Theory of Cryptography, Springer, 265-284.  
https://doi.org/10.1007/11681878_14</mixed-citation></ref><ref id="scirp.74258-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Jain, P., Kothari, P. and Thakurta, A. (2012) Differential Private Online Learning. JMLR: Workshop and Conference Proceedings, 2012, 1-34.</mixed-citation></ref><ref id="scirp.74258-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Smale, S. and Yao, Y. (2006) Online Learning Algorithms. Foundations of Computational Mathematics, 6, 145-170. https://doi.org/10.1007/s10208-004-0160-z</mixed-citation></ref><ref id="scirp.74258-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Cucker, F. and Smale, S. (2002) On the Mathematical Foundations of Learning. Bulletin of the American Mathematical Society, 39, 1-49.  
https://doi.org/10.1090/S0273-0979-01-00923-5</mixed-citation></ref><ref id="scirp.74258-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Aronszajn, N. (1950) Theory of Reproducing Kernels. Transactions of the American Mathematical Society, 68, 337-404.  
https://doi.org/10.1090/S0002-9947-1950-0051437-7</mixed-citation></ref><ref id="scirp.74258-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Dwork, C. (2006) Differential Privacy. ICALP, Springer, 1-12.  
https://doi.org/10.1007/11787006_1</mixed-citation></ref></ref-list></back></article>