-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtalk8-pfedmac.tex
More file actions
324 lines (238 loc) · 10.9 KB
/
Copy pathtalk8-pfedmac.tex
File metadata and controls
324 lines (238 loc) · 10.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
\usepackage{nccmath}
\begin{document}
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\title[pFedMac]{Talk 8: pFedMac}
\date{2021-9-16}
% \institute[北京航空航天大学] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space
% {
% 数学科学学院 \\ % Your institution for the title page
% \medskip
% \textit{wenh06@gmail.com} % Your email address
% 北京航空航天大学 \\
% 数学科学学院 \qquad 北京航空航天大学
% }
% \logo{\includegraphics[height=1.5cm]{logo}}
% \logoii{\includegraphics[height=1cm]{logo2}}
% \date{\footnotesize 2021年4月13日} % Date, can be changed to a custom date
\setlength{\belowdisplayskip}{5pt} \setlength{\belowdisplayshortskip}{5pt}
\setlength{\abovedisplayskip}{5pt} \setlength{\abovedisplayshortskip}{5pt}
%------------------------------------------------
\begin{frame}
\titlepage % Print the title page as the first slide
\end{frame}
%------------------------------------------------
% Page 1
\begin{frame}
\frametitle{pFedMac - Motivations and Outlines}
{\large
\begin{itemize}
\item personalization \\
- via ``maximizing correlation''
\vspace{1em}
\item communication efficiency \\
- via ``sparse'' and/or ``hierarchical'' graphs
\end{itemize}
}
\blfootnote{\tiny \cite{li2021pfedmac}\bibentry{li2021pfedmac}}
\end{frame}
%------------------------------------------------
\section{Personalization}
%------------------------------------------------
% Page 15
\begin{frame}
\frametitle{Previous Work - pFedMe}
pFedMe (Personalized Federated Learning with Moreau Envelopes (or proximity operator)) is formulated as the following bi-level optimization problem in \cite{t2020pfedme}
\begin{align*}
& \text{minimize} \quad \sum\limits_{i=1}^N F_i(x), \\
& \text{where} \quad F_i(x) = \min \left\{ f_i(x_i) + \dfrac{\lambda}{2} \lVert x_i - x \rVert^2 \right\}
\end{align*}
which is closely related to
\begin{align*}
& \text{minimize} \quad \sum\limits_{i=1}^N \left( f_i(x_i) + {\color{green} \dfrac{\lambda}{2} \lVert x_i - x \rVert^2} \right)
\end{align*}
\blfootnote{\tiny \cite{t2020pfedme}\bibentry{t2020pfedme}}
\end{frame}
%------------------------------------------------
% Page 15
\begin{frame}
\frametitle{Previous Work - Mixture FL}
The ``weak'' consensus problem (originally stated as ``mixture'' FL problem)
$$\text{minimize} \quad \sum\limits_{i=1}^N f_i(x_i) + \dfrac{\lambda}{2} \sum\limits_{i=1}^N \lVert x_i - \overline{x} \rVert^2$$
can be reformulated as constrained optimization problems
\begin{align*}
& \text{minimize} \quad \sum\limits_{i=1}^N \left( f_i(x_i) + {\color{brown} \dfrac{\lambda}{2} \lVert x_i \rVert^2 -\dfrac{\lambda}{2} \lVert x \rVert^2} \right) \\
& \text{subject to} \quad Nx - \sum\limits_{i=1}^N x_i = 0
\end{align*}
which is a nonconvex sharing problem.
\blfootnote{\tiny \cite{hanzely2020federated}\bibentry{hanzely2020federated}}
\end{frame}
%------------------------------------------------
% Page 15
\begin{frame}
\frametitle{Maximizing Correlation - pFedMac}
Personalization is formulated in pFedMac \cite{li2021pfedmac} as
\begin{align*}
& \text{minimize} \quad \sum\limits_{i=1}^N F_i(x), \\
& \text{where} \quad F_i(x) = \min \left\{ \framebox{$f_i(x_i) - \underbrace{\color{magenta} \lambda \langle x_i, x \rangle}_{\text{correlation}}$} + \dfrac{\lambda}{2} \lVert x \rVert^2 \right\} \\
& \phantom{\text{where} \quad F_i(x)} = \min \left\{ \underbrace{f_i(x_i) + {\color{green} \dfrac{\lambda}{2} \lVert x_i - x \rVert^2}}_{\text{pFedMe}} {\color{red}- \dfrac{\lambda}{2} \lVert x_i \rVert^2} \right\}
\end{align*}
\blfootnote{\tiny \cite{li2021pfedmac}\bibentry{li2021pfedmac}}
\end{frame}
%------------------------------------------------
% Page 15
\begin{frame}
\frametitle{Maximizing Correlation - pFedMac}
\begin{align*}
F_i(x) & = \min_{x_i}\left\{ f_i(x_i) - \lambda \langle x_i, x \rangle \right\} + \dfrac{\lambda}{2} \lVert x \rVert^2 \\
& = \dfrac{\lambda}{2} \lVert x \rVert^2 - \max_{x_i} \left\{ \langle x_i, \lambda x \rangle - f_i(x_i) \right\} \\
& = \dfrac{\lambda}{2} \lVert x \rVert^2 - f_i^*(\lambda x)
\end{align*}
where $f_i^*$ is the conjugate function of $f_i$.
\end{frame}
%------------------------------------------------
% Page 15
\begin{frame}
\frametitle{Comparison}
Rewrite pFedMac
$$\text{minimize} \sum\limits_{i=1}^N \left( f_i(x_i) + {\color{red} \dfrac{\lambda}{2} \lVert x_i - x \rVert^2 - \dfrac{\lambda}{2} \lVert x_i \rVert^2} \right)$$
\pause
{\smaller
\begin{align*}
\phantom{aaaaaaaa} \text{Mixture FL} & \phantom{aaaa} {\color{brown} \dfrac{\lambda}{2} \lVert x_i \rVert^2 -\dfrac{\lambda}{2} \lVert x \rVert^2} \\
\phantom{aaaaaaaa} \text{pFedMe} & \phantom{aaaa} {\color{green} \dfrac{\lambda}{2} \lVert x_i - x \rVert^2}
\end{align*}
}
\end{frame}
%------------------------------------------------
\section[Communication]{Communication Efficiency}
%------------------------------------------------
% Page 15
\begin{frame}
\frametitle{Sparsity Extension - pFedMac-S}
By adding $\ell_1$ penalty of local model parameters, one has the sparse extension of pFedMac (pFedMac-S)
$$\text{minimize} \sum\limits_{i=1}^N \left( f_i(x_i) - \lambda \langle x_i, x \rangle + \dfrac{\lambda}{2} \lVert x \rVert^2 \framebox{$+ \gamma \lVert x_i \rVert_1$} \right)$$
or
$$\text{minimize} \sum\limits_{i=1}^N \left( f_i(x_i) + \dfrac{\lambda}{2} \lVert x_i - x \rVert^2 - \dfrac{\lambda}{2} \lVert x_i \rVert^2 \framebox{$+ \gamma \lVert x_i \rVert_1$} \right)$$
\pause
\vspace{0.5em}
Sort of elastic net
\end{frame}
%------------------------------------------------
% Page 15
\begin{frame}
\frametitle{Hierarchical Extension - pFedMac-SH}
The hierarchy is
$$\text{\bf {\color{green}Client} $\to$ {\color{brown}Edge} $\to$ {\color{red}Central(Cloud)}}$$
hence the problem is further split into 3 levels
{\smaller
\begin{align*}
& {\color{red}\text{minimize} \quad \sum\limits_{i=1}^N F_i(x)} \\
& \text{where} {\color{brown}\quad F_i(x) = \min_{x_i} \left\{ \dfrac{1}{J} \sum\limits_{j=1}^J F_{i,j}(x_i) - \lambda_2 \langle x_i, x \rangle + \dfrac{\lambda_2}{2} \lVert x \rVert^2 \right\}} \\
& \text{and} \quad \ \ {\color{green}F_{i,j}(x_i) = \min_{x_{i,j}} \left\{ f_{i,j}(x_{i,j}) - \lambda_1 \langle x_{i,j}, x_i \rangle + \dfrac{\lambda_1}{2} \lVert x_i \rVert^2 \framebox{$+ \gamma \lVert x_{i,j} \rVert_1$} \right\}}
\end{align*}
}
\end{frame}
%------------------------------------------------
% Page 15
\begin{frame}
\frametitle{pFedMac - Algorithm}
{\smaller
\begin{algorithm}[H]
\SetAlgoNoLine
\DontPrintSemicolon
{\bfseries {\color{red}Cloud server executes}:}\;
\Indp \For{$t = 0, 1, \cdots, T-1$}{
\For{$i=1,2,\cdots,N$ in parallel}{
$x_i^{t+1}$ $\gets$ {\bf \color{brown}EdgeUpdate}(i, $x^t$)\;
}
$\mathcal{S}^t$ $\gets$ (random set of $S$ edge servers)\;
$x^{t+1}$ $\gets$ $(1-\beta)x^t + \beta\frac{1}{S}\sum_{i\in\mathcal{S}^t}x_i^{t+1}$ \quad averaging
}
\Indm
\vspace{0.5em}
{{\bf \color{brown}EdgeUpdate}(i, $x^t$):}\;
\Indp $y_i^{t,0} = x_i^{t,0} = x^t$\;
\For{$r = 0,1,\cdots,R-1$}{
\For{$j = 1,2,\cdots,J$}{
$y_{i,j}^{t,r+1}$ $\gets$ {\bf \color{green}ClientUpdate}(j, $y_{i,j}^{t,r}$)\;
}
$y_i^{t,r+1}$ $\gets$ $\frac{1}{J}\sum_{j=1}^J y_{i,j}^{t,r+1}$\;
$x_i^{t,r+1}$ $\gets$ $x_i^{t,r} - \eta_2\lambda_2 (x_i^{t,r}-y_i^{t,r+1})$ \quad (S)GD\;
return $x_i^{t,R}$
}
\Indm
\caption{pFedMac-SH}
\end{algorithm}
}
\end{frame}
%------------------------------------------------
% Page 15
\begin{frame}
\frametitle{pFedMac - Algorithm Continued}
\setcounter{algocf}{0}
{\smaller
\begin{algorithm}[H]
\SetAlgoNoLine
\DontPrintSemicolon
{{\bf \color{green}ClientUpdate}(j, $y_{i,j}^{t,r}$):}\;
\Indp $y_{i,j}^{t,r,0} \gets y_{i,j}^{t,r}$\;
\For{$k = 0,1,\cdots,K-1$}{
$\mathcal{D}_{i,j}^k$ $\gets$ (sample a mini batch with size $D$) \;
$\widetilde{\theta}_{i,j}^{t,r,k}$ $\gets$ \colorbox{pink}{$\argmin\limits_{\theta_{i,j}} \left\{ \widetilde{f}_{i,j}(\theta_{i,j}; \mathcal{D}_{i,j}^k) - \lambda_1 \langle \theta_{i,j}, y_{i,j}^{t,r,k} \rangle + \gamma_1 \framebox{$\phi_{\rho}(\theta_{i,j})$} \right\}$} \;
$y_{i,j}^{t,r,k+1}$ $\gets$ $y_{i,j}^{t,r,k} - \eta_1\lambda_2(y_{i,j}^{t,r,k} - \widetilde{\theta}_{i,j}^{t,r,k}) \quad (S)GD$
}
return $y_{i,j}^{t,r,K}$
\caption{pFedMac-SH}
\end{algorithm}
$\widetilde{f}_{i,j}(\theta_{i,j}; \mathcal{D}_{i,j}^k)$ denotes objective function evaluated using data $\mathcal{D}_{i,j}^k$. $\phi_{\rho}$ is a twice continuously differentiable approximation of the $\ell_1$-norm:
$$\phi_{\rho}(z) = \rho\sum_{n=1}^d\log\cosh\left(\frac{z_n}{\rho}\right) = \rho\sum_{n=1}^d\log \left( \frac{\exp(z_n/\rho) + \exp(-z_n/\rho)}{2} \right)$$
}
\end{frame}
%------------------------------------------------
% Page 15
\begin{frame}
\frametitle{pFedMac - Algorithm Continued}
The inner-most optimization problem
$$\argmin\limits_{\theta_{i,j}} \left\{ \widetilde{f}_{i,j}(\theta_{i,j}; \mathcal{D}_{i,j}^k) - \lambda_1 \langle \theta_{i,j}, y_{i,j}^{t,r,k} \rangle + \gamma_1 \phi_{\rho}(\theta_{i,j}) \right\}$$
can be solved using first-order methods, ref. \cite{lin2020accelerated}
\pause
\vspace{0.5em}
An alternative to smoothing $\ell_1$-norm with $\phi_{\rho}$, one can use proximal gradient method via updating by
$$\theta_{i,j}^{(s+1)} = \operatorname{prox}_{h, \alpha_s} (\theta_{i,j}^{(s)} - \alpha_s \nabla g_{i,j}(\theta_{i,j}^{(s)}))$$
where
\begin{gather*}
h(\theta_{i,j}) = \gamma_1 \lVert \theta_{i,j} \rVert_1 \\
g_{i,j}(\theta_{i,j}) = \widetilde{f}_{i,j}(\theta_{i,j}; \mathcal{D}_{i,j}^k) - \lambda_1 \langle \theta_{i,j}, y_{i,j}^{t,r,k} \rangle
\end{gather*}
Or using the Huber regularization.
\blfootnote{\tiny \cite{lin2020accelerated}\bibentry{lin2020accelerated}}
\end{frame}
%------------------------------------------------
\section{Problems}
%------------------------------------------------
% Page 15
\begin{frame}
\frametitle{Problems}
\begin{itemize}
\item vanilla pFedMac: guarantee of finiteness of local (inner) problem $F_i(x) = \dfrac{\lambda}{2} \lVert x \rVert^2 - f_i^*(\lambda x)$, or finiteness of $f_i^*$ for arbitrary $f_i$?
\vspace{0.3em}
\item theoretical comparison (convergence, performance(?), etc.) of personalization methods (models), including ``mixture FL'', ``pFedMe'', ``pFedMac''
\vspace{0.3em}
\item hierarchical ADMM (if split)?
\vspace{0.3em}
\item hierarchical decentralized version (i.e. no central cloud server), and combination with techniques including gradient tracking and compression, etc.
\end{itemize}
\end{frame}
%------------------------------------------------
% Page 1
\begin{frame}[allowframebreaks]
\frametitle{References}
{\footnotesize
\bibliographystyle{ieeetr}
\bibliography{references}
}
\end{frame}
%------------------------------------------------
\end{document}