CSC2412: Private Multiplicative Weights
Sasho Nikolov
1
CSC2412: Private Multiplicative Weights Sasho Nikolov 1 Query - - PowerPoint PPT Presentation
CSC2412: Private Multiplicative Weights Sasho Nikolov 1 Query Release Reminder: Query Release 50,1 } . :D oh Recall the query release problem: q.lt/--tnEZ9ilx ) Workload Q = { q 1 , . . . , q k } of k counting queries . , Xu } teh x
CSC2412: Private Multiplicative Weights
Sasho Nikolov
1Query Release
Reminder: Query Release
Recall the query release problem:
Q(X) = B @ q1(X) . . . qk(X) 1 C A 2 [0, 1]k.
max
i=1 |Yi qi(X)| ↵,with probability 1 .
2q.lt/--tnEZ9ilx
)
where
teh x ,
. . . . , Xu}Motivating example
`-wise marginals queries:
qS,a(x) = 8 < : 1 xij = aij 8ij 2 S
. E.g., “smoker and female?”, “smoker and over 30?”, “smoker and heart disease?”, etc.
3d binary attributes
e
e
Q,
=workload
all E- wise marginal
queries
"
tael
= ( del .de# I'
What do we know?
4 E- DP:
Using
the
Laplace
noise
mechanism
,
we cananswer k
counting queries
a'
'win
none :L I;9i÷m
"
( ed )
the
Gaussian
noise
mechanism
:no > Water
LE EL
Private Multiplicative Weights
We will see an algorithm that achieves:
n log(k) log(|X|) ↵3" .
n log(k) p log(|X|) log(1/) ↵2" .
5 is constant.
.
K
Learning a distribution
A probability view
We can think of X = {x1, . . . , xn} as a probability distribution p: P
x⇠p(x = y) = |i : xi = y|n Then, for any counting query q : X ! {0, 1}, q(X) = 1 n
nX
i=1q(x)
6 → allowed toabemultisetµ
5 uniform
K
H XL ,
. .ie
.yet )
=expectation
q
under the
empirical
distribution
X
Learning a distribution
Task: Learn an approximation ˆ p of the empirical distribution p such that 8q 2 Q : |q(ˆ p) q(p)| ↵.
7release problem
distributions over
&
→
a
workload of
4 queries
q
q
III
,Y' "
11If
we cando
this
, we canrelease
answers
for all
qeQ
Trick
( again ) :we
will
assumethat if
q
is
asked,
then
I - q isalso
asked
⇒
enough
to
make
sure
ginger
945 '
Bounded mistake learner
Distribution learning algorithm U:
p and q such that q(ˆ p) q(p) > ↵
p0 = U(q, ˆ p) Suppose that ˆ p0 = uniform over X and ˆ pt = U(ˆ pt1, qt). U makes at most L mistakes if any such sequence ˆ p0, ˆ p1, . . . , ˆ p` must have t L.
8tonged
't
know
p
→ update algorithm§
makes
a mistakeT ryon which
→§
makes
amistake
→
q
13€
> an improvementinitial
'Ivers ↳ keep improving It by poinmitifagqegoatl
After making
L
mistakes
( and
L improvements )
poi
must
beaccurate
for
all g
Multiplicative Weights Learner
Theorem There exists a distribution learner U that makes L 4 ln |X|
↵2mistakes.
9The Learner
U(q, ˆ p) 8x 2 X : ˜ p(x) = ˆ p(x)eηq(x) ˆ p0(x) =
˜ p(x) P y∈X ˜ p(y)return ˆ p0
10Multiplicative
weight update
Algorithm
Reminder
:gip )
pa
gives
too
much weight
to
xst
. qcx, it9451--17,9
" 'you
,
= prob*
:g.
parameter itogefbecafer
under
F
→
decrease
join
it
t
↳ normalize
toget
aprob
.distribution
Why it works
KL-divergence: D(pkˆ pt) = P
x2X p(x) log p(x) ˆ pt(x)p0) log |X| because ˆ p0 is uniform
pt) 0 for all t
pt) D(pkˆ pt1) η
2(qt1(p) qt(ˆpt1)) + η2
4 . 11Ponton
notion
=
Dlptlpol
fog , 'Ll
initial guess
pro
find mistake
q ,
5.
= Utpo.gl )find mistake
92
1%a1ft-il-qt.ie#hyIa-iI---IfIY.tu
Maps
set a- a
Private Multiplicative Weights
Idea for private algorithm
p0 uniform.
pt) q(p) < ↵, output ˆ pt
pt+1 = U(p, q) and increase t
10tr
n#/
q? ,
a
→
"" themes ina
hare error
terminates
after
eL
= 4617Literations
The algorithm in detail
ˆ p0 = uniform over X for t = 1 . . L Sample q 2 Q w/ prob / exp ⇣
n(q(ˆ pt)q(p)) 2"0⌘ Yt = q(p) + Zt, Zt ⇠ Lap(0,
1 "0n)if q(ˆ pt) Yt) > 2↵ ˆ pt = U(ˆ pt1, q) else Output ˆ pt
11↳
hlnhhl
goparameter,
to
be set in the priv .T
analysis
②mechanism
wantgipp
w/ score
approxworst
" 9N) = gift*
In
a Mma noise week*
w/ priv
param Eo
⇒
exponential
mech
parameter
↳ Max
error
E gift )th
32
I
Privacy analysis
12Approach
:found
privacy
loss
per
iteration .
use
composition
theorem
to
bound
total
prior loss F-xp
mech
Eopriv
loss per
iteration
:tap mech
e.Leo
by
composition
Total
EL
iterations
→ total
priv
.loss
E
2L
Eo - DPset
eo
= IT =FLIRT
Accuracy analysis
13t)
we want
that
w/ prof
z
Pll Ztl
? d) E et t
14T
Eh
↳query
in
round
t
Laplace mechanism
w,s
L adaptive
queries enough
to
have
ns.enk/pl=2LlnkMIalbIkH
Ed
Eod
2)
weprob
? I - Pat
every
iteration
qlpnel
q' ( Ftl
if
n → l°L!!L = 21¥13! 2¥13 ) { 2Eh