ZHANGYUXUAN-zR commited on
Commit
e37cdf9
·
verified ·
1 Parent(s): 2383e0a

Add files using upload-large-folder tool

Browse files
parse/train/URc7gYBcjVn/URc7gYBcjVn.md CHANGED
@@ -364,7 +364,7 @@ stant 305 $\omega _ { M }$ such that, for all $k \in [ K ] \colon \mathbb { E }
364
 
365
  The first statement stems from the fact that each bucket is quantized using StoVoQ which is unbiased. The second statement is more challenging; proof is postponed to Appendix A.6. We stress that this result differs from Theorem 2, which corresponds to the distortion of a source with distribution $q$ .
366
 
367
- Convergence results. Theorem 4 proves that our compression method satisfies the assumptions needed to obtain fast convergence rate, for DoStoVoQ-SGD, and for its variants DoStoVoQ-(VR)- DIANA. Consider a Smooth and Strongly Convex (SSC) function $\textstyle F = \sum _ { k = 1 } ^ { K } f _ { k }$ , with condition number $\kappa > 1$ . We measure the complexity of the algorithm by the number of iterations $t$ required to obtain a model $\theta _ { t }$ such that $\mathbb { E } [ F ( \theta _ { t } ) ] - \operatorname* { m i n } _ { \mathbb { R } ^ { D } } F \leq \epsilon .$ The result of VR-DIANA [16], which provides a complexity of $O _ { \kappa \to \infty }$ $\kappa ( 1 + \omega _ { M } / K ) \log ( \epsilon ^ { - 1 } ) )$ [16, Corollary 2], applies to DoStoVoQVR-DIANA.
368
 
369
  Convergence rates for DoStoVoQ-DIANA (without VR), and on non-convex optimization problems can be obtained from Horváth et al. [16, Corollary 1,3,4]. As in the strongly-convex case, complexities increase by a factor depending on $( 1 + \omega _ { M } / K )$ w.r.t. uncompressed algorithm. Intuitively, the impact on the optimization complexity of a high compression is mitigated by the number of workers, which supports the use of independent and unbiased compressors when the number of workers is large and high compression factors are required.
370
 
 
364
 
365
  The first statement stems from the fact that each bucket is quantized using StoVoQ which is unbiased. The second statement is more challenging; proof is postponed to Appendix A.6. We stress that this result differs from Theorem 2, which corresponds to the distortion of a source with distribution $q$ .
366
 
367
+ Convergence results. Theorem 4 proves that our compression method satisfies the assumptions needed to obtain fast convergence rate, for DoStoVoQ-SGD, and for its variants DoStoVoQ-(VR)- DIANA. Consider a Smooth and Strongly Convex (SSC) function $\textstyle F = \sum _ { k = 1 } ^ { K } f _ { k }$ , with condition number $\kappa > 1$ . We measure the complexity of the algorithm by the number of iterations $t$ required to obtain a model $\theta _ { t }$ such that $\mathbb { E } [ F ( \theta _ { t } ) ] - \operatorname* { m i n } _ { \mathbb { R } ^ { D } } F \leq \epsilon .$ The result of VR-DIANA [16], which provides a complexity of $O _ { \kappa \to \infty }$ $\kappa ( 1 + \omega _ { M } / K ) \log ( \epsilon ^ { - 1 } ) )$ [16, Corollary 2], applies to DoStoVoQVR-DIANA.
368
 
369
  Convergence rates for DoStoVoQ-DIANA (without VR), and on non-convex optimization problems can be obtained from Horváth et al. [16, Corollary 1,3,4]. As in the strongly-convex case, complexities increase by a factor depending on $( 1 + \omega _ { M } / K )$ w.r.t. uncompressed algorithm. Intuitively, the impact on the optimization complexity of a high compression is mitigated by the number of workers, which supports the use of independent and unbiased compressors when the number of workers is large and high compression factors are required.
370
 
parse/train/rylDfnCqF7/rylDfnCqF7.md CHANGED
@@ -68,7 +68,7 @@ $$
68
  \begin{array} { r l } { \mathcal { L } ( \mathbf { x } ; \theta , \phi ) = } & { { } \underbrace { \log p _ { \theta } ( \mathbf { x } ) } _ { \mathrm { ~ \forall ~ \theta ~ \equiv ~ \phi ~ , ~ \dots ~ } } - \underbrace { D _ { \mathrm { K L } } ( q _ { \phi } ( \mathbf { z } | \mathbf { x } ) | | p _ { \theta } ( \mathbf { z } | \mathbf { x } ) ) } _ { \mathrm { ~ \forall ~ \theta ~ \equiv ~ \phi ~ , ~ \dots ~ } } } \end{array}
69
  $$
70
 
71
- 3.2 OBSERVATIONS ON SYNTHETIC DATAWith this view, the only goal of approximate posterior $q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ is to match model posterior $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ , while the optimization of $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ is influenced by two forces, one of which is the ideal objecAs a synthetic dataset we use discrete sequenctive marginal data likelihood, and the other is $D _ { \mathrm { K L } } ( q _ { \phi } ( \mathbf { z } | \mathbf { x } ) \| p _ { \theta } ( \mathbf { z } | \mathbf { x } ) )$ pse has been fo, which drives $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ mos tosevewards $q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ t modeling tasks. To mimic the diversity of the real data distribution, we sample discrete. Ideally if the approximate posterior is perfect, the second force will vanish, with $\nabla _ { \pmb \theta } D _ { \mathrm { K L } } \big ( q _ { \phi } ( \mathbf { z } | \mathbf { x } ) | p _ { \pmb \theta } ( \mathbf { z } | \mathbf { x } ) \big ) = 0$ odel, wwhen $q _ { \phi } ( \mathbf { z } | \mathbf { x } ) = p _ { \theta } ( \mathbf { z } | \mathbf { x } )$ xture of Gaussian prior — f. At the start of training, $\mathbf { z }$ ur-mand $\mathbf { x }$ es ofare a Gaussian mixture as a prionearly independent under both $q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ an and $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ enerator. More details about this sy as we show in Section 3.2, i.e. all $\mathbf { x }$ hetic dataset suffer from and experiment details can be found in Appendix B.1.model collapse in the beginning. Then the only component in the training objective that possibly causes dependence between $\mathbf { z }$ and $\mathbf { x }$ under $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ is $\log p _ { \pmb { \theta } } ( \mathbf { x } )$ 2. However, this pressure may be overwhelmed by the KL term when $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ and $q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ start to diverge but $\mathbf { z }$ and $\mathbf { x }$ remain independent under $q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ . We hypothesize that, in practice, training drives $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ and $q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ to t he prior in order to bring them into alignment, while locking into model parameters that capture the distribution of $\mathbf { x }$ while ignoring $\mathbf { z }$ x, x,✓ . Critically, posterior collapse is a local optimum; once a set of paXrameters that achieves these goals are reached, gradient optimization fails to make further progress, E [even if better overall models that make use of $\mathbf { z }$ = [zipto describe $\mathbf { x }$ i|x)], exist.
72
 
73
  Next we visualize the posterior mean space by training a basic VAE with a scalar latent variable on C a relatively simple synthetic dataset to examine our hypothesis.
74
 
@@ -76,7 +76,7 @@ Next we visualize the posterior mean space by training a basic VAE with a scalar
76
 
77
  second stage, the points starts to spread along the µx,✓ axis. This phenomenon implies that for someAs a synthetic dataset we use discrete sequence data since posterior collapse has been found the most data points p✓(z|x) moves far away from the prior p(z), and confirms that log p✓(x) is able to helpsevere in text modeling tasks. Details on this synthetic dataset and experiment are in Appendix B.1.
78
 
79
- that q(z x) fails to catch up to p✓(z x) and these points are still in an inference collapsed state.We train a basic VAE with a scalar latent variable, LSTM encoder, and LSTM decoder on our synthetic dataset. We sample 500 data points from the validation set and show them on the posterior This LSTM decoder has less capacity than the one used for creating the dataset since in real world modelmean space plots at four different training stages from initialization to convergence in Figure 2. The capacity is usually insufficient to exactly model thmean of the approximate posterior distribution $\mu _ { \mathbf { x } , \phi }$ pirical distribution.is from the output of the inference network, and $\mu _ { \mathbf { x } , \theta }$ can be approximated by discretization of the true model posterior $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ (see Appendix A).
80
 
81
  <table><tr><td>Algorithm1 VAE training with controlled aggressive inference network optimization.</td></tr><tr><td>1:0, ← Initialize parameters</td></tr><tr><td>2:aggressive ←TRUE</td></tr><tr><td>3: repeat</td></tr><tr><td>4: if aggressive then</td></tr><tr><td>5: repeat</td></tr><tr><td>[aggressive updates] X←Randomdata minibatch</td></tr><tr><td>Compute gradients gΦ ← VL(X;0,Φ)</td></tr><tr><td>Update Φ using gradients gΦ</td></tr><tr><td>until convergence</td></tr><tr><td>9: 10:</td></tr><tr><td>X←Randomdata minibatch Compute gradients ge ← VθL(X; 0,Φ)</td></tr><tr><td>11: 12: Update θ using gradients ge</td></tr><tr><td>13: else</td></tr><tr><td>14: X←Randomdataminibatch</td></tr><tr><td>15: Compute gradients g0,𝜙 ← V,θL(X;0,𝜙)</td></tr><tr><td>16: Update 0,Φ using ge,𝜙</td></tr><tr><td>end if</td></tr><tr><td>17:</td></tr><tr><td>18: Update aggressive as discussed in Section 4.2 19: until convergence</td></tr></table>
82
 
 
68
  \begin{array} { r l } { \mathcal { L } ( \mathbf { x } ; \theta , \phi ) = } & { { } \underbrace { \log p _ { \theta } ( \mathbf { x } ) } _ { \mathrm { ~ \forall ~ \theta ~ \equiv ~ \phi ~ , ~ \dots ~ } } - \underbrace { D _ { \mathrm { K L } } ( q _ { \phi } ( \mathbf { z } | \mathbf { x } ) | | p _ { \theta } ( \mathbf { z } | \mathbf { x } ) ) } _ { \mathrm { ~ \forall ~ \theta ~ \equiv ~ \phi ~ , ~ \dots ~ } } } \end{array}
69
  $$
70
 
71
+ 3.2 OBSERVATIONS ON SYNTHETIC DATAWith this view, the only goal of approximate posterior $q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ is to match model posterior $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ , while the optimization of $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ is influenced by two forces, one of which is the ideal objecAs a synthetic dataset we use discrete sequenctive marginal data likelihood, and the other is $D _ { \mathrm { K L } } ( q _ { \phi } ( \mathbf { z } | \mathbf { x } ) \| p _ { \theta } ( \mathbf { z } | \mathbf { x } ) )$ pse has been fo, which drives $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ mos tosevewards $q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ t modeling tasks. To mimic the diversity of the real data distribution, we sample discrete. Ideally if the approximate posterior is perfect, the second force will vanish, with $\nabla _ { \pmb \theta } D _ { \mathrm { K L } } \big ( q _ { \phi } ( \mathbf { z } | \mathbf { x } ) | p _ { \pmb \theta } ( \mathbf { z } | \mathbf { x } ) \big ) = 0$ odel, wwhen $q _ { \phi } ( \mathbf { z } | \mathbf { x } ) = p _ { \theta } ( \mathbf { z } | \mathbf { x } )$ xture of Gaussian prior — f. At the start of training, $\mathbf { z }$ ur-mand $\mathbf { x }$ es ofare a Gaussian mixture as a prionearly independent under both $q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ an and $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ enerator. More details about this sy as we show in Section 3.2, i.e. all $\mathbf { x }$ hetic dataset suffer from and experiment details can be found in Appendix B.1.model collapse in the beginning. Then the only component in the training objective that possibly causes dependence between $\mathbf { z }$ and $\mathbf { x }$ under $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ is $\log p _ { \pmb { \theta } } ( \mathbf { x } )$ 2. However, this pressure may be overwhelmed by the KL term when $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ and $q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ start to diverge but $\mathbf { z }$ and $\mathbf { x }$ remain independent under $q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ . We hypothesize that, in practice, training drives $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ and $q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ to t he prior in order to bring them into alignment, while locking into model parameters that capture the distribution of $\mathbf { x }$ while ignoring $\mathbf { z }$ x, x,✓ . Critically, posterior collapse is a local optimum; once a set of paXrameters that achieves these goals are reached, gradient optimization fails to make further progress, E [even if better overall models that make use of $\mathbf { z }$ = [zipto describe $\mathbf { x }$ i|x)], exist.
72
 
73
  Next we visualize the posterior mean space by training a basic VAE with a scalar latent variable on C a relatively simple synthetic dataset to examine our hypothesis.
74
 
 
76
 
77
  second stage, the points starts to spread along the µx,✓ axis. This phenomenon implies that for someAs a synthetic dataset we use discrete sequence data since posterior collapse has been found the most data points p✓(z|x) moves far away from the prior p(z), and confirms that log p✓(x) is able to helpsevere in text modeling tasks. Details on this synthetic dataset and experiment are in Appendix B.1.
78
 
79
+ that q(z x) fails to catch up to p✓(z x) and these points are still in an inference collapsed state.We train a basic VAE with a scalar latent variable, LSTM encoder, and LSTM decoder on our synthetic dataset. We sample 500 data points from the validation set and show them on the posterior This LSTM decoder has less capacity than the one used for creating the dataset since in real world modelmean space plots at four different training stages from initialization to convergence in Figure 2. The capacity is usually insufficient to exactly model thmean of the approximate posterior distribution $\mu _ { \mathbf { x } , \phi }$ pirical distribution.is from the output of the inference network, and $\mu _ { \mathbf { x } , \theta }$ can be approximated by discretization of the true model posterior $p _ { \pmb { \theta } } ( \mathbf { z } | \mathbf { x } )$ (see Appendix A).
80
 
81
  <table><tr><td>Algorithm1 VAE training with controlled aggressive inference network optimization.</td></tr><tr><td>1:0, ← Initialize parameters</td></tr><tr><td>2:aggressive ←TRUE</td></tr><tr><td>3: repeat</td></tr><tr><td>4: if aggressive then</td></tr><tr><td>5: repeat</td></tr><tr><td>[aggressive updates] X←Randomdata minibatch</td></tr><tr><td>Compute gradients gΦ ← VL(X;0,Φ)</td></tr><tr><td>Update Φ using gradients gΦ</td></tr><tr><td>until convergence</td></tr><tr><td>9: 10:</td></tr><tr><td>X←Randomdata minibatch Compute gradients ge ← VθL(X; 0,Φ)</td></tr><tr><td>11: 12: Update θ using gradients ge</td></tr><tr><td>13: else</td></tr><tr><td>14: X←Randomdataminibatch</td></tr><tr><td>15: Compute gradients g0,𝜙 ← V,θL(X;0,𝜙)</td></tr><tr><td>16: Update 0,Φ using ge,𝜙</td></tr><tr><td>end if</td></tr><tr><td>17:</td></tr><tr><td>18: Update aggressive as discussed in Section 4.2 19: until convergence</td></tr></table>
82