• No results found

arxiv: v1 [cs.it] 5 Jun 2021

N/A
N/A
Protected

Academic year: 2021

Share "arxiv: v1 [cs.it] 5 Jun 2021"

Copied!
15
0
0

Loading.... (view fulltext now)

Full text

(1)

Neural Distributed Source Coding

Jay Whang

[email protected]

University of Texas at Austin

Anish Acharya

[email protected]

University of Texas at Austin

Hyeji Kim

[email protected]

University of Texas at Austin

Alexandros G. Dimakis

[email protected]

University of Texas at Austin

June 8, 2021

Abstract

Distributed source coding is the task of encoding an input in the absence of correlated side information that is only available to the decoder. Remarkably, Slepian and Wolf showed in 1973 that an encoder that has no access to the correlated side information can asymptotically achieve the same compression rate as when the side information is available at both the encoder and the decoder. While there is significant prior work on this topic in information theory, practical distributed source coding has been limited to synthetic datasets and specific correlation structures. Here we present a general framework for lossy distributed source coding that is agnostic to the correlation structure and can scale to high dimensions. Rather than relying on hand-crafted source-modeling, our method utilizes a powerful conditional deep generative model to learn the distributed encoder and decoder. We evaluate our method on realistic high-dimensional datasets and show substantial improvements in distributed compression performance.

1

Introduction

Compression methods play an essential role in all systems with increasing volumes of digital data. From multimedia codecs running on consumer devices to cloud backups in large data centers, compression is a necessary component in any system that deals with high volume or high velocity sources. Applications such as multi-camera surveillance systems, IoT sensing, 3D scene capture and stereo imaging create distributed data streams with very large volume that are highly correlated.

We are interested in distributed compression and specifically the distributed source coding problem. In this setting, there are two correlated sources (original x and side information y) that are physically separated. Both must be compressed and sent to a common decoder. We can assume that the side information y is compressed in isolation and communicated to the decoder and now one can expect that the original source x can be compressed at a higher-rate since y is known to the decoder.

The core challenge is how to compress the original source x when the correlated side information yis available only at the decoder as shown in Figure 1 (left). If side information is available to both the encoder and decoder as shown in Figure 1 (right), it is well known that the side information can be utilized to improve the compression rate of x.

Surprisingly, in 1973, Slepian and Wolf [1] showed that an encoder that has no access to the corre-lated side information can asymptotically achieve the same compression rate as when side information

(2)

is available at both the encoder and the decoder. In other words, the distributed compression rate can be asymptotically equal to the joint compression rate. This is nothing short of a remarkable classical information theory result that defies intuition.

Figure 1: An encoder that has no access to the correlated side-information (left) can asymptotically achieve the same compression rate as when side-information is available at both the encoder and the decoder (right).

1.1

Slepian-Wolf Example

To provide some intuition behind the Slepian-Wolf theorem, we provide a simple example that illustrates how side information known only to the decoder can be as useful as side information known to both the encoder and decoder [2].

Let x and y be the two correlated sources, here uniformly random 3-bit sources, which differ by at most one bit (i.e., Hamming distance between x and y is at most one). Clearly, to losslessly compress xwithout any side information, the encoder has to send 3 bits to the decoder. If y is known to both the encoder and decoder, then x can be transmitted using only 2 bits instead, since the encoder can send the difference between x and y, which is uniform in{000, 100, 010, 001}. Therefore a joint compression using only 2 bits is possible.

Now, if the side information y is available only at the decoder, Slepian-Wolf theorem suggests that the encoder can still transmit x using only 2 bits. How could this be possible? The key idea is to use binning. The encoder groups 8 possible values of x into 4 bins, each containing two bit strings with maximal Hamming distance:B0= {000, 111},B1= {001, 110},B2= {010, 101},B3 = {011, 100}.

Then the encoder simply transmits the bin index m∈ {0, 1, 2, 3}for the bin containing x. The decoder can produce the reconstruction ˆxbased on the bin index m and y; precisely, ˆx=arg maxx∈BmP(x|y).

In this case, since the Hamming distance between x and y is at most one and the Hamming distance between the bit strings in each bin is 3, the decoder can recover x without error. In other words, the side information allows the decoder to correctly choose between the two bit strings in the bin that was specified by the encoder.

1.2

Realizing Slepian-Wolf

There are major challenges in designing practical distributed compression schemes for arbitrarily correlated sources. First, the joint distribution p(x, y)is required to design the encoder and decoder, but modeling high-dimensional joint distributions (e.g. for correlated images) is very challenging, especially without modern deep generative models. Second, designing binning methods that run in polynomial time for correlated sources beyond simple structures remains an open question.

The significant gap between the theory of Slepian-Wolf and what is efficiently achieved in practice has been well-acknowledged in the information theory community. Two decades after the Slepian-Wolf theorem, [3] writes: “despite the existence of potential applications, the conceptual importance

(3)

of (Slepian–Wolf) distributed source coding has not been mirrored in practical data compression.” Constructive compression schemes have been designed only for very special cases, such as correlated Gaussian sources [2] and stereo images (as elaborated in Section 2.3).

In this paper, we bridge this gap by leveraging the recent advances in deep generative modeling. By utilizing a powerful conditional deep generative model, we show that it is possible to train an encoder and decoder for distributed compression of arbitrarily correlated sources.

Specifically, our approach (denoted Neural DSC) parametrizes the encoder-decoder pair as a Vector-Quantized VAE (VQ-VAE) [4], so that: (a) we do not need a hand-crafted analytical model for the joint distribution; and (b) we can learn the complicated encoder and decoder mappings via neural networks and execute them efficiently at inference time; and (c) the discrete latent representation of VQ-VAE avoids the need for an external entropy coder to obtain the compressed message.

We show that by utilizing VQ-VAEs instead of relying on manual source modeling, we can obtain a distributed compression scheme that achieves substantial compression performance. To the best of our knowledge, this is the first instantiation of a practical distributed compression scheme that can be applied to arbitrarily correlated sources. We demonstrate performance that is near the joint-compression rate for two exemplary distributed compression tasks.

Our main contributions are as follows:

• We introduce a new family of VQ-VAE based compression schemes for lossy distributed source coding. Our encoder creates the compressed message that is sent to the decoder, which in turn attempts to reconstruct the original signal using the side information.

• We show that Neural DSC achieves excellent rate for correlated image compression. In this problem we compress the top part of an image given the bottom part as side information. Our scheme significantly outperforms separately compressing each part and nearly matches the joint compression of both parts being available at the encoder.

• We apply our method to gradient compression in the federated learning setting. In this sce-nario, two federated learning workers have their own data but cooperate to train a model in a distributed way. The correlated sources are the two models trained at the two workers and cannot be shared due to privacy and communication constraints. We show that our scheme nearly matches the performance of joint compression.

2

Neural Distributed Source Coding

2.1

Vector-Quantized VAE

Vector-Quantized VAE (VQ-VAE) [4] is a specific type of VAE [5, 6] that has a discrete latent variable, even when the input is continuous. Because the latent code is discrete and has fixed size, VQ-VAEs are a natural fit for lossy compression. Indeed, many existing works have explored its use in various compression tasks in different modalities, ranging from music generation to high-resolution image synthesis [7–9]. Most recently, a variant of VQ-VAE was used to generate discrete embedding for natural images for zero-shot text-to-image generation [10].

A VQ-VAE consists of three components: an encoder, a decoder, and a codebook. The main difference between VQ-VAE and a regular VAE is that the output of the encoder is quantized to the nearest vector in the codebook. During training, all three components are jointly optimized. At inference time, the input can be represented by the index of the codebook vector that the encoder’s output is quantized to.

(4)

2.2

Our Method

Notation and Setup. We let x, y, and m to denote the input signal, correlated side information, and compressed message, respectively. The encoder f generates the compressed message: m = f(x); the decoder g creates the reconstruction ˆxwith the aid of the side information: ˆx= g(m; y). Note that the encoder only receives x, while the decoder receives both the compressed message m and the side information y. We refer to the size of m (the number of bits required to transmit m) as the rate, and the reconstruction error (e.g.kx−xˆk2

2) as the distortion. In general, higher rate leads to lower

distortion, and vice versa.

We propose to learn the distributed encoder f and decoder g for(x, y)with arbitrary correlation by parametrizing f and g as a conditional VQ-VAE, where g is conditioned on the side information y. The network is trained on i.i.d. pairsn(x(i), y(i))o∼p(x, y)to minimize the`2distortion between

the input x and the reconstruction ˆx. This scheme allows us to directly train the encoder-decoder pair in an end-to-end manner without needing to model or manually specify the correlation structure between x and y.

Controlling the Rate. One important aspect of a lossy compression scheme is its rate-distortion trade off. We control the rate of our encoder by fixing the dimension and the codebook size of the communicated message m. Since this is a hard constraint imposed by the VQ-VAE architecture itself, we can simply focus on minimizing the distortion.

While having a hard upper bound on the rate is certainly convenient for experimentation, we note that it is also possible to use a regular VAE with a continuous latent variable for lossy compression. Many specialized architectures and quantization schemes have been developed for image compression in the recent years, and it is possible that our results may be further improved when combined with one or more of these techniques [11–15].

2.3

Related Work

Unlike the vast literature that exists on distributed source coding (DSC), the use of deep learning on DSC has received very little attention. To the best of our knowledge, we are aware of two relevant studies, which we describe below.

Compression of correlated sources with a shared decoder. DRASIC [16] considers compression of correlated sources with a shared decoder. Specifically, the authors propose a framework with individual encoders for each source and a single shared decoder. By using a recurrent autoencoder that repeatedly compresses the residual content (i.e. the difference between the reconstruction and the original input), the authors are able to further improve compression rate.

While this setup may seem similar to ours, there is one crucial difference. Although the decoder is shared, each source is still compressed independently from one another. Figure 2a further clarifies this: the compression of source x (top dotted box) happens entirely separately from the compression of the secondary source y (bottom dotted box), i.e. the (shared) decoder handles the compressed messages m1and m2separately.

On the other hand, our setup uses a decoder that is not only shared across the two sources, but receives both m1and m2. This joint decoding is what allows our method to benefit from the

correlation between x and y to further improve compression rate, as revealed by Slepian and Wolf [1] and Wyner and Ziv [17]. See Figure 2b for a further illustration.

Stereo Image Compression. In another related work, Ayzik and Avidan [18] propose a method to perform distributed source coding for images with a high spatial correlation. In particular, the authors focus on pairs of street view photos captured by a stereo camera. Because stereo cameras capture the same scene at slightly different angles, the pair of images from a stereo camera contain large overlapping regions. Thus one of the images can serve as an effective side information for the

(5)

Encoder 1

Encoder 2 Decoder Decoder

(a) Individual Encoders, Shared Decoder (DRASIC)

Encoder 1

Encoder 2

Decoder

(b) Individual Encoders, Joint Decoder (this paper)

Figure 2: Left: Diagram showing the shared decoder scheme used by DRASIC [16]. Right: Diagram showing the joint decoder scheme used in this paper.

compression of the other.

The key component of their method is the “Side Information Finder”, a module that finds similar image patches between the side information and the reconstructed signal produced by a pre-trained autoencoder. Since the two images have many overlapping patches, the reconstruction can be further improved by copying over matching image patches from the side information to the reconstruction. While this leads to a considerable improvement in the compression rate for a fixed distortion, this method is only applicable when the input and side information have large spatial overlap. On the other hand, our method is generally applicable to any correlated sources. As shown in Figure 3, the dataset used in our experiments exhibit a substantially more complex correlation between the input and the corresponding side information.

Input

Side

Information

Figure 3: Left: Sample image pair from the KITTI Stereo dataset [19] used by Ayzik and Avidan [18]. Right: Image pairs used in this paper by vertically splitting CelebA-HQ [20] images. Notice that the top and bottom halves of a face have much more complex correlation compared to stereo image pairs on the left.

3

Experiments

3.1

VQ-VAE Training

Baseline VQ-VAEs. For our experiments, we train three different variants of VQ-VAEs: distributed (our method), joint, and separate. In the joint model, both the encoder and decoder have access to the side information. This serves as a proxy to the intractable theoretical rate-distortion bound established by Wyner and Ziv [17] for lossy distributed compression. Thus, we expect this to be the upper limit on the performance of our method. The separate model is positioned at the other extreme, where neither the encoder nor the decoder uses the side information. This serves as the lower limit on the performance of our method. Figure 4 describes these variants.

(6)

Encoder Decoder Joint Encoder Decoder Distributed Encoder Decoder Separate

Figure 4: Joint encoder (left): m= f(x; y), ˆx=g(m; y). Distributed encoder (middle): m= f(x), ˆ

x=g(m; y). Separate encoder (right): m= f(x), ˆx=g(m).

To ensure a fair comparison among these variants, they have identical architecture and number of parameters for the autoencoder portion, and only vary in the way conditioning input (the side information) is handled. Architectural details and detailed hyperparameters are provided in the Appendix.

3.2

Image Compression

Setup. We evaluate our method on 256×256 CelebA-HQ dataset [20] containing images of celebrity faces. Following [21], we use 27000/3000 split between training and test data. Each image is vertically split into top and bottom halves, where the top half is fed as the input and the bottom half is used as side information.

While there is clearly some correlation between the top and bottom halves of an image of a human face, modeling this correlation (e.g. the conditional distribution over the top half given the bottom half) is highly nontrivial. Our goal is to train a distributed encoder and decoder to capture this correlation to improve compression performance.

We note that the resolution of our dataset also poses a significant challenge, as it amounts to the alphabet size of 25698304 for an image with three color channels with 8-bit pixel depth. Thus any method that relies on enumerating all possible inputs (such as binning) is completely intractable in our setting.

3.2.1 Results

Compression performance. In Figure 5, we present rate-distortion plots for the trained VQ-VAEs evaluated over the test images in two commonly used metrics: Peak Signal-to-Noise Ratio (PSNR) and MS-SSIM [22]. We clearly see that the distributed VQ-VAE achieves nearly identical performance as the joint VQ-VAE, especially in the high-rate regime.

We also visually inspect the qualitative improvements from distributed compression. As shown in Figure 6, distributed VQ-VAE produces reconstructions with much higher fidelity. Notice that the distortion at the boundary between top and bottom is particularly reduced for the distributed VQ-VAE.

Effect of Side Information.

It is possible that the distributed VQ-VAE learns to ignore the side information, effectively collaps-ing to a separate VQ-VAE. We investigate whether the distributed decoder actually makes use of the side information by intentionally providing incorrect input.

We can see in Figure 7 that the side information plays a significant role in the quality of recon-struction. For example, providing a side information with a different face leads to the reconstruction having a matching skin tone that is different from the original. As expected, side information has no effect for the separate encoder.

(7)

1536

512

1024

2048

Rate (bits)

42

44

46

PSNR

Joint

Distributed

Separate

(a) Average reconstruction PSNR over test set images at varying levels of compression rate.

1536 512 1024 2048

Rate (bits)

0.88 0.90 0.92 0.94 0.96

MS-SSIM

Joint Distributed Separate

(b) Average reconstruction MS-SSIM score over test set images at varying levels of compression rate.

Figure 5: Rate-distortion curves for the VQ-VAE variants studied for the image compression experi-ment. We observe that the performance of the distributed encoder closely matches that of the joint encoder. The performance improvement (i.e. reduction in distortion at a fixed rate) of the distributed VQ-VAE over the separate one is especially pronounced in the low-rate regime.

Distributed

Separate

Ground Truth

Training Set Test Set

Figure 6: Reconstructions of images from training and test sets using distributed vs. separate encoders. The dimmed portion in the ground truth is used as side information to compress the top half of the image. As readily visible in the figure, the distributed encoder preserves the details and overall color much more faithfully than the separate encoder.

3.3

Communication Constrained Distributed Optimization

Motivation. Here we consider an interesting application of our method to distributed training of a neural network hθparametrized by θ. Distributed training and federated learning have been gaining

much interest as neural networks go through widespread adoption and continue to become larger. We focus on a simple setting where the parameter server interacts with two independent nodes A and

(8)

Distributed

Separate

Ground truth Correct side info Wrong side info Random side info

Figure 7: Reconstructions from distributed (top row) and separate (bottom row) VQ-VAEs under different side information. We can see that providing wrong or random side information to the distributed decoder affects the output in a semantic way (e.g. the skin tone changes, while the background remains identical). However, side information has no effect for the separate VQ-VAE.

B, each holding its own local dataset. In each iteration of training, the nodes compute their own local gradients (denoted gAand gB) and communicate them to the parameter server. The parameter server

then computes the average of gAand gBand uses it to update model parameters, which are broadcast

back to the nodes.

One main bottleneck in this setup is the communication cost of gradients, which can be significant for large models. Thus, in optimization literature it is common to communicate compressed versions of gradients instead of full gradients among clients and servers. How to compress gradients effectively is an active area of research. While extensive literature exists on the topic of gradient compression [23– 28], to the best of our knowledge, no existing work makes use of the correlation between the gradients across different nodes.

The key observation we make is that the correlation between gAand gBcan be exploited to further

improve compression performance by viewing this as a distributed compression task. Concretely, we treat gAas side information and train a distributed encoder for node B, so that the communication cost

for gBcan be substantially reduced.

Experimental Setup. For this experiment, we fix the architecture of hθto be a simple

convolutional-neural-network (CNN) image classifier for the MNIST dataset [29]. The performance of our method is analyzed in two main metrics: rate-distortion of the distributed compressor, as well as the final the classification performance of hθafter training with and without gradient compression. We also

compare our method to a number of existing baseline methods as detailed below.

Generating i.i.d. training data for VQ-VAE. Given a neural network hθ, we train it for T steps

using the Adam optimizer [30] across two nodes. This generates a sequence of T gradient pairs n

gA(t), gB(t)

o

t=1:T, which can be used to train the VQ-VAE. However, naively applying our method

to this setting leads to a suboptimal VQ-VAE as these gradient pairs are highly correlated. Noticing that gA(t)and gB(t)are conditionally independent given the initial model weights and the time step t,

we train hθfor multiple runs with different initialization for θ, while randomly sampling a subset of

(9)

independent runs. We also update the architecture of the VQ-VAE so that both the encoder and decoder are conditioned on t. This way, the gradients become i.i.d. samples over random runs and time steps. Detailed description of this conditional model architecture is included in the Appendix. Baseline methods. We consider the following gradient compression schemes as baselines:

• Random-k [31, 32]: Instead of communicating the full gradient vector gRd, we only transmit

randomly chosen k coordinates, thus reducing the communication cost by a factor of kd.

• Top-k [33, 34]: Similar to Random-k, this approach also communicates k of the d coordinates of a gradient vector and improves the communication cost by a factor ofdk. However, this time we take the top k coordinates with largest magnitude and discard the remaining(d−k)coordinates. In a stochastic implementation, k coordinates are importance sampled according to the norm of each coordinate.

• QSGD [35, 36]: In this approach the gradients are communicated using a lower quantization level, normally stored as 32-bit floating point numbers.

• Coordinated Sampling [37]: Since Random-k is extremely lossy, it can result in significantly slower convergence. On the other hand, Top-k is much more effective but expensive to compute especially for large models with high-dimensional gradients. Thus coordinated sparsification approaches have been proposed, where the nodes cyclically select a batch of k coordinates at every iteration and communicate only those k coordinates. Since all the clients communicate along the same set of cyclical dimensions, this method often results in much richer aggregated gradient vector.

3.3.1 Results

VQ-VAEs training. Here in Figure 8, we show the distortion of the VQ-VAE models over the course of their training, evaluated over the entire training and test sets. We can clearly see the improvement in distortion that distributed compression brings.

50 150 250 350 450 Epoch 0.2 0.25 0.3 MSE Train MSE Joint Distributed Separate (a) 50 150 250 350 450 Epoch 0.2 0.25 0.3 MSE Validation MSE Joint Distributed Separate (b)

Figure 8: Average`2distortion over training (left) and validation (right) sets during the course of VQ-VAE training. We clearly see that the distributed encoder significantly outperforms the separate encoder and approaches the distortion of the joint encoder.

Rate-distortion. We first compare the perfromance of three different VQ-VAE variants over the course of a single training run of hθ. As shown in Figure 8, we observe a substantial improvement in

`2distortion for the distributed VQ-VAE, compared to the separate model. As the training progresses,

the gap between the joint and distributed encoders narrows, suggesting that a sufficiently large distributed VQ-VAE encoder can nearly match the performance of its joint counterpart.

(10)

100 300 500 700 Step 0.3 0.4 0.5 0.6 0.7 0.8 T raining Loss

Training loss vs. Step (Rate: 320 bits) Joint Distributed Separate (a) 0 5 10 15 Epoch 0.775 0.800 0.825 0.850 0.875 0.900 T est Set Accuracy Joint Distributed Separate (b)

Figure 9: Left: Plot of training loss of hθover 20 epochs. Right: Plot of the average accuracy over the

test set over 20 epochs. We observe that the distributed encoder provides a similar performance (loss and final accuracy) as the joint encoder using the same communication cost as the separate encoder. Shaded regions represent standard error.

Distributed Training. Given the encoders above, we train the original classifier network hθusing

compressed gradients again using the Adam optimizer. For a fair comparison, all methods considered were evaluated under the identical setting. Each method was repeated 20 times, and we plot the average performance with standard error.

0 5 10 15 Epoch 0.5 1.0 1.5 2.0 T rain Set Loss Ours CoordSample QSGD Random-k Top-k (a) 0 5 10 15 Epoch 0.4 0.6 0.8 T est Set Accuracy Ours CoordSample QSGD Random-k Top-k (b)

Figure 10: Distributed training performance with gradient compression using a distributed encoder in comparison to other baseline methods, in terms of training loss convergence (left) and test set accuracy (right). Note that standard error is very small and barely visible, and may require zooming in on an electronic copy of this manuscript.

4

Conclusions

We presented Neural Distributed Source Coding, a novel framework for performing distributed compression of correlated sources. Our method is built on the power of modern deep generative models, namely VQ-VAEs, which are excellent data-driven models to represent high-dimensional

(11)

continuous distributions using a compressed discrete latent code. Our method obtains performance improvements over separately compressing the correlated sources and approaches the joint compres-sion rate, which is the ultimate limit for this problem. We believe our work can provide the initial step towards efficient data-driven distributed compression schemes in multiple settings, including video compression and federated learning.

(12)

Acknowledgments

This research has been supported by NSF Grants CCF 1934932, AF 1901292, 2008710, 2019844 the NSF IFML 2019844 award as well as research gifts by Western Digital, WNCG and MLL, computing resources from TACC and the Archie Straiton Fellowship.

References

[1] D. Slepian and J. Wolf. Noiseless coding of correlated information sources. IEEE Transactions on Information Theory, 19(4):471–480, 1973. doi: 10.1109/TIT.1973.1055037.

[2] S.S. Pradhan and K. Ramchandran. Distributed source coding using syndromes (discus): design and construction. In Proceedings DCC’99 Data Compression Conference (Cat. No. PR00096), pages 158–167, 1999. doi: 10.1109/DCC.1999.755665.

[3] S. Verdu. Fifty years of shannon theory. IEEE Transactions on Information Theory, 44(6):2057–2078, 1998. doi: 10.1109/18.720531.

[4] Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 6309–6318, 2017.

[5] Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In Yoshua Bengio and Yann LeCun, editors, 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014. URL http://arxiv.org/abs/ 1312.6114.

[6] Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In International conference on machine learning, pages 1278–1286. PMLR, 2014.

[7] Cristina Garbacea, Aaron van den Oord, Yazhe Li, Felicia S C Lim, Alejandro Luebs, Oriol Vinyals, and Thomas C Walters. Low bit-rate speech coding with vq-vae and a wavenet decoder. ICASSP 2019 - 2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), May 2019. doi: 10.1109/icassp.2019.8683277. URL http://dx.doi.org/10.1109/ICASSP.2019. 8683277.

[8] Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity im-ages with vq-vae-2. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Cur-ran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper/2019/file/ 5f8e2fa1718d1bbcadf1cd9c7a54fb8c-Paper.pdf.

[9] Adam Roberts, Jesse Engel, Colin Raffel, Curtis Hawthorne, and Douglas Eck. A hierarchical latent vector model for learning long-term structure in music. In International Conference on Machine Learning, pages 4364–4373. PMLR, 2018.

[10] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. arXiv preprint arXiv:2102.12092, 2021.

[11] Johannes Ballé, Valero Laparra, and Eero P. Simoncelli. End-to-end optimized image compression, 2017.

(13)

[12] Lucas Theis, Wenzhe Shi, Andrew Cunningham, and Ferenc Huszár. Lossy image compression with compressive autoencoders, 2017.

[13] Johannes Ballé, David Minnen, Saurabh Singh, Sung Jin Hwang, and Nick Johnston. Variational image compression with a scale hyperprior. In 6th International Conference on Learning Represen-tations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018. URL https://openreview.net/forum?id=rkcQFMZRb.

[14] David Minnen, Johannes Ballé, and George Toderici. Joint autoregressive and hierarchical priors for learned image compression. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 10794–10803, 2018.

[15] Johannes Ballé, Philip A. Chou, David Minnen, Saurabh Singh, Nick Johnston, Eirikur Agustsson, Sung Jin Hwang, and George Toderici. Nonlinear transform coding. IEEE Trans. on Special Topics in Signal Processing, 15, 2021. URL https://arxiv.org/pdf/2007.03034.

[16] Enmao Diao, Jie Ding, and Vahid Tarokh. Drasic: Distributed recurrent autoencoder for scalable image compression. In 2020 Data Compression Conference (DCC), pages 3–12, 2020. doi: 10.1109/ DCC47342.2020.00008.

[17] A. Wyner and J. Ziv. The rate-distortion function for source coding with side information at the decoder. IEEE Transactions on Information Theory, 22(1):1–10, 1976. doi: 10.1109/TIT.1976.1055508. [18] Sharon Ayzik and Shai Avidan. Deep image compression using decoder side information. In Computer Vision - ECCV 2020 - 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XVII, volume 12362, pages 699–714, 2020.

[19] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In Conference on Computer Vision and Pattern Recognition (CVPR), 2012.

[20] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE international conference on computer vision, pages 3730–3738, 2015. [21] Durk P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions.

In Neural Information Processing Systems, pages 10215–10224, 2018.

[22] Zhou Wang, Eero P Simoncelli, and Alan C Bovik. Multiscale structural similarity for image quality assessment. In The Thrity-Seventh Asilomar Conference on Signals, Systems & Computers, 2003, volume 2, pages 1398–1402. Ieee, 2003.

[23] Jeremy Bernstein, Yu-Xiang Wang, Kamyar Azizzadenesheli, and Animashree Anandkumar. SignSGD: Compressed optimisation for non-convex problems. In International Conference on Machine Learning, pages 560–569, 2018.

[24] Nikko Strom. Scalable distributed dnn training using commodity gpu cloud computing. In Sixteenth Annual Conference of the International Speech Communication Association, 2015.

[25] Abolfazl Hashemi, Anish Acharya, Rudrajit Das, Haris Vikalo, Sujay Sanghavi, and Inderjit Dhillon. On the benefits of multiple gossip steps in communication-constrained decentralized optimization. arXiv preprint arXiv:2011.10643, 2020.

[26] Frank Seide, Hao Fu, Jasha Droppo, Gang Li, and Dong Yu. 1-bit stochastic gradient descent and its application to data-parallel distributed training of speech DNNs. In Fifteenth Annual Conference of the International Speech Communication Association, 2014.

(14)

[27] Yujun Lin, Song Han, Huizi Mao, Yu Wang, and William J Dally. Deep gradient compression: Reducing the communication bandwidth for distributed training. arXiv preprint arXiv:1712.01887, 2017.

[28] Thijs Vogels, Sai Praneeth Karimireddy, and Martin Jaggi. Powersgd: Practical low-rank gradient compression for distributed optimization. In Advances in Neural Information Processing Systems, pages 14259–14268, 2019.

[29] Yann LeCun, Corinna Cortes, and CJ Burges. Mnist handwritten digit database. ATT Labs [Online]. Available: http://yann.lecun.com/exdb/mnist, 2, 2010.

[30] Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. International Conference on Learning Representations, 12 2014.

[31] Hongyi Wang, Scott Sievert, Shengchao Liu, Zachary Charles, Dimitris Papailiopoulos, and Stephen Wright. Atomo: Communication-efficient learning via atomic sparsification. In Advances in Neural Information Processing Systems, pages 9850–9861, 2018.

[32] Anastasia Koloskova, Tao Lin, Sebastian U Stich, and Martin Jaggi. Decentralized deep learning with arbitrary communication compression. arXiv preprint arXiv:1907.09356, 2019.

[33] Shaohuai Shi, Xiaowen Chu, Ka Chun Cheung, and Simon See. Understanding top-k sparsifica-tion in distributed deep learning. arXiv preprint arXiv:1911.08772, 2019.

[34] Sebastian U Stich, Jean-Baptiste Cordonnier, and Martin Jaggi. Sparsified SGD with memory. In Advances in Neural Information Processing Systems, pages 4447–4458, 2018.

[35] Dan Alistarh, Demjan Grubic, Jerry Li, Ryota Tomioka, and Milan Vojnovic. QSGD: Communication-efficient SGD via gradient quantization and encoding. In Advances in Neu-ral Information Processing Systems, pages 1709–1720, 2017.

[36] Debraj Basu, Deepesh Data, Can Karakus, and Suhas Diggavi. Qsparse-local-SGD: Distributed SGD with quantization, sparsification and local computations. In Advances in Neural Information Processing Systems, pages 14668–14679, 2019.

[37] Shaohuai Shi, Qiang Wang, Kaiyong Zhao, Zhenheng Tang, Yuxin Wang, Xiang Huang, and Xiaowen Chu. A distributed synchronous sgd algorithm with global top-k sparsification for low bandwidth networks. In 2019 IEEE 39th International Conference on Distributed Computing Systems (ICDCS), pages 2238–2247. IEEE, 2019.

(15)

A

Experiment Details

A.1

VQ-VAE Architecture

Image compression. For our image compression experiments, we used a convolutional VQ-VAE architecture similar to the one used in [10] with residual connections.

Both the input and the side information to this network have the shape 128×256 (i.e. vertical halves of a full 256×256 image). The encoder scales down input image by a factor of 8× both vertically and horizontally, resulting in the latent variable of shape 16×32. Each dimension of the latent variable is allotted{1, 2, 3, 4}bits, which correspond to total rates of{512, 1024, 1536, 2048} bits shown in Figure 5. The decoder conversely takes a discrete latent variable of shape 16×32 and upscales it by a factor of 8×to produce a reconstruction of the original shape.

A detailed specification of the architecture is provided in Figure 11. The notation (Tconv) “Conv A×B (C→D)” represents a 2D (transposed) convolution with kernel size A and stride B with input and output channels C and D, respectively. The boxes “Residual Block (A → B)” represent a two-layer residual network. We used GELU (Gaussian Error Linear Unit) activation for all layers except for the very last convolution of the decoder, for which we used sigmoid.

Conv 1x1 (32→16) Conv 3x1 (3 → 16) Residual Block (32 → 32) Conv 4x2 (32 → 64) Residual Block (64 → 64) Conv 4x2 (32 → 64) Residual Block (128 → 128) Conv 4x2 (128 → 256) SI Net Quantizer Codebook Encoder Conv 1x1 (256 → 64) Tconv 4x2 (256 → 128) Conv 3x1 (64 → 128) Residual Block (128 → 128) Tconv 4x2 (128 → 64) Residual Block (64 → 64) Tconv 4x2 (64 → 32) Residual Block (32 → 32) Conv 3x1 (32 → 3) Cond Net SI Net Decoder

Figure 11: Conditional VQ-VAE architecture used for the image compression experiments. We used a small network (denoted “SI Net”) shared by the encoder and decoder to preprocess the side information. Whenever the encoder or decoder does not receive side information (for distributed and separate VQ-VAEs), we simply replace the output of SI Net with zero tensors of the same shape. We note that all three VQ-VAE variants have the same architecture and number of parameters for the autoencoder portion (the portion that the horizontal line goes through in Figure 11). Thus the VQ-VAE variants do not have any architectural advantage over the others for fair comparison. Distributed optimization. For gradient compression VQ-VAEs, we followed the same architecture as the image compression experiments, but replaced all convolutional layers with fully-connected layers. For the full details of each component, please refer to the source code.

A.2

Training Details

For image compression experiments, we trained the VQ-VAEs for a total of 20 epochs distributed over two Nvidia GTX 2080 GPUs. For gradient compression experiments, we trained the fully-connected VQ-VAEs for 500 epochs on a single GPU. In either case, we evaluated validation loss after each epoch and observed no overfitting. We include the steps to reproduce our experiments in the code that will be released to public.

References

Related documents

Since our goal is to study Schur functors and some related classical topics in representation theory, we shall fix a field k of characteristic zero and define a ‘2-rig’ to be

Encouraging results from real data processing shows that it is feasible to use the MUSIC-Capon processing in active sonar signals and its performance is better than the

In the specification of unified management system, Museum 2015 project will benchmark current researches (e. Kanter 2008) of CMSs and unified systems used in museums worldwide such

Temuan penelitian berimplikasi terhadap perlunya peningkatan manajemen waktu dan prestasi belajar secara beriringan melalui layanan bimbingan dan konseling

Experimental results on a Spanish database show that the proposed supervised representation learning methods yield more robust and discriminative representations for auto-

Thus, by combining video-microscopy experiments performed with paramagnetic colloidal particles confined to lithographic circular microchannels subjected to an external magnetic

The goal of this project was to develop a new curriculum for introductory calculus-based classical mechanics and thermodynamics that would (i) improve student learning in the course,

The user is clearly shown the active handset visibility by the large Bluetooth visibility icon in the Bluetooth One panel, which is updated accordingly when the user change handset