Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- parse/train/B1xSperKvH/B1xSperKvH.md +252 -0
- parse/train/B1xSperKvH/B1xSperKvH_content_list.json +1238 -0
- parse/train/B1xSperKvH/B1xSperKvH_middle.json +0 -0
- parse/train/B1xSperKvH/B1xSperKvH_model.json +0 -0
- parse/train/S1zz2i0cY7/S1zz2i0cY7.md +252 -0
- parse/train/S1zz2i0cY7/S1zz2i0cY7_content_list.json +1106 -0
- parse/train/S1zz2i0cY7/S1zz2i0cY7_middle.json +0 -0
- parse/train/S1zz2i0cY7/S1zz2i0cY7_model.json +0 -0
- parse/train/oyZxhRI2RiE/oyZxhRI2RiE.md +417 -0
- parse/train/oyZxhRI2RiE/oyZxhRI2RiE_content_list.json +0 -0
- parse/train/oyZxhRI2RiE/oyZxhRI2RiE_middle.json +0 -0
- parse/train/oyZxhRI2RiE/oyZxhRI2RiE_model.json +0 -0
- parse/train/rJg3zxBYwH/rJg3zxBYwH.md +358 -0
- parse/train/rJg3zxBYwH/rJg3zxBYwH_content_list.json +1854 -0
- parse/train/rJg3zxBYwH/rJg3zxBYwH_middle.json +0 -0
- parse/train/rJg3zxBYwH/rJg3zxBYwH_model.json +0 -0
- parse/train/rkGabzZgl/rkGabzZgl.md +0 -0
- parse/train/rkGabzZgl/rkGabzZgl_content_list.json +0 -0
- parse/train/rkGabzZgl/rkGabzZgl_middle.json +0 -0
- parse/train/rkGabzZgl/rkGabzZgl_model.json +0 -0
- vlm/train/3AOj0RCNC2/0.png +3 -0
- vlm/train/3AOj0RCNC2/1.png +3 -0
- vlm/train/3AOj0RCNC2/10.png +3 -0
- vlm/train/3AOj0RCNC2/11.png +3 -0
- vlm/train/3AOj0RCNC2/12.png +3 -0
- vlm/train/3AOj0RCNC2/13.png +3 -0
- vlm/train/3AOj0RCNC2/14.png +3 -0
- vlm/train/3AOj0RCNC2/15.png +3 -0
- vlm/train/3AOj0RCNC2/16.png +3 -0
- vlm/train/3AOj0RCNC2/17.png +3 -0
- vlm/train/3AOj0RCNC2/2.png +3 -0
- vlm/train/3AOj0RCNC2/3.png +3 -0
- vlm/train/3AOj0RCNC2/4.png +3 -0
- vlm/train/3AOj0RCNC2/5.png +3 -0
- vlm/train/3AOj0RCNC2/6.png +3 -0
- vlm/train/3AOj0RCNC2/7.png +3 -0
- vlm/train/3AOj0RCNC2/8.png +3 -0
- vlm/train/3AOj0RCNC2/9.png +3 -0
- vlm/train/3RMnfrH_Fi8eU/0.png +3 -0
- vlm/train/3RMnfrH_Fi8eU/1.png +3 -0
- vlm/train/3RMnfrH_Fi8eU/2.png +3 -0
- vlm/train/3RMnfrH_Fi8eU/3.png +3 -0
- vlm/train/3RMnfrH_Fi8eU/4.png +3 -0
- vlm/train/3RMnfrH_Fi8eU/5.png +3 -0
- vlm/train/3RMnfrH_Fi8eU/6.png +3 -0
- vlm/train/3RMnfrH_Fi8eU/7.png +3 -0
- vlm/train/3RMnfrH_Fi8eU/8.png +3 -0
- vlm/train/5Dl1378QutR/0.png +3 -0
- vlm/train/5Dl1378QutR/1.png +3 -0
- vlm/train/5Dl1378QutR/10.png +3 -0
parse/train/B1xSperKvH/B1xSperKvH.md
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ENABLING DEEP SPIKING NEURAL NETWORKSWITH HYBRID CONVERSION AND SPIKE TIMINGDEPENDENT BACKPROPAGATION
|
| 2 |
+
|
| 3 |
+
Nitin Rathi1, Gopalakrishnan Srinivasan1, Priyadarshini Panda2 & Kaushik Roy1
|
| 4 |
+
|
| 5 |
+
1School of Electrical and Computer Engineering, Purdue University 2Department of Electrical Engineering, Yale University {rathi2, srinivg}@purdue.edu, priya.panda@yale.edu, kaushik@purdue.edu
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
Spiking Neural Networks (SNNs) operate with asynchronous discrete events (or spikes) which can potentially lead to higher energy-efficiency in neuromorphic hardware implementations. Many works have shown that an SNN for inference can be formed by copying the weights from a trained Artificial Neural Network (ANN) and setting the firing threshold for each layer as the maximum input received in that layer. These type of converted SNNs require a large number of time steps to achieve competitive accuracy which diminishes the energy savings. The number of time steps can be reduced by training SNNs with spike-based backpropagation from scratch, but that is computationally expensive and slow. To address these challenges, we present a computationally-efficient training technique for deep SNNs1. We propose a hybrid training methodology: 1) take a converted SNN and use its weights and thresholds as an initialization step for spike-based backpropagation, and 2) perform incremental spike-timing dependent backpropagation (STDB) on this carefully initialized network to obtain an SNN that converges within few epochs and requires fewer time steps for input processing. STDB is performed with a novel surrogate gradient function defined using neuron’s spike time. The weight update is proportional to the difference in spike timing between the current time step and the most recent time step the neuron generated an output spike. The SNNs trained with our hybrid conversion-and-STDB training perform at $1 0 \times - 2 5 \times$ fewer number of time steps and achieve similar accuracy compared to purely converted SNNs. The proposed training methodology converges in less than 20 epochs of spike-based backpropagation for most standard image classification datasets, thereby greatly reducing the training complexity compared to training SNNs from scratch. We perform experiments on CIFAR-10, CIFAR-100 and ImageNet datasets for both VGG and ResNet architectures. We achieve top-1 accuracy of $6 5 . 1 9 \%$ for ImageNet dataset on SNN with 250 time steps, which is $1 0 \times$ faster compared to converted SNNs with similar accuracy.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
In recent years, Spiking Neural Networks (SNNs) have shown promise towards enabling low-power machine intelligence with event-driven neuromorphic hardware. Founded on bio-plausibility, the neurons in an SNN compute and communicate information through discrete binary events (or spikes) a significant shift from the standard artificial neural networks (ANNs), which process data in a real-valued (or analog) manner. The binary all-or-nothing spike-based communication combined with sparse temporal processing precisely make SNNs a low-power alternative to conventional ANNs. With all its appeal for power efficiency, training SNNs still remains a challenge. The discontinuous and non-differentiable nature of a spiking neuron (generally, modeled as leaky-integrate-and-fire (LIF), or integrate-and-fire (IF)) poses difficulty to conduct gradient descent based backpropagation. Practically, SNNs still lag behind ANNs, in terms of performance or accuracy, in traditional learning tasks. Consequently, there has been several works over the past few years that propose different learning algorithms or learning rules for implementing deep convolutional SNNs for complex visual recognition tasks (Wu et al., 2019; Hunsberger & Eliasmith, 2015; Cao et al., 2015). Of all the techniques, conversion from ANN-to-SNN (Diehl et al., 2016; 2015; Sengupta et al., 2019; Hunsberger & Eliasmith, 2015) has yielded state-of-the-art accuracies matching deep ANN performance for Imagenet dataset on complex architectures (such as, VGG (Simonyan & Zisserman, 2014) and ResNet (He et al., 2016) ). In conversion, we train an ANN with ReLU neurons using gradient descent and then convert the ANN to an SNN with IF neurons by using suitable threshold balancing (Sengupta et al., 2019). But, SNNs obtained through conversion incur large latency of 2000−2500 time steps (measured as total number of time steps required to process a given input image2). The term ‘time step’ defines an unit of time required to process a single input spike across all layers and represents the network latency. The large latency translates to higher energy consumption during inference, thereby, diminishing the efficiency improvements of SNNs over ANNs. To reduce the latency, spike-based backpropagation rules have been proposed that perform end-to-end gradient descent training on spike data. In spike-based backpropagation methods, the non-differentiability of the spiking neuron is handled by either approximating the spiking neuron model as continuous and differentiable (Huh & Sejnowski, 2018) or by defining a surrogate gradient as a continuous approximation of the real gradient (Wu et al., 2018; Bellec et al., 2018; Neftci et al., 2019). Spike-based SNN training reduces the overall latency by ${ \sim } 1 0 \times$ (for instance, $2 0 0 \mathrm { ~ - ~ } 2 5 0$ time steps required to process an input (Lee et al., 2019)) but requires more training effort (in terms of total training iterations) than conversion approaches. A single feed-forward pass in ANN corresponds to multiple forward passes in SNN which is proportional to the number of time steps. In spike-based backpropagation, the backward pass requires the gradients to be integrated over the total number of time steps that increases the computation and memory complexity. The multiple-iteration training effort with exploding memory requirement (for backward pass computations) has limited the applicability of spike-based backpropagation methods to small datasets (like CIFAR10) on simple few-layered convolutional architectures.
|
| 14 |
+
|
| 15 |
+
In this work, we propose a hybrid training technique which combines ANN-SNN conversion and spike-based backpropagation that reduces the overall latency as well as decreases the training effort for convergence. We use ANN-SNN conversion as an initialization step followed by spike-based backpropagation incremental training (that converges to optimal accuracy with few epochs due to the precursory initialization). Essentially, our hybrid approach of taking a converted SNN and incrementally training it using backpropagation yields improved energy-efficiency as well as higher accuracy than a model trained from scratch with only conversion or only spike-based backpropagation.
|
| 16 |
+
|
| 17 |
+
In summary, this paper makes the following contributions:
|
| 18 |
+
|
| 19 |
+
• We introduce a hybrid computationally-efficient training methodology for deep SNNs. We use the weights and firing thresholds of an SNN converted from an ANN as the initialization step for spike-based backpropagation. We then train this initialized network with spike-based backpropagation for few epochs to perform inference at a reduced latency or time steps. We propose a novel spike time-dependent backpropagation (STDB, a variant of standard spike-based backpropagation) that computes surrogate gradient using neuron’s spike time. The parameter update is triggered by the occurrence of spike and the gradient is computed based on the time difference between the current time step and the most recent time step the neuron generated an output spike. This is motivated from the Hebb’s principle which states that the plasticity of a synapse is dependent on the spiking activity of the neurons connected to the synapse. Our hybrid approach with the novel surrogate gradient descent allows training of large-scale SNNs without exploding memory required during spike-based backpropagation. We evaluate our hybrid approach on large SNNs (VGG, ResNet-like architectures) on
|
| 20 |
+
|
| 21 |
+
Imagenet, CIFAR datasets and show near iso-accuracy compared to similar ANNs and converted SNNs at lower compute cost and energy.
|
| 22 |
+
|
| 23 |
+
# 2 SPIKE TIMING DEPENDENT BACKPROPAGATION (STDB)
|
| 24 |
+
|
| 25 |
+
In this section, we describe the spiking neuron model, derive the equations for the proposed surrogate gradient based learning, present the weight initialization method for SNN, discuss the constraints applied for ANN-SNN conversion, and summarize the overall training methodology.
|
| 26 |
+
|
| 27 |
+
# 2.1 LEAKY INTEGRATE AND FIRE (LIF) NEURON MODEL
|
| 28 |
+
|
| 29 |
+
The neuron model defines the dynamics of the neuron’s internal state and the trigger for it to generate a spike. The differential equation
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
\tau \frac { d U } { d t } = - ( U - U _ { r e s t } ) + R I
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
Figure 1: Surrogate gradient of the spiking neuron activation function (Eq. 11). $\alpha = 0 . 3 , \beta = 0 . 0 1$ . The gradient is computed for each neuron and $\Delta t$ defines the time difference between current simulation time and the last spike time of the neuron. For example, if a neuron spikes at $t _ { s } = 1 2$ its gradient will be maximum at $t = 1 2 ( \Delta t = 0 )$ and gradually decrease for later time steps. If the same neuron spikes later at $t _ { s } = 2 4$ its previous spike history will be overwritten and the gradient computation for $t = 2 4$ onward will only consider the most recent spike. This avoids the overhead of storing all the spike history in memory.
|
| 37 |
+
|
| 38 |
+
is widely used to characterize the leaky-integrate-and-fire (LIF) neuron model where, $U$ is the internal state of the neuron referred as the membrane potential, $U _ { r e s t }$ is the resting potential, $R$ and $I$ are the input resistance and the current, respectively. The above equation is valid when the membrane potential is below the threshold value $( V )$ . The neuron geneartes an output spike when $U { \geqslant } V$
|
| 39 |
+
|
| 40 |
+
and $U$ is reduced to the reset potential. This representation is described in continuous domain and more suitable for biological simulations. We modify the equation to be evaluated in a discrete manner in the Pytorch framework ( $\mathrm { W u }$ et al., 2018). The iterative model for a single post-neuron is described by
|
| 41 |
+
|
| 42 |
+
$$
|
| 43 |
+
u _ { i } ^ { t } = \lambda u _ { i } ^ { t - 1 } + \sum _ { j } w _ { i j } o _ { j } ^ { t } - v o _ { i } ^ { t - 1 }
|
| 44 |
+
$$
|
| 45 |
+
|
| 46 |
+
$$
|
| 47 |
+
o _ { i } ^ { t - 1 } = \left\{ { \begin{array} { l l } { 1 , } & { { \mathrm { i f ~ } } u _ { i } ^ { t - 1 } > v } \\ { 0 , } & { { \mathrm { o t h e r w i s e } } } \end{array} } \right.
|
| 48 |
+
$$
|
| 49 |
+
|
| 50 |
+
where $u$ is the membrane potential, subscript $i$ and $j$ represent the post- and pre-neuron, respectively, superscript $t$ is the time step, $\lambda$ is a constant $( < 1 )$ responsible for the leak in membrane potential, $w$ is the weight connecting the pre- and post-neuron, $o$ is the binary output spike, and $v$ is the firing threshold potential. The right hand side of Equation 2 has three terms: the first term calculates the leak in the membrane potential from the previous time step, the second term integrates the input from the previous layer and adds it to the membrane potential, and the third term which is outside the summation reduces the membrane potential by the threshold value if a spike is generated. This is known as soft reset as the membrane potential is lowered by $v$ compared to hard reset where the membrane potential is reduced to the reset value. Soft reset enables the spiking neuron to carry forward the excess potential above the firing threshold to the following time step, thereby minimizing information loss.
|
| 51 |
+
|
| 52 |
+
<table><tr><td>Algorithm 1 ANN-SNN conversion: initialization of weights and threshold voltages Input: Trained ANN model (A), SNN model (N), Input (X) // Copy ann weights to snn</td></tr><tr><td>for l=1 to L do |Ni.W ← A.W end // Initialize threshold voltage to O V ←[0,·…·,0]L-1 for l=1 to L-1 do c↑0 for t=1 to T do</td></tr><tr><td>Ot ← PoissonGenerator(X) for k=1 to l do ifk<l then // Forward (Algorithm 3) end</td></tr><tr><td>else // Pre-nonlinearity (A) A ← Nt(O-1) if max(A) > v then v ←max(A) end end end</td></tr></table>
|
| 53 |
+
|
| 54 |
+
<table><tr><td>Algorithm 2 Initialize the neuron parameters. Membrane potential (U),last spike time(S), dropout mask (M).The initialization is performed once for everymini-batch.</td></tr><tr><td>Input: Input(X), network model(N) b_size=X.b_size h=X.height w=X.width for l=1 to L do</td></tr><tr><td>if isintance(Ni,Conv) then Ut = zeros(b_size,Ni.out,h,w) St = ones(b_size,Ni.out,h,w) * (-1000) end elseif isintance(Nt,Linear) then Ut = zeros(b_size,Ni.out) St = ones(b_size,Ni.out) *(-1000)</td></tr><tr><td>end else if isintance(Ni,Dropout) then // Generate the dropout map that will be fixed for all time steps Mt = Ni(ones(Ut-1.shape)) end else ifisintance(Ni,AugPool) then //Reduce the width and height after average pooling layer h=h//kernel_size w=w//kernel_size end</td></tr></table>
|
| 55 |
+
|
| 56 |
+
# 2.2 SPIKE TIMING DEPENDENT BACKPROPAGATION (STDB) LEARNING RULE
|
| 57 |
+
|
| 58 |
+
The neuron dynamics (Equation 2) show that the neuron’s state at a particular time step recurrently depends on its state in previous time steps. This introduces implicit recurrent connections in the network (Neftci et al., 2019). Therefore, the learning rule has to perform the temporal credit assignment along with the spatial credit assignment. Credit assignment refers to the process of assigning credit or blame to the network parameters according to their contribution to the loss function. Spatial credit assignment identifies structural network parameters (like weights), whereas temporal credit assignment determines which past network activities contributed to the loss function. Gradient-descent learning solves both credit assignment problem: spatial credit assignment is performed by distributing error spatially across all layers using the chain rule of derivatives, and temporal credit assignment is done by unrolling the network in time and performing backpropagation through time (BPTT) using the same chain rule of derivatives (Werbos et al., 1990). In BPTT, the network is unrolled for all time steps and the final output is computed as the sum of outputs from each time step. The loss function is defined on the summed output.
|
| 59 |
+
|
| 60 |
+
The dynamics of the neuron in the output layer is described by Equation (4), where the leak part is removed $\lambda = 1$ ) and the neuron only integrates the input without firing. This eliminates the difficulty of defining the loss function on spike count (Lee et al., 2019).
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
u _ { i } ^ { t } = u _ { i } ^ { t - 1 } + \sum _ { j } w _ { i j } o _ { j }
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
The number of neurons in the output layer is the same as the number of categories in the classification task. The output of the network is passed through a softmax layer that outputs a probability distribution. The loss function is defined as the cross-entropy between the true output and the
|
| 67 |
+
|
| 68 |
+
network’s predicted distribution.
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
\begin{array} { c } { L = - \displaystyle \sum _ { i } y _ { i } l o g ( p _ { i } ) } \\ { p _ { i } = \displaystyle \frac { e ^ { u _ { i } ^ { T } } } { \sum _ { k = 1 } ^ { N } e ^ { u _ { k } ^ { T } } } } \end{array}
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
$L$ is the loss function, $y$ the true output, $p$ the prediction, $T$ the total number of time steps, $u ^ { T }$ the accumulated membrane potential of the neuron in the output layer from all time steps, and $N$ the number of categories in the task. For deeper networks and large number of time steps the truncated version of the BPTT algorithm is used to avoid memory issues. In the truncated version the loss is computed at some time step $t ^ { \prime }$ before $\mathrm { T }$ based on the potential accumulated till $t ^ { \prime }$ . The loss is backpropagated to all layers and the loss gradients are computed and stored. At this point, the history of the computational graph is cleaned to save memory. The subsequent computation of loss gradients at later time steps $( 2 t ^ { \prime } , 3 t ^ { \prime } , . . . T )$ are summed together with the gradient at $t ^ { \prime }$ to get the final gradient. The optimizer updates the parameters at $T$ based on the sum of the gradients. Gradient descent learning has the objective of minimizing the loss function. This is achieved by backpropagating the error and updating the parameters opposite to the direction of the derivative. The derivative of the loss function w.r.t. to the membrane potential of the neuron in the final layer is described by,
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\frac { \partial L } { \partial u _ { i } ^ { T } } = p _ { i } - y _ { i }
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
To compute the gradient at current time step, the membrane potential at last time step $( u _ { i } ^ { t - 1 }$ in Equation 4) is considered as an input quantity. Therefore, gradient descent updates the network parameters $W _ { i j }$ of the output layer as,
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
W _ { i j } = W _ { i j } - \eta \Delta W _ { i j }
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\Delta W _ { i j } = \sum _ { t } { \frac { \partial L } { \partial W _ { i j } ^ { t } } } = \sum _ { t } { \frac { \partial L } { \partial u _ { i } ^ { T } } } { \frac { \partial u _ { i } ^ { T } } { \partial W _ { i j } ^ { t } } } = { \frac { \partial L } { \partial u _ { i } ^ { T } } } \sum _ { t } { \frac { \partial u _ { i } ^ { T } } { \partial W _ { i j } ^ { t } } }
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
where $\eta$ is the learning rate, and ${ W } _ { i j } ^ { t }$ represents the copy of the weight used for computation at time step $t$ . In the output layer the neurons do not generate a spike, and hence, the issue of non-differentiability is not encountered. The update of the hidden layer parameters is described by,
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\Delta W _ { i j } = \sum _ { t } { \frac { \partial L } { \partial W _ { i j } ^ { t } } } = \sum _ { t } { \frac { \partial L } { \partial o _ { i } ^ { t } } } { \frac { \partial o _ { i } ^ { t } } { \partial u _ { i } ^ { t } } } { \frac { \partial u _ { i } ^ { t } } { \partial W _ { i j } ^ { t } } }
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
where $o _ { i } ^ { t }$ is the thresholding function (Equation 3) whose derivative w.r.t to $u _ { i } ^ { t }$ is zero everywhere and not defined at the time of spike. The challenge of discontinuous spiking nonlinearity is resolved by introducing a surrogate gradient which is the continuous approximation of the real gradient.
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\frac { \partial o _ { i } ^ { t } } { \partial u _ { i } ^ { t } } = \alpha e ^ { - \beta \Delta t }
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
where $\alpha$ and $\beta$ are constants, $\Delta t$ is the time difference between the current time step $\mathbf { \rho } ( t )$ and the last time step the post-neuron generated a spike $( t _ { s } )$ . It is an integer value whose range is from zero to the total number of time steps $( T )$ .
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
\Delta t = ( t - t _ { s } ) , 0 < \Delta t < T , \Delta t \epsilon \mathbb { Z }
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
The values of $\alpha$ and $\beta$ are selected depending on the value of $T$ . If $T$ is large $\beta$ is lowered to reduce the exponential decay so a spike can contribute towards gradients for later time steps. The value of $\alpha$ is also reduced for large $T$ because the gradient can propagate through many time steps. The gradient is summed at each time step and thus a large $\alpha$ may lead to exploding gradient. The surrogate gradient can be pre-computed for all values of $\Delta t$ and stored in a look-up table for faster computation. The parameter updates are triggered by the spiking activity but the error gradients are still non-zero for time steps following the spike time. This enables the algorithm to avoid the ‘dead
|
| 109 |
+
|
| 110 |
+
Algorithm 3 Training an SNN with surrogate gradient computed with spike timing. The network is composed of $L$ layers. The training proceeds with mini-batch size (batch size)
|
| 111 |
+
|
| 112 |
+
Input: Mini-batch of input $( X )$ - target $( Y )$ pairs, network model $( N )$ , initial weights $( W )$ , threshold voltage $( V )$
|
| 113 |
+
$U , S , M = I$ nitializeNeuronP arameter $s ( X )$ [Algorithm 2]
|
| 114 |
+
// Forward propagation
|
| 115 |
+
for $t { = } I$ to $T$ do $O _ { 0 } ^ { t } = P o i s s o n G e n e r a t o r ( X )$ for $l { = } l$ to L-1 do if isintanc $e ( N _ { l } , [ C o n v , L i n e a r ] )$ then // accumulate the output of previous layer in $U$ , soft reset when spike occurs $\begin{array} { r } { U _ { l } ^ { t } = \lambda U _ { l } ^ { t - 1 } + W _ { l } \dot { O } _ { l - 1 } ^ { t } - V _ { l } * O _ { l } ^ { t - 1 } } \end{array}$ ? // generate the output $( + 1 )$ if $U$ exceeds $V$ $\hat { O _ { l } ^ { t } } = S T D B ( U _ { l } ^ { t } , V _ { l } , t )$ $/ /$ store the latest spike times for each neuron $S _ { l } ^ { t } [ O _ { l } ^ { t } = = 1 ] = t$ end else if isintance ${ \mathrm { : } } ( N _ { l } , A v g P o o l )$ then $O _ { l } ^ { t } = N _ { l } ( O _ { l - 1 } ^ { t } )$ end else if isintance $( N _ { l } , D r o p o u t )$ then $O _ { l } ^ { t } = O _ { l - 1 } ^ { t } * M _ { l }$ end end $U _ { L } ^ { t } = \lambda U _ { L } ^ { t - 1 } + W _ { L } O _ { L - 1 } ^ { t }$
|
| 116 |
+
end
|
| 117 |
+
// Backward Propagation
|
| 118 |
+
Compute $\frac { \partial L } { \partial U _ { L } }$ from the cross-entropy loss function using BPTT
|
| 119 |
+
for $t { = } T$ to $^ { l }$ do for $\scriptstyle { l = L - I }$ to 1 do Compute $\frac { \partial L } { \partial O _ { l } ^ { t } }$ based on if $N _ { l }$ is linear, conv, pooling, etc. $\begin{array} { r } { \frac { \partial L } { \partial U _ { l } ^ { t } } = \frac { \partial L } { \partial O _ { l } ^ { t } } \frac { \partial O _ { l } ^ { t } } { \partial U _ { l } ^ { t } } = \frac { \partial L } { \partial O _ { l } ^ { t } } \ast \alpha e ^ { - \beta S _ { l } ^ { t } } } \end{array}$ end
|
| 120 |
+
end
|
| 121 |
+
|
| 122 |
+
neuron’ problem, where no learning happens when there is no spike. Fig. 1 shows the activation gradient for different values of $\Delta t$ , the gradient decreases exponentially for neurons that have not been active for a long time. In Hebbian models of biological learning, the parameter update is activity dependent. This is experimentally observed in spike-timing-dependent plasticity (STDP) learning rule which modulates the weights for pair of neurons that spike within a time window (Song et al., 2000).
|
| 123 |
+
|
| 124 |
+
# 3 SNN WEIGHT INITIALIZATION
|
| 125 |
+
|
| 126 |
+
A prevalent method of constructing SNNs for inference is ANN-SNN conversion (Diehl et al., 2015; Sengupta et al., 2019). Since the network is trained with analog activations it does not suffer from the non-differentiablity issue and can leverage the training techniques of ANNs. The conversion process has a major drawback: it suffers from long inference latency ( $\mathrm { \sim 2 5 0 0 }$ time steps) as mentioned in Section 1. As there is no provision to optimize the parameters after conversion based on spiking activity, the network can not leverage the temporal information of the spikes. In this work, we propose to use the conversion process as an initialization technique for STDB. The converted weights and thresholds serve as a good initialization for the optimizer and the STDB learning rule is applied for temporal and spatial credit assignment.
|
| 127 |
+
|
| 128 |
+
Algorithm 1 explains the ANN-SNN conversion process. The threshold voltages in SNN needs to be adjusted based on the ANN weights. Sengupta et al. (2019) showed two ways to achieve this: weight-normalization and threshold-balancing. In weight-normalization the weights are scaled by a normalization factor and threshold is set to 1, whereas in threshold-balancing the weights are unchanged and the threshold is set to the normalization factor. Both have a similar effect and either can be used to set the threshold. We employ the threshold-balancing method and the normalization factor is calculated as the maximum output of the corresponding convolution/linear layer in SNN. The maximum is calculated over a mini-batch of input for all time steps.
|
| 129 |
+
|
| 130 |
+
There are several constraints imposed on training the ANN for the conversion process (Sengupta et al., 2019; Diehl et al., 2015). The neurons are trained without the bias term because the bias term in SNN has an indirect effect on the threshold voltage which increases the difficulty of threshold balancing and the process becomes more prone to conversion loss. The absence of bias term eliminates the use of Batch Normalization (Ioffe & Szegedy, 2015) as a regularizer in ANN since it biases the input of each layer to have zero mean. As an alternative, Dropout (Srivastava et al., 2014) is used as a regularizer for both ANN and SNN training. The implementation of Dropout in SNN is further discussed in Section 5. The pooling operation is widely used in ANN to reduce the convolution map size. There are two popular variants: max pooling and average pooling (Boureau et al., 2010). Max (Average) pooling outputs the maximum (average) value in the kernel space of the neuron’s activations. In SNN, the activations are binary and performing max pooling will result in significant information loss for the next layer, so we adopt the average pooling for both ANN and SNN (Diehl et al., 2015).
|
| 131 |
+
|
| 132 |
+
# 4 NETWORK ARCHITECTURES
|
| 133 |
+
|
| 134 |
+

|
| 135 |
+
Figure 2: Residual architecture for SNN
|
| 136 |
+
|
| 137 |
+
In this section, we describe the changes made to the VGG (Simonyan & Zisserman, 2014) and residual architecture (He et al., 2016) for hybrid learning and discuss the process of threshold computation for both the architectures.
|
| 138 |
+
|
| 139 |
+
# 4.1 VGG ARCHITECTURE
|
| 140 |
+
|
| 141 |
+
The threshold balancing is performed for all layers except the input and output layer in a VGG architecture. For every hidden convolution/linear layer the maximum input3 to the neuron is computed over all time steps and set as threshold for that layer. The threshold assignment is done sequentially as described in Algorithm 1. The threshold computation for all layers can not be performed in parallel (in one forward pass) because in the forward method (Algorithm 3) we need the threshold at each time step to decide if the neuron should spike or not.
|
| 142 |
+
|
| 143 |
+
# 4.2 RESIDUAL ARCHITECTURE
|
| 144 |
+
|
| 145 |
+
Residual architectures introduce shortcut connections between layers that are not next to each other. In order to minimize the ANN-SNN conversion loss various considerations were made by Sengupta et al. (2019). The original residual architecture proposed by He et al. (2016) uses an initial convolution layer with wide kernel $( 7 \times 7$ , stride 2). For conversion, this is replaced by a pre-processing block consisting of a series of three convolution layer $( 3 \times 3$ , stride 1) with dropout layer in between (Fig. 2). The threshold balancing mechanism is applied to only these three layers and the layers in the basic block have unity threshold.
|
| 146 |
+
|
| 147 |
+
Table 1: Classification results (Top-1) for CIFAR10, CIFAR100 and ImageNet data sets. Column-1 shows the network architecture. Column-2 shows the ANN accuracy when trained under the constraints as described in Section 3. Column-3 shows the SNN accuracy for $T \ : = \ : 2 5 0 0$ when converted from a ANN with threshold balancing. Column-4 shows the performance of the same converted SNN with lower time steps and adjusted thresholds. Column-5 shows the performance after training the Column-4 network with STDB for less than 20 epochs.
|
| 148 |
+
|
| 149 |
+
<table><tr><td rowspan=1 colspan=1>Architecture</td><td rowspan=1 colspan=1>ANN</td><td rowspan=1 colspan=1>ANN-SNNConversion(T = 2500)</td><td rowspan=1 colspan=1>ANN-SNNConversion (reduced time steps)</td><td rowspan=1 colspan=1>Hybrid Training(ANN-SNN Conversion+ STDB)</td></tr><tr><td rowspan=1 colspan=5>CIFAR10</td></tr><tr><td rowspan=1 colspan=1>VGG5</td><td rowspan=1 colspan=1>87.88%</td><td rowspan=1 colspan=1>87.64%</td><td rowspan=1 colspan=1>84.56% (T = 75)</td><td rowspan=1 colspan=1>86.91% (T = 75)</td></tr><tr><td rowspan=1 colspan=1>VGG9</td><td rowspan=1 colspan=1>91.45%</td><td rowspan=1 colspan=1>90.98%</td><td rowspan=1 colspan=1>87.31% (T = 100)</td><td rowspan=1 colspan=1>90.54% (T = 100)</td></tr><tr><td rowspan=1 colspan=1>VGG16</td><td rowspan=1 colspan=1>92.81%</td><td rowspan=1 colspan=1>92.48%</td><td rowspan=1 colspan=1>90.2% (T = 100)</td><td rowspan=1 colspan=1>91.13% (T = 100)</td></tr><tr><td rowspan=1 colspan=1>ResNet8</td><td rowspan=1 colspan=1>91.35%</td><td rowspan=1 colspan=1>91.12%</td><td rowspan=1 colspan=1>89.5% (T = 200)</td><td rowspan=1 colspan=1>91.35% (T = 200)</td></tr><tr><td rowspan=1 colspan=1>ResNet20</td><td rowspan=1 colspan=1>93.15%</td><td rowspan=1 colspan=1>92.94%</td><td rowspan=1 colspan=1>91.12% (T = 250)</td><td rowspan=1 colspan=1>92.22% (T = 250)</td></tr><tr><td rowspan=1 colspan=5>CIFAR100</td></tr><tr><td rowspan=1 colspan=1>VGG11</td><td rowspan=1 colspan=1>71.21%</td><td rowspan=1 colspan=1>70.94%</td><td rowspan=1 colspan=1>65.52% (T = 125)</td><td rowspan=1 colspan=1>67.87% (T = 125)</td></tr><tr><td rowspan=1 colspan=5>ImageNet</td></tr><tr><td rowspan=1 colspan=1>ResNet34</td><td rowspan=1 colspan=1>70.2%</td><td rowspan=1 colspan=1>65.1%</td><td rowspan=1 colspan=1>56.87% (T = 250)</td><td rowspan=1 colspan=1>61.48% (T = 250)</td></tr><tr><td rowspan=1 colspan=1>VGG16</td><td rowspan=1 colspan=1>69.35%</td><td rowspan=1 colspan=1>68.12%</td><td rowspan=1 colspan=1>62.73% (T= 250)</td><td rowspan=1 colspan=1>65.19% (T = 250)</td></tr></table>
|
| 150 |
+
|
| 151 |
+
# 5 OVERALL TRAINING ALGORITHM
|
| 152 |
+
|
| 153 |
+
Algorithm 1 defines the process to initialize the parameters (weights, thresholds) of SNN based on ANN-SNN conversion. Algorithm 2 and 3 show the mechanism of training the SNN with STDB. Algorithm 2 initializes the neuron parameters for every mini-batch, whereas Algorithm 3 performs the forward and backward propagation and computes the credit assignment. The threshold voltage for all neurons in a layer is same and is not altered in the training process. For each dropout layer we initialize a mask $( M )$ for every mini-batch of inputs. The function of dropout is to randomly drop a certain number of inputs in order to avoid overfitting. In case of SNN, inputs are represented as a spike train and we want to keep the dropout units same for the entire duration of the input. Thus, a random mask $( M )$ is initialized (Algorithm 2) for every mini-batch and the input is element-wise multiplied with the mask to generate the output of the dropout layer (Lee et al., 2019). The Poisson generator function outputs a Poisson spike train with rate proportional to the pixel value in the input. A random number is generated at every time step for each pixel in the input image. The random number is compared with the normalized pixel value and if the random number is less than the pixel value an output spike is generated. This results in a Poisson spike train with rate equivalent to the pixel value if averaged over a long time. The weighted sum of the input is accumulated in the membrane potential of the first convolution layer. The STDB function compares the membrane potential and the threshold of that layer to generate an output spike. The neurons that output a spike their corresponding entry in $S$ is updated with current time step (t). The last spike time is initialized with a large negative number (Algorithm 2) to denote that at the beginning the last spike happened at negative infinity time. This is repeated for all layers until the last layer. For last layer the inputs are accumulated over all time steps and passed through a softmax layer to compute the multi-class probability. The cross-entropy loss function is defined on the output of the softmax and the weights are updated by performing the temporal and spatial credit assignment according to the STDB rule.
|
| 154 |
+
|
| 155 |
+
# 6 EXPERIMENTS
|
| 156 |
+
|
| 157 |
+
We tested the proposed training mechanism on image classification tasks from CIFAR (Krizhevsky et al., 2009) and ImageNet (Deng et al., 2009) datasets. The results are summarized in Table 1.
|
| 158 |
+
|
| 159 |
+

|
| 160 |
+
Figure 3: Average number of spikes for each layer in a VGG16 architecture for purely converted SNN and SNN trained with hybrid technique. The converted SNN and SNN trained with hybrid technique achieve an accuracy of $8 9 . 2 0 \%$ and $9 1 . 8 7 \%$ , respectively, for the randomly selected 1500 samples from the test set. Both the networks were inferred for 100 time steps and $\mathbf { \epsilon } \cdot \mathbf { \gamma } _ { \mathbf { V } } \mathbf { \epsilon } )$ represents the threshold voltage for each layer obtained during the conversion process (Algorithm 1).
|
| 161 |
+
|
| 162 |
+
CIFAR10: The dataset consists of labeled 60, 000 images of 10 categories divided into training (50, 000) and testing (10, 000) set. The images are of size $3 2 \times 3 2$ with RGB channels.
|
| 163 |
+
|
| 164 |
+
CIFAR100: The dataset is similar to CIFAR10 except that it has 100 categories.
|
| 165 |
+
|
| 166 |
+
ImageNet: The dataset comprises of labeled high-resolution 1.2 million training images and 50, 000 validation images with 1000 categories.
|
| 167 |
+
|
| 168 |
+
# 7 ENERGY-DELAY PRODUCT ANALYSIS OF SNNS
|
| 169 |
+
|
| 170 |
+
A single spike in an SNN consumes a constant amount of energy (Cao et al., 2015). The first order analysis of energy-delay product of an SNN is dependent on the number of spikes and the total number of time steps. Fig. 3 shows the average number of spikes in each layer when evaluated for 1500 samples from CIFAR10 testset for VGG16 architecture. The average is computed by summing all the spikes in a layer over 100 time steps and dividing by the number of neurons in that layer. For example, the average number of spikes in the $1 0 ^ { t h }$ layer is 5.8 for both the networks, which implies that over a 100 time step period each neuron in that layer spikes 5.8 times on average over all input samples. Higher spiking activity corresponds to lower energy-efficiency. The average number of spikes is compared for a converted SNN and SNN trained with conversion-and-STDB. The SNN trained with conversion-and-STDB has $1 . 5 \times$ less number of average spikes over all layers under iso conditions (time steps, threshold voltages, inputs, etc.) and achieves higher accuracy compared to the converted SNN. The converted SNNs when simulated for larger time steps further degrade the energy-delay product with minimal increase in accuracy (Sengupta et al., 2019).
|
| 171 |
+
|
| 172 |
+
# 8 RELATED WORK
|
| 173 |
+
|
| 174 |
+
Bohte et al. (2000) proposed a method to directly train on SNN by keeping track of the membrane potential of spiking neurons only at spike times and backpropagating the error at spike times based on only the membrane potential. This method is not suitable for networks with sparse activity due to the ‘dead neuron’ problem: no learning happens when the neurons do not spike. In our work, we need one spike for the learning to start but gradient contribution continues in later time steps as shown in Fig. 1. Zenke & Ganguli (2018) derived a surrogate gradient based method on the membrane potential of a spiking neuron at a single time step only. The error was backpropagated at only one time step and only the input at that time step contributed to the gradient. This method neglects the effect of earlier spike inputs. In our approach, the error is backpropagated for every time step and the weight update is performed on the gradients summed over all time steps. Shrestha & Orchard (2018) proposed a gradient function similar to the one proposed in this work. They used the difference between the membrane potential and the threshold to compute the gradient compared to the difference in spike timing used in this work. The membrane potential is a continuous value whereas the spike time is an integer value bounded by the number of time steps. Therefore, gradients that depend on spike time can be pre-computed and stored in a look-up table for faster computation. They evaluated their approach on shallow architectures with two convolution layer for MNIST dataset. In this work, we trained deep SNNs with multiple stacked layers for complex calssification tasks. Wu et al. (2018) performed backpropagation through time on SNN with a surrogate gradient defined on the membrane potential. The surrogate gradient was defined as piece-wise linear or exponential function of the membrane potential. The other surrogate gradients proposed in the literature are all computed on the membrane potential (Neftci et al., 2019). Lee et al. (2019) approximated the neuron output as continuous low-pass filtered spike train. They used this approximated continuous value to perform backpropagation. Most of the works in the literature on direct training of SNN or conversion based methods have been evaluated on shallow architectures for simple classification problems. In Table 2 we compare our model with the models that reported accuracy on CIFAR10 and ImageNet dataset. Wu et al. (2019) achieved convergence in 12 time steps by using a dedicated encoding layer to capture the input precision. It is beyond the scope of this work to compute the hardware and energy implications of such encoding layer. Our model performs better than all other models at far fewer number of time steps.
|
| 175 |
+
|
| 176 |
+
Table 2: Comparion of our work with other SNN models on CIFAR10 and ImageNet datasets
|
| 177 |
+
|
| 178 |
+
<table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>TrainingMethod</td><td rowspan=1 colspan=1>Architecture</td><td rowspan=1 colspan=1> Accuracy</td><td rowspan=1 colspan=1>Time-steps</td></tr><tr><td rowspan=1 colspan=1>Hunsberger&Eliasmith(2015)</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>ANN-SNNConversion</td><td rowspan=1 colspan=1>2Conv,2Linear</td><td rowspan=1 colspan=1>82.95%</td><td rowspan=1 colspan=1>6000</td></tr><tr><td rowspan=1 colspan=1>Caoetal.(2015)</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>ANN-SNNConversion</td><td rowspan=1 colspan=1>3Conv,2Linear</td><td rowspan=1 colspan=1>77.43%</td><td rowspan=1 colspan=1>400</td></tr><tr><td rowspan=1 colspan=1> Senguptaet al. (2019)</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>ANN-SNNConversion</td><td rowspan=1 colspan=1>VGG16</td><td rowspan=1 colspan=1>91.55%</td><td rowspan=1 colspan=1>2500</td></tr><tr><td rowspan=1 colspan=1>Lee etal.(2019)</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>Spiking BP</td><td rowspan=1 colspan=1>VGG9</td><td rowspan=1 colspan=1>90.45%</td><td rowspan=1 colspan=1>100</td></tr><tr><td rowspan=1 colspan=1>Wu et al.(2019)</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1> SurrogateGradient</td><td rowspan=1 colspan=1>5Conv,2Linear</td><td rowspan=1 colspan=1>90.53%</td><td rowspan=1 colspan=1>12</td></tr><tr><td rowspan=1 colspan=1>This work</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>HybridTraining</td><td rowspan=1 colspan=1>VGG16</td><td rowspan=1 colspan=1>91.13%92.02%</td><td rowspan=1 colspan=1>100200</td></tr><tr><td rowspan=1 colspan=1> Senguptaet al. (2019)</td><td rowspan=1 colspan=1>ImageNet</td><td rowspan=1 colspan=1>ANN-SNNConversion</td><td rowspan=1 colspan=1>VGG16</td><td rowspan=1 colspan=1>69.96%</td><td rowspan=1 colspan=1>2500</td></tr><tr><td rowspan=1 colspan=1>This work</td><td rowspan=1 colspan=1>ImageNet</td><td rowspan=1 colspan=1>HybridTraining</td><td rowspan=1 colspan=1>VGG16</td><td rowspan=1 colspan=1>65.19%</td><td rowspan=1 colspan=1>250</td></tr></table>
|
| 179 |
+
|
| 180 |
+
# 9 CONCLUSIONS
|
| 181 |
+
|
| 182 |
+
The direct training of SNN with backpropagation is computationally expensive and slow, whereas ANN-SNN conversion suffers from high latency. To address this issue we proposed a hybrid training technique for deep SNNs. We took an SNN converted from ANN and used its weights and thresholds as initialization for spike-based backpropagation of SNN. We then performed spike-based backpropagation on this initialized network to obtain an SNN that can perform with fewer number of time steps. The number of epochs required to train SNN was also reduced by having a good initial starting point. The resultant trained SNN had higher accuracy and lower number of spikes/inference compared to purely converted SNNs at reduced number of time steps. The backpropagation through time was performed with surrogate gradient defined using neuron’s spike time that captured the temporal information and helped in reducing the number of time steps. We tested our algorithm on CIFAR and ImageNet datasets and achieved state-of-the-art performance with fewer number of time steps.
|
| 183 |
+
|
| 184 |
+
# ACKNOWLEDGMENTS
|
| 185 |
+
|
| 186 |
+
This work was supported in part by the National Science Foundation, in part by Vannevar Bush Faculty Fellowship, and in part by C-BRIC, one of six centers in JUMP, a Semiconductor Research Corporation (SRC) program sponsored by DARPA.
|
| 187 |
+
|
| 188 |
+
# REFERENCES
|
| 189 |
+
|
| 190 |
+
Guillaume Bellec, Darjan Salaj, Anand Subramoney, Robert Legenstein, and Wolfgang Maass. Long short-term memory and learning-to-learn in networks of spiking neurons. In Advances in Neural Information Processing Systems, pp. 787–797, 2018.
|
| 191 |
+
|
| 192 |
+
Sander M Bohte, Joost N Kok, and Johannes A La Poutre. Spikeprop: backpropagation for networks ´ of spiking neurons. In ESANN, pp. 419–424, 2000.
|
| 193 |
+
|
| 194 |
+
Y-Lan Boureau, Jean Ponce, and Yann LeCun. A theoretical analysis of feature pooling in visual recognition. In Proceedings of the 27th international conference on machine learning (ICML-10), pp. 111–118, 2010.
|
| 195 |
+
|
| 196 |
+
Yongqiang Cao, Yang Chen, and Deepak Khosla. Spiking deep convolutional neural networks for energy-efficient object recognition. International Journal of Computer Vision, 113(1):54–66, 2015.
|
| 197 |
+
|
| 198 |
+
J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009.
|
| 199 |
+
|
| 200 |
+
Peter U Diehl, Daniel Neil, Jonathan Binas, Matthew Cook, Shih-Chii Liu, and Michael Pfeiffer. Fast-classifying, high-accuracy spiking deep networks through weight and threshold balancing. In 2015 International Joint Conference on Neural Networks (IJCNN), pp. 1–8. IEEE, 2015.
|
| 201 |
+
|
| 202 |
+
Peter U Diehl, Guido Zarrella, Andrew Cassidy, Bruno U Pedroni, and Emre Neftci. Conversion of artificial recurrent neural networks to spiking neural networks for low-power neuromorphic hardware. In 2016 IEEE International Conference on Rebooting Computing (ICRC), pp. 1–8. IEEE, 2016.
|
| 203 |
+
|
| 204 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 205 |
+
|
| 206 |
+
Dongsung Huh and Terrence J Sejnowski. Gradient descent for spiking neural networks. In Advances in Neural Information Processing Systems, pp. 1433–1443, 2018.
|
| 207 |
+
|
| 208 |
+
Eric Hunsberger and Chris Eliasmith. Spiking deep networks with lif neurons. arXiv preprint arXiv:1510.08829, 2015.
|
| 209 |
+
|
| 210 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
|
| 211 |
+
|
| 212 |
+
Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
|
| 213 |
+
|
| 214 |
+
Chankyu Lee, Syed Shakib Sarwar, and Kaushik Roy. Enabling spike-based backpropagation in state-of-the-art deep neural network architectures. arXiv preprint arXiv:1903.06379, 2019.
|
| 215 |
+
|
| 216 |
+
Emre O Neftci, Hesham Mostafa, and Friedemann Zenke. Surrogate gradient learning in spiking neural networks. arXiv preprint arXiv:1901.09948, 2019.
|
| 217 |
+
|
| 218 |
+
Abhronil Sengupta, Yuting Ye, Robert Wang, Chiao Liu, and Kaushik Roy. Going deeper in spiking neural networks: $\mathrm { V g g }$ and residual architectures. Frontiers in neuroscience, 13, 2019.
|
| 219 |
+
|
| 220 |
+
Sumit Bam Shrestha and Garrick Orchard. Slayer: Spike layer error reassignment in time. In Advances in Neural Information Processing Systems, pp. 1412–1421, 2018.
|
| 221 |
+
|
| 222 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 223 |
+
Sen Song, Kenneth D Miller, and Larry F Abbott. Competitive hebbian learning through spike-timing-dependent synaptic plasticity. Nature neuroscience, 3(9):919, 2000.
|
| 224 |
+
Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research, 15(1):1929–1958, 2014.
|
| 225 |
+
Paul J Werbos et al. Backpropagation through time: what it does and how to do it. Proceedings of the IEEE, 78(10):1550–1560, 1990.
|
| 226 |
+
Yujie Wu, Lei Deng, Guoqi Li, Jun Zhu, and Luping Shi. Spatio-temporal backpropagation for training high-performance spiking neural networks. Frontiers in neuroscience, 12, 2018.
|
| 227 |
+
Yujie Wu, Lei Deng, Guoqi Li, Jun Zhu, Yuan Xie, and Luping Shi. Direct training for spiking neural networks: Faster, larger, better. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 1311–1318, 2019.
|
| 228 |
+
Friedemann Zenke and Surya Ganguli. Superspike: Supervised learning in multilayer spiking neural networks. Neural computation, 30(6):1514–1541, 2018.
|
| 229 |
+
|
| 230 |
+
# A COMPARISONS WITH OTHER SURROGATE GRADIENTS
|
| 231 |
+
|
| 232 |
+
The transfer function of the spiking neuron is a step function and its derivative is zero everywhere except at the time of spike where it is not defined. In order to perform backpropagation with spiking neuron several approximations are proposed for the gradient function (Bellec et al., 2018; Zenke & Ganguli, 2018; Shrestha & Orchard, 2018; Wu et al., 2018). These approximations are either a linear or exponential function of $\mathrm { ~ ( ~ } u \mathrm { ~ \mathrm { ~ - ~ } ~ } V _ { t } \mathrm { ) }$ , where $u$ is the membrane potential and $V _ { t }$ the threshold voltage (Fig. 4). These approximations are referred as surrogate gradient or pseudo-derivative. In this work, we proposed an approximation that is computed using the spike timing of the neuron (Equation 11). We compare our proposed approximation with the following surrogate gradients:
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
Figure 4: Linear and Exponential approximation of the gradient of the spiking neuron (step function).
|
| 236 |
+
|
| 237 |
+
$$
|
| 238 |
+
\frac { \partial o } { \partial u } = \alpha \ : m a x \{ 0 , 1 - | u - V _ { t } | \}
|
| 239 |
+
$$
|
| 240 |
+
|
| 241 |
+
$$
|
| 242 |
+
\frac { \partial o } { \partial u } = \alpha e ^ { - \beta \left| u - V _ { t } \right| }
|
| 243 |
+
$$
|
| 244 |
+
|
| 245 |
+
where $o$ is the binary output of the neuron, $u$ is the membrane potential, $V _ { t }$ is the threshold potential, $\alpha$ and $\beta$ are constants. Equation 13 and Equation 14 represent the linear and exponential approximation of the gradient, respectively. We employed these approximations in the hybrid training for a VGG9 network for CIFAR10 dataset. All the approximations (Equation 11, 13, and 14) produced similar results in terms of accuracy and number of epochs for convergence. This shows that the term $\Delta t$ (Equation 11) is a good replacement for $| u - V _ { t } |$ (Equation 14). The behaviour of $\Delta t$ and $| u - V _ { t } |$ is similar, i.e., it is small closer to the time of spike and increases as we move away from the spiking event. The advantage of using $\Delta t$ is that its domain is bounded by the total number of time steps (Equation 12). Hence, all possible values of gradients can be pre-computed and stored in a table for faster access during training. This is not possible for membrane potential because it is a real value computed based on the stochastic inputs and previous state of the neuron which is not known before hand. The exact benefit in energy from the pre-computation is dependent on the overall system architecture and evaluating it is beyond the scope of this paper.
|
| 246 |
+
|
| 247 |
+
# B COMPARISONS OF SIMULATION TIME AND MEMORY REQUIREMENTS
|
| 248 |
+
|
| 249 |
+
The simulation time and memory requirements for ANN and SNN are very different. SNN requires much more resources to iterate over multiple time steps and store the membrane potential for each neuron. Fig. 5 shows the training and inference time and memory requirements for ANN, SNN trained with backpropagation from scratch, and SNN trained with the proposed hybrid technique. The performance was evaluated for VGG16 architecture trained for CIFAR10 dataset. SNN trained from scratch and SNN trained with hybrid conversion-and-STDB are evaluated for 100 time steps. One epoch of ANN training (inference) takes 0.57 (0.05) minutes and 1.47 (1.15) GB of GPU memory. On the other hand, one epoch of SNN training (inference) takes 78 (11.39) minutes and 9.36 (1.37) GB of GPU memory for same hardware and mini-batch size. ANN and SNN trained from scratch reached convergence after 250 epochs. The hybrid technique requires 250 epochs of ANN training and 20 epochs of spike-based backpropagation. The hybrid training technique is one order of magnitude faster than training SNN from scratch. The memory requirement for hybrid technique is same as SNN as we need to perform fine-tuning with spike-based backpropagation.
|
| 250 |
+
|
| 251 |
+

|
| 252 |
+
Figure 5: Training and Inference time and memory for ANN, SNN trained with backpropagation from scratch, and SNN trained with hybrid technique. All values are normalized based on ANN values. The y-axis is in log scale. The performance was evaluated on one Nvidia GeForce RTX 2080 Ti TU102 GPU with 11 GB of memory. All the networks were trained for VGG16 architecture, CIFAR10 dataset, 100 time steps, and mini-batch size of 32. ANN and SNN require 250 epochs of training from scratch, hybrid conversion-and-STDB based training requires 250 epochs of ANN training followed by 20 epochs of spike-based backpropagation.
|
parse/train/B1xSperKvH/B1xSperKvH_content_list.json
ADDED
|
@@ -0,0 +1,1238 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "Nitin Rathi1, Gopalakrishnan Srinivasan1, Priyadarshini Panda2 & Kaushik Roy1 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
194,
|
| 20 |
+
754,
|
| 21 |
+
210
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1School of Electrical and Computer Engineering, Purdue University 2Department of Electrical Engineering, Yale University {rathi2, srinivg}@purdue.edu, priya.panda@yale.edu, kaushik@purdue.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
212,
|
| 31 |
+
673,
|
| 32 |
+
265
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
303,
|
| 43 |
+
544,
|
| 44 |
+
318
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Spiking Neural Networks (SNNs) operate with asynchronous discrete events (or spikes) which can potentially lead to higher energy-efficiency in neuromorphic hardware implementations. Many works have shown that an SNN for inference can be formed by copying the weights from a trained Artificial Neural Network (ANN) and setting the firing threshold for each layer as the maximum input received in that layer. These type of converted SNNs require a large number of time steps to achieve competitive accuracy which diminishes the energy savings. The number of time steps can be reduced by training SNNs with spike-based backpropagation from scratch, but that is computationally expensive and slow. To address these challenges, we present a computationally-efficient training technique for deep SNNs1. We propose a hybrid training methodology: 1) take a converted SNN and use its weights and thresholds as an initialization step for spike-based backpropagation, and 2) perform incremental spike-timing dependent backpropagation (STDB) on this carefully initialized network to obtain an SNN that converges within few epochs and requires fewer time steps for input processing. STDB is performed with a novel surrogate gradient function defined using neuron’s spike time. The weight update is proportional to the difference in spike timing between the current time step and the most recent time step the neuron generated an output spike. The SNNs trained with our hybrid conversion-and-STDB training perform at $1 0 \\times - 2 5 \\times$ fewer number of time steps and achieve similar accuracy compared to purely converted SNNs. The proposed training methodology converges in less than 20 epochs of spike-based backpropagation for most standard image classification datasets, thereby greatly reducing the training complexity compared to training SNNs from scratch. We perform experiments on CIFAR-10, CIFAR-100 and ImageNet datasets for both VGG and ResNet architectures. We achieve top-1 accuracy of $6 5 . 1 9 \\%$ for ImageNet dataset on SNN with 250 time steps, which is $1 0 \\times$ faster compared to converted SNNs with similar accuracy. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
232,
|
| 53 |
+
337,
|
| 54 |
+
764,
|
| 55 |
+
722
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
753,
|
| 66 |
+
336,
|
| 67 |
+
768
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In recent years, Spiking Neural Networks (SNNs) have shown promise towards enabling low-power machine intelligence with event-driven neuromorphic hardware. Founded on bio-plausibility, the neurons in an SNN compute and communicate information through discrete binary events (or spikes) a significant shift from the standard artificial neural networks (ANNs), which process data in a real-valued (or analog) manner. The binary all-or-nothing spike-based communication combined with sparse temporal processing precisely make SNNs a low-power alternative to conventional ANNs. With all its appeal for power efficiency, training SNNs still remains a challenge. The discontinuous and non-differentiable nature of a spiking neuron (generally, modeled as leaky-integrate-and-fire (LIF), or integrate-and-fire (IF)) poses difficulty to conduct gradient descent based backpropagation. Practically, SNNs still lag behind ANNs, in terms of performance or accuracy, in traditional learning tasks. Consequently, there has been several works over the past few years that propose different learning algorithms or learning rules for implementing deep convolutional SNNs for complex visual recognition tasks (Wu et al., 2019; Hunsberger & Eliasmith, 2015; Cao et al., 2015). Of all the techniques, conversion from ANN-to-SNN (Diehl et al., 2016; 2015; Sengupta et al., 2019; Hunsberger & Eliasmith, 2015) has yielded state-of-the-art accuracies matching deep ANN performance for Imagenet dataset on complex architectures (such as, VGG (Simonyan & Zisserman, 2014) and ResNet (He et al., 2016) ). In conversion, we train an ANN with ReLU neurons using gradient descent and then convert the ANN to an SNN with IF neurons by using suitable threshold balancing (Sengupta et al., 2019). But, SNNs obtained through conversion incur large latency of 2000−2500 time steps (measured as total number of time steps required to process a given input image2). The term ‘time step’ defines an unit of time required to process a single input spike across all layers and represents the network latency. The large latency translates to higher energy consumption during inference, thereby, diminishing the efficiency improvements of SNNs over ANNs. To reduce the latency, spike-based backpropagation rules have been proposed that perform end-to-end gradient descent training on spike data. In spike-based backpropagation methods, the non-differentiability of the spiking neuron is handled by either approximating the spiking neuron model as continuous and differentiable (Huh & Sejnowski, 2018) or by defining a surrogate gradient as a continuous approximation of the real gradient (Wu et al., 2018; Bellec et al., 2018; Neftci et al., 2019). Spike-based SNN training reduces the overall latency by ${ \\sim } 1 0 \\times$ (for instance, $2 0 0 \\mathrm { ~ - ~ } 2 5 0$ time steps required to process an input (Lee et al., 2019)) but requires more training effort (in terms of total training iterations) than conversion approaches. A single feed-forward pass in ANN corresponds to multiple forward passes in SNN which is proportional to the number of time steps. In spike-based backpropagation, the backward pass requires the gradients to be integrated over the total number of time steps that increases the computation and memory complexity. The multiple-iteration training effort with exploding memory requirement (for backward pass computations) has limited the applicability of spike-based backpropagation methods to small datasets (like CIFAR10) on simple few-layered convolutional architectures. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
785,
|
| 77 |
+
825,
|
| 78 |
+
897
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
103,
|
| 88 |
+
825,
|
| 89 |
+
506
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this work, we propose a hybrid training technique which combines ANN-SNN conversion and spike-based backpropagation that reduces the overall latency as well as decreases the training effort for convergence. We use ANN-SNN conversion as an initialization step followed by spike-based backpropagation incremental training (that converges to optimal accuracy with few epochs due to the precursory initialization). Essentially, our hybrid approach of taking a converted SNN and incrementally training it using backpropagation yields improved energy-efficiency as well as higher accuracy than a model trained from scratch with only conversion or only spike-based backpropagation. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
512,
|
| 99 |
+
825,
|
| 100 |
+
625
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "In summary, this paper makes the following contributions: ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
631,
|
| 110 |
+
555,
|
| 111 |
+
645
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "• We introduce a hybrid computationally-efficient training methodology for deep SNNs. We use the weights and firing thresholds of an SNN converted from an ANN as the initialization step for spike-based backpropagation. We then train this initialized network with spike-based backpropagation for few epochs to perform inference at a reduced latency or time steps. We propose a novel spike time-dependent backpropagation (STDB, a variant of standard spike-based backpropagation) that computes surrogate gradient using neuron’s spike time. The parameter update is triggered by the occurrence of spike and the gradient is computed based on the time difference between the current time step and the most recent time step the neuron generated an output spike. This is motivated from the Hebb’s principle which states that the plasticity of a synapse is dependent on the spiking activity of the neurons connected to the synapse. Our hybrid approach with the novel surrogate gradient descent allows training of large-scale SNNs without exploding memory required during spike-based backpropagation. We evaluate our hybrid approach on large SNNs (VGG, ResNet-like architectures) on ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
214,
|
| 120 |
+
659,
|
| 121 |
+
825,
|
| 122 |
+
885
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Imagenet, CIFAR datasets and show near iso-accuracy compared to similar ANNs and converted SNNs at lower compute cost and energy. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
232,
|
| 131 |
+
103,
|
| 132 |
+
823,
|
| 133 |
+
132
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 2
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "2 SPIKE TIMING DEPENDENT BACKPROPAGATION (STDB) ",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
173,
|
| 143 |
+
160,
|
| 144 |
+
678,
|
| 145 |
+
176
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 2
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "In this section, we describe the spiking neuron model, derive the equations for the proposed surrogate gradient based learning, present the weight initialization method for SNN, discuss the constraints applied for ANN-SNN conversion, and summarize the overall training methodology. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
196,
|
| 155 |
+
485,
|
| 156 |
+
295
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 2
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "2.1 LEAKY INTEGRATE AND FIRE (LIF) NEURON MODEL ",
|
| 163 |
+
"text_level": 1,
|
| 164 |
+
"bbox": [
|
| 165 |
+
173,
|
| 166 |
+
320,
|
| 167 |
+
410,
|
| 168 |
+
348
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 2
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "The neuron model defines the dynamics of the neuron’s internal state and the trigger for it to generate a spike. The differential equation ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
173,
|
| 177 |
+
363,
|
| 178 |
+
483,
|
| 179 |
+
405
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 2
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "equation",
|
| 185 |
+
"img_path": "images/ca868a77e61676a2fe3969838076cc4d33f04b2cff402211675f9aed2ce13dc2.jpg",
|
| 186 |
+
"text": "$$\n\\tau \\frac { d U } { d t } = - ( U - U _ { r e s t } ) + R I\n$$",
|
| 187 |
+
"text_format": "latex",
|
| 188 |
+
"bbox": [
|
| 189 |
+
230,
|
| 190 |
+
419,
|
| 191 |
+
428,
|
| 192 |
+
450
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 2
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "image",
|
| 198 |
+
"img_path": "images/7c4a28ea13d64064dc648e47aca903dfa249118653d5d33be93a1c4056719f2e.jpg",
|
| 199 |
+
"image_caption": [
|
| 200 |
+
"Figure 1: Surrogate gradient of the spiking neuron activation function (Eq. 11). $\\alpha = 0 . 3 , \\beta = 0 . 0 1$ . The gradient is computed for each neuron and $\\Delta t$ defines the time difference between current simulation time and the last spike time of the neuron. For example, if a neuron spikes at $t _ { s } = 1 2$ its gradient will be maximum at $t = 1 2 ( \\Delta t = 0 )$ and gradually decrease for later time steps. If the same neuron spikes later at $t _ { s } = 2 4$ its previous spike history will be overwritten and the gradient computation for $t = 2 4$ onward will only consider the most recent spike. This avoids the overhead of storing all the spike history in memory. "
|
| 201 |
+
],
|
| 202 |
+
"image_footnote": [],
|
| 203 |
+
"bbox": [
|
| 204 |
+
501,
|
| 205 |
+
214,
|
| 206 |
+
821,
|
| 207 |
+
344
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 2
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "text",
|
| 213 |
+
"text": "is widely used to characterize the leaky-integrate-and-fire (LIF) neuron model where, $U$ is the internal state of the neuron referred as the membrane potential, $U _ { r e s t }$ is the resting potential, $R$ and $I$ are the input resistance and the current, respectively. The above equation is valid when the membrane potential is below the threshold value $( V )$ . The neuron geneartes an output spike when $U { \\geqslant } V$ ",
|
| 214 |
+
"bbox": [
|
| 215 |
+
174,
|
| 216 |
+
463,
|
| 217 |
+
483,
|
| 218 |
+
588
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 2
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "and $U$ is reduced to the reset potential. This representation is described in continuous domain and more suitable for biological simulations. We modify the equation to be evaluated in a discrete manner in the Pytorch framework ( $\\mathrm { W u }$ et al., 2018). The iterative model for a single post-neuron is described by ",
|
| 225 |
+
"bbox": [
|
| 226 |
+
174,
|
| 227 |
+
588,
|
| 228 |
+
826,
|
| 229 |
+
643
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 2
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "equation",
|
| 235 |
+
"img_path": "images/9a764cd6bdfda7f3e162656f136297a22e529f81902dc5bf6fb8c23bd44c34af.jpg",
|
| 236 |
+
"text": "$$\nu _ { i } ^ { t } = \\lambda u _ { i } ^ { t - 1 } + \\sum _ { j } w _ { i j } o _ { j } ^ { t } - v o _ { i } ^ { t - 1 }\n$$",
|
| 237 |
+
"text_format": "latex",
|
| 238 |
+
"bbox": [
|
| 239 |
+
385,
|
| 240 |
+
652,
|
| 241 |
+
612,
|
| 242 |
+
688
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 2
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "equation",
|
| 248 |
+
"img_path": "images/3137496a990b78f4f053b333d9ab38f8db4554e8676046b5890d82b65ba96d46.jpg",
|
| 249 |
+
"text": "$$\no _ { i } ^ { t - 1 } = \\left\\{ { \\begin{array} { l l } { 1 , } & { { \\mathrm { i f ~ } } u _ { i } ^ { t - 1 } > v } \\\\ { 0 , } & { { \\mathrm { o t h e r w i s e } } } \\end{array} } \\right.\n$$",
|
| 250 |
+
"text_format": "latex",
|
| 251 |
+
"bbox": [
|
| 252 |
+
411,
|
| 253 |
+
713,
|
| 254 |
+
584,
|
| 255 |
+
748
|
| 256 |
+
],
|
| 257 |
+
"page_idx": 2
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"type": "text",
|
| 261 |
+
"text": "where $u$ is the membrane potential, subscript $i$ and $j$ represent the post- and pre-neuron, respectively, superscript $t$ is the time step, $\\lambda$ is a constant $( < 1 )$ responsible for the leak in membrane potential, $w$ is the weight connecting the pre- and post-neuron, $o$ is the binary output spike, and $v$ is the firing threshold potential. The right hand side of Equation 2 has three terms: the first term calculates the leak in the membrane potential from the previous time step, the second term integrates the input from the previous layer and adds it to the membrane potential, and the third term which is outside the summation reduces the membrane potential by the threshold value if a spike is generated. This is known as soft reset as the membrane potential is lowered by $v$ compared to hard reset where the membrane potential is reduced to the reset value. Soft reset enables the spiking neuron to carry forward the excess potential above the firing threshold to the following time step, thereby minimizing information loss. ",
|
| 262 |
+
"bbox": [
|
| 263 |
+
173,
|
| 264 |
+
770,
|
| 265 |
+
825,
|
| 266 |
+
924
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 2
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "table",
|
| 272 |
+
"img_path": "images/6f9596c24c69f972dbb7dfacdd98897f442b2b53243f85c74e46dac6e9329812.jpg",
|
| 273 |
+
"table_caption": [],
|
| 274 |
+
"table_footnote": [],
|
| 275 |
+
"table_body": "<table><tr><td>Algorithm 1 ANN-SNN conversion: initialization of weights and threshold voltages Input: Trained ANN model (A), SNN model (N), Input (X) // Copy ann weights to snn</td></tr><tr><td>for l=1 to L do |Ni.W ← A.W end // Initialize threshold voltage to O V ←[0,·…·,0]L-1 for l=1 to L-1 do c↑0 for t=1 to T do</td></tr><tr><td>Ot ← PoissonGenerator(X) for k=1 to l do ifk<l then // Forward (Algorithm 3) end</td></tr><tr><td>else // Pre-nonlinearity (A) A ← Nt(O-1) if max(A) > v then v ←max(A) end end end</td></tr></table>",
|
| 276 |
+
"bbox": [
|
| 277 |
+
173,
|
| 278 |
+
103,
|
| 279 |
+
488,
|
| 280 |
+
525
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 3
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "table",
|
| 286 |
+
"img_path": "images/22c871afd72e7ae17fe73eb2cf2297d3b354828a4e971daebf3388808fa59765.jpg",
|
| 287 |
+
"table_caption": [],
|
| 288 |
+
"table_footnote": [],
|
| 289 |
+
"table_body": "<table><tr><td>Algorithm 2 Initialize the neuron parameters. Membrane potential (U),last spike time(S), dropout mask (M).The initialization is performed once for everymini-batch.</td></tr><tr><td>Input: Input(X), network model(N) b_size=X.b_size h=X.height w=X.width for l=1 to L do</td></tr><tr><td>if isintance(Ni,Conv) then Ut = zeros(b_size,Ni.out,h,w) St = ones(b_size,Ni.out,h,w) * (-1000) end elseif isintance(Nt,Linear) then Ut = zeros(b_size,Ni.out) St = ones(b_size,Ni.out) *(-1000)</td></tr><tr><td>end else if isintance(Ni,Dropout) then // Generate the dropout map that will be fixed for all time steps Mt = Ni(ones(Ut-1.shape)) end else ifisintance(Ni,AugPool) then //Reduce the width and height after average pooling layer h=h//kernel_size w=w//kernel_size end</td></tr></table>",
|
| 290 |
+
"bbox": [
|
| 291 |
+
513,
|
| 292 |
+
104,
|
| 293 |
+
823,
|
| 294 |
+
527
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 3
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "2.2 SPIKE TIMING DEPENDENT BACKPROPAGATION (STDB) LEARNING RULE ",
|
| 301 |
+
"text_level": 1,
|
| 302 |
+
"bbox": [
|
| 303 |
+
174,
|
| 304 |
+
553,
|
| 305 |
+
728,
|
| 306 |
+
568
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 3
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "The neuron dynamics (Equation 2) show that the neuron’s state at a particular time step recurrently depends on its state in previous time steps. This introduces implicit recurrent connections in the network (Neftci et al., 2019). Therefore, the learning rule has to perform the temporal credit assignment along with the spatial credit assignment. Credit assignment refers to the process of assigning credit or blame to the network parameters according to their contribution to the loss function. Spatial credit assignment identifies structural network parameters (like weights), whereas temporal credit assignment determines which past network activities contributed to the loss function. Gradient-descent learning solves both credit assignment problem: spatial credit assignment is performed by distributing error spatially across all layers using the chain rule of derivatives, and temporal credit assignment is done by unrolling the network in time and performing backpropagation through time (BPTT) using the same chain rule of derivatives (Werbos et al., 1990). In BPTT, the network is unrolled for all time steps and the final output is computed as the sum of outputs from each time step. The loss function is defined on the summed output. ",
|
| 313 |
+
"bbox": [
|
| 314 |
+
173,
|
| 315 |
+
582,
|
| 316 |
+
825,
|
| 317 |
+
762
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 3
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "The dynamics of the neuron in the output layer is described by Equation (4), where the leak part is removed $\\lambda = 1$ ) and the neuron only integrates the input without firing. This eliminates the difficulty of defining the loss function on spike count (Lee et al., 2019). ",
|
| 324 |
+
"bbox": [
|
| 325 |
+
174,
|
| 326 |
+
768,
|
| 327 |
+
825,
|
| 328 |
+
811
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 3
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "equation",
|
| 334 |
+
"img_path": "images/18b0132d3bf849f9819844e04bdf32195c80f6e2bd7ab05d4d6a2fbbc255d3cd.jpg",
|
| 335 |
+
"text": "$$\nu _ { i } ^ { t } = u _ { i } ^ { t - 1 } + \\sum _ { j } w _ { i j } o _ { j }\n$$",
|
| 336 |
+
"text_format": "latex",
|
| 337 |
+
"bbox": [
|
| 338 |
+
421,
|
| 339 |
+
825,
|
| 340 |
+
576,
|
| 341 |
+
861
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "The number of neurons in the output layer is the same as the number of categories in the classification task. The output of the network is passed through a softmax layer that outputs a probability distribution. The loss function is defined as the cross-entropy between the true output and the ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
174,
|
| 350 |
+
882,
|
| 351 |
+
823,
|
| 352 |
+
924
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 3
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "network’s predicted distribution. ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
173,
|
| 361 |
+
103,
|
| 362 |
+
387,
|
| 363 |
+
118
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 4
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "equation",
|
| 369 |
+
"img_path": "images/d1903200c357aa7e29b818c4bcf23d950a97ad23b168705127aa6b073928e3db.jpg",
|
| 370 |
+
"text": "$$\n\\begin{array} { c } { L = - \\displaystyle \\sum _ { i } y _ { i } l o g ( p _ { i } ) } \\\\ { p _ { i } = \\displaystyle \\frac { e ^ { u _ { i } ^ { T } } } { \\sum _ { k = 1 } ^ { N } e ^ { u _ { k } ^ { T } } } } \\end{array}\n$$",
|
| 371 |
+
"text_format": "latex",
|
| 372 |
+
"bbox": [
|
| 373 |
+
429,
|
| 374 |
+
116,
|
| 375 |
+
568,
|
| 376 |
+
195
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 4
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "$L$ is the loss function, $y$ the true output, $p$ the prediction, $T$ the total number of time steps, $u ^ { T }$ the accumulated membrane potential of the neuron in the output layer from all time steps, and $N$ the number of categories in the task. For deeper networks and large number of time steps the truncated version of the BPTT algorithm is used to avoid memory issues. In the truncated version the loss is computed at some time step $t ^ { \\prime }$ before $\\mathrm { T }$ based on the potential accumulated till $t ^ { \\prime }$ . The loss is backpropagated to all layers and the loss gradients are computed and stored. At this point, the history of the computational graph is cleaned to save memory. The subsequent computation of loss gradients at later time steps $( 2 t ^ { \\prime } , 3 t ^ { \\prime } , . . . T )$ are summed together with the gradient at $t ^ { \\prime }$ to get the final gradient. The optimizer updates the parameters at $T$ based on the sum of the gradients. Gradient descent learning has the objective of minimizing the loss function. This is achieved by backpropagating the error and updating the parameters opposite to the direction of the derivative. The derivative of the loss function w.r.t. to the membrane potential of the neuron in the final layer is described by, ",
|
| 383 |
+
"bbox": [
|
| 384 |
+
173,
|
| 385 |
+
204,
|
| 386 |
+
825,
|
| 387 |
+
383
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 4
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "equation",
|
| 393 |
+
"img_path": "images/2e0f69991a1b9cb28836403a655a2c8823cd03fd64bd653c010dc54ee86ae493.jpg",
|
| 394 |
+
"text": "$$\n\\frac { \\partial L } { \\partial u _ { i } ^ { T } } = p _ { i } - y _ { i }\n$$",
|
| 395 |
+
"text_format": "latex",
|
| 396 |
+
"bbox": [
|
| 397 |
+
446,
|
| 398 |
+
382,
|
| 399 |
+
552,
|
| 400 |
+
416
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 4
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "To compute the gradient at current time step, the membrane potential at last time step $( u _ { i } ^ { t - 1 }$ in Equation 4) is considered as an input quantity. Therefore, gradient descent updates the network parameters $W _ { i j }$ of the output layer as, ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
176,
|
| 409 |
+
429,
|
| 410 |
+
823,
|
| 411 |
+
472
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 4
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "equation",
|
| 417 |
+
"img_path": "images/de2cb2c4e65328e8505e5c38a4758eb0509bbcf848a9b39c9d8dc7377d3d9488.jpg",
|
| 418 |
+
"text": "$$\nW _ { i j } = W _ { i j } - \\eta \\Delta W _ { i j }\n$$",
|
| 419 |
+
"text_format": "latex",
|
| 420 |
+
"bbox": [
|
| 421 |
+
423,
|
| 422 |
+
478,
|
| 423 |
+
575,
|
| 424 |
+
497
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 4
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "equation",
|
| 430 |
+
"img_path": "images/7787e29d0e9212acded98702dae3e92f12e9328060a0e72acc22b4c5c84411b8.jpg",
|
| 431 |
+
"text": "$$\n\\Delta W _ { i j } = \\sum _ { t } { \\frac { \\partial L } { \\partial W _ { i j } ^ { t } } } = \\sum _ { t } { \\frac { \\partial L } { \\partial u _ { i } ^ { T } } } { \\frac { \\partial u _ { i } ^ { T } } { \\partial W _ { i j } ^ { t } } } = { \\frac { \\partial L } { \\partial u _ { i } ^ { T } } } \\sum _ { t } { \\frac { \\partial u _ { i } ^ { T } } { \\partial W _ { i j } ^ { t } } }\n$$",
|
| 432 |
+
"text_format": "latex",
|
| 433 |
+
"bbox": [
|
| 434 |
+
308,
|
| 435 |
+
501,
|
| 436 |
+
689,
|
| 437 |
+
545
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 4
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "where $\\eta$ is the learning rate, and ${ W } _ { i j } ^ { t }$ represents the copy of the weight used for computation at time step $t$ . In the output layer the neurons do not generate a spike, and hence, the issue of non-differentiability is not encountered. The update of the hidden layer parameters is described by, ",
|
| 444 |
+
"bbox": [
|
| 445 |
+
174,
|
| 446 |
+
555,
|
| 447 |
+
825,
|
| 448 |
+
611
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 4
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "equation",
|
| 454 |
+
"img_path": "images/0183488251c9af27b9f2519e8eeb977ce9ad20b05f29372f1069b0f983b6adb2.jpg",
|
| 455 |
+
"text": "$$\n\\Delta W _ { i j } = \\sum _ { t } { \\frac { \\partial L } { \\partial W _ { i j } ^ { t } } } = \\sum _ { t } { \\frac { \\partial L } { \\partial o _ { i } ^ { t } } } { \\frac { \\partial o _ { i } ^ { t } } { \\partial u _ { i } ^ { t } } } { \\frac { \\partial u _ { i } ^ { t } } { \\partial W _ { i j } ^ { t } } }\n$$",
|
| 456 |
+
"text_format": "latex",
|
| 457 |
+
"bbox": [
|
| 458 |
+
357,
|
| 459 |
+
609,
|
| 460 |
+
640,
|
| 461 |
+
651
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 4
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "where $o _ { i } ^ { t }$ is the thresholding function (Equation 3) whose derivative w.r.t to $u _ { i } ^ { t }$ is zero everywhere and not defined at the time of spike. The challenge of discontinuous spiking nonlinearity is resolved by introducing a surrogate gradient which is the continuous approximation of the real gradient. ",
|
| 468 |
+
"bbox": [
|
| 469 |
+
174,
|
| 470 |
+
655,
|
| 471 |
+
825,
|
| 472 |
+
698
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 4
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "equation",
|
| 478 |
+
"img_path": "images/a540262c31a21913d6a2ef06f28987c7dcfbc20258c80a289155326c3e2c878d.jpg",
|
| 479 |
+
"text": "$$\n\\frac { \\partial o _ { i } ^ { t } } { \\partial u _ { i } ^ { t } } = \\alpha e ^ { - \\beta \\Delta t }\n$$",
|
| 480 |
+
"text_format": "latex",
|
| 481 |
+
"bbox": [
|
| 482 |
+
446,
|
| 483 |
+
704,
|
| 484 |
+
552,
|
| 485 |
+
739
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 4
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "where $\\alpha$ and $\\beta$ are constants, $\\Delta t$ is the time difference between the current time step $\\mathbf { \\rho } ( t )$ and the last time step the post-neuron generated a spike $( t _ { s } )$ . It is an integer value whose range is from zero to the total number of time steps $( T )$ . ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
174,
|
| 494 |
+
744,
|
| 495 |
+
825,
|
| 496 |
+
787
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 4
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "equation",
|
| 502 |
+
"img_path": "images/31e23731d15cc1e1cfb193f5417fd0d48cc95ec82e121feca8456d06d9963885.jpg",
|
| 503 |
+
"text": "$$\n\\Delta t = ( t - t _ { s } ) , 0 < \\Delta t < T , \\Delta t \\epsilon \\mathbb { Z }\n$$",
|
| 504 |
+
"text_format": "latex",
|
| 505 |
+
"bbox": [
|
| 506 |
+
372,
|
| 507 |
+
795,
|
| 508 |
+
627,
|
| 509 |
+
813
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 4
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "The values of $\\alpha$ and $\\beta$ are selected depending on the value of $T$ . If $T$ is large $\\beta$ is lowered to reduce the exponential decay so a spike can contribute towards gradients for later time steps. The value of $\\alpha$ is also reduced for large $T$ because the gradient can propagate through many time steps. The gradient is summed at each time step and thus a large $\\alpha$ may lead to exploding gradient. The surrogate gradient can be pre-computed for all values of $\\Delta t$ and stored in a look-up table for faster computation. The parameter updates are triggered by the spiking activity but the error gradients are still non-zero for time steps following the spike time. This enables the algorithm to avoid the ‘dead ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
173,
|
| 518 |
+
825,
|
| 519 |
+
825,
|
| 520 |
+
924
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 4
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "Algorithm 3 Training an SNN with surrogate gradient computed with spike timing. The network is composed of $L$ layers. The training proceeds with mini-batch size (batch size) ",
|
| 527 |
+
"bbox": [
|
| 528 |
+
173,
|
| 529 |
+
102,
|
| 530 |
+
823,
|
| 531 |
+
132
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 5
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "Input: Mini-batch of input $( X )$ - target $( Y )$ pairs, network model $( N )$ , initial weights $( W )$ , threshold voltage $( V )$ \n$U , S , M = I$ nitializeNeuronP arameter $s ( X )$ [Algorithm 2] \n// Forward propagation \nfor $t { = } I$ to $T$ do $O _ { 0 } ^ { t } = P o i s s o n G e n e r a t o r ( X )$ for $l { = } l$ to L-1 do if isintanc $e ( N _ { l } , [ C o n v , L i n e a r ] )$ then // accumulate the output of previous layer in $U$ , soft reset when spike occurs $\\begin{array} { r } { U _ { l } ^ { t } = \\lambda U _ { l } ^ { t - 1 } + W _ { l } \\dot { O } _ { l - 1 } ^ { t } - V _ { l } * O _ { l } ^ { t - 1 } } \\end{array}$ ? // generate the output $( + 1 )$ if $U$ exceeds $V$ $\\hat { O _ { l } ^ { t } } = S T D B ( U _ { l } ^ { t } , V _ { l } , t )$ $/ /$ store the latest spike times for each neuron $S _ { l } ^ { t } [ O _ { l } ^ { t } = = 1 ] = t$ end else if isintance ${ \\mathrm { : } } ( N _ { l } , A v g P o o l )$ then $O _ { l } ^ { t } = N _ { l } ( O _ { l - 1 } ^ { t } )$ end else if isintance $( N _ { l } , D r o p o u t )$ then $O _ { l } ^ { t } = O _ { l - 1 } ^ { t } * M _ { l }$ end end $U _ { L } ^ { t } = \\lambda U _ { L } ^ { t - 1 } + W _ { L } O _ { L - 1 } ^ { t }$ \nend \n// Backward Propagation \nCompute $\\frac { \\partial L } { \\partial U _ { L } }$ from the cross-entropy loss function using BPTT \nfor $t { = } T$ to $^ { l }$ do for $\\scriptstyle { l = L - I }$ to 1 do Compute $\\frac { \\partial L } { \\partial O _ { l } ^ { t } }$ based on if $N _ { l }$ is linear, conv, pooling, etc. $\\begin{array} { r } { \\frac { \\partial L } { \\partial U _ { l } ^ { t } } = \\frac { \\partial L } { \\partial O _ { l } ^ { t } } \\frac { \\partial O _ { l } ^ { t } } { \\partial U _ { l } ^ { t } } = \\frac { \\partial L } { \\partial O _ { l } ^ { t } } \\ast \\alpha e ^ { - \\beta S _ { l } ^ { t } } } \\end{array}$ end \nend ",
|
| 538 |
+
"bbox": [
|
| 539 |
+
176,
|
| 540 |
+
133,
|
| 541 |
+
820,
|
| 542 |
+
609
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 5
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "neuron’ problem, where no learning happens when there is no spike. Fig. 1 shows the activation gradient for different values of $\\Delta t$ , the gradient decreases exponentially for neurons that have not been active for a long time. In Hebbian models of biological learning, the parameter update is activity dependent. This is experimentally observed in spike-timing-dependent plasticity (STDP) learning rule which modulates the weights for pair of neurons that spike within a time window (Song et al., 2000). ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
173,
|
| 551 |
+
645,
|
| 552 |
+
825,
|
| 553 |
+
728
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 5
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "3 SNN WEIGHT INITIALIZATION",
|
| 560 |
+
"text_level": 1,
|
| 561 |
+
"bbox": [
|
| 562 |
+
176,
|
| 563 |
+
758,
|
| 564 |
+
462,
|
| 565 |
+
775
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 5
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "A prevalent method of constructing SNNs for inference is ANN-SNN conversion (Diehl et al., 2015; Sengupta et al., 2019). Since the network is trained with analog activations it does not suffer from the non-differentiablity issue and can leverage the training techniques of ANNs. The conversion process has a major drawback: it suffers from long inference latency ( $\\mathrm { \\sim 2 5 0 0 }$ time steps) as mentioned in Section 1. As there is no provision to optimize the parameters after conversion based on spiking activity, the network can not leverage the temporal information of the spikes. In this work, we propose to use the conversion process as an initialization technique for STDB. The converted weights and thresholds serve as a good initialization for the optimizer and the STDB learning rule is applied for temporal and spatial credit assignment. ",
|
| 572 |
+
"bbox": [
|
| 573 |
+
173,
|
| 574 |
+
795,
|
| 575 |
+
825,
|
| 576 |
+
921
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 5
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "text",
|
| 582 |
+
"text": "Algorithm 1 explains the ANN-SNN conversion process. The threshold voltages in SNN needs to be adjusted based on the ANN weights. Sengupta et al. (2019) showed two ways to achieve this: weight-normalization and threshold-balancing. In weight-normalization the weights are scaled by a normalization factor and threshold is set to 1, whereas in threshold-balancing the weights are unchanged and the threshold is set to the normalization factor. Both have a similar effect and either can be used to set the threshold. We employ the threshold-balancing method and the normalization factor is calculated as the maximum output of the corresponding convolution/linear layer in SNN. The maximum is calculated over a mini-batch of input for all time steps. ",
|
| 583 |
+
"bbox": [
|
| 584 |
+
174,
|
| 585 |
+
103,
|
| 586 |
+
825,
|
| 587 |
+
214
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 6
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "There are several constraints imposed on training the ANN for the conversion process (Sengupta et al., 2019; Diehl et al., 2015). The neurons are trained without the bias term because the bias term in SNN has an indirect effect on the threshold voltage which increases the difficulty of threshold balancing and the process becomes more prone to conversion loss. The absence of bias term eliminates the use of Batch Normalization (Ioffe & Szegedy, 2015) as a regularizer in ANN since it biases the input of each layer to have zero mean. As an alternative, Dropout (Srivastava et al., 2014) is used as a regularizer for both ANN and SNN training. The implementation of Dropout in SNN is further discussed in Section 5. The pooling operation is widely used in ANN to reduce the convolution map size. There are two popular variants: max pooling and average pooling (Boureau et al., 2010). Max (Average) pooling outputs the maximum (average) value in the kernel space of the neuron’s activations. In SNN, the activations are binary and performing max pooling will result in significant information loss for the next layer, so we adopt the average pooling for both ANN and SNN (Diehl et al., 2015). ",
|
| 594 |
+
"bbox": [
|
| 595 |
+
176,
|
| 596 |
+
222,
|
| 597 |
+
581,
|
| 598 |
+
500
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 6
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "4 NETWORK ARCHITECTURES ",
|
| 605 |
+
"text_level": 1,
|
| 606 |
+
"bbox": [
|
| 607 |
+
176,
|
| 608 |
+
523,
|
| 609 |
+
439,
|
| 610 |
+
540
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 6
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "image",
|
| 616 |
+
"img_path": "images/31821489c1dc4301bde516e227360d788e26a0deac85ccef825dbbbadc225416.jpg",
|
| 617 |
+
"image_caption": [
|
| 618 |
+
"Figure 2: Residual architecture for SNN "
|
| 619 |
+
],
|
| 620 |
+
"image_footnote": [],
|
| 621 |
+
"bbox": [
|
| 622 |
+
596,
|
| 623 |
+
238,
|
| 624 |
+
825,
|
| 625 |
+
531
|
| 626 |
+
],
|
| 627 |
+
"page_idx": 6
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"type": "text",
|
| 631 |
+
"text": "In this section, we describe the changes made to the VGG (Simonyan & Zisserman, 2014) and residual architecture (He et al., 2016) for hybrid learning and discuss the process of threshold computation for both the architectures. ",
|
| 632 |
+
"bbox": [
|
| 633 |
+
174,
|
| 634 |
+
558,
|
| 635 |
+
581,
|
| 636 |
+
613
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 6
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "4.1 VGG ARCHITECTURE ",
|
| 643 |
+
"text_level": 1,
|
| 644 |
+
"bbox": [
|
| 645 |
+
176,
|
| 646 |
+
635,
|
| 647 |
+
367,
|
| 648 |
+
648
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 6
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "The threshold balancing is performed for all layers except the input and output layer in a VGG architecture. For every hidden convolution/linear layer the maximum input3 to the neuron is computed over all time steps and set as threshold for that layer. The threshold assignment is done sequentially as described in Algorithm 1. The threshold computation for all layers can not be performed in parallel (in one forward pass) because in the forward method (Algorithm 3) we need the threshold at each time step to decide if the neuron should spike or not. ",
|
| 655 |
+
"bbox": [
|
| 656 |
+
174,
|
| 657 |
+
662,
|
| 658 |
+
825,
|
| 659 |
+
746
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 6
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "4.2 RESIDUAL ARCHITECTURE ",
|
| 666 |
+
"text_level": 1,
|
| 667 |
+
"bbox": [
|
| 668 |
+
176,
|
| 669 |
+
767,
|
| 670 |
+
401,
|
| 671 |
+
781
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 6
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "Residual architectures introduce shortcut connections between layers that are not next to each other. In order to minimize the ANN-SNN conversion loss various considerations were made by Sengupta et al. (2019). The original residual architecture proposed by He et al. (2016) uses an initial convolution layer with wide kernel $( 7 \\times 7$ , stride 2). For conversion, this is replaced by a pre-processing block consisting of a series of three convolution layer $( 3 \\times 3$ , stride 1) with dropout layer in between (Fig. 2). The threshold balancing mechanism is applied to only these three layers and the layers in the basic block have unity threshold. ",
|
| 678 |
+
"bbox": [
|
| 679 |
+
174,
|
| 680 |
+
795,
|
| 681 |
+
825,
|
| 682 |
+
892
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 6
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "table",
|
| 688 |
+
"img_path": "images/4d6960da6d2ab1ef250ec4c809150250b2409864fcbf88a1f373de46cc253a99.jpg",
|
| 689 |
+
"table_caption": [
|
| 690 |
+
"Table 1: Classification results (Top-1) for CIFAR10, CIFAR100 and ImageNet data sets. Column-1 shows the network architecture. Column-2 shows the ANN accuracy when trained under the constraints as described in Section 3. Column-3 shows the SNN accuracy for $T \\ : = \\ : 2 5 0 0$ when converted from a ANN with threshold balancing. Column-4 shows the performance of the same converted SNN with lower time steps and adjusted thresholds. Column-5 shows the performance after training the Column-4 network with STDB for less than 20 epochs. "
|
| 691 |
+
],
|
| 692 |
+
"table_footnote": [],
|
| 693 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Architecture</td><td rowspan=1 colspan=1>ANN</td><td rowspan=1 colspan=1>ANN-SNNConversion(T = 2500)</td><td rowspan=1 colspan=1>ANN-SNNConversion (reduced time steps)</td><td rowspan=1 colspan=1>Hybrid Training(ANN-SNN Conversion+ STDB)</td></tr><tr><td rowspan=1 colspan=5>CIFAR10</td></tr><tr><td rowspan=1 colspan=1>VGG5</td><td rowspan=1 colspan=1>87.88%</td><td rowspan=1 colspan=1>87.64%</td><td rowspan=1 colspan=1>84.56% (T = 75)</td><td rowspan=1 colspan=1>86.91% (T = 75)</td></tr><tr><td rowspan=1 colspan=1>VGG9</td><td rowspan=1 colspan=1>91.45%</td><td rowspan=1 colspan=1>90.98%</td><td rowspan=1 colspan=1>87.31% (T = 100)</td><td rowspan=1 colspan=1>90.54% (T = 100)</td></tr><tr><td rowspan=1 colspan=1>VGG16</td><td rowspan=1 colspan=1>92.81%</td><td rowspan=1 colspan=1>92.48%</td><td rowspan=1 colspan=1>90.2% (T = 100)</td><td rowspan=1 colspan=1>91.13% (T = 100)</td></tr><tr><td rowspan=1 colspan=1>ResNet8</td><td rowspan=1 colspan=1>91.35%</td><td rowspan=1 colspan=1>91.12%</td><td rowspan=1 colspan=1>89.5% (T = 200)</td><td rowspan=1 colspan=1>91.35% (T = 200)</td></tr><tr><td rowspan=1 colspan=1>ResNet20</td><td rowspan=1 colspan=1>93.15%</td><td rowspan=1 colspan=1>92.94%</td><td rowspan=1 colspan=1>91.12% (T = 250)</td><td rowspan=1 colspan=1>92.22% (T = 250)</td></tr><tr><td rowspan=1 colspan=5>CIFAR100</td></tr><tr><td rowspan=1 colspan=1>VGG11</td><td rowspan=1 colspan=1>71.21%</td><td rowspan=1 colspan=1>70.94%</td><td rowspan=1 colspan=1>65.52% (T = 125)</td><td rowspan=1 colspan=1>67.87% (T = 125)</td></tr><tr><td rowspan=1 colspan=5>ImageNet</td></tr><tr><td rowspan=1 colspan=1>ResNet34</td><td rowspan=1 colspan=1>70.2%</td><td rowspan=1 colspan=1>65.1%</td><td rowspan=1 colspan=1>56.87% (T = 250)</td><td rowspan=1 colspan=1>61.48% (T = 250)</td></tr><tr><td rowspan=1 colspan=1>VGG16</td><td rowspan=1 colspan=1>69.35%</td><td rowspan=1 colspan=1>68.12%</td><td rowspan=1 colspan=1>62.73% (T= 250)</td><td rowspan=1 colspan=1>65.19% (T = 250)</td></tr></table>",
|
| 694 |
+
"bbox": [
|
| 695 |
+
173,
|
| 696 |
+
202,
|
| 697 |
+
825,
|
| 698 |
+
488
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 7
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "5 OVERALL TRAINING ALGORITHM ",
|
| 705 |
+
"text_level": 1,
|
| 706 |
+
"bbox": [
|
| 707 |
+
174,
|
| 708 |
+
493,
|
| 709 |
+
488,
|
| 710 |
+
510
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 7
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "Algorithm 1 defines the process to initialize the parameters (weights, thresholds) of SNN based on ANN-SNN conversion. Algorithm 2 and 3 show the mechanism of training the SNN with STDB. Algorithm 2 initializes the neuron parameters for every mini-batch, whereas Algorithm 3 performs the forward and backward propagation and computes the credit assignment. The threshold voltage for all neurons in a layer is same and is not altered in the training process. For each dropout layer we initialize a mask $( M )$ for every mini-batch of inputs. The function of dropout is to randomly drop a certain number of inputs in order to avoid overfitting. In case of SNN, inputs are represented as a spike train and we want to keep the dropout units same for the entire duration of the input. Thus, a random mask $( M )$ is initialized (Algorithm 2) for every mini-batch and the input is element-wise multiplied with the mask to generate the output of the dropout layer (Lee et al., 2019). The Poisson generator function outputs a Poisson spike train with rate proportional to the pixel value in the input. A random number is generated at every time step for each pixel in the input image. The random number is compared with the normalized pixel value and if the random number is less than the pixel value an output spike is generated. This results in a Poisson spike train with rate equivalent to the pixel value if averaged over a long time. The weighted sum of the input is accumulated in the membrane potential of the first convolution layer. The STDB function compares the membrane potential and the threshold of that layer to generate an output spike. The neurons that output a spike their corresponding entry in $S$ is updated with current time step (t). The last spike time is initialized with a large negative number (Algorithm 2) to denote that at the beginning the last spike happened at negative infinity time. This is repeated for all layers until the last layer. For last layer the inputs are accumulated over all time steps and passed through a softmax layer to compute the multi-class probability. The cross-entropy loss function is defined on the output of the softmax and the weights are updated by performing the temporal and spatial credit assignment according to the STDB rule. ",
|
| 717 |
+
"bbox": [
|
| 718 |
+
173,
|
| 719 |
+
525,
|
| 720 |
+
825,
|
| 721 |
+
843
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 7
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "6 EXPERIMENTS ",
|
| 728 |
+
"text_level": 1,
|
| 729 |
+
"bbox": [
|
| 730 |
+
176,
|
| 731 |
+
864,
|
| 732 |
+
326,
|
| 733 |
+
880
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 7
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "text",
|
| 739 |
+
"text": "We tested the proposed training mechanism on image classification tasks from CIFAR (Krizhevsky et al., 2009) and ImageNet (Deng et al., 2009) datasets. The results are summarized in Table 1. ",
|
| 740 |
+
"bbox": [
|
| 741 |
+
174,
|
| 742 |
+
895,
|
| 743 |
+
823,
|
| 744 |
+
922
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 7
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "image",
|
| 750 |
+
"img_path": "images/e3e63b533127c274de9937dff4bafa08dd1a34b21cf2cf9cdff0fbbaa024595c.jpg",
|
| 751 |
+
"image_caption": [
|
| 752 |
+
"Figure 3: Average number of spikes for each layer in a VGG16 architecture for purely converted SNN and SNN trained with hybrid technique. The converted SNN and SNN trained with hybrid technique achieve an accuracy of $8 9 . 2 0 \\%$ and $9 1 . 8 7 \\%$ , respectively, for the randomly selected 1500 samples from the test set. Both the networks were inferred for 100 time steps and $\\mathbf { \\epsilon } \\cdot \\mathbf { \\gamma } _ { \\mathbf { V } } \\mathbf { \\epsilon } )$ represents the threshold voltage for each layer obtained during the conversion process (Algorithm 1). "
|
| 753 |
+
],
|
| 754 |
+
"image_footnote": [],
|
| 755 |
+
"bbox": [
|
| 756 |
+
269,
|
| 757 |
+
103,
|
| 758 |
+
723,
|
| 759 |
+
309
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 8
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "text",
|
| 765 |
+
"text": "CIFAR10: The dataset consists of labeled 60, 000 images of 10 categories divided into training (50, 000) and testing (10, 000) set. The images are of size $3 2 \\times 3 2$ with RGB channels. ",
|
| 766 |
+
"bbox": [
|
| 767 |
+
173,
|
| 768 |
+
397,
|
| 769 |
+
821,
|
| 770 |
+
426
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 8
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "CIFAR100: The dataset is similar to CIFAR10 except that it has 100 categories. ",
|
| 777 |
+
"bbox": [
|
| 778 |
+
174,
|
| 779 |
+
433,
|
| 780 |
+
696,
|
| 781 |
+
448
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 8
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "ImageNet: The dataset comprises of labeled high-resolution 1.2 million training images and 50, 000 validation images with 1000 categories. ",
|
| 788 |
+
"bbox": [
|
| 789 |
+
173,
|
| 790 |
+
454,
|
| 791 |
+
823,
|
| 792 |
+
483
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 8
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "7 ENERGY-DELAY PRODUCT ANALYSIS OF SNNS ",
|
| 799 |
+
"text_level": 1,
|
| 800 |
+
"bbox": [
|
| 801 |
+
176,
|
| 802 |
+
503,
|
| 803 |
+
602,
|
| 804 |
+
520
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 8
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "A single spike in an SNN consumes a constant amount of energy (Cao et al., 2015). The first order analysis of energy-delay product of an SNN is dependent on the number of spikes and the total number of time steps. Fig. 3 shows the average number of spikes in each layer when evaluated for 1500 samples from CIFAR10 testset for VGG16 architecture. The average is computed by summing all the spikes in a layer over 100 time steps and dividing by the number of neurons in that layer. For example, the average number of spikes in the $1 0 ^ { t h }$ layer is 5.8 for both the networks, which implies that over a 100 time step period each neuron in that layer spikes 5.8 times on average over all input samples. Higher spiking activity corresponds to lower energy-efficiency. The average number of spikes is compared for a converted SNN and SNN trained with conversion-and-STDB. The SNN trained with conversion-and-STDB has $1 . 5 \\times$ less number of average spikes over all layers under iso conditions (time steps, threshold voltages, inputs, etc.) and achieves higher accuracy compared to the converted SNN. The converted SNNs when simulated for larger time steps further degrade the energy-delay product with minimal increase in accuracy (Sengupta et al., 2019). ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
173,
|
| 813 |
+
536,
|
| 814 |
+
825,
|
| 815 |
+
717
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 8
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "8 RELATED WORK ",
|
| 822 |
+
"text_level": 1,
|
| 823 |
+
"bbox": [
|
| 824 |
+
176,
|
| 825 |
+
738,
|
| 826 |
+
344,
|
| 827 |
+
755
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 8
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "Bohte et al. (2000) proposed a method to directly train on SNN by keeping track of the membrane potential of spiking neurons only at spike times and backpropagating the error at spike times based on only the membrane potential. This method is not suitable for networks with sparse activity due to the ‘dead neuron’ problem: no learning happens when the neurons do not spike. In our work, we need one spike for the learning to start but gradient contribution continues in later time steps as shown in Fig. 1. Zenke & Ganguli (2018) derived a surrogate gradient based method on the membrane potential of a spiking neuron at a single time step only. The error was backpropagated at only one time step and only the input at that time step contributed to the gradient. This method neglects the effect of earlier spike inputs. In our approach, the error is backpropagated for every time step and the weight update is performed on the gradients summed over all time steps. Shrestha & Orchard (2018) proposed a gradient function similar to the one proposed in this work. They used the difference between the membrane potential and the threshold to compute the gradient compared to the difference in spike timing used in this work. The membrane potential is a continuous value whereas the spike time is an integer value bounded by the number of time steps. Therefore, gradients that depend on spike time can be pre-computed and stored in a look-up table for faster computation. They evaluated their approach on shallow architectures with two convolution layer for MNIST dataset. In this work, we trained deep SNNs with multiple stacked layers for complex calssification tasks. Wu et al. (2018) performed backpropagation through time on SNN with a surrogate gradient defined on the membrane potential. The surrogate gradient was defined as piece-wise linear or exponential function of the membrane potential. The other surrogate gradients proposed in the literature are all computed on the membrane potential (Neftci et al., 2019). Lee et al. (2019) approximated the neuron output as continuous low-pass filtered spike train. They used this approximated continuous value to perform backpropagation. Most of the works in the literature on direct training of SNN or conversion based methods have been evaluated on shallow architectures for simple classification problems. In Table 2 we compare our model with the models that reported accuracy on CIFAR10 and ImageNet dataset. Wu et al. (2019) achieved convergence in 12 time steps by using a dedicated encoding layer to capture the input precision. It is beyond the scope of this work to compute the hardware and energy implications of such encoding layer. Our model performs better than all other models at far fewer number of time steps. ",
|
| 834 |
+
"bbox": [
|
| 835 |
+
174,
|
| 836 |
+
770,
|
| 837 |
+
825,
|
| 838 |
+
924
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 8
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "table",
|
| 844 |
+
"img_path": "images/25a870a4d8b8ed3c0cd21eb06d167b377cafd5111c85072ac6fcbad72f6f1376.jpg",
|
| 845 |
+
"table_caption": [
|
| 846 |
+
"Table 2: Comparion of our work with other SNN models on CIFAR10 and ImageNet datasets "
|
| 847 |
+
],
|
| 848 |
+
"table_footnote": [],
|
| 849 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>TrainingMethod</td><td rowspan=1 colspan=1>Architecture</td><td rowspan=1 colspan=1> Accuracy</td><td rowspan=1 colspan=1>Time-steps</td></tr><tr><td rowspan=1 colspan=1>Hunsberger&Eliasmith(2015)</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>ANN-SNNConversion</td><td rowspan=1 colspan=1>2Conv,2Linear</td><td rowspan=1 colspan=1>82.95%</td><td rowspan=1 colspan=1>6000</td></tr><tr><td rowspan=1 colspan=1>Caoetal.(2015)</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>ANN-SNNConversion</td><td rowspan=1 colspan=1>3Conv,2Linear</td><td rowspan=1 colspan=1>77.43%</td><td rowspan=1 colspan=1>400</td></tr><tr><td rowspan=1 colspan=1> Senguptaet al. (2019)</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>ANN-SNNConversion</td><td rowspan=1 colspan=1>VGG16</td><td rowspan=1 colspan=1>91.55%</td><td rowspan=1 colspan=1>2500</td></tr><tr><td rowspan=1 colspan=1>Lee etal.(2019)</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>Spiking BP</td><td rowspan=1 colspan=1>VGG9</td><td rowspan=1 colspan=1>90.45%</td><td rowspan=1 colspan=1>100</td></tr><tr><td rowspan=1 colspan=1>Wu et al.(2019)</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1> SurrogateGradient</td><td rowspan=1 colspan=1>5Conv,2Linear</td><td rowspan=1 colspan=1>90.53%</td><td rowspan=1 colspan=1>12</td></tr><tr><td rowspan=1 colspan=1>This work</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>HybridTraining</td><td rowspan=1 colspan=1>VGG16</td><td rowspan=1 colspan=1>91.13%92.02%</td><td rowspan=1 colspan=1>100200</td></tr><tr><td rowspan=1 colspan=1> Senguptaet al. (2019)</td><td rowspan=1 colspan=1>ImageNet</td><td rowspan=1 colspan=1>ANN-SNNConversion</td><td rowspan=1 colspan=1>VGG16</td><td rowspan=1 colspan=1>69.96%</td><td rowspan=1 colspan=1>2500</td></tr><tr><td rowspan=1 colspan=1>This work</td><td rowspan=1 colspan=1>ImageNet</td><td rowspan=1 colspan=1>HybridTraining</td><td rowspan=1 colspan=1>VGG16</td><td rowspan=1 colspan=1>65.19%</td><td rowspan=1 colspan=1>250</td></tr></table>",
|
| 850 |
+
"bbox": [
|
| 851 |
+
196,
|
| 852 |
+
127,
|
| 853 |
+
799,
|
| 854 |
+
449
|
| 855 |
+
],
|
| 856 |
+
"page_idx": 9
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"type": "text",
|
| 860 |
+
"text": "",
|
| 861 |
+
"bbox": [
|
| 862 |
+
174,
|
| 863 |
+
455,
|
| 864 |
+
825,
|
| 865 |
+
705
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 9
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "text",
|
| 871 |
+
"text": "9 CONCLUSIONS ",
|
| 872 |
+
"text_level": 1,
|
| 873 |
+
"bbox": [
|
| 874 |
+
176,
|
| 875 |
+
726,
|
| 876 |
+
328,
|
| 877 |
+
741
|
| 878 |
+
],
|
| 879 |
+
"page_idx": 9
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"type": "text",
|
| 883 |
+
"text": "The direct training of SNN with backpropagation is computationally expensive and slow, whereas ANN-SNN conversion suffers from high latency. To address this issue we proposed a hybrid training technique for deep SNNs. We took an SNN converted from ANN and used its weights and thresholds as initialization for spike-based backpropagation of SNN. We then performed spike-based backpropagation on this initialized network to obtain an SNN that can perform with fewer number of time steps. The number of epochs required to train SNN was also reduced by having a good initial starting point. The resultant trained SNN had higher accuracy and lower number of spikes/inference compared to purely converted SNNs at reduced number of time steps. The backpropagation through time was performed with surrogate gradient defined using neuron’s spike time that captured the temporal information and helped in reducing the number of time steps. We tested our algorithm on CIFAR and ImageNet datasets and achieved state-of-the-art performance with fewer number of time steps. ",
|
| 884 |
+
"bbox": [
|
| 885 |
+
174,
|
| 886 |
+
757,
|
| 887 |
+
825,
|
| 888 |
+
924
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 9
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 895 |
+
"text_level": 1,
|
| 896 |
+
"bbox": [
|
| 897 |
+
176,
|
| 898 |
+
104,
|
| 899 |
+
326,
|
| 900 |
+
117
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 10
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "This work was supported in part by the National Science Foundation, in part by Vannevar Bush Faculty Fellowship, and in part by C-BRIC, one of six centers in JUMP, a Semiconductor Research Corporation (SRC) program sponsored by DARPA. ",
|
| 907 |
+
"bbox": [
|
| 908 |
+
176,
|
| 909 |
+
127,
|
| 910 |
+
823,
|
| 911 |
+
170
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 10
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "REFERENCES ",
|
| 918 |
+
"text_level": 1,
|
| 919 |
+
"bbox": [
|
| 920 |
+
174,
|
| 921 |
+
191,
|
| 922 |
+
287,
|
| 923 |
+
207
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 10
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Guillaume Bellec, Darjan Salaj, Anand Subramoney, Robert Legenstein, and Wolfgang Maass. Long short-term memory and learning-to-learn in networks of spiking neurons. In Advances in Neural Information Processing Systems, pp. 787–797, 2018. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
176,
|
| 932 |
+
215,
|
| 933 |
+
823,
|
| 934 |
+
258
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 10
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "Sander M Bohte, Joost N Kok, and Johannes A La Poutre. Spikeprop: backpropagation for networks ´ of spiking neurons. In ESANN, pp. 419–424, 2000. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
173,
|
| 943 |
+
267,
|
| 944 |
+
823,
|
| 945 |
+
296
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 10
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "Y-Lan Boureau, Jean Ponce, and Yann LeCun. A theoretical analysis of feature pooling in visual recognition. In Proceedings of the 27th international conference on machine learning (ICML-10), pp. 111–118, 2010. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
174,
|
| 954 |
+
306,
|
| 955 |
+
825,
|
| 956 |
+
349
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 10
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "Yongqiang Cao, Yang Chen, and Deepak Khosla. Spiking deep convolutional neural networks for energy-efficient object recognition. International Journal of Computer Vision, 113(1):54–66, 2015. ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
174,
|
| 965 |
+
359,
|
| 966 |
+
825,
|
| 967 |
+
401
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 10
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009. ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
171,
|
| 976 |
+
411,
|
| 977 |
+
823,
|
| 978 |
+
440
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 10
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "Peter U Diehl, Daniel Neil, Jonathan Binas, Matthew Cook, Shih-Chii Liu, and Michael Pfeiffer. Fast-classifying, high-accuracy spiking deep networks through weight and threshold balancing. In 2015 International Joint Conference on Neural Networks (IJCNN), pp. 1–8. IEEE, 2015. ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
174,
|
| 987 |
+
450,
|
| 988 |
+
821,
|
| 989 |
+
494
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 10
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "Peter U Diehl, Guido Zarrella, Andrew Cassidy, Bruno U Pedroni, and Emre Neftci. Conversion of artificial recurrent neural networks to spiking neural networks for low-power neuromorphic hardware. In 2016 IEEE International Conference on Rebooting Computing (ICRC), pp. 1–8. IEEE, 2016. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
173,
|
| 998 |
+
503,
|
| 999 |
+
825,
|
| 1000 |
+
560
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 10
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
173,
|
| 1009 |
+
570,
|
| 1010 |
+
825,
|
| 1011 |
+
613
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 10
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Dongsung Huh and Terrence J Sejnowski. Gradient descent for spiking neural networks. In Advances in Neural Information Processing Systems, pp. 1433–1443, 2018. ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
171,
|
| 1020 |
+
622,
|
| 1021 |
+
823,
|
| 1022 |
+
652
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 10
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Eric Hunsberger and Chris Eliasmith. Spiking deep networks with lif neurons. arXiv preprint arXiv:1510.08829, 2015. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
174,
|
| 1031 |
+
661,
|
| 1032 |
+
821,
|
| 1033 |
+
690
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 10
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. ",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
173,
|
| 1042 |
+
700,
|
| 1043 |
+
823,
|
| 1044 |
+
729
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 10
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
171,
|
| 1053 |
+
739,
|
| 1054 |
+
821,
|
| 1055 |
+
768
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 10
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "Chankyu Lee, Syed Shakib Sarwar, and Kaushik Roy. Enabling spike-based backpropagation in state-of-the-art deep neural network architectures. arXiv preprint arXiv:1903.06379, 2019. ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
173,
|
| 1064 |
+
777,
|
| 1065 |
+
823,
|
| 1066 |
+
808
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 10
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "Emre O Neftci, Hesham Mostafa, and Friedemann Zenke. Surrogate gradient learning in spiking neural networks. arXiv preprint arXiv:1901.09948, 2019. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
169,
|
| 1075 |
+
818,
|
| 1076 |
+
823,
|
| 1077 |
+
847
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 10
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "Abhronil Sengupta, Yuting Ye, Robert Wang, Chiao Liu, and Kaushik Roy. Going deeper in spiking neural networks: $\\mathrm { V g g }$ and residual architectures. Frontiers in neuroscience, 13, 2019. ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
169,
|
| 1086 |
+
856,
|
| 1087 |
+
823,
|
| 1088 |
+
885
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 10
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "Sumit Bam Shrestha and Garrick Orchard. Slayer: Spike layer error reassignment in time. In Advances in Neural Information Processing Systems, pp. 1412–1421, 2018. ",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
174,
|
| 1097 |
+
895,
|
| 1098 |
+
823,
|
| 1099 |
+
924
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 10
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. \nSen Song, Kenneth D Miller, and Larry F Abbott. Competitive hebbian learning through spike-timing-dependent synaptic plasticity. Nature neuroscience, 3(9):919, 2000. \nNitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research, 15(1):1929–1958, 2014. \nPaul J Werbos et al. Backpropagation through time: what it does and how to do it. Proceedings of the IEEE, 78(10):1550–1560, 1990. \nYujie Wu, Lei Deng, Guoqi Li, Jun Zhu, and Luping Shi. Spatio-temporal backpropagation for training high-performance spiking neural networks. Frontiers in neuroscience, 12, 2018. \nYujie Wu, Lei Deng, Guoqi Li, Jun Zhu, Yuan Xie, and Luping Shi. Direct training for spiking neural networks: Faster, larger, better. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 1311–1318, 2019. \nFriedemann Zenke and Surya Ganguli. Superspike: Supervised learning in multilayer spiking neural networks. Neural computation, 30(6):1514–1541, 2018. ",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
171,
|
| 1108 |
+
103,
|
| 1109 |
+
828,
|
| 1110 |
+
390
|
| 1111 |
+
],
|
| 1112 |
+
"page_idx": 11
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"type": "text",
|
| 1116 |
+
"text": "A COMPARISONS WITH OTHER SURROGATE GRADIENTS ",
|
| 1117 |
+
"text_level": 1,
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
174,
|
| 1120 |
+
102,
|
| 1121 |
+
656,
|
| 1122 |
+
118
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 12
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "The transfer function of the spiking neuron is a step function and its derivative is zero everywhere except at the time of spike where it is not defined. In order to perform backpropagation with spiking neuron several approximations are proposed for the gradient function (Bellec et al., 2018; Zenke & Ganguli, 2018; Shrestha & Orchard, 2018; Wu et al., 2018). These approximations are either a linear or exponential function of $\\mathrm { ~ ( ~ } u \\mathrm { ~ \\mathrm { ~ - ~ } ~ } V _ { t } \\mathrm { ) }$ , where $u$ is the membrane potential and $V _ { t }$ the threshold voltage (Fig. 4). These approximations are referred as surrogate gradient or pseudo-derivative. In this work, we proposed an approximation that is computed using the spike timing of the neuron (Equation 11). We compare our proposed approximation with the following surrogate gradients: ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
174,
|
| 1131 |
+
133,
|
| 1132 |
+
483,
|
| 1133 |
+
375
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 12
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
173,
|
| 1142 |
+
369,
|
| 1143 |
+
529,
|
| 1144 |
+
383
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 12
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "image",
|
| 1150 |
+
"img_path": "images/cd48833ffbcb4acb67d4884150d62d285617702c65c61e577bbdc212ea2dfd23.jpg",
|
| 1151 |
+
"image_caption": [
|
| 1152 |
+
"Figure 4: Linear and Exponential approximation of the gradient of the spiking neuron (step function). "
|
| 1153 |
+
],
|
| 1154 |
+
"image_footnote": [],
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
500,
|
| 1157 |
+
148,
|
| 1158 |
+
820,
|
| 1159 |
+
285
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 12
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "equation",
|
| 1165 |
+
"img_path": "images/d3ffa7db831cd988b1f4bbe805411a4c16c250967ce00caf69fdc7b114865c16.jpg",
|
| 1166 |
+
"text": "$$\n\\frac { \\partial o } { \\partial u } = \\alpha \\ : m a x \\{ 0 , 1 - | u - V _ { t } | \\}\n$$",
|
| 1167 |
+
"text_format": "latex",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
393,
|
| 1170 |
+
388,
|
| 1171 |
+
604,
|
| 1172 |
+
420
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 12
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "equation",
|
| 1178 |
+
"img_path": "images/5e3cb13a7c82ebc99bad03106af2446876f13d041ebed34abb8d7cbfec9c4b23.jpg",
|
| 1179 |
+
"text": "$$\n\\frac { \\partial o } { \\partial u } = \\alpha e ^ { - \\beta \\left| u - V _ { t } \\right| }\n$$",
|
| 1180 |
+
"text_format": "latex",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
434,
|
| 1183 |
+
425,
|
| 1184 |
+
562,
|
| 1185 |
+
455
|
| 1186 |
+
],
|
| 1187 |
+
"page_idx": 12
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"type": "text",
|
| 1191 |
+
"text": "where $o$ is the binary output of the neuron, $u$ is the membrane potential, $V _ { t }$ is the threshold potential, $\\alpha$ and $\\beta$ are constants. Equation 13 and Equation 14 represent the linear and exponential approximation of the gradient, respectively. We employed these approximations in the hybrid training for a VGG9 network for CIFAR10 dataset. All the approximations (Equation 11, 13, and 14) produced similar results in terms of accuracy and number of epochs for convergence. This shows that the term $\\Delta t$ (Equation 11) is a good replacement for $| u - V _ { t } |$ (Equation 14). The behaviour of $\\Delta t$ and $| u - V _ { t } |$ is similar, i.e., it is small closer to the time of spike and increases as we move away from the spiking event. The advantage of using $\\Delta t$ is that its domain is bounded by the total number of time steps (Equation 12). Hence, all possible values of gradients can be pre-computed and stored in a table for faster access during training. This is not possible for membrane potential because it is a real value computed based on the stochastic inputs and previous state of the neuron which is not known before hand. The exact benefit in energy from the pre-computation is dependent on the overall system architecture and evaluating it is beyond the scope of this paper. ",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
173,
|
| 1194 |
+
458,
|
| 1195 |
+
825,
|
| 1196 |
+
638
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 12
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "text",
|
| 1202 |
+
"text": "B COMPARISONS OF SIMULATION TIME AND MEMORY REQUIREMENTS ",
|
| 1203 |
+
"text_level": 1,
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
169,
|
| 1206 |
+
102,
|
| 1207 |
+
785,
|
| 1208 |
+
118
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 13
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "The simulation time and memory requirements for ANN and SNN are very different. SNN requires much more resources to iterate over multiple time steps and store the membrane potential for each neuron. Fig. 5 shows the training and inference time and memory requirements for ANN, SNN trained with backpropagation from scratch, and SNN trained with the proposed hybrid technique. The performance was evaluated for VGG16 architecture trained for CIFAR10 dataset. SNN trained from scratch and SNN trained with hybrid conversion-and-STDB are evaluated for 100 time steps. One epoch of ANN training (inference) takes 0.57 (0.05) minutes and 1.47 (1.15) GB of GPU memory. On the other hand, one epoch of SNN training (inference) takes 78 (11.39) minutes and 9.36 (1.37) GB of GPU memory for same hardware and mini-batch size. ANN and SNN trained from scratch reached convergence after 250 epochs. The hybrid technique requires 250 epochs of ANN training and 20 epochs of spike-based backpropagation. The hybrid training technique is one order of magnitude faster than training SNN from scratch. The memory requirement for hybrid technique is same as SNN as we need to perform fine-tuning with spike-based backpropagation. ",
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
173,
|
| 1217 |
+
133,
|
| 1218 |
+
825,
|
| 1219 |
+
314
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 13
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "image",
|
| 1225 |
+
"img_path": "images/392c5b09ee728a2f6923f49603f3ba52dfef46b07e93158f58385264a0bbe80e.jpg",
|
| 1226 |
+
"image_caption": [
|
| 1227 |
+
"Figure 5: Training and Inference time and memory for ANN, SNN trained with backpropagation from scratch, and SNN trained with hybrid technique. All values are normalized based on ANN values. The y-axis is in log scale. The performance was evaluated on one Nvidia GeForce RTX 2080 Ti TU102 GPU with 11 GB of memory. All the networks were trained for VGG16 architecture, CIFAR10 dataset, 100 time steps, and mini-batch size of 32. ANN and SNN require 250 epochs of training from scratch, hybrid conversion-and-STDB based training requires 250 epochs of ANN training followed by 20 epochs of spike-based backpropagation. "
|
| 1228 |
+
],
|
| 1229 |
+
"image_footnote": [],
|
| 1230 |
+
"bbox": [
|
| 1231 |
+
173,
|
| 1232 |
+
329,
|
| 1233 |
+
823,
|
| 1234 |
+
521
|
| 1235 |
+
],
|
| 1236 |
+
"page_idx": 13
|
| 1237 |
+
}
|
| 1238 |
+
]
|
parse/train/B1xSperKvH/B1xSperKvH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1xSperKvH/B1xSperKvH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1zz2i0cY7/S1zz2i0cY7.md
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# INTEGER NETWORKS FOR DATA COMPRESSION WITH LATENT-VARIABLE MODELS
|
| 2 |
+
|
| 3 |
+
Johannes Ballé, Nick Johnston & David Minnen Google Mountain View, CA 94043, USA {jballe,nickj,dminnen}@google.com
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We consider the problem of using variational latent-variable models for data compression. For such models to produce a compressed binary sequence, which is the universal data representation in a digital world, the latent representation needs to be subjected to entropy coding. Range coding as an entropy coding technique is optimal, but it can fail catastrophically if the computation of the prior differs even slightly between the sending and the receiving side. Unfortunately, this is a common scenario when floating point math is used and the sender and receiver operate on different hardware or software platforms, as numerical round-off is often platform dependent. We propose using integer networks as a universal solution to this problem, and demonstrate that they enable reliable cross-platform encoding and decoding of images using variational models.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
The task of information transmission in today’s world is largely divided into two separate endeavors: source coding, or the representation of data (such as audio or images) as sequences of bits, and channel coding, representing sequences of bits as analog signals on imperfect, physical channels such as radio waves (Cover and Thomas, 2006). This decoupling has substantial benefits, as the binary representations of arbitrary data can be seamlessly transmitted over arbitrary physical channels by only changing the underlying channel code, rather than having to design a new code for every possible combination of data source and physical channel. Hence, the universal representation of any compressed data today is the binary channel, a representation which consists of a variable number of binary symbols, each with probability $\textstyle { \frac { 1 } { 2 } }$ , and no noise (i.e. uncertainty).
|
| 12 |
+
|
| 13 |
+
As a latent representation, the binary channel unfortunately is a severe restriction compared to the richness of latent representations defined by many variational latent-variable models in the literature (e.g., Kingma and Welling, 2014; Sønderby et al., 2016; van den Oord et al., 2017), and in particular models targeted at data compression (Theis et al., 2017; Ágústsson et al., 2017; Ballé et al., 2018). Variational latent-variable models such as VAEs (Kingma and Welling, 2014) consist of an encoder model distribution $e ( \pmb { y } \mid \pmb { x } )$ bringing the data $_ { \textbf { \em x } }$ into a latent representation $\textbf { { y } }$ , and a decoder model distribution $d ( { \pmb x } \mid { \pmb y } )$ , which represents the data likelihood conditioned on the latents. Given an encoder $e$ , we observe the marginal distribution of latents $m ( \pmb { y } ) = \mathbb { E } _ { \pmb { x } } [ e ( \pmb { y } \mid \pmb { x } ) ]$ , where the expectation runs over the (unknown) data distribution. The prior $p ( \pmb { y } )$ is a variational estimate of the marginal (Alemi et al., 2018).
|
| 14 |
+
|
| 15 |
+
By choosing the parametric forms of these distributions and the training objective appropriately, many such models succeed in representing relevant information in the data they are trained for quite compactly (i.e., with a small expected Kullback–Leibler (KL) divergence between the encoder and the prior, $\begin{array} { r } { \mathbb { E } _ { \pmb { x } } D _ { \mathrm { K L } } [ e \| p ] ) } \end{array}$ , and so may be called compressive in a sense. However, not all of them can be directly used for practical data compression, as the representation needs to be further converted into binary (entropy encoded). This conversion is typically performed by range coding, or arithmetic coding (Rissanen and Langdon, 1981). Range coding is asymptotically optimal: the length of the binary sequence quickly converges to the expected KL divergence in bits, for reasonably large sequences (such as, for one image). For this to hold, the following requirements must be satisfied:
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: The same image, decoded with a model computing the prior using integer arithmetic (left), and the same model using floating point arithmetic (right). The image was decoded correctly, beginning in the top-left corner, until floating point round-off error caused a small discrepancy between the sender’s and the receiver’s copy of the prior, at which point the error propagated catastrophically.
|
| 19 |
+
|
| 20 |
+
• The representation must be discrete-valued, i.e. have a finite number of states, and be noiseless – i.e. the conditional entropy of the encoder must be zero:
|
| 21 |
+
|
| 22 |
+
$$
|
| 23 |
+
H [ e ] = \mathbb { E } _ { \pmb { x } } \mathbb { E } _ { \pmb { y } \sim e } [ - \log e ( \pmb { y } \mid \pmb { x } ) ] = 0 .
|
| 24 |
+
$$
|
| 25 |
+
|
| 26 |
+
• All scalar elements of the representation $\textbf { { y } }$ must be brought into a total ordering, and the prior needs to be written using the chain rule of calculus (as a product of conditionals), as the algorithm can only encode or decode one scalar random variable at a time.
|
| 27 |
+
|
| 28 |
+
• Both sides of the binary channel (i.e. sender and receiver) must be able to evaluate the prior, and they must have identical instances of it.
|
| 29 |
+
|
| 30 |
+
The latter point is crucial, as range coding is extremely sensitive to differences in $p$ between sender and receiver – so sensitive, in fact, that even small perturbations due to floating point round-off error can lead to catastrophic error propagation. Unfortunately, numerical round-off is highly platform dependent, and in typical data compression applications, sender and receiver may well employ different hardware or software platforms. Round-off error may even be non-deterministic on one and the same computer. Figure 1 illustrates a decoding failure in a model which computes $p$ using floating point math, caused by such computational non-determinism in sender vs. receiver. Recently, latent-variable models have been explored that employ artificial neural networks (ANNs) to compute hierarchical or autoregressive priors (Sønderby et al., 2016; van den Oord et al., 2017), including some of the best-performing learned image compression models (Ballé et al., 2018; Minnen et al., 2018; Klopp et al., 2018). Because ANNs are typically based on floating point math, these methods are vulnerable to catastrophic failures when deployed on heterogeneous platforms.
|
| 31 |
+
|
| 32 |
+
To address this problem, and enable use of powerful learned variational models for real-world data compression, we propose to use integer arithmetic in these ANNs, as floating-point arithmetic cannot presently be made deterministic across arbitrary platforms. We formulate a type of quantized neural network we call integer networks, which are specifically targeted at generative and compression models, and at preventing computational non-determinism in computation of the prior. Because full determinism is a feature of many existing, widely used image and video compression methods, we also consider using integer networks end to end for computing the representation itself.
|
| 33 |
+
|
| 34 |
+
# 2 INTEGER NEURAL NETWORKS
|
| 35 |
+
|
| 36 |
+
ANNs are typically composite functions that alternate between linear and elementwise nonlinear operations. One linear operation followed by a nonlinearity is considered one layer of the network. To ensure that such a network can be implemented deterministically on a wide variety of hardware platforms, we restrict all the data types to be integral, and all operations to be implemented either with basic arithmetic or lookup tables. Because integer multiplications (including matrix multiplications or convolutions) increase the dynamic range of the output compared to their inputs, we introduce an additional step after each linear operator, where we divide each of its output by a learned parameter.
|
| 37 |
+
|
| 38 |
+

|
| 39 |
+
Figure 2: Left: Example nonlinearity implementing a saturating rectifier for 4-bit unsigned integer outputs, given by $g _ { \mathrm { Q R e L U } } ( v ) = \mathrm { m a x } ( \mathrm { m i n } ( v , 1 5 ) , 0 )$ . This nonlinearity can be implemented deterministically either using a lookup table or simply using a clipping operation. The corresponding scaled cumulative of a generalized Gaussian with $\beta = 4$ used for computing gradients is plotted in cyan, and other choices of $\beta$ in gray. Right: Example nonlinearity approximating hyperbolic tangent for 4-bit signed integer outputs, given by $\begin{array} { r } { g _ { \mathrm { Q t a n h } } ( v ) = Q ( 7 \operatorname { t a n h } ( \frac { v } { 1 5 } ) ) } \end{array}$ . This nonlinearity can be implemented deterministically using a lookup table. The corresponding scaled hyperbolic tangent used for computing gradients is plotted in cyan.
|
| 40 |
+
|
| 41 |
+
Concretely, we define the relationship between inputs $\textbf { \em u }$ and outputs $\pmb { w }$ of one layer as:
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
\begin{array} { r } { \pmb { v } = ( \pmb { H } \pmb { u } + \pmb { b } ) \oslash \pmb { c } , } \\ { \pmb { w } = g ( \pmb { v } ) . } \end{array}
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
In order, the inputs $\textbf { \em u }$ are subjected to a linear transform $\pmb { H }$ (a matrix multiplication, or a convolution); a bias vector $^ { b }$ is added; the result is divided elementwise by a vector $^ c$ , yielding an intermediate result vector $\textbf { { v } }$ ; and finally, an elementwise nonlinearity $g$ is applied to $\pmb { v }$ .
|
| 48 |
+
|
| 49 |
+
The activations $\textbf { \em w }$ and all intermediate results, as well as the parameters $H , b$ , and $^ c$ are all defined as integers. However, they may use differing number formats. For $\pmb { v }$ to be integral, we define $\oslash$ here to perform rounding division (equivalent to division followed by rounding to the nearest integer). In programming languages such as C, this can be implemented with integer operands $m , n$ as
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
\begin{array} { r } { m \oslash n = Q ( \frac { m } { n } ) = ( m + n / / 2 ) \ / / n , } \end{array}
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
where $Q$ rounds to the nearest integer and $/ /$ is floor division; here, the addition can be folded into the bias $^ { b }$ as an optimization. We constrain the linear filter coefficients $\pmb { H }$ and the bias vector $^ { b }$ to generally use signed integers, and the scaling vector $^ c$ to use unsigned integers. We implement the accumulators of the linear transform with larger bit width than the activations and filter coefficients, in order to reflect the potentially increased dynamic range of multiplicative operations. We assume here that the bias and scaling vectors, as well as the intermediate vector $\pmb { v }$ , have the same bit width as the accumulators.
|
| 56 |
+
|
| 57 |
+
The elementwise nonlinearity $g$ must be saturating on both ends of its domain, because integers can only represent finite number ranges. In order to maximize utility of the dynamic range, we scale nonlinearities such that their range matches the bit width of $\pmb { w }$ , while their domain can be scaled somewhat arbitrarily. Depending on the range of the nonlinearity, the activations $\textbf { \em w }$ may use a signed or unsigned number format. For instance, a reasonable choice of number formats and nonlinearity would be:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\begin{array} { c } { { H : 8 \mathrm { - b i t ~ s i g n e d ~ } } } \\ { { b , v : 3 2 \mathrm { - b i t ~ s i g n e d ~ ( s a m e ~ a s ~ a c c u m u l a t o r ) } } } \\ { { c : 3 2 \mathrm { - b i t ~ u n s i g n e d ~ } } } \\ { { w : 8 \mathrm { - b i t ~ u n s i g n e d ~ } } } \\ { { g _ { \mathrm { Q R e L U } } ( v ) = \mathrm { m a x } ( \mathrm { m i n } ( v , 2 5 5 ) , 0 ) } } \end{array}
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
In this example, the nonlinearity can be implemented with a simple clipping operation. Refer to figure 2, left, for a visualization (for visualization purposes, the figure shows a smaller bit width).
|
| 64 |
+
|
| 65 |
+
Another example is:
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\begin{array} { r } { g _ { \mathrm { Q t a n h } } ( v ) = Q \bigl ( 7 \operatorname { t a n h } ( \frac { v } { 1 5 } ) \bigr ) } \end{array}
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
Here, the nonlinearity approximates the hyperbolic tangent, a widely used nonlinearity. It may be best implemented using a lookup table (see figure 2, right, for a visualization). We scale its range to fill the 4-bit signed integer number format of $\pmb { w }$ by multiplying its output with 7. The domain can be scaled somewhat arbitrarily, since $\pmb { v }$ has a larger bit width than $\pmb { w }$ . When it is chosen too small, $\pmb { w }$ may not utilize all integer values, leading to a large quantization error. When it is chosen too large, overflow may occur in $\pmb { v }$ , or the size of the lookup table may grow too large for practical purposes. Therefore, it is best to determine the input scaling based on the shape of the nonlinearity and the available dynamic range. Here, we simply chose the value of 15 “by eye”, so that the nonlinearity is reasonably well represented with the lookup table (i.e., we made sure that at least two or three input values are mapped to each output value, in order to preserve the approximate shape of the nonlinearity).
|
| 72 |
+
|
| 73 |
+
# 3 TRAINING INTEGER NEURAL NETWORKS
|
| 74 |
+
|
| 75 |
+
To effectively accumulate small gradient signals, we train the networks entirely using floating point computations, rounded to integers after every computational operation, while the backpropagation is done with full floating point precision. More concretely, we define the integer parameters $H , b ,$ and $^ c$ as functions of their floating point equivalents $H ^ { \prime } , b ^ { \prime }$ , and $c ^ { \prime }$ , respectively:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\begin{array} { r l } & { \boldsymbol { H } = \left[ \begin{array} { c } { Q ( h _ { 1 } ^ { \prime } / s ( h _ { 1 } ^ { \prime } ) ) ) } \\ { \vdots } \\ { Q ( h _ { N } ^ { \prime } / s ( h _ { N } ^ { \prime } ) ) } \end{array} \right] , } \\ & { ~ b = Q \big ( 2 ^ { K } b ^ { \prime } \big ) , } \\ & { \boldsymbol { c } = Q \big ( 2 ^ { K } r ( \boldsymbol { c } ^ { \prime } ) \big ) . } \end{array}
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
Here, we simply rescale each element of $\pmb { b } ^ { \prime }$ using a constant $K$ , which is the bit-width of the kernel $\pmb { H }$ (e.g. 8-bits in the QReLu networks), and round it to the nearest integer. The reparameterization mapping $r$ is borrowed from Ballé (2018):
|
| 82 |
+
|
| 83 |
+
$$
|
| 84 |
+
r ( c ^ { \prime } ) = \mathrm { m a x } \Big ( c ^ { \prime } , \sqrt { 1 + \epsilon ^ { 2 } } \Big ) ^ { 2 } - \epsilon ^ { 2 } .
|
| 85 |
+
$$
|
| 86 |
+
|
| 87 |
+
When $^ c$ is small, perturbations in $^ c$ can lead to excessively large fluctuations of the quotient (i.e., the input to the nonlinearity). This leads to instabilities in training. $r$ ensures that values of $^ c$ are always positive, while gracefully scaling down gradient magnitudes on $^ c$ near zero. Effectively, the step size on $^ c$ is multiplied with a factor that is approximately linear in $^ c$ (Ballé, 2018).
|
| 88 |
+
|
| 89 |
+
Before rounding the linear filter coefficients in $\pmb { H } ^ { \prime } = [ h _ { 1 } ^ { \prime } , \ldots , h _ { N } ^ { \prime } ] ^ { \top }$ , we apply a special rescaling function $s$ to each of its filters $\mathbf { { } } h ^ { \prime }$ :
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
s ( h ^ { \prime } ) = \mathrm { m a x } \Big ( ( - 2 ^ { K - 1 } ) ^ { - 1 } \operatorname* { m i n } _ { i } h _ { i } ^ { \prime } , ( 2 ^ { K - 1 } - 1 ) ^ { - 1 } \operatorname* { m a x } _ { i } h _ { i } ^ { \prime } , \epsilon \Big ) .
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
$s$ rescales each filter such that at least one of its minimum and maximum coefficients hits one of the dynamic range bounds $( - 2 ^ { K - 1 }$ and $2 ^ { K - 1 } - 1 )$ ), while keeping zero at zero. This represents the finest possible quantization of the filter given its integer representation, and thus maximizes accuracy. To prevent division by zero, we ensure the divisor is larger than or equal to a small constant $\epsilon$ (for example, $\epsilon = 1 0 ^ { - \tilde { 2 } 0 }$ ).
|
| 96 |
+
|
| 97 |
+
In order to backpropagate gradient signals into the parameters, one cannot simply take gradients of the loss function with respect to $H ^ { \prime }$ , $\pmb { b } ^ { \prime }$ , or $c ^ { \prime }$ , since the rounding function $Q$ has zero gradients almost everywhere, except for the half-integer positions where the gradient is positive infinity. A simple remedy is to replace the derivative of $Q$ with the identity function, since this is the smoothed gradient across all rounded values.
|
| 98 |
+
|
| 99 |
+
Further, we treat the rescaling divisor $s$ as if it were a constant. That is, we compute the derivatives of the loss function with respect to $H ^ { \prime } , b ^ { \prime }$ , and $c ^ { \prime }$ as with the chain rule of calculus, but overriding:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\frac { \partial h } { \partial h ^ { \prime } } : = \frac { 1 } { s ( h ^ { \prime } ) } , \qquad \frac { \partial b } { \partial b ^ { \prime } } : = 2 ^ { K } , \qquad \frac { \partial c } { \partial c ^ { \prime } } : = 2 ^ { K } r ^ { \prime } ( c ^ { \prime } ) ,
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
where $r ^ { \prime }$ is the replacement gradient function for $r$ as proposed by Ballé (2018). After training is completed, we compute the integer parameters $\pmb { H }$ , $^ { b }$ and $^ c$ one more time, and from then on use them for evaluation. Note that further reparameterization of the kernels $H ^ { \prime }$ , such as Sadam (Ballé, 2018), or of the biases $\pmb { b } ^ { \prime }$ or scaling parameters $c ^ { \prime }$ , is possible by simply chaining reparameterizations.
|
| 106 |
+
|
| 107 |
+
In addition to rounding the parameters, it is necessary to round the activations. To obtain gradients for the rounding division $\oslash$ , we simply substitute the gradient of floating point division. To estimate gradients for the rounded activation functions, we replace their gradient with the corresponding nonrounded activation function, plotted in cyan in figure 2. In the case of QReLU, the gradient of the clipping operation is a box function, which can lead to training getting stuck, since if activations consistently hit one of the bounds, no gradients are propagated back (this is sometimes called the “dead unit” problem). As a remedy, we replace the gradient instead with
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\frac { \partial g _ { \mathrm { Q R e L U } } ( v ) } { \partial v } : = \exp \Bigl ( - \alpha ^ { \beta } \Bigl | \frac { 2 v } { 2 ^ { L } - 1 } - 1 \Bigr | ^ { \beta } \Bigr ) ,
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
where $\begin{array} { r } { \alpha = \frac { 1 } { \beta } \Gamma \left( \frac { 1 } { \beta } \right) } \end{array}$ , and $L$ is the bit width of $\textbf { \em w }$ . This function corresponds to a scaled generalized Gaussian probability density with shape parameter $\beta$ . In this context, we can think of $\beta$ as a temperature parameter that makes the function converge to the gradient of the clipping operation as $\beta$ goes to infinity. Although this setting permits an annealing schedule, we simply chose $\beta = 4$ and obtained good results. The integral of this function is plotted in figure 2 (left) in cyan, along with other choices of $\beta$ in gray.
|
| 114 |
+
|
| 115 |
+
# 4 COMPUTING THE PRIOR WITH INTEGER NETWORKS
|
| 116 |
+
|
| 117 |
+
Suppose our prior on the latent representation is $p ( \pmb { y } \mid z )$ , where $_ z$ summarizes other latent variables of the representation (it may be empty). To apply range coding, we need to impose a total ordering on the elements of $\textbf { { y } }$ and write it as a chain of conditionals:
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
p ( \pmb { y } \mid z ) = \prod _ { i } p ( y _ { i } \mid \pmb { y } _ { : i } , z ) ,
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
where $\mathbf { \nabla } _ { \mathbf { { \boldsymbol { y } } } : i }$ denotes the vector of all elements of $\textbf { { y } }$ preceding the ith. A common assumption is that $p$ is a known distribution, with parameters $\theta _ { i }$ computed by an $\operatorname { A N N } g$ :
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
p ( \pmb { y } \mid z ) = \prod _ { i } p ( y _ { i } \mid \pmb { \theta } _ { i } ) \operatorname { w i t h } \pmb { \theta } _ { i } = g ( \pmb { y } _ { : i } , z )
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
We simply propose here to compute $g$ deterministically using an integer network, discretizing the parameters $\pmb \theta$ to a reasonable accuracy. If $p ( y _ { i } \mid \pmb \theta _ { i } )$ itself cannot be computed deterministically, we can precompute all possible values and express it as a lookup table over $y _ { i }$ and $\theta _ { i }$ .
|
| 130 |
+
|
| 131 |
+
As an example, consider the prior used in the image compression model proposed by Ballé et al. (2018), which is a modified Gaussian with scale parameters conditioned on another latent variable:
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
p ( \pmb { y } \mid z ) = \prod _ { i } \left( \mathcal { N } ( 0 , \sigma _ { i } ^ { 2 } ) * \mathcal { U } ( - \textstyle \frac { 1 } { 2 } , \textstyle \frac { 1 } { 2 } ) \right) ( y _ { i } ) \mathrm { w i t h } \sigma = g ( z ) .
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
We reformulate the scale parameters $\sigma$ as:
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
\begin{array} { r } { \sigma _ { i } = \exp \Bigl ( \log \bigl ( \sigma _ { \operatorname* { m i n } } \bigr ) + \frac { \log \left( \sigma _ { \operatorname* { m a x } } \right) - \log \left( \sigma _ { \operatorname* { m i n } } \right) } { L - 1 } \theta _ { i } \Bigr ) , } \end{array}
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
where $\pmb \theta = g ( z )$ is computed using an integer network. The last activation function in $g$ is chosen to have integer outputs of $L$ levels in the range $[ 0 , L - 1 ]$ . Constants $\sigma _ { \mathrm { m i n } }$ , $\sigma _ { \mathrm { m a x } }$ , and $L$ determine the discretized selection of scale parameters used in the model. The discretization is chosen to be logarithmic, as this choice minimizes $\mathbb { E } _ { \pmb { x } } D _ { \mathrm { K L } } [ e \Vert p ]$ for a given number of levels.
|
| 144 |
+
|
| 145 |
+
During training, we can simply backpropagate through this reformulation, and through $g$ as described in the previous section. After training, we precompute all possible values of $p$ as a function of $y _ { i }$ and $\theta _ { i }$ and form a lookup table, while $g$ is implemented with integer arithmetic.
|
| 146 |
+
|
| 147 |
+
For certain applications, it can be useful not only to be able to deploy a compression model across heterogenous platforms, but to go even further in also ensuring identical reconstructions of the data across platforms. To this end, it can be attractive to make the entire model robust to non-determinism. To use integer networks in the encoder or decoder, one can use the equivalent construction as in (13): define $e$ or $d$ as a known distribution, with parameters computed by an integer network. To allow the use of range coding, we’re especially interested in discrete-valued representations here, such as studied in van den Oord et al. (2017), Jang et al. (2017), Theis et al. (2017), Ágústsson et al. (2017), and Ballé et al. (2018), among others. These approaches typically employ biased gradient estimators.
|
| 148 |
+
|
| 149 |
+
Jang et al. (2017) and Ágústsson et al. (2017) are concerned with producing gradients for categorical distributions and vector quantization (VQ), respectively. In both methods, the representation is found by evaluating an ANN followed by an arg max function, while useful gradients are obtained by substituting the arg max with a softmax function. Since arg max can be evaluated deterministically in a platform-independent way, and evaluating a softmax function with rounded inputs is feasible, integer networks can be combined with these models without additional modifications.
|
| 150 |
+
|
| 151 |
+
Theis et al. (2017) and Ballé et al. (2018) differ mostly in the details of interaction between the encoder and the prior. These two approaches are particularly interesting for image compression, as they scale well: Image compression models are often trained with a rate–distortion objective with a Lagrange parameter $\lambda$ , equivalent to $\beta$ in the $\beta$ -VAE objective (Higgins et al., 2017; Alemi et al., 2018). Depending on the parameter, the latent representation carries vastly different amounts of information, and the optimal number of latent states in turn varies with that. While the number of latent states is a hyperparameter that needs to be chosen ahead of time in the categorical/VQ case, the latter two approaches can extend it as needed during training, because the latent states are organized along the real line. Further, for categorical distributions as well as VQ, the required dimensionality of the function computing the parameters grows linearly with the number of latent states due to their use of the arg max function. In the latter two models, the number of states can grow arbitrarily without increasing the dimensionality of $g$ .
|
| 152 |
+
|
| 153 |
+
Both Theis et al. (2017) and Ballé et al. (2018) use deterministic encoder distributions (i.e. degenerating to delta distributions) during evaluation, but replace them with probabilistic versions for purposes of estimating $\mathbb { E } _ { \pmb { x } } D _ { \mathrm { K L } } [ e \Vert p ]$ during training. Theis et al. (2017) propose to use the following encoder distribution:
|
| 154 |
+
|
| 155 |
+
$$
|
| 156 |
+
\begin{array} { r } { e ( \pmb { y } \mid \pmb { x } ) = \mathcal { U } ( \pmb { y } \mid Q ( g ( \pmb { x } ) ) - \frac { 1 } { 2 } , Q ( g ( \pmb { x } ) ) + \frac { 1 } { 2 } ) , } \end{array}
|
| 157 |
+
$$
|
| 158 |
+
|
| 159 |
+
where $\mathcal { U }$ is the uniform distribution and $g$ is an ANN. They replace the gradient of the quantizer with the identity. During evaluation, $\pmb { y } = Q ( g ( \pmb { x } ) )$ is used as the representation. Ballé et al. (2018) use the following distribution during training:
|
| 160 |
+
|
| 161 |
+
$$
|
| 162 |
+
\begin{array} { r } { e ( \pmb { y } \mid \pmb { x } ) = \mathcal { U } ( \pmb { y } \mid g ( \pmb { x } ) - \frac { 1 } { 2 } , g ( \pmb { x } ) + \frac { 1 } { 2 } ) , } \end{array}
|
| 163 |
+
$$
|
| 164 |
+
|
| 165 |
+
which makes $\textbf { { y } }$ shift-invariant. During evaluation, they determine the representation as ${ \textbf { 3 } } =$ $Q ( g ( \pmb { x } ) - \pmb { o } )$ , where $^ o$ is a sub-integer offset chosen such that the mode (or, if it cannot be estimated easily, the median) of the distribution is centered on one of the quantization bins.
|
| 166 |
+
|
| 167 |
+
If $g$ is implemented with integer networks, the latter approach becomes equivalent to the former, because $g$ then inherently computes integer outputs, and this is effectively equivalent to the quantization in (16). However, we’ve found that training with this construction leads to instabilities, such that the prior distribution never converges to a stable set of parameters. The reason may be that with quantization in $e$ , the marginal $m ( \bar { \pmb { y } } ) = \mathbb { E } _ { \pmb { x } } e ( \pmb { y } \mid \pmb { x } )$ resembles a piecewise constant function, while the prior $p$ must be forced to be smooth, or $\mathbb { E } _ { \pmb { x } } D _ { \mathrm { K L } } [ e \Vert p ]$ would not yield any useful gradients. Because the prior is a variational approximation of the marginal, this means that the prior must be regularized (which we did not attempt here – we used the nonparametric density model described in Ballé et al. (2018)). On the other hand, when using (17) without quantization, the marginal is typically a smooth density, and the prior can approximate it closely without the need for regularization.
|
| 168 |
+
|
| 169 |
+
As a remedy for the instabilities, we propose the following trick: We simply use (17) during training, but define the last layer of $g$ without a nonlinearity and with floating point division, such that the representation is
|
| 170 |
+
|
| 171 |
+
$$
|
| 172 |
+
\begin{array} { r } { e ( \pmb { y } \mid \pmb { x } ) = \mathcal { U } ( \pmb { y } \mid ( \pmb { H } \pmb { u } + \pmb { b } ) / c - \frac { 1 } { 2 } , ( \pmb { H } \pmb { u } + \pmb { b } ) / c + \frac { 1 } { 2 } ) , } \end{array}
|
| 173 |
+
$$
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
Figure 3: Rate–distortion performance of image compression models with integer priors (left and up is better). Left: performance of Ballé et al. (2018) model vs. the same model with an integer prior. The performance is identical, but the latter can be reliably deployed across different hardware platforms. Right: performance of Ballé (2018) ReLU model with 128 filters per layer vs. the same model, with integer transforms and QReLU activation functions and 128 or 256 filters per layer. The approximation capacity of integer networks is diminished vs. floating point networks, but doubling the number of filters per layer more than compensates for the loss.
|
| 177 |
+
|
| 178 |
+
<table><tr><td rowspan=1 colspan=1>compressed ondecompressed on</td><td rowspan=1 colspan=1>CPU 1CPU 1</td><td rowspan=1 colspan=1>CPU 1GPU 1</td><td rowspan=1 colspan=1>CPU 1CPU 2</td><td rowspan=1 colspan=1>CPU 1GPU 2</td><td rowspan=1 colspan=1>GPU 1CPU 1</td><td rowspan=1 colspan=1>GPU 1GPU 1</td><td rowspan=1 colspan=1>GPU 1CPU 2</td><td rowspan=1 colspan=1>GPU 1GPU 2</td></tr><tr><td rowspan=1 colspan=9>Tecnick dataset:100 RGB i3 images of 1200 × 1200 pixels</td></tr><tr><td rowspan=1 colspan=1>Ballé et al. (2018)ditto, integer prior</td><td rowspan=1 colspan=1>0%0%</td><td rowspan=1 colspan=1>71%0%</td><td rowspan=1 colspan=1>54%0%</td><td rowspan=1 colspan=1>66%0%</td><td rowspan=1 colspan=1>63%0%</td><td rowspan=1 colspan=1>41%0%</td><td rowspan=1 colspan=1>59%0%</td><td rowspan=1 colspan=1>34%0%</td></tr><tr><td rowspan=1 colspan=9> CLIC dataset: 2021 RGB images of various pixel sizes</td></tr><tr><td rowspan=1 colspan=1>Ballé et al. (2018)ditto, integer prior</td><td rowspan=1 colspan=1>0%0%</td><td rowspan=1 colspan=1>78%0%</td><td rowspan=1 colspan=1>68%0%</td><td rowspan=1 colspan=1>78%0%</td><td rowspan=1 colspan=1>77%0%</td><td rowspan=1 colspan=1>52%0%</td><td rowspan=1 colspan=1>78%0%</td><td rowspan=1 colspan=1>54%0%</td></tr></table>
|
| 179 |
+
|
| 180 |
+
CPU 1: Intel Xeon E5-1650 GPU 1: NVIDIA Titan X (Pascal) CPU 2: Intel Xeon E5-2690 GPU 2: NVIDIA Titan X (Maxwell)
|
| 181 |
+
|
| 182 |
+
Table 1: Decompression failure rates due to floating point round-off error on Tecnick and CLIC image datasets. When compressing and decompressing on the same CPU platform (first column), the Ballé et al. (2018) model decompresses all images correctly. However, when compressing on a GPU or decompressing on a different platform, a large percentage of the images fail to be decoded correctly. Implementing the prior of the same model using integer networks ensures correct decompression across all tested platforms.
|
| 183 |
+
|
| 184 |
+
during training, where $\textbf { \em u }$ is the input to the last layer and $/$ represents elementwise floating point division, and
|
| 185 |
+
|
| 186 |
+
$$
|
| 187 |
+
{ \pmb y } = Q \big ( ( { \pmb H } { \pmb u } + { \pmb b } ) / c - o \big )
|
| 188 |
+
$$
|
| 189 |
+
|
| 190 |
+
during evaluation. This can be rewritten strictly using integer arithmetic as:
|
| 191 |
+
|
| 192 |
+
$$
|
| 193 |
+
\pmb { y } = \left( \pmb { H } \pmb { u } + \pmb { b } - \pmb { Q } ( \pmb { o } \odot \pmb { c } ) \right) \oslash \pmb { c } ,
|
| 194 |
+
$$
|
| 195 |
+
|
| 196 |
+
where $\odot$ represents elementwise multiplication, and the rounded product can be folded into the bias $^ { b }$ as an optimization. This way, the representation is computed deterministically during evaluation, while during training, the marginal still resembles a smooth function, such that no regularization of the prior is necessary.
|
| 197 |
+
|
| 198 |
+
# 6 EXPERIMENTAL RESULTS
|
| 199 |
+
|
| 200 |
+
In order to assess the efficacy of integer networks to enable platform-independent compression and decompression, we re-implemented the image compression model described in Ballé et al. (2018), which is defined with a hyperprior. We compare the original model with a version in which the network $h _ { s }$ computing the prior is replaced with an integer network. We used the same network architectures in terms of number of layers, filters, etc., and the same training parameters as in the original paper. The rate–distortion performance of the model was assessed on Kodak (1993) and is shown in figure 3 (left). The modified model performs identically to the original model, as it maps out the same rate–distortion frontier. However, it is much more robust to cross-platform compression and decompression (table 1). We tested compression and decompression on four different platforms (two CPU platforms and two GPU platforms) and two different datasets, Tecnick (Asuni and Giachetti, 2014) and CLIC (2018). The original model fails to correctly decompress more than half of the images on average when compression and decompression occurs on different platforms. The modified model brings the failure rate down to $0 \%$ in all cases.
|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
Figure 4: Loss function across training of Ballé (2018) model, evaluated on Kodak (1993), corresponding to the rate point at approximately 0.7 bits per pixel in figure 3, right panel. Generally, training of integer models takes somewhat longer and is somewhat noisier than training of floating point models. When matching floating point and integer networks for asymptotic performance (128 vs. 256 filters, respectively), integer networks take longer to converge (likely due to their larger number of filters). When matching by number of filters (128), it appears that the training time to convergence is about the same, but the performance ends up worse.
|
| 204 |
+
|
| 205 |
+
It should be noted that the decreased accuracy of integer arithmetic generally leads to a lower approximation capacity than with floating point networks. We found that when implementing the models described in Ballé (2018) using integer networks throughout, the rate–distortion performance decreased (figure 3, right). The loss in approximation capacity can be compensated for by increasing the number of filters per layer. Note that this appears to increase the training time necessary for convergence (figure 4). However, note that increasing the number of parameters may not necessarily increase the size of the model parameters or the runtime, as the storage requirements for integer parameters (kernels, biases, etc.) are lower than for floating point parameters, and integer arithmetic is computationally less complex than floating point arithmetic in general.
|
| 206 |
+
|
| 207 |
+
# 7 DISCUSSION
|
| 208 |
+
|
| 209 |
+
There is a large body of recent research considering quantization of ANNs mostly targeted at image recognition applications. Courbariaux et al. (2015) train classification networks on lower precision multiplication. Hubara et al. (2016) and Rastegari et al. (2016) perform quantization down to bilevel (i.e., 1-bit integers) at inference time to reduce computation in classification networks. More recently, Wu et al. (2018) and others have used quantization during training as well as inference, to reduce computation on gradients as well as activations, and Baluja et al. (2018) use non-uniform quantization to remove floating point computation, replacing it completely with integer offsets into an integer lookup table.
|
| 210 |
+
|
| 211 |
+
While the quantization of neural networks is not a new topic, the results from the above techniques focus almost exclusively on classification networks. Denton et al. (2014), Han et al. (2016), and others have demonstrated that these types of networks are particularly robust to capacity reduction.
|
| 212 |
+
|
| 213 |
+
Models used for image compression, like many generative models, are much more sensitive to capacity constraints since they tend to underfit. As illustrated in Ballé (2018) and in figure 3 (right), this class of models is much more sensitive to reductions of capacity, both in terms of network size and the expressive power of the activation function. This may explain why our experiments with post-hoc quantization of network activations have never yielded competitive results for this class of model (not shown).
|
| 214 |
+
|
| 215 |
+
As illustrated in figure 1 and table 1, small floating point inconsistencies in variational latent-variable models can have disastrous effects when we use range coding to employ the models for data compression across different hardware or software platforms. The reader may wonder whether there exists other entropy coding algorithms that can convert discrete latent-variable representations into a binary representation, and which do not suffer from a sensitivity to perturbations in the probability model. Unfortunately, such an algorithm would always produce suboptimal results for the following reason. The source coding theorem (Shannon, 1948) establishes a lower bound on the average length of the resulting bit sequences, which range coding achieves asymptotically (i.e. for long bit sequences). The lower bound is given by the cross entropy between the marginal and the prior:
|
| 216 |
+
|
| 217 |
+
$$
|
| 218 |
+
\mathbb { E } _ { { \pmb { y } } \sim m } [ | b ( { \pmb { y } } ) | ] \geq \mathbb { E } _ { { \pmb { y } } \sim m } [ - \log _ { 2 } p ( { \pmb { y } } \mid { \pmb { \theta } } ) ] ,
|
| 219 |
+
$$
|
| 220 |
+
|
| 221 |
+
where $\left| b ( \boldsymbol { y } ) \right|$ is the length of the binary representation of $\textbf { { y } }$ . If an entropy coding algorithm tolerates error in the values of $p ( \pmb { y } \mid \pmb { \theta } )$ , this means it must operate under the assumption of identical probability values for a range of values of $\pmb { \theta } -$ in other words, discretize the probability values. Since the cross entropy is minimal only for $p ( \pmb { y } \mid \pmb { \theta } ) = m ( \pmb { y } )$ (for all $\textbf { { y } }$ ), this would impose a new lower bound on $\left| b ( \pmb { y } ) \right|$ given by the cross entropy with the discretized probabilities, which is greater or equal to the cross entropy given above. Thus, the more tolerant the entropy coding method is to errors in $p$ , the further it deviates from optimal performance. Moreover, it is hard to establish tolerance intervals for probability values computed with floating point arithmetic, in particular when ANNs are used, due to error propagation. Hence, it is generally difficult to provide guarantees that a given tolerance will not be exceeded. For similar reasons, current commercial compression methods model probabilities exclusively in the discrete domain (e.g., using lookup tables; Marpe et al., 2003).
|
| 222 |
+
|
| 223 |
+
Our approach to neural network quantization is the first we are aware of which specifically addresses non-deterministic computation, as opposed to computational complexity. It enables a variety of possible variational model architectures and distributions to be effectively used for platformindependent data compression. While we aren’t assessing its effects on computational complexity here, it is conceivable that complexity reductions can also be achieved with the same approach; this is a topic for future work.
|
| 224 |
+
|
| 225 |
+
# REFERENCES
|
| 226 |
+
|
| 227 |
+
Ágústsson, Eiríkur Þór et al. (2017). “Soft-to-Hard Vector Quantization for End-to-End Learning Compressible Representations”. In: Advances in Neural Information Processing Systems 30, pp. 1141–1151.
|
| 228 |
+
Alemi, Alexander A. et al. (2018). “Fixing a Broken ELBO”. In: arXiv e-prints. arXiv: 1711 . 00464.
|
| 229 |
+
Asuni, N. and A. Giachetti (2014). “TESTIMAGES: A large-scale archive for testing visual devices and basic image processing algorithms”. In: Proc. of STAG: Smart Tools and Apps for Graphics. DOI: 10.2312/stag.20141242.
|
| 230 |
+
Ballé, Johannes (2018). “Efficient Nonlinear Transforms for Lossy Image Compression”. In: Picture Coding Symposium (PCS), 2018.
|
| 231 |
+
Ballé, Johannes et al. (2018). “Variational image compression with a scale hyperprior”. In: Proc. of 6th Int. Conf. on Learning Representations. URL: https://openreview.net/forum? id $=$ rkcQFMZRb.
|
| 232 |
+
Baluja, Shumeet et al. (2018). “No Multiplication? No Floating Point? No Problem! Training Networks for Efficient Inference”. In: arXiv e-prints. arXiv: 1809.09244.
|
| 233 |
+
CLIC: Challenge on Learned Image Compression (2018). Mobile and Professional Datasets. URL: http://www.compression.cc/2018/challenge.
|
| 234 |
+
Courbariaux, Matthieu, Jean-Pierre David, and Yoshua Bengio (2015). “Training deep neural networks with low precision multiplications”. In: arXiv e-prints. Presented as a workshop contribution at the 3rd Int. Conf. on Learning Representations. arXiv: 1412.7024.
|
| 235 |
+
Cover, Thomas M. and Joy A. Thomas (2006). Elements of Information Theory. 2nd ed. Wiley.
|
| 236 |
+
Denton, Emily et al. (2014). “Exploiting Linear Structure Within Convolutional Networks for Efficient Evaluation”. In: Advances in Neural Information Processing Systems 27, pp. 1269–1277.
|
| 237 |
+
Han, Song, Huizi Mao, and William J. Dally (2016). “Deep Compression: Compressing Deep Neural Network with Pruning, Trained Quantization and Huffman Coding”. In: arXiv e-prints. Presented at the 4th Int. Conf. on Learning Representations. arXiv: 1510.00149.
|
| 238 |
+
Higgins, Irina et al. (2017). “ $\beta$ -VAE: Learning Basic Visual Concepts with a Constrained Variational Framework”. In: Proc. of 5th Int. Conf. on Learning Representations. URL: https : //openreview.net/forum?id $=$ Sy2fzU9gl.
|
| 239 |
+
Hubara, Itay et al. (2016). “Binarized Neural Networks”. In: Advances in Neural Information Processing Systems 29, pp. 4107–4115.
|
| 240 |
+
Jang, Eric, Shixiang Gu, and Ben Poole (2017). “Categorical Reparameterization with GumbelSoftmax”. In: Proc. of 5th Int. Conf. on Learning Representations. URL: https : / / openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ rkE3y85ee.
|
| 241 |
+
Kingma, Diederik P. and Max Welling (2014). “Auto-Encoding Variational Bayes”. In: arXiv eprints. Presented at the 2nd Int. Conf. on Learning Representations. arXiv: 1312.6114.
|
| 242 |
+
Klopp, Jan P. et al. (2018). “Learning a Code-Space Predictor by Exploiting Intra-ImageDependencies”. In: Proc. of 29th British Machine Vision Conference.
|
| 243 |
+
Kodak, Eastman (1993). Kodak Lossless True Color Image Suite (PhotoCD PCD0992). URL: http://r0k.us/graphics/kodak/.
|
| 244 |
+
Marpe, Detlev, Heiko Schwarz, and Thomas Wiegand (2003). “Context-Based Adaptive Binary Arithmetic Coding in the H.264/AVC Video Compression Standard”. In: IEEE Transactions on Circuits and Systems for Video Technology 13.7. DOI: 10.1109/TCSVT.2003.815173.
|
| 245 |
+
Minnen, David, Johannes Ballé, and George Toderici (2018). “Joint Autoregressive and Hierarchical Priors for Learned Image Compression”. In: Advances in Neural Information Processing Systems 31, pp. 10771–10780.
|
| 246 |
+
Oord, Aäron van den, Oriol Vinyals, and Koray Kavukcuoglu (2017). “Neural Discrete Representation Learning”. In: Advances in Neural Information Processing Systems 30, pp. 6306–6315.
|
| 247 |
+
Rastegari, Mohammad et al. (2016). “XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networks”. In: ECCV 2016. Lecture Notes in Computer Science. Vol. 9908. DOI: 10.1007/978-3-319-46493-0_32.
|
| 248 |
+
Rissanen, Jorma and Glen G. Langdon Jr. (1981). “Universal modeling and coding”. In: IEEE Transactions on Information Theory 27.1. DOI: 10.1109/TIT.1981.1056282.
|
| 249 |
+
Shannon, Claude E. (1948). “A Mathematical Theory of Communication”. In: The Bell System Technical Journal 27.3. DOI: 10.1002/j.1538-7305.1948.tb01338.x.
|
| 250 |
+
Sønderby, Casper Kaae et al. (2016). “Ladder variational autoencoders”. In: Advances in Neural Information Processing Systems 29, pp. 3738–3746.
|
| 251 |
+
Theis, Lucas et al. (2017). “Lossy Image Compression with Compressive Autoencoders”. In: Proc. of 5th Int. Conf. on Learning Representations. URL: https://openreview.net/forum? id $=$ rJiNwv9gg.
|
| 252 |
+
Wu, Shuang et al. (2018). “Training and Inference with Integers in Deep Neural Networks”. In: Proc. of 6th Int. Conf. on Learning Representations. URL: https://openreview.net/ forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ HJGXzmspb.
|
parse/train/S1zz2i0cY7/S1zz2i0cY7_content_list.json
ADDED
|
@@ -0,0 +1,1106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "INTEGER NETWORKS FOR DATA COMPRESSION WITH LATENT-VARIABLE MODELS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
740,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Johannes Ballé, Nick Johnston & David Minnen Google Mountain View, CA 94043, USA {jballe,nickj,dminnen}@google.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
169,
|
| 20 |
+
517,
|
| 21 |
+
226
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
262,
|
| 32 |
+
544,
|
| 33 |
+
277
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We consider the problem of using variational latent-variable models for data compression. For such models to produce a compressed binary sequence, which is the universal data representation in a digital world, the latent representation needs to be subjected to entropy coding. Range coding as an entropy coding technique is optimal, but it can fail catastrophically if the computation of the prior differs even slightly between the sending and the receiving side. Unfortunately, this is a common scenario when floating point math is used and the sender and receiver operate on different hardware or software platforms, as numerical round-off is often platform dependent. We propose using integer networks as a universal solution to this problem, and demonstrate that they enable reliable cross-platform encoding and decoding of images using variational models. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
299,
|
| 43 |
+
764,
|
| 44 |
+
452
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
489,
|
| 55 |
+
336,
|
| 56 |
+
505
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "The task of information transmission in today’s world is largely divided into two separate endeavors: source coding, or the representation of data (such as audio or images) as sequences of bits, and channel coding, representing sequences of bits as analog signals on imperfect, physical channels such as radio waves (Cover and Thomas, 2006). This decoupling has substantial benefits, as the binary representations of arbitrary data can be seamlessly transmitted over arbitrary physical channels by only changing the underlying channel code, rather than having to design a new code for every possible combination of data source and physical channel. Hence, the universal representation of any compressed data today is the binary channel, a representation which consists of a variable number of binary symbols, each with probability $\\textstyle { \\frac { 1 } { 2 } }$ , and no noise (i.e. uncertainty). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
173,
|
| 65 |
+
518,
|
| 66 |
+
825,
|
| 67 |
+
645
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "As a latent representation, the binary channel unfortunately is a severe restriction compared to the richness of latent representations defined by many variational latent-variable models in the literature (e.g., Kingma and Welling, 2014; Sønderby et al., 2016; van den Oord et al., 2017), and in particular models targeted at data compression (Theis et al., 2017; Ágústsson et al., 2017; Ballé et al., 2018). Variational latent-variable models such as VAEs (Kingma and Welling, 2014) consist of an encoder model distribution $e ( \\pmb { y } \\mid \\pmb { x } )$ bringing the data $_ { \\textbf { \\em x } }$ into a latent representation $\\textbf { { y } }$ , and a decoder model distribution $d ( { \\pmb x } \\mid { \\pmb y } )$ , which represents the data likelihood conditioned on the latents. Given an encoder $e$ , we observe the marginal distribution of latents $m ( \\pmb { y } ) = \\mathbb { E } _ { \\pmb { x } } [ e ( \\pmb { y } \\mid \\pmb { x } ) ]$ , where the expectation runs over the (unknown) data distribution. The prior $p ( \\pmb { y } )$ is a variational estimate of the marginal (Alemi et al., 2018). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
173,
|
| 76 |
+
651,
|
| 77 |
+
825,
|
| 78 |
+
791
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "By choosing the parametric forms of these distributions and the training objective appropriately, many such models succeed in representing relevant information in the data they are trained for quite compactly (i.e., with a small expected Kullback–Leibler (KL) divergence between the encoder and the prior, $\\begin{array} { r } { \\mathbb { E } _ { \\pmb { x } } D _ { \\mathrm { K L } } [ e \\| p ] ) } \\end{array}$ , and so may be called compressive in a sense. However, not all of them can be directly used for practical data compression, as the representation needs to be further converted into binary (entropy encoded). This conversion is typically performed by range coding, or arithmetic coding (Rissanen and Langdon, 1981). Range coding is asymptotically optimal: the length of the binary sequence quickly converges to the expected KL divergence in bits, for reasonably large sequences (such as, for one image). For this to hold, the following requirements must be satisfied: ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
173,
|
| 87 |
+
797,
|
| 88 |
+
825,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/b6a6648bd111c33790c9a0a1e49addb8c95065b786817c864c1cea610843d505.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: The same image, decoded with a model computing the prior using integer arithmetic (left), and the same model using floating point arithmetic (right). The image was decoded correctly, beginning in the top-left corner, until floating point round-off error caused a small discrepancy between the sender’s and the receiver’s copy of the prior, at which point the error propagated catastrophically. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
102,
|
| 103 |
+
826,
|
| 104 |
+
268
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "• The representation must be discrete-valued, i.e. have a finite number of states, and be noiseless – i.e. the conditional entropy of the encoder must be zero: ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
215,
|
| 113 |
+
363,
|
| 114 |
+
823,
|
| 115 |
+
392
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "equation",
|
| 121 |
+
"img_path": "images/430dff0a889fb943e29c48983aae0adcc3a9bda733edb62b41e761ff8e7055b5.jpg",
|
| 122 |
+
"text": "$$\nH [ e ] = \\mathbb { E } _ { \\pmb { x } } \\mathbb { E } _ { \\pmb { y } \\sim e } [ - \\log e ( \\pmb { y } \\mid \\pmb { x } ) ] = 0 .\n$$",
|
| 123 |
+
"text_format": "latex",
|
| 124 |
+
"bbox": [
|
| 125 |
+
401,
|
| 126 |
+
398,
|
| 127 |
+
655,
|
| 128 |
+
416
|
| 129 |
+
],
|
| 130 |
+
"page_idx": 1
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"type": "text",
|
| 134 |
+
"text": "• All scalar elements of the representation $\\textbf { { y } }$ must be brought into a total ordering, and the prior needs to be written using the chain rule of calculus (as a product of conditionals), as the algorithm can only encode or decode one scalar random variable at a time. ",
|
| 135 |
+
"bbox": [
|
| 136 |
+
215,
|
| 137 |
+
425,
|
| 138 |
+
825,
|
| 139 |
+
467
|
| 140 |
+
],
|
| 141 |
+
"page_idx": 1
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"type": "text",
|
| 145 |
+
"text": "• Both sides of the binary channel (i.e. sender and receiver) must be able to evaluate the prior, and they must have identical instances of it. ",
|
| 146 |
+
"bbox": [
|
| 147 |
+
215,
|
| 148 |
+
472,
|
| 149 |
+
823,
|
| 150 |
+
501
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "The latter point is crucial, as range coding is extremely sensitive to differences in $p$ between sender and receiver – so sensitive, in fact, that even small perturbations due to floating point round-off error can lead to catastrophic error propagation. Unfortunately, numerical round-off is highly platform dependent, and in typical data compression applications, sender and receiver may well employ different hardware or software platforms. Round-off error may even be non-deterministic on one and the same computer. Figure 1 illustrates a decoding failure in a model which computes $p$ using floating point math, caused by such computational non-determinism in sender vs. receiver. Recently, latent-variable models have been explored that employ artificial neural networks (ANNs) to compute hierarchical or autoregressive priors (Sønderby et al., 2016; van den Oord et al., 2017), including some of the best-performing learned image compression models (Ballé et al., 2018; Minnen et al., 2018; Klopp et al., 2018). Because ANNs are typically based on floating point math, these methods are vulnerable to catastrophic failures when deployed on heterogeneous platforms. ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
174,
|
| 159 |
+
512,
|
| 160 |
+
825,
|
| 161 |
+
679
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "To address this problem, and enable use of powerful learned variational models for real-world data compression, we propose to use integer arithmetic in these ANNs, as floating-point arithmetic cannot presently be made deterministic across arbitrary platforms. We formulate a type of quantized neural network we call integer networks, which are specifically targeted at generative and compression models, and at preventing computational non-determinism in computation of the prior. Because full determinism is a feature of many existing, widely used image and video compression methods, we also consider using integer networks end to end for computing the representation itself. ",
|
| 168 |
+
"bbox": [
|
| 169 |
+
174,
|
| 170 |
+
685,
|
| 171 |
+
825,
|
| 172 |
+
784
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "2 INTEGER NEURAL NETWORKS ",
|
| 179 |
+
"text_level": 1,
|
| 180 |
+
"bbox": [
|
| 181 |
+
176,
|
| 182 |
+
797,
|
| 183 |
+
454,
|
| 184 |
+
814
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "ANNs are typically composite functions that alternate between linear and elementwise nonlinear operations. One linear operation followed by a nonlinearity is considered one layer of the network. To ensure that such a network can be implemented deterministically on a wide variety of hardware platforms, we restrict all the data types to be integral, and all operations to be implemented either with basic arithmetic or lookup tables. Because integer multiplications (including matrix multiplications or convolutions) increase the dynamic range of the output compared to their inputs, we introduce an additional step after each linear operator, where we divide each of its output by a learned parameter. ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
174,
|
| 193 |
+
825,
|
| 194 |
+
825,
|
| 195 |
+
924
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "image",
|
| 201 |
+
"img_path": "images/c91a76ad0addf5cef94c1363679199123dda26f8a6a06cc57fa964c0de157f07.jpg",
|
| 202 |
+
"image_caption": [
|
| 203 |
+
"Figure 2: Left: Example nonlinearity implementing a saturating rectifier for 4-bit unsigned integer outputs, given by $g _ { \\mathrm { Q R e L U } } ( v ) = \\mathrm { m a x } ( \\mathrm { m i n } ( v , 1 5 ) , 0 )$ . This nonlinearity can be implemented deterministically either using a lookup table or simply using a clipping operation. The corresponding scaled cumulative of a generalized Gaussian with $\\beta = 4$ used for computing gradients is plotted in cyan, and other choices of $\\beta$ in gray. Right: Example nonlinearity approximating hyperbolic tangent for 4-bit signed integer outputs, given by $\\begin{array} { r } { g _ { \\mathrm { Q t a n h } } ( v ) = Q ( 7 \\operatorname { t a n h } ( \\frac { v } { 1 5 } ) ) } \\end{array}$ . This nonlinearity can be implemented deterministically using a lookup table. The corresponding scaled hyperbolic tangent used for computing gradients is plotted in cyan. "
|
| 204 |
+
],
|
| 205 |
+
"image_footnote": [],
|
| 206 |
+
"bbox": [
|
| 207 |
+
178,
|
| 208 |
+
99,
|
| 209 |
+
826,
|
| 210 |
+
261
|
| 211 |
+
],
|
| 212 |
+
"page_idx": 2
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"text": "Concretely, we define the relationship between inputs $\\textbf { \\em u }$ and outputs $\\pmb { w }$ of one layer as: ",
|
| 217 |
+
"bbox": [
|
| 218 |
+
171,
|
| 219 |
+
411,
|
| 220 |
+
741,
|
| 221 |
+
428
|
| 222 |
+
],
|
| 223 |
+
"page_idx": 2
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "equation",
|
| 227 |
+
"img_path": "images/ce8662bd1d7fc1b5a6a25eb34e6f32e599e0b3eee84dbc30fa3074ec7a8052f0.jpg",
|
| 228 |
+
"text": "$$\n\\begin{array} { r } { \\pmb { v } = ( \\pmb { H } \\pmb { u } + \\pmb { b } ) \\oslash \\pmb { c } , } \\\\ { \\pmb { w } = g ( \\pmb { v } ) . } \\end{array}\n$$",
|
| 229 |
+
"text_format": "latex",
|
| 230 |
+
"bbox": [
|
| 231 |
+
426,
|
| 232 |
+
431,
|
| 233 |
+
568,
|
| 234 |
+
469
|
| 235 |
+
],
|
| 236 |
+
"page_idx": 2
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"type": "text",
|
| 240 |
+
"text": "In order, the inputs $\\textbf { \\em u }$ are subjected to a linear transform $\\pmb { H }$ (a matrix multiplication, or a convolution); a bias vector $^ { b }$ is added; the result is divided elementwise by a vector $^ c$ , yielding an intermediate result vector $\\textbf { { v } }$ ; and finally, an elementwise nonlinearity $g$ is applied to $\\pmb { v }$ . ",
|
| 241 |
+
"bbox": [
|
| 242 |
+
174,
|
| 243 |
+
473,
|
| 244 |
+
823,
|
| 245 |
+
515
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 2
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "The activations $\\textbf { \\em w }$ and all intermediate results, as well as the parameters $H , b$ , and $^ c$ are all defined as integers. However, they may use differing number formats. For $\\pmb { v }$ to be integral, we define $\\oslash$ here to perform rounding division (equivalent to division followed by rounding to the nearest integer). In programming languages such as C, this can be implemented with integer operands $m , n$ as ",
|
| 252 |
+
"bbox": [
|
| 253 |
+
173,
|
| 254 |
+
522,
|
| 255 |
+
825,
|
| 256 |
+
579
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 2
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "equation",
|
| 262 |
+
"img_path": "images/ed009fa80d9626f5fa79793ff68d2a7c7aa65c2ae0feec3d06db5eac912637f9.jpg",
|
| 263 |
+
"text": "$$\n\\begin{array} { r } { m \\oslash n = Q ( \\frac { m } { n } ) = ( m + n / / 2 ) \\ / / n , } \\end{array}\n$$",
|
| 264 |
+
"text_format": "latex",
|
| 265 |
+
"bbox": [
|
| 266 |
+
375,
|
| 267 |
+
584,
|
| 268 |
+
622,
|
| 269 |
+
603
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 2
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "text",
|
| 275 |
+
"text": "where $Q$ rounds to the nearest integer and $/ /$ is floor division; here, the addition can be folded into the bias $^ { b }$ as an optimization. We constrain the linear filter coefficients $\\pmb { H }$ and the bias vector $^ { b }$ to generally use signed integers, and the scaling vector $^ c$ to use unsigned integers. We implement the accumulators of the linear transform with larger bit width than the activations and filter coefficients, in order to reflect the potentially increased dynamic range of multiplicative operations. We assume here that the bias and scaling vectors, as well as the intermediate vector $\\pmb { v }$ , have the same bit width as the accumulators. ",
|
| 276 |
+
"bbox": [
|
| 277 |
+
173,
|
| 278 |
+
607,
|
| 279 |
+
825,
|
| 280 |
+
705
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 2
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "text",
|
| 286 |
+
"text": "The elementwise nonlinearity $g$ must be saturating on both ends of its domain, because integers can only represent finite number ranges. In order to maximize utility of the dynamic range, we scale nonlinearities such that their range matches the bit width of $\\pmb { w }$ , while their domain can be scaled somewhat arbitrarily. Depending on the range of the nonlinearity, the activations $\\textbf { \\em w }$ may use a signed or unsigned number format. For instance, a reasonable choice of number formats and nonlinearity would be: ",
|
| 287 |
+
"bbox": [
|
| 288 |
+
173,
|
| 289 |
+
712,
|
| 290 |
+
825,
|
| 291 |
+
795
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 2
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "equation",
|
| 297 |
+
"img_path": "images/fe3f008418a79eb1a359d809f9a965ca060c64629f36c823a6b4d86af5b9a8df.jpg",
|
| 298 |
+
"text": "$$\n\\begin{array} { c } { { H : 8 \\mathrm { - b i t ~ s i g n e d ~ } } } \\\\ { { b , v : 3 2 \\mathrm { - b i t ~ s i g n e d ~ ( s a m e ~ a s ~ a c c u m u l a t o r ) } } } \\\\ { { c : 3 2 \\mathrm { - b i t ~ u n s i g n e d ~ } } } \\\\ { { w : 8 \\mathrm { - b i t ~ u n s i g n e d ~ } } } \\\\ { { g _ { \\mathrm { Q R e L U } } ( v ) = \\mathrm { m a x } ( \\mathrm { m i n } ( v , 2 5 5 ) , 0 ) } } \\end{array}\n$$",
|
| 299 |
+
"text_format": "latex",
|
| 300 |
+
"bbox": [
|
| 301 |
+
334,
|
| 302 |
+
800,
|
| 303 |
+
658,
|
| 304 |
+
891
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 2
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "In this example, the nonlinearity can be implemented with a simple clipping operation. Refer to figure 2, left, for a visualization (for visualization purposes, the figure shows a smaller bit width). ",
|
| 311 |
+
"bbox": [
|
| 312 |
+
173,
|
| 313 |
+
895,
|
| 314 |
+
825,
|
| 315 |
+
924
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 2
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "text",
|
| 321 |
+
"text": "Another example is: ",
|
| 322 |
+
"bbox": [
|
| 323 |
+
176,
|
| 324 |
+
103,
|
| 325 |
+
307,
|
| 326 |
+
118
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 3
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "equation",
|
| 332 |
+
"img_path": "images/cc95b1f0d28bdf8a82da442b2265bec7cc26d2ececebf5f0d4d876d0774c11d0.jpg",
|
| 333 |
+
"text": "$$\n\\begin{array} { r } { g _ { \\mathrm { Q t a n h } } ( v ) = Q \\bigl ( 7 \\operatorname { t a n h } ( \\frac { v } { 1 5 } ) \\bigr ) } \\end{array}\n$$",
|
| 334 |
+
"text_format": "latex",
|
| 335 |
+
"bbox": [
|
| 336 |
+
343,
|
| 337 |
+
198,
|
| 338 |
+
526,
|
| 339 |
+
217
|
| 340 |
+
],
|
| 341 |
+
"page_idx": 3
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"type": "text",
|
| 345 |
+
"text": "Here, the nonlinearity approximates the hyperbolic tangent, a widely used nonlinearity. It may be best implemented using a lookup table (see figure 2, right, for a visualization). We scale its range to fill the 4-bit signed integer number format of $\\pmb { w }$ by multiplying its output with 7. The domain can be scaled somewhat arbitrarily, since $\\pmb { v }$ has a larger bit width than $\\pmb { w }$ . When it is chosen too small, $\\pmb { w }$ may not utilize all integer values, leading to a large quantization error. When it is chosen too large, overflow may occur in $\\pmb { v }$ , or the size of the lookup table may grow too large for practical purposes. Therefore, it is best to determine the input scaling based on the shape of the nonlinearity and the available dynamic range. Here, we simply chose the value of 15 “by eye”, so that the nonlinearity is reasonably well represented with the lookup table (i.e., we made sure that at least two or three input values are mapped to each output value, in order to preserve the approximate shape of the nonlinearity). ",
|
| 346 |
+
"bbox": [
|
| 347 |
+
173,
|
| 348 |
+
223,
|
| 349 |
+
826,
|
| 350 |
+
376
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 3
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "text",
|
| 356 |
+
"text": "3 TRAINING INTEGER NEURAL NETWORKS ",
|
| 357 |
+
"text_level": 1,
|
| 358 |
+
"bbox": [
|
| 359 |
+
176,
|
| 360 |
+
391,
|
| 361 |
+
545,
|
| 362 |
+
406
|
| 363 |
+
],
|
| 364 |
+
"page_idx": 3
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"type": "text",
|
| 368 |
+
"text": "To effectively accumulate small gradient signals, we train the networks entirely using floating point computations, rounded to integers after every computational operation, while the backpropagation is done with full floating point precision. More concretely, we define the integer parameters $H , b ,$ and $^ c$ as functions of their floating point equivalents $H ^ { \\prime } , b ^ { \\prime }$ , and $c ^ { \\prime }$ , respectively: ",
|
| 369 |
+
"bbox": [
|
| 370 |
+
173,
|
| 371 |
+
419,
|
| 372 |
+
825,
|
| 373 |
+
476
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 3
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "equation",
|
| 379 |
+
"img_path": "images/0c5fab5e1106a5f19986b471317b0cace4da7facbec6fe3276f8ec72272a666d.jpg",
|
| 380 |
+
"text": "$$\n\\begin{array} { r l } & { \\boldsymbol { H } = \\left[ \\begin{array} { c } { Q ( h _ { 1 } ^ { \\prime } / s ( h _ { 1 } ^ { \\prime } ) ) ) } \\\\ { \\vdots } \\\\ { Q ( h _ { N } ^ { \\prime } / s ( h _ { N } ^ { \\prime } ) ) } \\end{array} \\right] , } \\\\ & { ~ b = Q \\big ( 2 ^ { K } b ^ { \\prime } \\big ) , } \\\\ & { \\boldsymbol { c } = Q \\big ( 2 ^ { K } r ( \\boldsymbol { c } ^ { \\prime } ) \\big ) . } \\end{array}\n$$",
|
| 381 |
+
"text_format": "latex",
|
| 382 |
+
"bbox": [
|
| 383 |
+
411,
|
| 384 |
+
483,
|
| 385 |
+
584,
|
| 386 |
+
583
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 3
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"text": "Here, we simply rescale each element of $\\pmb { b } ^ { \\prime }$ using a constant $K$ , which is the bit-width of the kernel $\\pmb { H }$ (e.g. 8-bits in the QReLu networks), and round it to the nearest integer. The reparameterization mapping $r$ is borrowed from Ballé (2018): ",
|
| 393 |
+
"bbox": [
|
| 394 |
+
173,
|
| 395 |
+
588,
|
| 396 |
+
825,
|
| 397 |
+
631
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 3
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "equation",
|
| 403 |
+
"img_path": "images/f05f14dee3381c0df2a2f328de637c63d32eee81f98dd6f4752b463161af90d9.jpg",
|
| 404 |
+
"text": "$$\nr ( c ^ { \\prime } ) = \\mathrm { m a x } \\Big ( c ^ { \\prime } , \\sqrt { 1 + \\epsilon ^ { 2 } } \\Big ) ^ { 2 } - \\epsilon ^ { 2 } .\n$$",
|
| 405 |
+
"text_format": "latex",
|
| 406 |
+
"bbox": [
|
| 407 |
+
383,
|
| 408 |
+
637,
|
| 409 |
+
614,
|
| 410 |
+
667
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "When $^ c$ is small, perturbations in $^ c$ can lead to excessively large fluctuations of the quotient (i.e., the input to the nonlinearity). This leads to instabilities in training. $r$ ensures that values of $^ c$ are always positive, while gracefully scaling down gradient magnitudes on $^ c$ near zero. Effectively, the step size on $^ c$ is multiplied with a factor that is approximately linear in $^ c$ (Ballé, 2018). ",
|
| 417 |
+
"bbox": [
|
| 418 |
+
173,
|
| 419 |
+
674,
|
| 420 |
+
825,
|
| 421 |
+
731
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 3
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "Before rounding the linear filter coefficients in $\\pmb { H } ^ { \\prime } = [ h _ { 1 } ^ { \\prime } , \\ldots , h _ { N } ^ { \\prime } ] ^ { \\top }$ , we apply a special rescaling function $s$ to each of its filters $\\mathbf { { } } h ^ { \\prime }$ : ",
|
| 428 |
+
"bbox": [
|
| 429 |
+
173,
|
| 430 |
+
736,
|
| 431 |
+
823,
|
| 432 |
+
765
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 3
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "equation",
|
| 438 |
+
"img_path": "images/57b15f6a4c1f94326ab3a5538cc460fb940a23a55e4b65800eddd132c700c6f4.jpg",
|
| 439 |
+
"text": "$$\ns ( h ^ { \\prime } ) = \\mathrm { m a x } \\Big ( ( - 2 ^ { K - 1 } ) ^ { - 1 } \\operatorname* { m i n } _ { i } h _ { i } ^ { \\prime } , ( 2 ^ { K - 1 } - 1 ) ^ { - 1 } \\operatorname* { m a x } _ { i } h _ { i } ^ { \\prime } , \\epsilon \\Big ) .\n$$",
|
| 440 |
+
"text_format": "latex",
|
| 441 |
+
"bbox": [
|
| 442 |
+
294,
|
| 443 |
+
770,
|
| 444 |
+
704,
|
| 445 |
+
797
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 3
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "text",
|
| 451 |
+
"text": "$s$ rescales each filter such that at least one of its minimum and maximum coefficients hits one of the dynamic range bounds $( - 2 ^ { K - 1 }$ and $2 ^ { K - 1 } - 1 )$ ), while keeping zero at zero. This represents the finest possible quantization of the filter given its integer representation, and thus maximizes accuracy. To prevent division by zero, we ensure the divisor is larger than or equal to a small constant $\\epsilon$ (for example, $\\epsilon = 1 0 ^ { - \\tilde { 2 } 0 }$ ). ",
|
| 452 |
+
"bbox": [
|
| 453 |
+
174,
|
| 454 |
+
804,
|
| 455 |
+
825,
|
| 456 |
+
875
|
| 457 |
+
],
|
| 458 |
+
"page_idx": 3
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "text",
|
| 462 |
+
"text": "In order to backpropagate gradient signals into the parameters, one cannot simply take gradients of the loss function with respect to $H ^ { \\prime }$ , $\\pmb { b } ^ { \\prime }$ , or $c ^ { \\prime }$ , since the rounding function $Q$ has zero gradients almost everywhere, except for the half-integer positions where the gradient is positive infinity. A simple remedy is to replace the derivative of $Q$ with the identity function, since this is the smoothed gradient across all rounded values. ",
|
| 463 |
+
"bbox": [
|
| 464 |
+
174,
|
| 465 |
+
881,
|
| 466 |
+
825,
|
| 467 |
+
924
|
| 468 |
+
],
|
| 469 |
+
"page_idx": 3
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "text",
|
| 473 |
+
"text": "",
|
| 474 |
+
"bbox": [
|
| 475 |
+
171,
|
| 476 |
+
103,
|
| 477 |
+
823,
|
| 478 |
+
132
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 4
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "Further, we treat the rescaling divisor $s$ as if it were a constant. That is, we compute the derivatives of the loss function with respect to $H ^ { \\prime } , b ^ { \\prime }$ , and $c ^ { \\prime }$ as with the chain rule of calculus, but overriding: ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
171,
|
| 487 |
+
138,
|
| 488 |
+
821,
|
| 489 |
+
166
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 4
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "equation",
|
| 495 |
+
"img_path": "images/9dcdab371e0ac3c891e10b51a1ac5565b11f72012c44c2cab17a641ac3c7d56f.jpg",
|
| 496 |
+
"text": "$$\n\\frac { \\partial h } { \\partial h ^ { \\prime } } : = \\frac { 1 } { s ( h ^ { \\prime } ) } , \\qquad \\frac { \\partial b } { \\partial b ^ { \\prime } } : = 2 ^ { K } , \\qquad \\frac { \\partial c } { \\partial c ^ { \\prime } } : = 2 ^ { K } r ^ { \\prime } ( c ^ { \\prime } ) ,\n$$",
|
| 497 |
+
"text_format": "latex",
|
| 498 |
+
"bbox": [
|
| 499 |
+
316,
|
| 500 |
+
167,
|
| 501 |
+
679,
|
| 502 |
+
200
|
| 503 |
+
],
|
| 504 |
+
"page_idx": 4
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"type": "text",
|
| 508 |
+
"text": "where $r ^ { \\prime }$ is the replacement gradient function for $r$ as proposed by Ballé (2018). After training is completed, we compute the integer parameters $\\pmb { H }$ , $^ { b }$ and $^ c$ one more time, and from then on use them for evaluation. Note that further reparameterization of the kernels $H ^ { \\prime }$ , such as Sadam (Ballé, 2018), or of the biases $\\pmb { b } ^ { \\prime }$ or scaling parameters $c ^ { \\prime }$ , is possible by simply chaining reparameterizations. ",
|
| 509 |
+
"bbox": [
|
| 510 |
+
173,
|
| 511 |
+
202,
|
| 512 |
+
825,
|
| 513 |
+
258
|
| 514 |
+
],
|
| 515 |
+
"page_idx": 4
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"type": "text",
|
| 519 |
+
"text": "In addition to rounding the parameters, it is necessary to round the activations. To obtain gradients for the rounding division $\\oslash$ , we simply substitute the gradient of floating point division. To estimate gradients for the rounded activation functions, we replace their gradient with the corresponding nonrounded activation function, plotted in cyan in figure 2. In the case of QReLU, the gradient of the clipping operation is a box function, which can lead to training getting stuck, since if activations consistently hit one of the bounds, no gradients are propagated back (this is sometimes called the “dead unit” problem). As a remedy, we replace the gradient instead with ",
|
| 520 |
+
"bbox": [
|
| 521 |
+
173,
|
| 522 |
+
263,
|
| 523 |
+
825,
|
| 524 |
+
362
|
| 525 |
+
],
|
| 526 |
+
"page_idx": 4
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"type": "equation",
|
| 530 |
+
"img_path": "images/8bd5e5b014f1b8ecea4471bd1b8419a80013ba1ea95ef323be837e2024dba8c0.jpg",
|
| 531 |
+
"text": "$$\n\\frac { \\partial g _ { \\mathrm { Q R e L U } } ( v ) } { \\partial v } : = \\exp \\Bigl ( - \\alpha ^ { \\beta } \\Bigl | \\frac { 2 v } { 2 ^ { L } - 1 } - 1 \\Bigr | ^ { \\beta } \\Bigr ) ,\n$$",
|
| 532 |
+
"text_format": "latex",
|
| 533 |
+
"bbox": [
|
| 534 |
+
354,
|
| 535 |
+
363,
|
| 536 |
+
642,
|
| 537 |
+
395
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 4
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "text",
|
| 543 |
+
"text": "where $\\begin{array} { r } { \\alpha = \\frac { 1 } { \\beta } \\Gamma \\left( \\frac { 1 } { \\beta } \\right) } \\end{array}$ , and $L$ is the bit width of $\\textbf { \\em w }$ . This function corresponds to a scaled generalized Gaussian probability density with shape parameter $\\beta$ . In this context, we can think of $\\beta$ as a temperature parameter that makes the function converge to the gradient of the clipping operation as $\\beta$ goes to infinity. Although this setting permits an annealing schedule, we simply chose $\\beta = 4$ and obtained good results. The integral of this function is plotted in figure 2 (left) in cyan, along with other choices of $\\beta$ in gray. ",
|
| 544 |
+
"bbox": [
|
| 545 |
+
173,
|
| 546 |
+
396,
|
| 547 |
+
825,
|
| 548 |
+
483
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 4
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "4 COMPUTING THE PRIOR WITH INTEGER NETWORKS ",
|
| 555 |
+
"text_level": 1,
|
| 556 |
+
"bbox": [
|
| 557 |
+
174,
|
| 558 |
+
497,
|
| 559 |
+
632,
|
| 560 |
+
512
|
| 561 |
+
],
|
| 562 |
+
"page_idx": 4
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"type": "text",
|
| 566 |
+
"text": "Suppose our prior on the latent representation is $p ( \\pmb { y } \\mid z )$ , where $_ z$ summarizes other latent variables of the representation (it may be empty). To apply range coding, we need to impose a total ordering on the elements of $\\textbf { { y } }$ and write it as a chain of conditionals: ",
|
| 567 |
+
"bbox": [
|
| 568 |
+
173,
|
| 569 |
+
526,
|
| 570 |
+
825,
|
| 571 |
+
569
|
| 572 |
+
],
|
| 573 |
+
"page_idx": 4
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"type": "equation",
|
| 577 |
+
"img_path": "images/3b81a38a72d7a4a93351af7c7855836877083f200b8973e92fd9c159877db3f8.jpg",
|
| 578 |
+
"text": "$$\np ( \\pmb { y } \\mid z ) = \\prod _ { i } p ( y _ { i } \\mid \\pmb { y } _ { : i } , z ) ,\n$$",
|
| 579 |
+
"text_format": "latex",
|
| 580 |
+
"bbox": [
|
| 581 |
+
401,
|
| 582 |
+
570,
|
| 583 |
+
593,
|
| 584 |
+
602
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 4
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "where $\\mathbf { \\nabla } _ { \\mathbf { { \\boldsymbol { y } } } : i }$ denotes the vector of all elements of $\\textbf { { y } }$ preceding the ith. A common assumption is that $p$ is a known distribution, with parameters $\\theta _ { i }$ computed by an $\\operatorname { A N N } g$ : ",
|
| 591 |
+
"bbox": [
|
| 592 |
+
176,
|
| 593 |
+
603,
|
| 594 |
+
823,
|
| 595 |
+
631
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 4
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "equation",
|
| 601 |
+
"img_path": "images/723b71d7b3fae2ceb75f637c854496d30080baa5379bfedefff53ac018895d1f.jpg",
|
| 602 |
+
"text": "$$\np ( \\pmb { y } \\mid z ) = \\prod _ { i } p ( y _ { i } \\mid \\pmb { \\theta } _ { i } ) \\operatorname { w i t h } \\pmb { \\theta } _ { i } = g ( \\pmb { y } _ { : i } , z )\n$$",
|
| 603 |
+
"text_format": "latex",
|
| 604 |
+
"bbox": [
|
| 605 |
+
349,
|
| 606 |
+
632,
|
| 607 |
+
647,
|
| 608 |
+
665
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 4
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "We simply propose here to compute $g$ deterministically using an integer network, discretizing the parameters $\\pmb \\theta$ to a reasonable accuracy. If $p ( y _ { i } \\mid \\pmb \\theta _ { i } )$ itself cannot be computed deterministically, we can precompute all possible values and express it as a lookup table over $y _ { i }$ and $\\theta _ { i }$ . ",
|
| 615 |
+
"bbox": [
|
| 616 |
+
173,
|
| 617 |
+
665,
|
| 618 |
+
825,
|
| 619 |
+
708
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 4
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": "As an example, consider the prior used in the image compression model proposed by Ballé et al. (2018), which is a modified Gaussian with scale parameters conditioned on another latent variable: ",
|
| 626 |
+
"bbox": [
|
| 627 |
+
173,
|
| 628 |
+
713,
|
| 629 |
+
820,
|
| 630 |
+
742
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 4
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "equation",
|
| 636 |
+
"img_path": "images/df784c2bf29be4c8224f794cc3a592fc4cfc5163742ff09ba5cde4b3acc2bc28.jpg",
|
| 637 |
+
"text": "$$\np ( \\pmb { y } \\mid z ) = \\prod _ { i } \\left( \\mathcal { N } ( 0 , \\sigma _ { i } ^ { 2 } ) * \\mathcal { U } ( - \\textstyle \\frac { 1 } { 2 } , \\textstyle \\frac { 1 } { 2 } ) \\right) ( y _ { i } ) \\mathrm { w i t h } \\sigma = g ( z ) .\n$$",
|
| 638 |
+
"text_format": "latex",
|
| 639 |
+
"bbox": [
|
| 640 |
+
303,
|
| 641 |
+
743,
|
| 642 |
+
692,
|
| 643 |
+
776
|
| 644 |
+
],
|
| 645 |
+
"page_idx": 4
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "text",
|
| 649 |
+
"text": "We reformulate the scale parameters $\\sigma$ as: ",
|
| 650 |
+
"bbox": [
|
| 651 |
+
176,
|
| 652 |
+
776,
|
| 653 |
+
450,
|
| 654 |
+
790
|
| 655 |
+
],
|
| 656 |
+
"page_idx": 4
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "equation",
|
| 660 |
+
"img_path": "images/002e76f31249019d2bc4dce05d0d356ad9f4f4cec3c7e7e515eee472faad9513.jpg",
|
| 661 |
+
"text": "$$\n\\begin{array} { r } { \\sigma _ { i } = \\exp \\Bigl ( \\log \\bigl ( \\sigma _ { \\operatorname* { m i n } } \\bigr ) + \\frac { \\log \\left( \\sigma _ { \\operatorname* { m a x } } \\right) - \\log \\left( \\sigma _ { \\operatorname* { m i n } } \\right) } { L - 1 } \\theta _ { i } \\Bigr ) , } \\end{array}\n$$",
|
| 662 |
+
"text_format": "latex",
|
| 663 |
+
"bbox": [
|
| 664 |
+
351,
|
| 665 |
+
791,
|
| 666 |
+
645,
|
| 667 |
+
818
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 4
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "where $\\pmb \\theta = g ( z )$ is computed using an integer network. The last activation function in $g$ is chosen to have integer outputs of $L$ levels in the range $[ 0 , L - 1 ]$ . Constants $\\sigma _ { \\mathrm { m i n } }$ , $\\sigma _ { \\mathrm { m a x } }$ , and $L$ determine the discretized selection of scale parameters used in the model. The discretization is chosen to be logarithmic, as this choice minimizes $\\mathbb { E } _ { \\pmb { x } } D _ { \\mathrm { K L } } [ e \\Vert p ]$ for a given number of levels. ",
|
| 674 |
+
"bbox": [
|
| 675 |
+
174,
|
| 676 |
+
819,
|
| 677 |
+
825,
|
| 678 |
+
876
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 4
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "During training, we can simply backpropagate through this reformulation, and through $g$ as described in the previous section. After training, we precompute all possible values of $p$ as a function of $y _ { i }$ and $\\theta _ { i }$ and form a lookup table, while $g$ is implemented with integer arithmetic. ",
|
| 685 |
+
"bbox": [
|
| 686 |
+
174,
|
| 687 |
+
881,
|
| 688 |
+
823,
|
| 689 |
+
924
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 4
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "For certain applications, it can be useful not only to be able to deploy a compression model across heterogenous platforms, but to go even further in also ensuring identical reconstructions of the data across platforms. To this end, it can be attractive to make the entire model robust to non-determinism. To use integer networks in the encoder or decoder, one can use the equivalent construction as in (13): define $e$ or $d$ as a known distribution, with parameters computed by an integer network. To allow the use of range coding, we’re especially interested in discrete-valued representations here, such as studied in van den Oord et al. (2017), Jang et al. (2017), Theis et al. (2017), Ágústsson et al. (2017), and Ballé et al. (2018), among others. These approaches typically employ biased gradient estimators. ",
|
| 696 |
+
"bbox": [
|
| 697 |
+
173,
|
| 698 |
+
130,
|
| 699 |
+
825,
|
| 700 |
+
257
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 5
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "Jang et al. (2017) and Ágústsson et al. (2017) are concerned with producing gradients for categorical distributions and vector quantization (VQ), respectively. In both methods, the representation is found by evaluating an ANN followed by an arg max function, while useful gradients are obtained by substituting the arg max with a softmax function. Since arg max can be evaluated deterministically in a platform-independent way, and evaluating a softmax function with rounded inputs is feasible, integer networks can be combined with these models without additional modifications. ",
|
| 707 |
+
"bbox": [
|
| 708 |
+
174,
|
| 709 |
+
263,
|
| 710 |
+
825,
|
| 711 |
+
347
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 5
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "Theis et al. (2017) and Ballé et al. (2018) differ mostly in the details of interaction between the encoder and the prior. These two approaches are particularly interesting for image compression, as they scale well: Image compression models are often trained with a rate–distortion objective with a Lagrange parameter $\\lambda$ , equivalent to $\\beta$ in the $\\beta$ -VAE objective (Higgins et al., 2017; Alemi et al., 2018). Depending on the parameter, the latent representation carries vastly different amounts of information, and the optimal number of latent states in turn varies with that. While the number of latent states is a hyperparameter that needs to be chosen ahead of time in the categorical/VQ case, the latter two approaches can extend it as needed during training, because the latent states are organized along the real line. Further, for categorical distributions as well as VQ, the required dimensionality of the function computing the parameters grows linearly with the number of latent states due to their use of the arg max function. In the latter two models, the number of states can grow arbitrarily without increasing the dimensionality of $g$ . ",
|
| 718 |
+
"bbox": [
|
| 719 |
+
173,
|
| 720 |
+
353,
|
| 721 |
+
825,
|
| 722 |
+
522
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 5
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"text": "Both Theis et al. (2017) and Ballé et al. (2018) use deterministic encoder distributions (i.e. degenerating to delta distributions) during evaluation, but replace them with probabilistic versions for purposes of estimating $\\mathbb { E } _ { \\pmb { x } } D _ { \\mathrm { K L } } [ e \\Vert p ]$ during training. Theis et al. (2017) propose to use the following encoder distribution: ",
|
| 729 |
+
"bbox": [
|
| 730 |
+
174,
|
| 731 |
+
527,
|
| 732 |
+
823,
|
| 733 |
+
583
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 5
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "equation",
|
| 739 |
+
"img_path": "images/4018eb58a2925f4a556ccf5ddf500c6b355fec0471e7bc348858809e61666513.jpg",
|
| 740 |
+
"text": "$$\n\\begin{array} { r } { e ( \\pmb { y } \\mid \\pmb { x } ) = \\mathcal { U } ( \\pmb { y } \\mid Q ( g ( \\pmb { x } ) ) - \\frac { 1 } { 2 } , Q ( g ( \\pmb { x } ) ) + \\frac { 1 } { 2 } ) , } \\end{array}\n$$",
|
| 741 |
+
"text_format": "latex",
|
| 742 |
+
"bbox": [
|
| 743 |
+
341,
|
| 744 |
+
582,
|
| 745 |
+
655,
|
| 746 |
+
601
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 5
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "where $\\mathcal { U }$ is the uniform distribution and $g$ is an ANN. They replace the gradient of the quantizer with the identity. During evaluation, $\\pmb { y } = Q ( g ( \\pmb { x } ) )$ is used as the representation. Ballé et al. (2018) use the following distribution during training: ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
178,
|
| 755 |
+
601,
|
| 756 |
+
823,
|
| 757 |
+
642
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 5
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "equation",
|
| 763 |
+
"img_path": "images/2896319ede8c255b82cd7a7f3de1996e7edb3bb2da063222a41b0132c3e9bb4d.jpg",
|
| 764 |
+
"text": "$$\n\\begin{array} { r } { e ( \\pmb { y } \\mid \\pmb { x } ) = \\mathcal { U } ( \\pmb { y } \\mid g ( \\pmb { x } ) - \\frac { 1 } { 2 } , g ( \\pmb { x } ) + \\frac { 1 } { 2 } ) , } \\end{array}\n$$",
|
| 765 |
+
"text_format": "latex",
|
| 766 |
+
"bbox": [
|
| 767 |
+
366,
|
| 768 |
+
645,
|
| 769 |
+
630,
|
| 770 |
+
665
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 5
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "which makes $\\textbf { { y } }$ shift-invariant. During evaluation, they determine the representation as ${ \\textbf { 3 } } =$ $Q ( g ( \\pmb { x } ) - \\pmb { o } )$ , where $^ o$ is a sub-integer offset chosen such that the mode (or, if it cannot be estimated easily, the median) of the distribution is centered on one of the quantization bins. ",
|
| 777 |
+
"bbox": [
|
| 778 |
+
174,
|
| 779 |
+
667,
|
| 780 |
+
825,
|
| 781 |
+
709
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 5
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "If $g$ is implemented with integer networks, the latter approach becomes equivalent to the former, because $g$ then inherently computes integer outputs, and this is effectively equivalent to the quantization in (16). However, we’ve found that training with this construction leads to instabilities, such that the prior distribution never converges to a stable set of parameters. The reason may be that with quantization in $e$ , the marginal $m ( \\bar { \\pmb { y } } ) = \\mathbb { E } _ { \\pmb { x } } e ( \\pmb { y } \\mid \\pmb { x } )$ resembles a piecewise constant function, while the prior $p$ must be forced to be smooth, or $\\mathbb { E } _ { \\pmb { x } } D _ { \\mathrm { K L } } [ e \\Vert p ]$ would not yield any useful gradients. Because the prior is a variational approximation of the marginal, this means that the prior must be regularized (which we did not attempt here – we used the nonparametric density model described in Ballé et al. (2018)). On the other hand, when using (17) without quantization, the marginal is typically a smooth density, and the prior can approximate it closely without the need for regularization. ",
|
| 788 |
+
"bbox": [
|
| 789 |
+
173,
|
| 790 |
+
715,
|
| 791 |
+
825,
|
| 792 |
+
856
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 5
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "As a remedy for the instabilities, we propose the following trick: We simply use (17) during training, but define the last layer of $g$ without a nonlinearity and with floating point division, such that the representation is ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
174,
|
| 801 |
+
862,
|
| 802 |
+
825,
|
| 803 |
+
905
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 5
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "equation",
|
| 809 |
+
"img_path": "images/dd15f528d275a906ce34c1944e5d748cc721f84d236c3274ac353e4e1fdc1e1e.jpg",
|
| 810 |
+
"text": "$$\n\\begin{array} { r } { e ( \\pmb { y } \\mid \\pmb { x } ) = \\mathcal { U } ( \\pmb { y } \\mid ( \\pmb { H } \\pmb { u } + \\pmb { b } ) / c - \\frac { 1 } { 2 } , ( \\pmb { H } \\pmb { u } + \\pmb { b } ) / c + \\frac { 1 } { 2 } ) , } \\end{array}\n$$",
|
| 811 |
+
"text_format": "latex",
|
| 812 |
+
"bbox": [
|
| 813 |
+
312,
|
| 814 |
+
906,
|
| 815 |
+
684,
|
| 816 |
+
926
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 5
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "image",
|
| 822 |
+
"img_path": "images/4169eee3870fc1b30ed28c0ec26e0fa7b41d213ef75cb24efacfc3951184acc1.jpg",
|
| 823 |
+
"image_caption": [
|
| 824 |
+
"Figure 3: Rate–distortion performance of image compression models with integer priors (left and up is better). Left: performance of Ballé et al. (2018) model vs. the same model with an integer prior. The performance is identical, but the latter can be reliably deployed across different hardware platforms. Right: performance of Ballé (2018) ReLU model with 128 filters per layer vs. the same model, with integer transforms and QReLU activation functions and 128 or 256 filters per layer. The approximation capacity of integer networks is diminished vs. floating point networks, but doubling the number of filters per layer more than compensates for the loss. "
|
| 825 |
+
],
|
| 826 |
+
"image_footnote": [],
|
| 827 |
+
"bbox": [
|
| 828 |
+
174,
|
| 829 |
+
98,
|
| 830 |
+
826,
|
| 831 |
+
301
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 6
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "table",
|
| 837 |
+
"img_path": "images/de3d5491ab19c9ba29340ad9eca07f4406914fc7c8869f9143cf02cb37d1a068.jpg",
|
| 838 |
+
"table_caption": [],
|
| 839 |
+
"table_footnote": [
|
| 840 |
+
"CPU 1: Intel Xeon E5-1650 GPU 1: NVIDIA Titan X (Pascal) CPU 2: Intel Xeon E5-2690 GPU 2: NVIDIA Titan X (Maxwell) "
|
| 841 |
+
],
|
| 842 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>compressed ondecompressed on</td><td rowspan=1 colspan=1>CPU 1CPU 1</td><td rowspan=1 colspan=1>CPU 1GPU 1</td><td rowspan=1 colspan=1>CPU 1CPU 2</td><td rowspan=1 colspan=1>CPU 1GPU 2</td><td rowspan=1 colspan=1>GPU 1CPU 1</td><td rowspan=1 colspan=1>GPU 1GPU 1</td><td rowspan=1 colspan=1>GPU 1CPU 2</td><td rowspan=1 colspan=1>GPU 1GPU 2</td></tr><tr><td rowspan=1 colspan=9>Tecnick dataset:100 RGB i3 images of 1200 × 1200 pixels</td></tr><tr><td rowspan=1 colspan=1>Ballé et al. (2018)ditto, integer prior</td><td rowspan=1 colspan=1>0%0%</td><td rowspan=1 colspan=1>71%0%</td><td rowspan=1 colspan=1>54%0%</td><td rowspan=1 colspan=1>66%0%</td><td rowspan=1 colspan=1>63%0%</td><td rowspan=1 colspan=1>41%0%</td><td rowspan=1 colspan=1>59%0%</td><td rowspan=1 colspan=1>34%0%</td></tr><tr><td rowspan=1 colspan=9> CLIC dataset: 2021 RGB images of various pixel sizes</td></tr><tr><td rowspan=1 colspan=1>Ballé et al. (2018)ditto, integer prior</td><td rowspan=1 colspan=1>0%0%</td><td rowspan=1 colspan=1>78%0%</td><td rowspan=1 colspan=1>68%0%</td><td rowspan=1 colspan=1>78%0%</td><td rowspan=1 colspan=1>77%0%</td><td rowspan=1 colspan=1>52%0%</td><td rowspan=1 colspan=1>78%0%</td><td rowspan=1 colspan=1>54%0%</td></tr></table>",
|
| 843 |
+
"bbox": [
|
| 844 |
+
171,
|
| 845 |
+
426,
|
| 846 |
+
826,
|
| 847 |
+
551
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 6
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "Table 1: Decompression failure rates due to floating point round-off error on Tecnick and CLIC image datasets. When compressing and decompressing on the same CPU platform (first column), the Ballé et al. (2018) model decompresses all images correctly. However, when compressing on a GPU or decompressing on a different platform, a large percentage of the images fail to be decoded correctly. Implementing the prior of the same model using integer networks ensures correct decompression across all tested platforms. ",
|
| 854 |
+
"bbox": [
|
| 855 |
+
173,
|
| 856 |
+
594,
|
| 857 |
+
825,
|
| 858 |
+
679
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 6
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "during training, where $\\textbf { \\em u }$ is the input to the last layer and $/$ represents elementwise floating point division, and ",
|
| 865 |
+
"bbox": [
|
| 866 |
+
171,
|
| 867 |
+
705,
|
| 868 |
+
823,
|
| 869 |
+
733
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 6
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "equation",
|
| 875 |
+
"img_path": "images/04fafd8d6ad8dbb52c1f821552ac363dfe9dae5846aa8167bb2cfaafc5fbd817.jpg",
|
| 876 |
+
"text": "$$\n{ \\pmb y } = Q \\big ( ( { \\pmb H } { \\pmb u } + { \\pmb b } ) / c - o \\big )\n$$",
|
| 877 |
+
"text_format": "latex",
|
| 878 |
+
"bbox": [
|
| 879 |
+
408,
|
| 880 |
+
731,
|
| 881 |
+
588,
|
| 882 |
+
751
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 6
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "during evaluation. This can be rewritten strictly using integer arithmetic as: ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
173,
|
| 891 |
+
752,
|
| 892 |
+
668,
|
| 893 |
+
767
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 6
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "equation",
|
| 899 |
+
"img_path": "images/a63f5230a7295667dafce708a4401fd4832872f60756398bec1621b656ecb170.jpg",
|
| 900 |
+
"text": "$$\n\\pmb { y } = \\left( \\pmb { H } \\pmb { u } + \\pmb { b } - \\pmb { Q } ( \\pmb { o } \\odot \\pmb { c } ) \\right) \\oslash \\pmb { c } ,\n$$",
|
| 901 |
+
"text_format": "latex",
|
| 902 |
+
"bbox": [
|
| 903 |
+
387,
|
| 904 |
+
772,
|
| 905 |
+
609,
|
| 906 |
+
791
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 6
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "where $\\odot$ represents elementwise multiplication, and the rounded product can be folded into the bias $^ { b }$ as an optimization. This way, the representation is computed deterministically during evaluation, while during training, the marginal still resembles a smooth function, such that no regularization of the prior is necessary. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
174,
|
| 915 |
+
796,
|
| 916 |
+
825,
|
| 917 |
+
853
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 6
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "6 EXPERIMENTAL RESULTS ",
|
| 924 |
+
"text_level": 1,
|
| 925 |
+
"bbox": [
|
| 926 |
+
176,
|
| 927 |
+
867,
|
| 928 |
+
416,
|
| 929 |
+
883
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 6
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "In order to assess the efficacy of integer networks to enable platform-independent compression and decompression, we re-implemented the image compression model described in Ballé et al. (2018), which is defined with a hyperprior. We compare the original model with a version in which the network $h _ { s }$ computing the prior is replaced with an integer network. We used the same network architectures in terms of number of layers, filters, etc., and the same training parameters as in the original paper. The rate–distortion performance of the model was assessed on Kodak (1993) and is shown in figure 3 (left). The modified model performs identically to the original model, as it maps out the same rate–distortion frontier. However, it is much more robust to cross-platform compression and decompression (table 1). We tested compression and decompression on four different platforms (two CPU platforms and two GPU platforms) and two different datasets, Tecnick (Asuni and Giachetti, 2014) and CLIC (2018). The original model fails to correctly decompress more than half of the images on average when compression and decompression occurs on different platforms. The modified model brings the failure rate down to $0 \\%$ in all cases. ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
173,
|
| 938 |
+
895,
|
| 939 |
+
823,
|
| 940 |
+
924
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 6
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "image",
|
| 946 |
+
"img_path": "images/a865c9ab4174bfbf3d830d1396893dbffeb412c482ec838ff0e3400b2afccbbb.jpg",
|
| 947 |
+
"image_caption": [
|
| 948 |
+
"Figure 4: Loss function across training of Ballé (2018) model, evaluated on Kodak (1993), corresponding to the rate point at approximately 0.7 bits per pixel in figure 3, right panel. Generally, training of integer models takes somewhat longer and is somewhat noisier than training of floating point models. When matching floating point and integer networks for asymptotic performance (128 vs. 256 filters, respectively), integer networks take longer to converge (likely due to their larger number of filters). When matching by number of filters (128), it appears that the training time to convergence is about the same, but the performance ends up worse. "
|
| 949 |
+
],
|
| 950 |
+
"image_footnote": [],
|
| 951 |
+
"bbox": [
|
| 952 |
+
176,
|
| 953 |
+
98,
|
| 954 |
+
828,
|
| 955 |
+
286
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 7
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "",
|
| 962 |
+
"bbox": [
|
| 963 |
+
174,
|
| 964 |
+
430,
|
| 965 |
+
825,
|
| 966 |
+
583
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 7
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "It should be noted that the decreased accuracy of integer arithmetic generally leads to a lower approximation capacity than with floating point networks. We found that when implementing the models described in Ballé (2018) using integer networks throughout, the rate–distortion performance decreased (figure 3, right). The loss in approximation capacity can be compensated for by increasing the number of filters per layer. Note that this appears to increase the training time necessary for convergence (figure 4). However, note that increasing the number of parameters may not necessarily increase the size of the model parameters or the runtime, as the storage requirements for integer parameters (kernels, biases, etc.) are lower than for floating point parameters, and integer arithmetic is computationally less complex than floating point arithmetic in general. ",
|
| 973 |
+
"bbox": [
|
| 974 |
+
174,
|
| 975 |
+
590,
|
| 976 |
+
825,
|
| 977 |
+
715
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 7
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "7 DISCUSSION ",
|
| 984 |
+
"text_level": 1,
|
| 985 |
+
"bbox": [
|
| 986 |
+
176,
|
| 987 |
+
733,
|
| 988 |
+
310,
|
| 989 |
+
750
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 7
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "There is a large body of recent research considering quantization of ANNs mostly targeted at image recognition applications. Courbariaux et al. (2015) train classification networks on lower precision multiplication. Hubara et al. (2016) and Rastegari et al. (2016) perform quantization down to bilevel (i.e., 1-bit integers) at inference time to reduce computation in classification networks. More recently, Wu et al. (2018) and others have used quantization during training as well as inference, to reduce computation on gradients as well as activations, and Baluja et al. (2018) use non-uniform quantization to remove floating point computation, replacing it completely with integer offsets into an integer lookup table. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
174,
|
| 998 |
+
762,
|
| 999 |
+
825,
|
| 1000 |
+
875
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 7
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "While the quantization of neural networks is not a new topic, the results from the above techniques focus almost exclusively on classification networks. Denton et al. (2014), Han et al. (2016), and others have demonstrated that these types of networks are particularly robust to capacity reduction. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
176,
|
| 1009 |
+
882,
|
| 1010 |
+
823,
|
| 1011 |
+
924
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 7
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Models used for image compression, like many generative models, are much more sensitive to capacity constraints since they tend to underfit. As illustrated in Ballé (2018) and in figure 3 (right), this class of models is much more sensitive to reductions of capacity, both in terms of network size and the expressive power of the activation function. This may explain why our experiments with post-hoc quantization of network activations have never yielded competitive results for this class of model (not shown). ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
174,
|
| 1020 |
+
103,
|
| 1021 |
+
825,
|
| 1022 |
+
186
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 8
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "As illustrated in figure 1 and table 1, small floating point inconsistencies in variational latent-variable models can have disastrous effects when we use range coding to employ the models for data compression across different hardware or software platforms. The reader may wonder whether there exists other entropy coding algorithms that can convert discrete latent-variable representations into a binary representation, and which do not suffer from a sensitivity to perturbations in the probability model. Unfortunately, such an algorithm would always produce suboptimal results for the following reason. The source coding theorem (Shannon, 1948) establishes a lower bound on the average length of the resulting bit sequences, which range coding achieves asymptotically (i.e. for long bit sequences). The lower bound is given by the cross entropy between the marginal and the prior: ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
173,
|
| 1031 |
+
194,
|
| 1032 |
+
825,
|
| 1033 |
+
320
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 8
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "equation",
|
| 1039 |
+
"img_path": "images/786031a35590cd81be96ba2593d76313da6cd3b82795e6b00aa6db14c740d1e3.jpg",
|
| 1040 |
+
"text": "$$\n\\mathbb { E } _ { { \\pmb { y } } \\sim m } [ | b ( { \\pmb { y } } ) | ] \\geq \\mathbb { E } _ { { \\pmb { y } } \\sim m } [ - \\log _ { 2 } p ( { \\pmb { y } } \\mid { \\pmb { \\theta } } ) ] ,\n$$",
|
| 1041 |
+
"text_format": "latex",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
362,
|
| 1044 |
+
323,
|
| 1045 |
+
633,
|
| 1046 |
+
340
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 8
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "where $\\left| b ( \\boldsymbol { y } ) \\right|$ is the length of the binary representation of $\\textbf { { y } }$ . If an entropy coding algorithm tolerates error in the values of $p ( \\pmb { y } \\mid \\pmb { \\theta } )$ , this means it must operate under the assumption of identical probability values for a range of values of $\\pmb { \\theta } -$ in other words, discretize the probability values. Since the cross entropy is minimal only for $p ( \\pmb { y } \\mid \\pmb { \\theta } ) = m ( \\pmb { y } )$ (for all $\\textbf { { y } }$ ), this would impose a new lower bound on $\\left| b ( \\pmb { y } ) \\right|$ given by the cross entropy with the discretized probabilities, which is greater or equal to the cross entropy given above. Thus, the more tolerant the entropy coding method is to errors in $p$ , the further it deviates from optimal performance. Moreover, it is hard to establish tolerance intervals for probability values computed with floating point arithmetic, in particular when ANNs are used, due to error propagation. Hence, it is generally difficult to provide guarantees that a given tolerance will not be exceeded. For similar reasons, current commercial compression methods model probabilities exclusively in the discrete domain (e.g., using lookup tables; Marpe et al., 2003). ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
173,
|
| 1055 |
+
342,
|
| 1056 |
+
825,
|
| 1057 |
+
496
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 8
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "Our approach to neural network quantization is the first we are aware of which specifically addresses non-deterministic computation, as opposed to computational complexity. It enables a variety of possible variational model architectures and distributions to be effectively used for platformindependent data compression. While we aren’t assessing its effects on computational complexity here, it is conceivable that complexity reductions can also be achieved with the same approach; this is a topic for future work. ",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
174,
|
| 1066 |
+
502,
|
| 1067 |
+
825,
|
| 1068 |
+
585
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 8
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "REFERENCES ",
|
| 1075 |
+
"text_level": 1,
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
174,
|
| 1078 |
+
601,
|
| 1079 |
+
285,
|
| 1080 |
+
616
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 8
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "Ágústsson, Eiríkur Þór et al. (2017). “Soft-to-Hard Vector Quantization for End-to-End Learning Compressible Representations”. In: Advances in Neural Information Processing Systems 30, pp. 1141–1151. \nAlemi, Alexander A. et al. (2018). “Fixing a Broken ELBO”. In: arXiv e-prints. arXiv: 1711 . 00464. \nAsuni, N. and A. Giachetti (2014). “TESTIMAGES: A large-scale archive for testing visual devices and basic image processing algorithms”. In: Proc. of STAG: Smart Tools and Apps for Graphics. DOI: 10.2312/stag.20141242. \nBallé, Johannes (2018). “Efficient Nonlinear Transforms for Lossy Image Compression”. In: Picture Coding Symposium (PCS), 2018. \nBallé, Johannes et al. (2018). “Variational image compression with a scale hyperprior”. In: Proc. of 6th Int. Conf. on Learning Representations. URL: https://openreview.net/forum? id $=$ rkcQFMZRb. \nBaluja, Shumeet et al. (2018). “No Multiplication? No Floating Point? No Problem! Training Networks for Efficient Inference”. In: arXiv e-prints. arXiv: 1809.09244. \nCLIC: Challenge on Learned Image Compression (2018). Mobile and Professional Datasets. URL: http://www.compression.cc/2018/challenge. \nCourbariaux, Matthieu, Jean-Pierre David, and Yoshua Bengio (2015). “Training deep neural networks with low precision multiplications”. In: arXiv e-prints. Presented as a workshop contribution at the 3rd Int. Conf. on Learning Representations. arXiv: 1412.7024. \nCover, Thomas M. and Joy A. Thomas (2006). Elements of Information Theory. 2nd ed. Wiley. \nDenton, Emily et al. (2014). “Exploiting Linear Structure Within Convolutional Networks for Efficient Evaluation”. In: Advances in Neural Information Processing Systems 27, pp. 1269–1277. \nHan, Song, Huizi Mao, and William J. Dally (2016). “Deep Compression: Compressing Deep Neural Network with Pruning, Trained Quantization and Huffman Coding”. In: arXiv e-prints. Presented at the 4th Int. Conf. on Learning Representations. arXiv: 1510.00149. \nHiggins, Irina et al. (2017). “ $\\beta$ -VAE: Learning Basic Visual Concepts with a Constrained Variational Framework”. In: Proc. of 5th Int. Conf. on Learning Representations. URL: https : //openreview.net/forum?id $=$ Sy2fzU9gl. \nHubara, Itay et al. (2016). “Binarized Neural Networks”. In: Advances in Neural Information Processing Systems 29, pp. 4107–4115. \nJang, Eric, Shixiang Gu, and Ben Poole (2017). “Categorical Reparameterization with GumbelSoftmax”. In: Proc. of 5th Int. Conf. on Learning Representations. URL: https : / / openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ rkE3y85ee. \nKingma, Diederik P. and Max Welling (2014). “Auto-Encoding Variational Bayes”. In: arXiv eprints. Presented at the 2nd Int. Conf. on Learning Representations. arXiv: 1312.6114. \nKlopp, Jan P. et al. (2018). “Learning a Code-Space Predictor by Exploiting Intra-ImageDependencies”. In: Proc. of 29th British Machine Vision Conference. \nKodak, Eastman (1993). Kodak Lossless True Color Image Suite (PhotoCD PCD0992). URL: http://r0k.us/graphics/kodak/. \nMarpe, Detlev, Heiko Schwarz, and Thomas Wiegand (2003). “Context-Based Adaptive Binary Arithmetic Coding in the H.264/AVC Video Compression Standard”. In: IEEE Transactions on Circuits and Systems for Video Technology 13.7. DOI: 10.1109/TCSVT.2003.815173. \nMinnen, David, Johannes Ballé, and George Toderici (2018). “Joint Autoregressive and Hierarchical Priors for Learned Image Compression”. In: Advances in Neural Information Processing Systems 31, pp. 10771–10780. \nOord, Aäron van den, Oriol Vinyals, and Koray Kavukcuoglu (2017). “Neural Discrete Representation Learning”. In: Advances in Neural Information Processing Systems 30, pp. 6306–6315. \nRastegari, Mohammad et al. (2016). “XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networks”. In: ECCV 2016. Lecture Notes in Computer Science. Vol. 9908. DOI: 10.1007/978-3-319-46493-0_32. \nRissanen, Jorma and Glen G. Langdon Jr. (1981). “Universal modeling and coding”. In: IEEE Transactions on Information Theory 27.1. DOI: 10.1109/TIT.1981.1056282. \nShannon, Claude E. (1948). “A Mathematical Theory of Communication”. In: The Bell System Technical Journal 27.3. DOI: 10.1002/j.1538-7305.1948.tb01338.x. \nSønderby, Casper Kaae et al. (2016). “Ladder variational autoencoders”. In: Advances in Neural Information Processing Systems 29, pp. 3738–3746. \nTheis, Lucas et al. (2017). “Lossy Image Compression with Compressive Autoencoders”. In: Proc. of 5th Int. Conf. on Learning Representations. URL: https://openreview.net/forum? id $=$ rJiNwv9gg. \nWu, Shuang et al. (2018). “Training and Inference with Integers in Deep Neural Networks”. In: Proc. of 6th Int. Conf. on Learning Representations. URL: https://openreview.net/ forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ HJGXzmspb. ",
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
173,
|
| 1089 |
+
631,
|
| 1090 |
+
826,
|
| 1091 |
+
924
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 8
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
171,
|
| 1100 |
+
95,
|
| 1101 |
+
826,
|
| 1102 |
+
691
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 9
|
| 1105 |
+
}
|
| 1106 |
+
]
|
parse/train/S1zz2i0cY7/S1zz2i0cY7_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1zz2i0cY7/S1zz2i0cY7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/oyZxhRI2RiE/oyZxhRI2RiE.md
ADDED
|
@@ -0,0 +1,417 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SCORE: PRE-TRAINING FOR CONTEXT REPRESENTATION IN CONVERSATIONAL SEMANTIC PARSING
|
| 2 |
+
|
| 3 |
+
Tao Yu Yale University tao.yu@yale.edu
|
| 4 |
+
|
| 5 |
+
Rui Zhang The Pennsylvania State University rmz5227@psu.edu
|
| 6 |
+
|
| 7 |
+
Oleksandr Polozov, Christopher Meek, Ahmed Hassan Awadallah Microsoft Research {polozov,meek,hassanam}@microsoft.com
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Conversational Semantic Parsing (CSP) is the task of converting a sequence of natural language queries to formal language (e.g., SQL, SPARQL) that can be executed against a structured ontology (e.g. databases, knowledge bases). To accomplish this task, a CSP system needs to model the relation between the unstructured language utterance and the structured ontology while representing the multi-turn dynamics of the dialog. Pre-trained language models (LMs) are the state-of-the-art for various natural language processing tasks. However, existing pre-trained LMs that use language modeling training objectives over free-form text have limited ability to represent natural language references to contextual structural data. In this work, we present SCORE, a new pre-training approach for CSP tasks designed to induce representations that capture the alignment between the dialogue flow and the structural context. We demonstrate the broad applicability of SCORE to CSP tasks by combining SCORE with strong base systems on four different tasks (SPARC, COSQL, MWOZ, and SQA). We show that SCORE can improve the performance over all these base systems by a significant margin and achieves state-of-the-art results on three of them.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
The goal of task-oriented dialog systems is to assist the user in completing a certain task by performing an action or retrieving relevant information (Tur & Mori, 2011). They are often built on top of a structured ontology grounded in a knowledge base, a database, or a set of API calls. This in contrast to open-domain dialog systems (also referred to as chit-chat systems) where the goal is to maximize engagement with users in open-ended conversations (Jafarpour et al., 2010; Ritter et al., 2011).
|
| 16 |
+
|
| 17 |
+
A key component of task-oriented conversational systems is Conversational Semantic Parsing (CSP), which converts each utterance in the dialog into a formal language query (e.g., SQL, SPARQL) that can be executed against the structured ontology. CSP has been extensively studied in several academic and industrial research settings such as dialog systems (e.g., dialog state tracking in MWOZ (Budzianowski et al., 2018)), interacting with physical agents (e.g., (Chai et al., 2018)), context-dependent semantic parsing (e.g., SPARC (Yu et al., 2019b)), SQL-grounded state tracking (e.g., COSQL (Yu et al., 2019a)), and sequential question answering (e.g., SQA (Iyyer et al., 2017)). These settings differ in some respect, but they share the same overall objective and key challenge: how to jointly represent the natural language utterances and underlying structured ontology while taking into consideration the multi-turn dynamics of the dialog.
|
| 18 |
+
|
| 19 |
+
Similar to many other natural language tasks, recent work in CSP has significantly benefited from advances in language model pre-training. However, existing general-purpose pre-trained language models, e.g. BERT (Devlin et al., 2019), are pre-trained on free-form text data using language model objectives. This limits their ability in modeling the structural context or the multi-turn dynamics of the dialogs. This presents an opportunity to improve pre-trained LMs to specifically address these limitations for CSP tasks. Recent work has demonstrated the benefits of adapting pre-trained LMs to specific domains (Gururangan et al., 2020) or tasks (Zhang et al., 2019b) via a second phase of pre-training. For example, open-domain dialogue language models such as DialoGPT (Zhang et al., 2020) and ConveRT (Henderson et al., 2019) are pre-trained on the Reddit data and applied to dialog response generation and retrieval tasks.
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Examples of conversational semantic parsing tasks from SPARC and MWOZ datasets.
|
| 23 |
+
|
| 24 |
+
In this paper, we introduce SCORE (Structured & Sequential Context Representation), a language model pre-training approach for CSP tasks. SCORE adapts general pre-trained LMs by introducing a second phase of pre-training using multiple objectives that capture both multi-turn dynamics and the structural contexts in a dialog. In contrast to open-domain dialogs, CSP datasets are usually much smaller due to the difficulty and expense of obtaining and labeling data (mapping natural language utterances to formal language). Unlike most prior work on contextualized LMs which are pre-trained on free text, according to the finding where questions in CSP tasks are more compositional than other free-text since they can be mapped into formal representations, we propose to train SCORE on synthesized conversational semantic parsing data with multiple training objectives that aim to ground utterances into the schema of the underlying ontology and to model the relationship between different utterances in the multi-turn conversation. In this way, SCORE can effectively inject structural and conversational inductive biases in LMs that can translate to many CSP tasks. SCORE uses an order of magnitude smaller dataset for the second stage of pre-training, does not require changes to the pre-trained model architecture, can be used as a drop-in replacement of general pre-trained LMs with any semantic parsing model, and can be used out-of-the-box in many CSP tasks.
|
| 25 |
+
|
| 26 |
+
We apply SCORE to four different CSP tasks: (1) sequential text-to-SQL (SPARC), (2) conversational text-to-SQL (COSQL), (3) dialog state tracking (MWOZ), and (4) weakly-supervised sequential question answering (SQA). The fours tasks represent different scenarios, types of ontologies, supervision signals, system responses, and domains (see Table 1 for a detailed comparison and Figure 1 for examples). We demonstrate that: (1) SCORE training objectives can effectively incorporate synthesized data, (2) a single pre-trained SCORE model can be used for several CSP tasks and can be combined with many baseline systems with different model architectures and (3) SCORE significantly improve all baseline systems and achieves new state-of-the-art results on three benchmarks (SPARC, SPARC, and MWOZ) and comparable performance to state-of-the-art results on the fourth (SQA).
|
| 27 |
+
|
| 28 |
+
# 2 APPROACH
|
| 29 |
+
|
| 30 |
+
The key challenge of CSP is to capture the relationship between the natural language utterance and the structured ontology in the multi-turn dialog dynamics. To this end, we inject structural and conversational inductive biases in SCORE by introducing two objective functions: Column Contextual Semantics (CCS) and the Turn Contextual Switch (TCS). Because the size of existing semantic parsing datasets is limited, we produce synthesized data for pretraining SCORE by sampling from the context-free grammar induced from complex text-to-SQL examples in different domains. Moreover, to prevent SCORE from overfitting to the linguistic pattern of our synthesized data, we use the Masked Language Modeling (MLM) objective on human-generated utterances as regularization.
|
| 31 |
+
|
| 32 |
+
# 2.1 PRELIMINARIES
|
| 33 |
+
|
| 34 |
+
Task Definition In CSP, at each turn $t$ , we aim to produce a formal representation $q _ { t }$ given the current utterance $u _ { t }$ , the interaction history $h _ { t } = [ u _ { 1 } , u _ { 2 } , \ldots , u _ { t - 1 } ]$ , and the schema $c$ (table and column names, slots, etc.) of the target database (ontology) $d$ . To cover different problem variants, we
|
| 35 |
+
|
| 36 |
+
<table><tr><td>Dataset</td><td>Structured Ontology</td><td>Annotation (Supervision)</td><td>Cross Domain</td><td>System Response</td><td># Dialogs</td><td># Turns</td></tr><tr><td>SPARC</td><td>database</td><td>SQL (supervised)</td><td>√</td><td>X</td><td>4,298</td><td>12,726</td></tr><tr><td>CoSQL</td><td>database</td><td>SQL (supervised)</td><td>√</td><td>√</td><td>3,007</td><td>15,598</td></tr><tr><td>MWoZ</td><td>domain ontology</td><td>slot-value (supervised)</td><td>X</td><td>√</td><td>8,438</td><td>113,556</td></tr><tr><td>SQA</td><td>table</td><td>denotation (weakly-supervised)</td><td>√</td><td>X</td><td>6,066</td><td>17,553</td></tr></table>
|
| 37 |
+
|
| 38 |
+
Table 1: Comparison of CSP datasets. Examples from two of the datasets are shown in Figure 1.
|
| 39 |
+
Cross-domain means the train and test sets have different domains, so MWOZ is not cross-domain.
|
| 40 |
+
|
| 41 |
+
consider four popular CSP tasks shown in Table 1: SPARC (sequential text-to-SQL), COSQL (conversational text-to-SQL), MWOZ (dialogue state tracking), and SQA (weakly supervised sequential question answering). They have different target formal language and structured ontology:
|
| 42 |
+
|
| 43 |
+
• For the utterance $\textbf { \em u }$ , it is the user question for SPARC and SQA, while for COSQL and MWOZ, $u$ is the combination of a user query and a system response.
|
| 44 |
+
• For the database $^ d$ , SPARC and COSQL use multi-table databases; for MWOZ, the pre-defined ontology $d$ can also be viewed as a database; for SQA, $d$ is a single table.
|
| 45 |
+
• For the formal representation $\pmb q$ , it is the SQL query for SPARC and COSQL; in MWOZ it is the slot-value pairs that can be viewed as simple SQL queries consisting of SELECT and WHERE clauses; and for SQA, $q$ is the latent program.
|
| 46 |
+
|
| 47 |
+
Base Architecture The base architecture of SCORE takes as input a single turn of a CSP dialog $\left. u _ { t } , h _ { t } \right.$ jointly with the underlying database schema $c$ . Given this contextualized conversational input $C _ { t } = \langle u _ { t } , h _ { t } , c \rangle$ , SCORE encodes it into contextualized conversation representations $\vec { S } _ { t }$ for each token in $C _ { t }$ . The encoder architecture follows RoBERTa (Liu et al., 2019b). It is then followed by a linear layer and normalized (Ba et al., 2016) to produce final representations $\vec { h } _ { t }$ for each token:
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
C _ { t } = \langle u _ { t } , h _ { t } , c \rangle , \ \vec { S } _ { t } = \mathrm { R o B E R T A } ( C _ { t } ) , \ h _ { t , i } = \mathrm { L a y e r N o r m } ( \mathrm { G E L U } ( W _ { 1 } S _ { t , i } ) ) \ \forall S _ { t , i } \in \vec { S } _ { t } ,
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
where GELU is an activation by Hendrycks & Gimpel (2016) and $W _ { 1 }$ is a learned parameter matrix.
|
| 54 |
+
|
| 55 |
+
To build $C _ { t }$ , we first concatenate current utterances $u _ { t }$ and dialog history $h _ { t }$ separated by a special token $< s >$ , as this simple strategy has been shown effective in state-of-the-art CSP systems (Zhang et al., $2 0 1 9 \mathrm { c }$ ; Wu et al., 2019; Liu et al., 2020; Heck et al., 2020). To incorporate the database schema, we follow Hwang et al. (2019) to concatenate all column names as a single sequence. Column names are separated by the special token $< / \varsigma >$ and prefixed by their corresponding table name.
|
| 56 |
+
|
| 57 |
+
# 2.2 SCORE PRE-TRAINING
|
| 58 |
+
|
| 59 |
+
SCORE addresses the challenges of CSP by pre-training a task-oriented language model contextualized by the conversational flow and the underlying ontology. In pre-training, the SCORE model is self-supervised by two novel objectives in addition to the established Masked Language Modeling (MLM) objective. These objectives facilitate the accurate representation of the conversational flow between dialog turns and how this flow maps to the desired columns in the ontology.
|
| 60 |
+
|
| 61 |
+
Column Contextual Semantics The first challenge of CSP is capturing the alignment between the natural language utterance and the underlying database schema. To address it, we optimize the SCORE model with the auxiliary objective of Column Contextual Semantics (CCS). For each column in the database schema $c$ , CCS targets the operations that should be performed on this column in a given conversational turn. Specifically, each formal representation $q$ is decomposed into operations on columns and tables, e.g. GROUP BY and HAVING for SQL queries, or WHERE for the slot-value pairs. In this way, our data covers 148 column operations. We use the encoding of the special token $< / \varsigma >$ right before each column or table name to predict its corresponding operations, and then compute the CCS loss:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
{ \mathcal { L } } _ { \mathrm { C C S } } ( C _ { t } ) = \sum _ { i \in c } { \mathrm { C r o s s E n t r o p y } } _ { 1 4 8 } ( { \mathrm { L a y e r N o r m } } ( W _ { 2 } h _ { t , i } ^ { c } ) , { \mathrm { C C S } } ( q _ { t } ) )
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
where $h _ { t , i } ^ { c }$ is the contextualized representation of the $i ^ { \mathrm { { t h } } }$ column’s special token $< / \varsigma >$ in the contextualized input $C _ { t }$ , $\operatorname { C C S } ( q _ { t } )$ returns the column operation label for the current formal representation $q _ { t }$ , CrossEntropy $^ { 1 4 8 }$ computes the 148-way cross-entropy between the column operation prediction and label, and $W _ { 2 }$ is a learned parameter matrix.
|
| 68 |
+
|
| 69 |
+

|
| 70 |
+
Dialogs Formal Programs DatabaseFigure 2: Pre-training of a SCORE encoder on a SPARC text-to-SQL example from Figure 1.
|
| 71 |
+
|
| 72 |
+
Usr: Also show the names of their publishers. SELECT t1.title, t1.name, t3.name FROM author AS t1 JOIN book Book: id | title | author id | … | sale_amountTurn Contextual Switch The second challenge of CSP is capturing the conversational context t3.id ORDER BY t2.sale_amount DESC LIMIT 3flow and how it is grounded into the formal representations. The TCS objective aims to capture this Usr: I am looking for a cheap restaurant in the Restaurant(Price=cheap, area=center)grounding of context flow. To this end, it targets predicting the difference in formal representations Sys: There is a cheap chinese restaurant called between dialog turns based on the natural language utterance.
|
| 73 |
+
|
| 74 |
+
… ... Taxi: leaveAt | … | destinationBased on the context-free grammar of SQL, we identify 26 possible turn difference operations that a Usr: I also need to book a taxi between to the restaurant at 20:30. Restaurant(price=cheap, area=center, name=Dojo Noodle Bar, people=8, time=18:30, day=Thursday)conversational turn could elicit. They encode changes between different turns of user queries (the sysSys: The taxi is booked. tem response is not involved here) since we assume that most turn contextual shifts are from the user. For example, INS(WHERE) indicates inserting a new WHERE condition and DEL(SELECT.agg) indicates removing an aggregate operation from a SELECT statement (e.g. when an utterance “Show all the ages instead.” elicits a change SELECT MAX(age) ... SELECT age ...). We use the encoding of the special token $< / \varsigma >$ right before each turn to predict the context switch label between this turn and the previous history:
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\mathcal { L } _ { \mathrm { T C S } } ( C _ { t } ) = \mathrm { C r o s s E n t r o p y } _ { 2 6 } ( \mathrm { L a y e r N o r m } ( W _ { 3 } H _ { t } ^ { s } ) , \mathrm { T C S } ( q _ { t } , q _ { t - 1 } ) )
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
where $\pmb { H } _ { t } ^ { s } \in \mathbb { R } ^ { ( t - 1 ) \times d }$ is the contextualized representation of all previous turns in $C _ { t }$ with hidden dimension $d$ , $\mathrm { T C S } ( q _ { t } , q _ { t - 1 } )$ returns the turn difference operations from $q _ { t - 1 }$ to $q _ { t }$ , and $W _ { 3 }$ is a learned parameter matrix. We don’t use this objective to pre-train SCORE for MWOZ because the context switch label between turns is relatively simple in MWOZ (only select and where changes).
|
| 81 |
+
|
| 82 |
+
Masked Language Modeling As in prior work on large-scale language models (Devlin et al., 2019), we use the Masked Language Modeling (MLM) objective to facilitate contextual representation learning for natural language utterances. Importantly for regularization, we only apply this loss on in-domain human-annotated natural language data. Namely, it includes utterances in SPARC, COSQL, and SQA as well as nine task-oriented dialog datasets processed by Wu et al. (2020) for MWOZ (see data statistics in Figure 4). Formally, the MLM loss is given by:
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\mathcal { L } _ { \mathrm { M L M } } ( C _ { t } ) = \sum _ { m } \mathrm { C r o s s E n t r o p y } _ { \mathrm { V o c a b } } ( \mathrm { L a y e r N o r m } ( W _ { 4 } h _ { t } ^ { m } ) )
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
where $\pmb { h } _ { t } ^ { m }$ are the contextualized representations of the masked $15 \%$ of tokens in $C _ { t }$ , and $W _ { 4 }$ is a learned parameter matrix.
|
| 89 |
+
|
| 90 |
+
Pre-Training Setup and Steps To summarize the pre-training steps, we first collect a dataset $\mathcal { D } _ { \mathrm { n a t } }$ of combined human-annotated natural language questions (without labels) from existing CSP tasks (as mentioned above), and create a large synthesized conversational data $\mathcal { D } _ { \mathrm { s y n } }$ that is generated by a grammar induced from a small set of SPARC annotated examples (See 2.3). After that, we incorporate both two datasets in pre-training. More specifically, synthetic and natural examples are randomly sampled during pre-training. The total pre-training loss is the sum of the three objectives with CCS and TCS only applied to $\mathcal { D } _ { \mathrm { s y n } }$ and MLM only to $\mathcal { D } _ { \mathrm { n a t } }$ :
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\mathcal { L } = \sum _ { C _ { t } \in \mathcal { D } _ { \mathrm { s y n } } } \left( \mathcal { L } _ { \mathrm { C C S } } ( C _ { t } ) + \mathcal { L } _ { \mathrm { T C S } } ( C _ { t } ) \right) + \sum _ { C _ { t } \in \mathcal { D } _ { \mathrm { n a t } } } \mathcal { L } _ { \mathrm { M L M } } ( C _ { t } )
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
Figure 2 shows an overview of SCORE pre-training on an example SPARC dialogue from Figure 1.
|
| 97 |
+
We report additional implementation details for pre-training SCORE in Section 3.3 and Appendix C.
|
| 98 |
+
|
| 99 |
+
# 2.3 DATA SYNTHESIS
|
| 100 |
+
|
| 101 |
+
We re-use the synthetic dataset of 120k synthetic task-oriented dialogues for MWOZ, introduced by Campagna et al. (2020). In this work, we introduce a complementary procedure to synthesize data for conversational text-to-SQL dialogues. We use about $4 0 0 \mathrm { k }$ tables in WIKITABLES (Bhagavatula et al., 2015) (after filtering and cleaning), WikiSQL, and Spider datasets as underlying databases $d$ , and then synthesize about one dialog for each table. Finally, we synthesize $4 3 5 \mathrm { k }$ text-to-SQL conversations in total. Table 12 in Appendix B shows an example of the synthesized question-SQL pairs and their corresponding templates in our grammar.
|
| 102 |
+
|
| 103 |
+
To this end, we use only 500 dev examples from SPARC to induce two utteranceSQL generation grammars: (1) a singleturn context-free grammar $G _ { s }$ for generating context-independent question-SQL pairs, and (2) a follow-up context-free grammar $G _ { c }$ for follow-up question-SQL pairs. The single-turn grammar $G _ { s }$ contains a list of synchronous question-SQL templates where typed slots (COLUMN0, OP0, VALUE0, . . . ) represent mentions of tables, columns, values, and SQL operations. The follow-up grammar $G _ { c }$ contains context switch labels and lists of follow-up question templates. For example, if the context switch label is INS(SELECT.column0), the corresponding question could be “How about show column0 too?”. To ensure generalization, we only induce the grammars from the SPARC training set. Appendix B shows examples of the grammar rules and synthesized utterances.
|
| 104 |
+
|
| 105 |
+
# Algorithm 1 Data synthesis algorithm
|
| 106 |
+
|
| 107 |
+
1: $\tilde { h } \emptyset$
|
| 108 |
+
2: $r _ { s } \gets \mathbf { S A M P L E } ( G _ { s } )$
|
| 109 |
+
3: $\tilde { u } _ { 0 } , \tilde { q } _ { 0 } \gets$ RANDASSIGNSLOTS(d, rs)
|
| 110 |
+
4: $\tilde { h } + = ( \tilde { u } _ { 0 } , \tilde { q } _ { 0 } )$
|
| 111 |
+
5: $\tilde { u } _ { p } , \tilde { q } _ { p } \gets \tilde { u } _ { 0 } , \tilde { q } _ { 0 }$
|
| 112 |
+
6: for $t \gets 1$ to $T$ do
|
| 113 |
+
7: if $\mathrm { R A N D } ( 0 , 1 ) < 0 . 2$ then
|
| 114 |
+
8: $r _ { s } \gets \mathbf { S A M P L E } ( G _ { s } )$
|
| 115 |
+
9: $\tilde { u } _ { t } , \tilde { q } _ { t } \gets \mathrm { R A N D A S S I G N S L O T S } ( d , r _ { s } )$
|
| 116 |
+
10: else
|
| 117 |
+
11: $r _ { c } \gets \mathbf { S A M P L E } ( G _ { c } )$
|
| 118 |
+
12: if CONSTRAINTCHECK $( r _ { c } , \tilde { q } _ { p } )$ then
|
| 119 |
+
13: u˜t, q˜t ← EDITASSIGN(˜qp, rc)
|
| 120 |
+
14: h˜+ = (˜ut, q˜t, rc)
|
| 121 |
+
15: u˜p, q˜p ← u˜t, q˜t
|
| 122 |
+
16: return h˜
|
| 123 |
+
|
| 124 |
+
The data synthesis procedure using the two grammars is shown in Algorithm 1. Given a database $d$ and a sampled single-turn question-SQL template, the function RANDASSIGNSLOTS samples values (column names, cell values, and SQL operations) for typed slots in the template and returns the first synthesized question $\tilde { u } _ { 0 }$ and the corresponding SQL query $\tilde { q } _ { 0 }$ . To generate $T$ follow-up question-SQL pairs, the function CONSTRAINTCHECK $( r _ { c } , \tilde { q } _ { p } )$ checks if the previous query $\tilde { q } _ { p }$ satisfies constraints of the sampled template $r _ { c }$ (e.g. contains its mentioned nonterminal). Finally, EDITASSIGN $( \tilde { q } _ { p } , r _ { c } )$ edits the previous SQL $\tilde { q } _ { p }$ to generate the current follow-up SQL label $\tilde { q } _ { t }$ and samples values for typed slots in the template to generate the corresponding follow-up question $\tilde { u } _ { t }$ .
|
| 125 |
+
|
| 126 |
+
# 3 EXPERIMENT SETTINGS
|
| 127 |
+
|
| 128 |
+
# 3.1 DATASETS AND EVALUATION METRICS
|
| 129 |
+
|
| 130 |
+
We evaluate SCORE on four popular CSP tasks: SPARC (sequential text-to-SQL), COSQL (conversational text-to-SQL), MWOZ (dialogue state tracking), and SQA (sequential question answering), summarized in Table 1.
|
| 131 |
+
|
| 132 |
+
SPARC (Yu et al., 2019b) 1 is a large collection of sequences of inter-related context-dependent question-SQL pairs. It contains 4.3K questions sequences and $1 2 \mathrm { k } +$ questions. COSQL (Yu et al., 2019a) 2 is a large conversational text-to-SQL corpus, with 3k dialogues, collected under the Wizardof-Oz (WOZ) setting. We focus on the SQL-grounded dialogue state tracking task which maps user intents into SQL queries if possible given the interaction history. Both SPARC and COSQL cover 200 complex DBs spanning 138 domains.
|
| 133 |
+
|
| 134 |
+
MWOZ (Budzianowski et al., 2018; Eric et al., 2019) 3 is a corpus of over 10k human-human written task-oriented dialogs created through a WOZ crowdsourcing setting. We focus on the belief state tracking task in MWOZ which maps multi-turn user utterances to slot-value annotations.
|
| 135 |
+
|
| 136 |
+
SQA (Iyyer et al., 2017) 4 is constructed from a subset of WikiTableQuestions (Pasupat & Liang, 2015) by decomposing highly compositional questions into a sequence of simple questions. The task is weakly-supervised because each resulting decomposed question is only annotated with answers as one or more table cells, while the logic program is latent. It has 6,066 question sequences with 17,553 questions in total on 982 unique open-domain tables from Wikipedia.
|
| 137 |
+
|
| 138 |
+
We adopt the official metrics defined for each of the tasks. For SPARC and COSQL, we report question match accuracy (QM): the exact set match accuracy (Yu et al., 2018b) over SQL templates and interaction match accuracy (IM): the ratio of interactions for which all questions are predicted correctly. For MWOZ, we report joint goal accuracy (JGA) which is similar to the IM accuracy used in SPARC and COSQL. Finally, for SQA, we report denotation QM and IM accuracies.
|
| 139 |
+
|
| 140 |
+
# 3.2 BASE MODELS AND OTHER BASELINES
|
| 141 |
+
|
| 142 |
+
For SPARC and COSQL, we use RAT-SQL (Wang et al., 2020) as our base model. Since it is originally developed for single-turn text-to-SQL, we extend it to a multi-turn setting by concatenating current utterances and dialog history (see Section 2.2). Note that RAT-SQL alone, without SCORE, achieves better or comparable results to state-of-the-art models developed for SPARC and COSQL.
|
| 143 |
+
|
| 144 |
+
For MWOZ, we employ Trippy (Heck et al., 2020). It achieves state-of-the-art performance on MWOZ and uses $\mathbf { B E R T _ { b a s e } }$ to encode user and system utterances and dialog history. We report higher results (around $2 \%$ ) for Trippy than reported by Heck et al. (2020) since we train it for more epochs (25 vs. 10). To show the improvement of SCORE is not tied to specific base systems, we also experiment with another strong base model SOM-DST (Kim et al., 2020) for MWOZ and follow the same experimental details to train it.
|
| 145 |
+
|
| 146 |
+
For SQA, we use the weakly-supervised semantic parser proposed by Wang et al. (2019). The model first generates an abstract program given an input question and then instantiates it by searching for alignments between slots in the abstract program and question spans. As it is originally developed for single-turn questions, we extend it to the multi-turn setting in the same way as RAT-SQL.
|
| 147 |
+
|
| 148 |
+
We report additional implementation details for all base models in Appendix C. In addition to reporting results for all base models with SCORE, we also report original base models results (with BERT and/or ROBERTA) and several other state-of-the-art baselines for each task.
|
| 149 |
+
|
| 150 |
+
# 3.3 DATASET USAGE IN PRE-TRAINING
|
| 151 |
+
|
| 152 |
+
In our experiments and ablation study, we train several versions of SCORE with different objectives and datasets: (1) SCORE (MLM): pre-trained on annotated natural questions using MLM. (2) SCORE $( \mathrm { C C S + T C S } )$ ): pre-trained on only synthesized data, which achieves the best results on SParC, CoSQL, and SQA. (3) SCORE $\mathbf { C C S + T C S + M L M } )$ : pre-trained on the synthesized data using $\mathrm { C C S + T C S }$ and annotated natural questions using MLM.
|
| 153 |
+
|
| 154 |
+
Furthermore, note that the synthesized data is generated using grammar induced by about 500 examples from only SPARC. Therefore, no COSQL or SQA data are seen in any pre-training steps. For MWOZ, Campagna et al. (2020) study only the dev examples to induce the data synthesis grammar.
|
| 155 |
+
|
| 156 |
+
# 4 RESULTS AND ANALYSIS
|
| 157 |
+
|
| 158 |
+
Overall Results The results of SPARC and COSQL, MWOZ, and SQA are in Table 2, 3, and 4 respectively. We run each main experiment three times with different random seeds and report the mean. Overall, SCORE gains significant improvements over BERT and ROBERTA on all tasks, achieving state-of-the-art performances on SPARC, COSQL, and MWOZ.
|
| 159 |
+
|
| 160 |
+
Table 2: The SPARC and COSQL accuracy over all questions (QM) and all interactions (IM). The scores of IGSQL $^ +$ BERT and $\mathrm { R ^ { 2 } S Q L + }$ BERT are from the official leaderboards.
|
| 161 |
+
|
| 162 |
+
<table><tr><td rowspan="3"></td><td colspan="4">SPARC</td><td colspan="4">CoSQL</td></tr><tr><td colspan="2">Dev</td><td colspan="2">Test</td><td colspan="2">Dev</td><td colspan="2">Test</td></tr><tr><td>QM</td><td>IM</td><td>QM</td><td>IM</td><td>QM</td><td>IM</td><td>QM</td><td>IM</td></tr><tr><td>SyntaxSQL (Yu et al.,2018a)</td><td>18.5</td><td>4.3</td><td>20.2</td><td>5.2</td><td>1</td><td>-</td><td>14.2</td><td>2.2</td></tr><tr><td>GAZP + BERT (Zhong et al., 2020)</td><td>48.9</td><td>29.7</td><td>45.9</td><td>23.5</td><td>42.0</td><td>12.3</td><td>39.7</td><td>12.8</td></tr><tr><td>EditSQL + BERT (Zhang et al.,2019c)</td><td>47.2</td><td>29.5</td><td>47.9</td><td>25.3</td><td>39.9</td><td>12.3</td><td>40.8</td><td>13.7</td></tr><tr><td>IGSQL +BERT</td><td>50.7</td><td>32.5</td><td>51.2</td><td>29.5</td><td>44.1</td><td>15.8</td><td>42.5</td><td>15.0</td></tr><tr><td>R²SQL +BERT</td><td>1</td><td>-</td><td>55.8</td><td>30.8</td><td>1</td><td>-</td><td>46.8</td><td>17.0</td></tr><tr><td>RAT-SQL + BERT (Wang et al., 2019)</td><td>56.8</td><td>33.4</td><td>1</td><td>1</td><td>48.4</td><td>19.1</td><td>1</td><td>-</td></tr><tr><td>+ROBERTA</td><td>58.2</td><td>36.7</td><td>-</td><td>-</td><td>50.1</td><td>19.3</td><td>-</td><td>-</td></tr><tr><td>+ SCoRE</td><td>62.2</td><td>42.5</td><td>62.4</td><td>38.1</td><td>52.1</td><td>22.0</td><td>51.6</td><td>21.2</td></tr></table>
|
| 163 |
+
|
| 164 |
+
Table 3: Joint goal accuracies (JGA) on MWOZ 2.1 test set. All models use a BERT-like encoder/GPT.
|
| 165 |
+
|
| 166 |
+
<table><tr><td>Models</td><td>MWoZ 2.1</td></tr><tr><td>DST-reader (Gao et al.,2019)</td><td>36.40</td></tr><tr><td>TRADE (Wu et al., 2019)</td><td>46.60</td></tr><tr><td>DS-DST (Zhang et al.,2019a)</td><td>51.21</td></tr><tr><td>SOM-DST (Kim et al.,2020)</td><td>52.57</td></tr><tr><td>DS-picklist (Zhang et al.,2019a)</td><td>53.30</td></tr><tr><td>TripPy (Heck et al.,2020)</td><td>55.29</td></tr><tr><td>SimpleToD (Hosseini-Asl et al.,2020)</td><td>55.72</td></tr><tr><td>TripPy (ours)</td><td>58.37</td></tr><tr><td>+ SCoRE</td><td>60.48</td></tr></table>
|
| 167 |
+
|
| 168 |
+
Table 4: Question (QM) and interaction (IM) accuracy on the SQA test set.
|
| 169 |
+
|
| 170 |
+
<table><tr><td rowspan="2">Models</td><td colspan="2">SQA</td></tr><tr><td>QM</td><td>IM</td></tr><tr><td>Pasupat & Liang (2015)</td><td>33.2</td><td>7.7</td></tr><tr><td>Neelakantan et al. (2017)</td><td>40.2</td><td>11.8</td></tr><tr><td>Iyyer et al. (2017)</td><td>44.7</td><td>12.8</td></tr><tr><td>Sun et al. (2019a)</td><td>45.6</td><td>13.2</td></tr><tr><td>Muller et al. (2019)</td><td>55.1</td><td>28.1</td></tr><tr><td>Herzig et al. (2020)</td><td>67.2</td><td>40.4</td></tr><tr><td>Wang et al. (2019)+RoBERTa</td><td>62.8</td><td>33.2</td></tr><tr><td>Wang et al. (2019) + SCoRE</td><td>65.4</td><td>38.5</td></tr></table>
|
| 171 |
+
|
| 172 |
+
For SPARC and $\mathrm { C o S Q L }$ in Table 2, compared with ROBERTA, SCORE boosts the performance by $4 . 0 \%$ QM / $5 . 8 \%$ IM on SPARC, and $2 . 0 \%$ QM / $2 . 7 \%$ IM on COSQL. This demonstrates the effectiveness of SCORE on contextual semantic parsing tasks. In addition, on MWOZ dialog state tracking task in Table 3, TripPy achieves $6 0 . 5 \%$ JGA by replacing BERT with SCORE, outperforming the prior state-of-the-art (Hosseini-Asl et al., 2020) by $4 . 8 \%$ . This indicates that dialog state tracking also benefits from SCORE. Finally, SCORE also achieves higher performance than ROBERTA on weakly supervised sequential question answering SQA task. As Table 4 shows, SCORE improves QM by $2 . 6 \%$ and IM by $4 . 9 \%$ over ROBERTA with Wang et al. (2019) as the base model. This demonstrates that the enhanced ability of semantic parsing and context modeling in SCORE is transferable to denotation-based CSP tasks.
|
| 173 |
+
|
| 174 |
+
What is the effect of each pretraining objective? Table 5 shows an ablation study on different pretraining objectives. We find that the best SCORE results are achieved by pre-training on only synthesized data $( \mathrm { C C S + T C S } )$ ) without any natural questions (MLM) on SPARC,
|
| 175 |
+
|
| 176 |
+
<table><tr><td>Learning Objective</td><td>SPARC</td><td>CoSQL</td><td>MWoZ</td><td>SQA</td></tr><tr><td>MLM only</td><td>37.0(+0.3)</td><td>20.3(+1.0)</td><td>59.47(+1.10)</td><td>34.7(+1.5)</td></tr><tr><td>CCS only</td><td>41.3(+4.6)</td><td>21.2(+1.9)</td><td>59.32(+0.95)</td><td>32.7(-0.5)</td></tr><tr><td>CCS+TCS</td><td>42.5(+5.8)</td><td>22.0(+2.7)</td><td></td><td>38.5(+5.3)</td></tr><tr><td>CCS+TCS+MLM</td><td>38.6(+1.9)</td><td>21.7(+2.4)</td><td>60.48(+2.11)</td><td>33.7(+0.5)</td></tr></table>
|
| 177 |
+
|
| 178 |
+
Table 5: The effect of SCORE pre-training objectives. Improvements are shown in the parentheses.
|
| 179 |
+
|
| 180 |
+
COSQL, and SQA but not on MWOZ. By adding MLM to $\mathrm { C C S + T C S }$ $\mathrm { C C S + T C S }$ vs. $\mathbf { C C S + T C S + M L M }$ ), MLM actually hurts the performance $- 3 . 9 \%$ on SParC, - $. 0 . 3 \%$ on $\mathbf { C o S Q L }$ , and $- 4 . 4 \%$ on SQA) while increases for MWOZ. One possible reason is that questions in MWOZ are more diverse in language but less compositional while semantic compositionality and turn changes are more important in the other three CSP tasks. Also, the synthesized data used to pre-train SCORE for SPARC and COSQL is generated by the grammar induced by SPARC, which might overfit to SPARC. In addition, SCORE pre-trained with only MLM loss improves the performance $( \ 1 . 0 \% )$ but not as large as $\mathrm { C C S + T C S }$ $( + 5 . 5 \%$ on SPARC, $+ 1 . 7 \%$ on COSQL, and $+ 3 . 4 \%$ on SQA). Finally, we test the effectiveness of TCS on SPARC, COSQL, and SQA by adding TCS to CCS (CCS only vs.
|
| 181 |
+
|
| 182 |
+
CCS+TCS), SCORE gains improvements of $1 . 2 \%$ on SPARC and $0 . 8 \%$ on COSQL, and $4 . 4 \%$ on SQA.
|
| 183 |
+
|
| 184 |
+
Does SCORE improve question match accuracy on individual turns? Table 6 shows detailed results of SCORE’s question accuracy for individual conversation turns on the SPARC dev set. SCORE provides a significant improvement for every conversation turn except the first (in which the task is more similar to single-turn
|
| 185 |
+
|
| 186 |
+
<table><tr><td></td><td>QM</td><td>Q1</td><td>Q2</td><td>Q3</td><td>Q4</td></tr><tr><td>RAT-SQL +BERT</td><td>56.8</td><td>71.1</td><td>53.6</td><td>47.8</td><td>31.8</td></tr><tr><td>+RoBERTa</td><td>58.2</td><td>68.7</td><td>58.5</td><td>48.9</td><td>35.2</td></tr><tr><td>+ SCoRE</td><td>62.2</td><td>70.6</td><td>63.5</td><td>52.6</td><td>45.5</td></tr></table>
|
| 187 |
+
|
| 188 |
+
Table 6: Detailed results on the dev set of SPARC.
|
| 189 |
+
$\mathrm { Q } _ { i }$ is the accuracy of the $i ^ { \mathrm { { t h } } }$ conversation question.
|
| 190 |
+
|
| 191 |
+
semantic parsing). COSQL and SQA exhibit similar behavior and are presented in Appendix A.
|
| 192 |
+
|
| 193 |
+
<table><tr><td></td><td>CoSQL</td><td>MWoZ</td></tr><tr><td>no syn</td><td>48.4</td><td>58.37</td></tr><tr><td>with syn</td><td>48.6</td><td>58.45</td></tr></table>
|
| 194 |
+
|
| 195 |
+
What if we use the synthesized data to simply augment the training data? To answer this, we compare the results of the base models trained with or without the synthesized data on COSQL and MWOZ. As shown in Table 7, the extra synthetic data does not significantly improve the performance, indicating that directly augmenting the synthetic data to the training set is
|
| 196 |
+
|
| 197 |
+
Table 7: Effect of synthetic data as training data augmentation.
|
| 198 |
+
|
| 199 |
+
not effective. The similar findings are reported in many recent work (Zhang et al., $2 0 1 9 \mathrm { c }$ ; Herzig et al., 2020; Campagna et al., 2020; Zhong et al., 2020). In contrast, pre-training on the synthesized data with our objectives improves the performance on the downstream tasks.
|
| 200 |
+
|
| 201 |
+
How general is SCORE and its synthetic grammar? For generalization in task settings, we have shown that the pre-training strategy of SCORE can improve the performance over different CSP tasks including semantic parsing (SPARC and COSQL), dialog state tracking (MWOZ), and weakly supervised table question answering (SQA). In addition, we demonstrate the effectiveness of SCORE on different base models. To this end, we experiment with a different base model SOM-DST for MWOZ. As shown in Table 8, SCORE can still improve the performance with a different base model on MWOZ (SOM-DST $+$ BERT vs. SOM-DST $+ \mathsfit { S }$ CORE on syn. MWOZ).
|
| 202 |
+
|
| 203 |
+
<table><tr><td></td><td>MWoZ</td></tr><tr><td>SOM-DST+BERT</td><td>52.57</td></tr><tr><td>+ SCoRE on syn. text-to-SQL</td><td>53.57</td></tr><tr><td>+ SCoRE on syn. MWoZ</td><td>54.61</td></tr></table>
|
| 204 |
+
|
| 205 |
+
Table 8: Performance of SCORE pre-trained on different synthesized data on MWOZ.
|
| 206 |
+
|
| 207 |
+
To demonstrate the generalization in synthetic grammar and data, as shown in Table 2 and 4, SCORE $\mathrm { ( T C S + C C S ) }$ is pre-trained on the synthesized data of the grammar induced from SPARC only, and it still improves the performance on COSQL $( + 2 . 7 \% )$ and SQA $( + 4 . 9 \% )$ where no any CoSQL and SQA annotated data is seen in any pre-training steps. Moreover, in Table 8 we show that SCORE pre-trained on the text-to-SQL synthesized data could also surprisingly improve the performance on MWOZ. We expect that higher performance could be achieved with SCORE pre-trained on task-specific synthesized data. Finally, our pre-training approach can be applied to any existing LMs including larger seq2seq LMs (e.g., BART (Lewis et al., 2020), T5 (Raffel et al., 2020)).
|
| 208 |
+
|
| 209 |
+
Can SCORE deliver more value when in-domain data is limited (e.g., in a low-resource setting)? We want to answer this question similar to experiments other investigations of LMs as few-shot learners (Wu et al., 2020; Brown et al., 2020; Schick & Schutze, 2020). To ¨ this end, we compare ROBERTA and SCORE under a few-shot setting on SQA when only $10 \%$ of training data is available. We choose SQA because its annotation is most different from the synthetic text-to-SQL dataset we use for pretraining. Table 9 demonstrates that SCORE delivers even larger improvements compared to the ROBERTA baseline when only $10 \%$ training data is available $3 . 8 \%$ vs $2 . 6 \%$ ).
|
| 210 |
+
|
| 211 |
+
<table><tr><td></td><td>QM</td><td>IM</td></tr><tr><td>RoBERTa</td><td>53.3</td><td>21.2</td></tr><tr><td>SCoRE</td><td>57.1</td><td>26.1</td></tr></table>
|
| 212 |
+
|
| 213 |
+
Table 9: Performance of SCORE on $10 \%$ training data of SQA.
|
| 214 |
+
|
| 215 |
+
# 5 RELATED WORK
|
| 216 |
+
|
| 217 |
+
Conversational Semantic Parsing Conversational semantic parsing is one of the most important research topics in conversational AI and has been studied in different settings including task-oriented dialogues, question answering, and text-to-SQL. Task-oriented dialog systems (Henderson et al.,
|
| 218 |
+
|
| 219 |
+
2014; Wen et al., 2016; Mrksiˇ c et al., 2017; Budzianowski et al., 2018) aim to help users accomplish´ a specific task (e.g. flight booking) and often pre-define slot templates grounded in a domainspecific ontology. In comparison, several other datasets were recently introduced for cross-domain conversational text-to-SQL tasks (SPARC and COSQL (Yu et al., 2019a;b)) and sequential questions answers over tables (Iyyer et al., 2017). While the previous work has achieved significant progress in different datasets separately, to the best of our knowledge, we are the first to study four different CSP tasks together (sequential text-to-SQL, conversational text-to-SQL, dialog state tracking, and weakly-supervised sequential question answering) by addressing the shared key challenge of learning representations in pre-trained language models that capture the alignment between the dialogue flow and the structural context.
|
| 220 |
+
|
| 221 |
+
Conversational Language Model Pre-training Several recent efforts have demonstrated the value of adapting pre-trained LMs to specific tasks using different pre-training objectives, e.g., summarization (Zhang et al., 2019b), knowledge inference (Sun et al., 2019b; Liu et al., 2019a), etc. Closest to our work is adapting pre-trained LMs for open-domain chit-chat models and for tabular data representation. The former focuses on improving response generation on open-ended dialogues by adding a pre-training step on open-domain conversations data, such as Reddit data (Zhang et al., 2020; Henderson et al., 2019). For example, Wu et al. (2020) introduced ToD-BERT, a pre-trained language model combining 9 high-quality human-human task-oriented dialogue datasets to conduct language model and response selection pre-training. However, they use language modeling training objectives over free-form text and therefore have limited ability to represent structural data. The latter has focused on improving language model pre-training for encoding tabular data (Yin et al., 2020; Herzig et al., 2020), but they focus on the single turn semantic parsing setting. Our approach is different from previous work because we address the challenge of conversational semantic parsing tasks by learning pretrained representation for both the multi-turn dynamics of the dialog and the relation between the unstructured language utterance and the structured ontology. Furthermore, our pre-training approach is much more data-efficient than prior LM pre-training work and saves a lot of time and computing resources (Appendix D for more details). Our pre-training step can be done within only one day using 8 V100 GPUs.
|
| 222 |
+
|
| 223 |
+
Using Synthesized Data for Semantic Parsing Synthesized data has been frequently used in semantic parsing to alleviate the challenge of labeled data scarcity. For example, Wang et al. (2015) proposed a method for training semantic parsers in new domains by generating logical forms and canonical utterances and then paraphrasing the canonical utterances via crowd-sourcing. Similar approaches were used to train semantic parsers in other domains and settings (Zhong et al., 2017; Su et al., 2017; Cheng et al., 2018; Shah et al., 2018). Another line of work has proposed using synthesized data to adapt single turn semantic parsing models to new domains (Jia & Liang, 2016; Yoo et al., 2018; Campagna et al., 2019) and task-oriented dialogues (Campagna et al., 2020). However, they reported that combining synthetic data and the supervised data does not yield significant improvements, consistent with results by Herzig et al. (2020). By contrast, we introduce a new data synthesize procedure for conversational text-to-SQL dialogues and use it in a different way by pretraining language models to induce better representations for many CSP tasks. Our synthesized data can be easily generated without human involvement and the pre-trained models add value to different tasks simultaneously.
|
| 224 |
+
|
| 225 |
+
# 6 CONCLUSION
|
| 226 |
+
|
| 227 |
+
We presented SCORE a new pre-training approach for conversational semantic parsing. The training objectives of SCORE aim to induce natural language representations that capture the multi-turn dynamics, compositional semantic of the target language, and the references to the structural ontology appearing in the dialog. SCORE can be used with many semantic parsing models as a drop-in replacement for general pretrained LMs. We demonstrated SCORE effectiveness by using it as a feature representation encoder with strong baseline models for a wide range of CSP tasks. In particular, our empirical results on four different CSP tasks demonstrated that SCORE can be used to significantly improve the performance of existing strong baseline models by simply replacing an existing pre-trained LM with our SCORE pre-trained model. Furthermore, we are able to achieve state-of-the-art results on three of these tasks. We hope SCORE will encourage further exploration of the benefits and limitations of pre-training approaches for CSP systems.
|
| 228 |
+
|
| 229 |
+
# REFERENCES
|
| 230 |
+
|
| 231 |
+
Jimmy Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton. Layer normalization. ArXiv, abs/1607.06450, 2016.
|
| 232 |
+
|
| 233 |
+
Chandra Bhagavatula, Thanapon Noraset, and Doug Downey. Tabel: Entity linking in web tables. In International Semantic Web Conference, 2015.
|
| 234 |
+
|
| 235 |
+
Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020.
|
| 236 |
+
|
| 237 |
+
Pawel Budzianowski, Tsung-Hsien Wen, Bo-Hsiang Tseng, Inigo Casanueva, Stefan Ultes, Osman ˜ Ramadan, and Milica Gasic. Multiwoz - a large-scale multi-domain wizard-of-oz dataset for task-oriented dialogue modelling. In EMNLP, 2018.
|
| 238 |
+
|
| 239 |
+
Giovanni Campagna, Silei Xu, Mehrad Moradshahi, Richard Socher, and Monica S. Lam. Genie: A generator of natural language semantic parsers for virtual assistant commands. In Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation, pp. 394–410. Association for Computing Machinery, 2019.
|
| 240 |
+
|
| 241 |
+
Giovanni Campagna, Agata Foryciarz, Mehrad Moradshahi, and Monica S. Lam. Zero-shot transfer learning with synthesized data for multi-domain dialogue state tracking. In Proceedings of 58th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2020.
|
| 242 |
+
|
| 243 |
+
Joyce Y Chai, Qiaozi Gao, Lanbo She, Shaohua Yang, Sari Saba-Sadiya, and Guangyue Xu. Language to action: Towards interactive task learning with physical agents. In IJCAI, pp. 2–9, 2018.
|
| 244 |
+
|
| 245 |
+
Jianpeng Cheng, Siva Reddy, and Mirella Lapata. Building a neural semantic parser from a domain ontology. ArXiv, abs/1812.10037, 2018.
|
| 246 |
+
|
| 247 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT, 2019.
|
| 248 |
+
|
| 249 |
+
Mihail Eric, Rahul Goel, Shachi Paul, Abhishek Sethi, Sanchit Agarwal, Shuyag Gao, and Dilek Hakkani-Tur. Multiwoz 2.1: Multi-domain dialogue state corrections and state tracking baselines. arXiv preprint arXiv:1907.01669, 2019.
|
| 250 |
+
|
| 251 |
+
Shuyang Gao, Abhishek Sethi, Sanchit Agarwal, Tagyoung Chung, and Dilek Hakkani-Tur. Dialog state tracking: A neural reading comprehension approach. In SIGDial, 2019.
|
| 252 |
+
|
| 253 |
+
Suchin Gururangan, Ana Marasovic, Swabha Swayamdipta, Kyle Lo, Iz Beltagy, Doug Downey, ´ and Noah A. Smith. Don’t stop pretraining: Adapt language models to domains and tasks. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Online, July 2020. Association for Computational Linguistics.
|
| 254 |
+
|
| 255 |
+
M. Heck, Carel van Niekerk, Nurul Lubis, Christian Geishauser, Hsien-Chin Lin, M. Moresi, and Milica Gavsi’c. Trippy: A triple copy strategy for value independent neural dialog state tracking. In SIGdial, 2020.
|
| 256 |
+
|
| 257 |
+
Matthew Henderson, Blaise Thomson, and Jason D. Williams. The second dialog state tracking challenge. In SIGDIAL Conference, 2014.
|
| 258 |
+
|
| 259 |
+
Matthew Henderson, Inigo Casanueva, Nikola Mrkvsi’c, P. Su, Tsung-Hsien, and Ivan Vulic. Convert: ˜ Efficient and accurate conversational representations from transformers. ArXiv, abs/1911.03688, 2019.
|
| 260 |
+
|
| 261 |
+
Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. ArXiv, abs/1610.02136, 2016.
|
| 262 |
+
|
| 263 |
+
Jonathan Herzig, P. Nowak, Thomas Muller, Francesco Piccinno, and Julian Martin Eisenschlos. ¨ Tapas: Weakly supervised table parsing via pre-training. In ACL, 2020.
|
| 264 |
+
|
| 265 |
+
Ehsan Hosseini-Asl, B. McCann, Chien-Sheng Wu, Semih Yavuz, and R. Socher. A simple language model for task-oriented dialogue. ArXiv, abs/2005.00796, 2020.
|
| 266 |
+
|
| 267 |
+
Wonseok Hwang, Jinyeung Yim, Seunghyun Park, and Minjoon Seo. A comprehensive exploration on wikisql with table-aware word contextualization. ArXiv, abs/1902.01069, 2019.
|
| 268 |
+
|
| 269 |
+
Mohit Iyyer, Wen-tau Yih, and Ming-Wei Chang. Search-based neural structured learning for sequential question answering. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Vancouver, Canada, July 2017. Association for Computational Linguistics.
|
| 270 |
+
|
| 271 |
+
Sina Jafarpour, Christopher JC Burges, and Alan Ritter. Filter, rank, and transfer the knowledge: Learning to chat. Advances in Ranking, 10:2329–9290, 2010.
|
| 272 |
+
|
| 273 |
+
Robin Jia and Percy Liang. Data recombination for neural semantic parsing. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2016.
|
| 274 |
+
|
| 275 |
+
Sung-Dong Kim, Sohee Yang, Gyuwan Kim, and S. Lee. Efficient dialogue state tracking by selectively overwriting memory. In ACL, 2020.
|
| 276 |
+
|
| 277 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014.
|
| 278 |
+
|
| 279 |
+
Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Online, July 2020. Association for Computational Linguistics.
|
| 280 |
+
|
| 281 |
+
Q. Liu, B. Chen, Jiaqi Guo, Jian-Guang Lou, Bin Zhou, and Dongmei Zhang. How far are we from effective context modeling ? an exploratory study on semantic parsing in context. ArXiv, abs/2002.00652, 2020.
|
| 282 |
+
|
| 283 |
+
Weijie Liu, Peng Zhou, Zhe Zhao, Zhiruo Wang, Qi Ju, Haotang Deng, and Ping Wang. K-bert: Enabling language representation with knowledge graph, 2019a.
|
| 284 |
+
|
| 285 |
+
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke S. Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. ArXiv, abs/1907.11692, 2019b.
|
| 286 |
+
|
| 287 |
+
Nikola Mrksiˇ c, Diarmuid ´ O S ´ eaghdha, Tsung-Hsien Wen, Blaise Thomson, and Steve Young. Neural ´ belief tracker: Data-driven dialogue state tracking. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1777–1788. Association for Computational Linguistics, 2017.
|
| 288 |
+
|
| 289 |
+
Thomas Muller, Francesco Piccinno, Massimo Nicosia, Peter Shaw, and Yasemin Altun. Answering ¨ conversational questions on structured data without logical forms. In EMNLP/IJCNLP, 2019.
|
| 290 |
+
|
| 291 |
+
Arvind Neelakantan, Quoc V. Le, M. Abadi, A. McCallum, and Dario Amodei. Learning a natural language interface with neural programmer. ArXiv, abs/1611.08945, 2017.
|
| 292 |
+
|
| 293 |
+
Panupong Pasupat and Percy Liang. Compositional semantic parsing on semi-structured tables. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing of the Asian Federation of Natural Language Processing, ACL 2015, July 26-31, 2015, Beijing, China, Volume 1: Long Papers, pp. 1470–1480, 2015.
|
| 294 |
+
|
| 295 |
+
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI Blog, 2019.
|
| 296 |
+
|
| 297 |
+
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67, 2020.
|
| 298 |
+
|
| 299 |
+
Alan Ritter, Colin Cherry, and William B. Dolan. Data-driven response generation in social media. In Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing, pp. 583–593, Edinburgh, Scotland, UK., July 2011. Association for Computational Linguistics.
|
| 300 |
+
|
| 301 |
+
Ohad Rubin and Jonathan Berant. Smbop: Semi-autoregressive bottom-up semantic parsing. arXiv preprint arXiv:2010.12412, 2020.
|
| 302 |
+
|
| 303 |
+
Timo Schick and Hinrich Schutze. It’s not just size that matters: Small language models are also ¨ few-shot learners. arXiv preprint arXiv:2009.07118, 2020.
|
| 304 |
+
|
| 305 |
+
Pararth Shah, Dilek Hakkani-Tur, Gokhan T ¨ ur, Abhinav Rastogi, Ankur Bapna, Neha Nayak, and ¨ Larry Heck. Building a conversational agent overnight with dialogue self-play, 2018.
|
| 306 |
+
|
| 307 |
+
Peter Shaw, Jakob Uszkoreit, and Ashish Vaswani. Self-attention with relative position representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), New Orleans, Louisiana, June 2018. Association for Computational Linguistics.
|
| 308 |
+
|
| 309 |
+
Peter Shaw, Ming-Wei Chang, Panupong Pasupat, and Kristina Toutanova. Compositional generalization and natural language variation: Can a semantic parsing approach handle both? arXiv preprint arXiv:2010.12725, 2020.
|
| 310 |
+
|
| 311 |
+
Yu Su, Ahmed Hassan Awadallah, Madian Khabsa, P. Pantel, M. Gamon, and Mark J. Encarnacion. ´ Building natural language interfaces to web apis. Proceedings of the 2017 ACM on Conference on Information and Knowledge Management, 2017.
|
| 312 |
+
|
| 313 |
+
Yibo Sun, Duyu Tang, Nan Duan, Jingjing Xu, X. Feng, and B. Qin. Knowledge-aware conversational semantic parsing over web tables. In NLPCC, 2019a.
|
| 314 |
+
|
| 315 |
+
Yu Sun, Shuohuan Wang, Yukun Li, Shikun Feng, Xuyi Chen, Han Zhang, Xin Tian, Danxiang Zhu, Hao Tian, and Hua Wu. Ernie: Enhanced representation through knowledge integration, 2019b.
|
| 316 |
+
|
| 317 |
+
Gokhan Tur and Renato De Mori. Spoken language understanding: Systems for extracting semantic information from speech. John Wiley & Sons, 2011.
|
| 318 |
+
|
| 319 |
+
Bailin Wang, Ivan Titov, and Mirella Lapata. Learning semantic parsers from denotations with latent structured alignments and abstract programs. In Proceedings of EMNLP, 2019.
|
| 320 |
+
|
| 321 |
+
Bailin Wang, Richard Shin, Xiaodong Liu, Oleksandr Polozov, and Matthew Richardson. RAT-SQL: Relation-aware schema encoding and linking for text-to-SQL parsers. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 7567–7578, Online, July 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.acl-main.677.
|
| 322 |
+
|
| 323 |
+
Yushi Wang, Jonathan Berant, and Percy Liang. Building a semantic parser overnight. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 1332–1342, Beijing, China, July 2015. Association for Computational Linguistics. doi: 10.3115/v1/P15-1129.
|
| 324 |
+
|
| 325 |
+
Tsung-Hsien Wen, David Vandyke, Nikola Mrksic, Milica Gasic, Lina M Rojas-Barahona, Pei-Hao Su, Stefan Ultes, and Steve Young. A network-based end-to-end trainable task-oriented dialogue system. arXiv preprint arXiv:1604.04562, 2016.
|
| 326 |
+
|
| 327 |
+
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, R’emi Louf, Morgan Funtowicz, and Jamie Brew. Huggingface’s transformers: State-of-the-art natural language processing. ArXiv, abs/1910.03771, 2019.
|
| 328 |
+
|
| 329 |
+
Chien-Sheng Wu, Andrea Madotto, Ehsan Hosseini-Asl, Caiming Xiong, Richard Socher, and Pascale Fung. Transferable multi-domain state generator for task-oriented dialogue systems. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy, July 2019. Association for Computational Linguistics.
|
| 330 |
+
|
| 331 |
+
Chien-Sheng Wu, Steven C.H. Hoi, Richard Socher, and Caiming Xiong. TOD-BERT: Pre-trained natural language understanding for task-oriented dialogue. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2020.
|
| 332 |
+
|
| 333 |
+
Pengcheng Yin, Graham Neubig, Wen-tau Yih, and Sebastian Riedel. TaBERT: Pretraining for joint understanding of textual and tabular data. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 8413–8426, Online, July 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.acl-main.745.
|
| 334 |
+
|
| 335 |
+
Kang Min Yoo, Youhyun Shin, and Sang goo Lee. Data augmentation for spoken language understanding via joint variational generation, 2018.
|
| 336 |
+
|
| 337 |
+
Tao Yu, Michihiro Yasunaga, Kai Yang, Rui Zhang, Dongxu Wang, Zifan Li, and Dragomir Radev. Syntaxsqlnet: Syntax tree networks for complex and cross-domain text-to-sql task. In Proceedings of EMNLP. Association for Computational Linguistics, 2018a.
|
| 338 |
+
|
| 339 |
+
Tao Yu, Rui Zhang, Kai Yang, Michihiro Yasunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, Zilin Zhang, and Dragomir Radev. Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task. In EMNLP, 2018b.
|
| 340 |
+
|
| 341 |
+
Tao Yu, Rui Zhang, He Yang Er, Suyi Li, Eric Xue, Bo Pang, Xi Victoria Lin, Yi Chern Tan, Tianze Shi, Zihan Li, Youxuan Jiang, Michihiro Yasunaga, Sungrok Shim, Tao Chen, Alexander Fabbri, Zifan Li, Luyao Chen, Yuwen Zhang, Shreya Dixit, Vincent Zhang, Caiming Xiong, Richard Socher, Walter Lasecki, and Dragomir Radev. Cosql: A conversational text-to-sql challenge towards cross-domain natural language interfaces to databases. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and 9th International Joint Conference on Natural Language Processing. Association for Computational Linguistics, 2019a.
|
| 342 |
+
|
| 343 |
+
Tao Yu, Rui Zhang, Michihiro Yasunaga, Yi Chern Tan, Xi Victoria Lin, Suyi Li, Irene Li Heyang Er, Bo Pang, Tao Chen, Emily Ji, Shreya Dixit, David Proctor, Sungrok Shim, Vincent Zhang Jonathan Kraft, Caiming Xiong, Richard Socher, and Dragomir Radev. Sparc: Cross-domain semantic parsing in context. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy, 2019b. Association for Computational Linguistics.
|
| 344 |
+
|
| 345 |
+
Jian-Guo Zhang, Kazuma Hashimoto, Chien-Sheng Wu, Yao Wan, Philip S Yu, Richard Socher, and Caiming Xiong. Find or classify? dual strategy for slot-value predictions on multi-domain dialog state tracking. arXiv preprint arXiv:1910.03544, 2019a.
|
| 346 |
+
|
| 347 |
+
Jingqing Zhang, Yao Zhao, Mohammad Saleh, and Peter J Liu. Pegasus: Pre-training with extracted gap-sentences for abstractive summarization. arXiv preprint arXiv:1912.08777, 2019b.
|
| 348 |
+
|
| 349 |
+
Rui Zhang, Tao Yu, He Yang Er, Sungrok Shim, Eric Xue, Xi Victoria Lin, Tianze Shi, Caiming Xiong, Richard Socher, and Dragomir Radev. Editing-based sql query generation for cross-domain context-dependent questions. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and 9th International Joint Conference on Natural Language Processing. Association for Computational Linguistics, 2019c.
|
| 350 |
+
|
| 351 |
+
Yizhe Zhang, Siqi Sun, Michel Galley, Yen-Chun Chen, Chris Brockett, Xiang Gao, Jianfeng Gao, Jingjing Liu, and Bill Dolan. Dialogpt: Large-scale generative pre-training for conversational response generation. In ACL, system demonstration, 2020.
|
| 352 |
+
|
| 353 |
+
Victor Zhong, Caiming Xiong, and Richard Socher. Seq2sql: Generating structured queries from natural language using reinforcement learning. CoRR, abs/1709.00103, 2017.
|
| 354 |
+
|
| 355 |
+
Victor Zhong, M. Lewis, Sida I. Wang, and Luke Zettlemoyer. Grounded adaptation for zero-shot executable semantic parsing. The 2020 Conference on Empirical Methods in Natural Language Processing, 2020.
|
| 356 |
+
|
| 357 |
+
A DETAILED RESULTS
|
| 358 |
+
|
| 359 |
+
<table><tr><td></td><td>QM</td><td>IM</td><td>Q1</td><td>Q2</td><td>Q3</td><td>Q4</td><td>Q5</td></tr><tr><td>RAT-SQL + BERT</td><td>48.4</td><td>19.1</td><td>54.6</td><td>48.4</td><td>47.5</td><td>43.9</td><td>31.0</td></tr><tr><td>+RoBERTa</td><td>50.1</td><td>19.3</td><td>59.7</td><td>50.9</td><td>46.3</td><td>46.5</td><td>32.4</td></tr><tr><td>+ SCoRE</td><td>52.1</td><td>22.0</td><td>60.8</td><td>53.0</td><td>47.5</td><td>49.1</td><td>32.4</td></tr></table>
|
| 360 |
+
|
| 361 |
+
Table 10: Detailed results of COSQL on the dev set. $\mathrm { Q } _ { i }$ is the accuracy of the $i ^ { \mathrm { { t h } } }$ question in the conversation.
|
| 362 |
+
|
| 363 |
+
<table><tr><td></td><td>QM</td><td>IM</td><td>Q1</td><td>Q2</td><td>Q3</td></tr><tr><td>Wang et al. (2019)</td><td>51.0</td><td>22.0</td><td>68.3</td><td>48.0</td><td>38.5</td></tr><tr><td>+RoBERTa</td><td>62.8</td><td>33.2</td><td>77.2</td><td>61.7</td><td>52.1</td></tr><tr><td>+SCoRE</td><td>65.4</td><td>38.5</td><td>78.4</td><td>65.3</td><td>55.1</td></tr><tr><td colspan="6">Few-Shot (10% training data)</td></tr><tr><td>Wang et al. (2019)</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>+RoBERTa</td><td>53.3</td><td>21.2</td><td>71.0</td><td>52.5</td><td>36.6</td></tr><tr><td>+SCoRE</td><td>57.1</td><td>26.7</td><td>74.6</td><td>56.7</td><td>40.7</td></tr></table>
|
| 364 |
+
|
| 365 |
+
Table 11: Detailed results of SQA on the test set. $\mathrm { Q } _ { i }$ is the accuracy of the $i ^ { \mathrm { { t h } } }$ question in the conversation.
|
| 366 |
+
|
| 367 |
+
# B SYNTHESIZED EXAMPLES & TEMPLATES
|
| 368 |
+
|
| 369 |
+
Table 12 shows an example of the synthesized question-SQL pairs and their corresponding templates in our grammars.
|
| 370 |
+
Table 12: An example of synthetic conversational text-to-SQL data.
|
| 371 |
+
|
| 372 |
+
<table><tr><td>Turn #</td><td>Question-SQL Template</td><td>Synthesized Question-SQL</td></tr><tr><td>1</td><td>"Find the number of TABLEO with COLUMNO OPO VALUE0" SELECT COUNT(*)ORDER BY COLUMNO OPO VALUEO</td><td>“Find the number of football team with team hometown is not murrieta,california?" SELECT COUNT(*)WHERE TEAM_HOMETOWN !=“MURRIETA, CALIFORNIA"</td></tr><tr><td>2</td><td>“Can you give me their COLUMN1?” TCS: REPLACE(SELECT.COLUMNO), DEL(SELECT.AGG)</td><td>“Can you give me their football team player?” SELECTFOOTBALL_TEAM_PLAYERWHERETEAM_HOMETOWN !=“MURRIETA,CALIFORNIA”</td></tr><tr><td>3</td><td>“How about only show those with AsO cOL- UMN2?” TCS: ADD(ORDERBY_ASO.COLUMN2)</td><td>“How about only show those with the largest age?” SELECTFOOTBALL_TEAM_PLAYER WHERE TEAM_HOMETOWN !="MURRIETA,CALIFORNIA”ORDER BY AGE DESC LIMIT1</td></tr><tr><td>4</td><td>“AS1?” TCS: REPLACE(ORDERBY_AS1.COLUMN2)</td><td>“The smallest?” SELECTFOOTBALL_TEAM_PLAYER WHERE TEAM_HOMETOWN !="MURRIETA,CALIFORNIA”ORDER BY AGE AS LIMIT1</td></tr></table>
|
| 373 |
+
|
| 374 |
+
# C IMPLEMENTATION DETAILS
|
| 375 |
+
|
| 376 |
+
# C.1 SCORE
|
| 377 |
+
|
| 378 |
+
For pre-training SCORE on synthesized text-to-SQL data, we use ROBERTA $_ \mathrm { l a r g e }$ and pre-train it with batch size 12, gradient accumulation step 2, and maximum length 248. We use a learning rate 1e-5 and gradually reduce the learning rate without a warm-up period using Adam (Kingma & Ba, 2014) with epsilon 1e-8. $\mathbf { B E R T _ { b a s e } }$ is used in pre-training SCORE on synthesized MWOZ data because it contains longer conversations. We set the maximum length to 512 and batch size 24. All SCORE are pre-trained for 30 epochs, which usually take less than half a day on 8 V100 GPUs.
|
| 379 |
+
|
| 380 |
+
We experimented with SCORE pre-trained for 5, 10, and 30 epochs and found that most of the best downstream performances occur when base systems incorporate with SCORE pre-trained for less than 10 epochs. Our implementation is based on the Transformers library (Wolf et al., 2019).
|
| 381 |
+
|
| 382 |
+
# C.2 BASE MODELS
|
| 383 |
+
|
| 384 |
+
RAT-SQL: For a fair comparison, all RAT-SQL experiments are trained for $4 0 \mathrm { k }$ steps. We adopt the same hyperparameters as Shaw et al. (2018) except for learning rates. We find that learning rates of 1e-4 and 1e-5 for RAT and BERT respectively produce more stable results.
|
| 385 |
+
|
| 386 |
+
TripPy: We use the same hyperparameters for training TripPy on MWOZ as in (Heck et al., 2020) except we train it for 25 epochs (as opposed to 10 epochs as reported in (Heck et al., 2020)). When we train TripPy for 25 epochs, we get a new result that is higher (around $2 \%$ ) than the one reported in (Heck et al., 2020). Similarly, when we train TripPy with SCORE, we train it for 25 epochs.
|
| 387 |
+
|
| 388 |
+
SOM-DST: We use the same hyperparameters from Kim et al. (2020) for all SOM-DST experiments on MWOZ.
|
| 389 |
+
|
| 390 |
+
Wang et al. (2019): We use the same hyperparameters from Wang et al. (2019) for SQA experiments. Note that Herzig et al. (2020) outperform Wang et al. (2019) on SQA because (1) they don’t generate logic forms but select table cells and applying aggregation operators. Wang et al. (2019) generate latent programs, yet the grammar of the latent program can only cover $87 \%$ questions. (2) They reduce the search space by reusing the previous question answer. We choose Wang et al. (2019) as our base model because generating symbolic programs has many practical advantages (even at a cost of around $1 \%$ accuracy drop), such as showing interpretable reasoning steps, enabling formal reasoning, and operationalization without GPU/TPU accelerators.
|
| 391 |
+
|
| 392 |
+
# D PRE-TRAINING COST
|
| 393 |
+
|
| 394 |
+
We test the performance of SCORE with respect to the number of pre-training epochs. Figure 3 shows that the best performance of the downstream tasks is usually achieved in early epochs, more specifically 5 for SPARC and COSQL and 15 for MWOZ. Longer pre-training time does not improve or even hurts the performance. One possible reason is that longer pre-training makes SCORE overfit to the synthesized data whose utterances are unnatural.
|
| 395 |
+
|
| 396 |
+

|
| 397 |
+
Figure 3: The effect of pre-training time.
|
| 398 |
+
|
| 399 |
+
As for the data, as shown in Table 5, even if SCORE is pre-trained with only a relatively
|
| 400 |
+
|
| 401 |
+
small amount of synthesized data (without the MLM loss), most of the tasks can achieve much higher performances. With a relatively smaller training corpus and shorter training time compared to other pre-trained language models, SCORE is efficient in time and data.
|
| 402 |
+
|
| 403 |
+
# E ADDITIONAL RESULTS
|
| 404 |
+
|
| 405 |
+
Effect of TCS We ran the TCS only experiment on SPARC, and will add TCS only results (including for other tasks) to Table 5 in the final version. SCORE (TCS only) outperforms RoBERTa by $2 . 4 \%$ so far (note: training is still going on) on SPARC $3 9 . 1 \%$ vs. $3 6 . 7 \%$ ). Also, as discussed in Section 4, we also provide a secondary evidence by testing the effectiveness of TCS on SPARC, COSQL, and SQA by adding TCS to CCS (CCS only vs. $\mathrm { C C S + T C S }$ ), SCORE (with TCS) gains improvements of $1 . 2 \%$ on SPARC and $0 . 8 \%$ on COSQL, and $4 . 4 \%$ on SQA.
|
| 406 |
+
|
| 407 |
+
Incorporating Additional Examples Used in Synthetic Grammar Induction As we mentioned in Section 2.3, we used about 500 examples from SPARC to induce the grammar for data synthesis in pre-training. For a fair comparison, we also report the results of incorporating the additional SPARC examples in COSQL and SQA. More specifically, we directly concatenate the additional SPARC examples to COSQL training set, and train RAT-SQL $^ +$ ROBERTA on it, which slightly improves the performance ( $1 9 . 6 \%$ vs. $1 9 . 3 \%$ ) but not as large as SCORE $2 2 . 0 \%$ vs. $1 9 . 3 \%$ ).’ Also, because SQA is weakly-supervised sequential question answering, which differs from SPARC, we first fine-tune ROBERTA on the additional SPARC examples using CCS, and then apply it to SQA. In this way, the ROBERTA trained with additional SPARC examples achieves a similar performance as the original one $6 2 . 7 \%$ vs $6 2 . 8 \%$ ).
|
| 408 |
+
|
| 409 |
+
Performance Comparison with ToD-BERT ToD-BERT is pre-trained on human-annotated questions with both MLM and response contrastive objectives. To compare TOD-BERT with SCORE, we ran experiments of RAT-SQL $^ +$ ToD-BERT on SPARC. SCORE $( 6 2 . 2 \% )$ outperforms ToD-BERT $( 5 4 . 6 \% )$ by $7 . 6 \%$ .
|
| 410 |
+
|
| 411 |
+
Comparison with Finetuning Larger Language Models Based on our experiments and other published results, we didn’t find existing larger LMs (BART (Lewis et al., 2020), T5 (Raffel et al., 2020), GPT-2 (Radford et al., 2019)) outperform custom models $^ +$ BERT on CSP tasks. Our evidence is based on Spider (Yu et al., 2018b), which is the single-turn version of SParC and CoSQL. For T5, Shaw et al. (2020) applied T5 as seq2seq to Spider, and compared with RAT-SQL $^ +$ BERT-Large, T5-Base performs much worse $5 7 . 1 \%$ vs. $6 9 . 6 \%$ ), and T5-3B improves only 0.3, but it is 6 times larger. Moreover, for Bart, we have performed experiments on Spider and we found that BART cannot outperform custom models $^ +$ BERT: RAT-SQL $^ +$ BERT $6 9 . 7 \%$ , RAT-SQL $^ +$ BART encoder $67 . 8 \%$ , BART encoder $^ +$ decoder (406M, as a seq2seq task) $6 2 . 4 \%$ . In Rubin & Berant (2020), BART didn’t outperform BERT either. As for GPT-2, Wu et al. (2020) and Hosseini-Asl et al. (2020) found it does not outperform BERT on MWOZ.
|
| 412 |
+
|
| 413 |
+
# F TASK-ORIENTED DIALOGUE DATASETS
|
| 414 |
+
|
| 415 |
+
<table><tr><td rowspan=1 colspan=1>Name</td><td rowspan=1 colspan=1>#Dialogue</td><td rowspan=1 colspan=1>#Utterance</td><td rowspan=1 colspan=1>Avg. Turn</td><td rowspan=1 colspan=1>#Domain</td></tr><tr><td rowspan=1 colspan=1>MetaLWOZ (Lee et al., 2019)</td><td rowspan=1 colspan=1>37,884</td><td rowspan=1 colspan=1>432,036</td><td rowspan=1 colspan=1>11.4</td><td rowspan=1 colspan=1>47</td></tr><tr><td rowspan=1 colspan=1>Schema (Rastogi et al., 2019)</td><td rowspan=1 colspan=1>22,825</td><td rowspan=1 colspan=1>463,284</td><td rowspan=1 colspan=1>20.3</td><td rowspan=1 colspan=1>17</td></tr><tr><td rowspan=1 colspan=1>Taskmaster (Byrne et al.,2019)</td><td rowspan=1 colspan=1>13,215</td><td rowspan=1 colspan=1>303,066</td><td rowspan=1 colspan=1>22.9</td><td rowspan=1 colspan=1>6</td></tr><tr><td rowspan=1 colspan=1>MWOZ (Budzianowski etal.,2018)</td><td rowspan=1 colspan=1>10,420</td><td rowspan=1 colspan=1>71,410</td><td rowspan=1 colspan=1>6.9</td><td rowspan=1 colspan=1>7</td></tr><tr><td rowspan=1 colspan=1>MSR-E2E (Li et al.,2018)</td><td rowspan=1 colspan=1>10.087</td><td rowspan=1 colspan=1>74,686</td><td rowspan=1 colspan=1>7.4</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>SMD (Eric and Manning,2017)</td><td rowspan=1 colspan=1>3,031</td><td rowspan=1 colspan=1>15.928</td><td rowspan=1 colspan=1>5.3</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>Frames (Asri et al.,2017)</td><td rowspan=1 colspan=1>1,369</td><td rowspan=1 colspan=1>19,986</td><td rowspan=1 colspan=1>14.6</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>WOZ (Mrksic et al., 2016)</td><td rowspan=1 colspan=1>1,200</td><td rowspan=1 colspan=1>5,012</td><td rowspan=1 colspan=1>4.2</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>CamRest676 (Wen et al.,2016)</td><td rowspan=1 colspan=1>676</td><td rowspan=1 colspan=1>2,744</td><td rowspan=1 colspan=1>4.1</td><td rowspan=1 colspan=1>1</td></tr></table>
|
| 416 |
+
|
| 417 |
+
Figure 4: Data statistics of human-annotated task-oriented dialogue datasets used in $\mathrm { W u }$ et al. (2020).
|
parse/train/oyZxhRI2RiE/oyZxhRI2RiE_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/oyZxhRI2RiE/oyZxhRI2RiE_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/oyZxhRI2RiE/oyZxhRI2RiE_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJg3zxBYwH/rJg3zxBYwH.md
ADDED
|
@@ -0,0 +1,358 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LEARNING LIKELIHOODS WITH CONDITIONAL NORMALIZING FLOWS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Normalizing Flows (NFs) are able to model complicated distributions $p _ { Y } ( y )$ with strong inter-dimensional correlations and high multimodality by transforming a simple base density $p _ { Z } ( z )$ through an invertible neural network under the change of variables formula. Such behavior is desirable in multivariate structured prediction tasks, where handcrafted per-pixel loss-based methods inadequately capture strong correlations between output dimensions. We present a study of conditional normalizing flows (CNFs), a class of NFs where the base density to output space mapping is conditioned on an input $\mathbf { X }$ , to model conditional densities $p _ { Y \mid X } ( y | x )$ . CNFs are efficient in sampling and inference, they can be trained with a likelihood-based objective, and CNFs, being generative flows, do not suffer from mode collapse or training instabilities. We provide an effective method to train continuous CNFs for binary problems and in particular, we apply these CNFs to super-resolution and vessel segmentation tasks demonstrating competitive performance on standard benchmark datasets in terms of likelihood and conventional metrics.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Learning conditional distributions $p _ { Y | X } ( \mathbf { y } | \mathbf { x } )$ is one of the oldest problems in machine learning. When the output $\mathbf { y }$ is high-dimensional this is a particularly challenging task, and the practitioner is left with many design choices. Do we factorize the conditional? If not, do we model correlations with, say, a conditional random field (Prince, 2012)? Do we use a unimodal distribution? How fat should the tails be? Do we use an explicit likelihood at all, or use implicit methods (Mohamed & Rezende, 2015) such as a GAN (Goodfellow et al., 2014)? Do we quantize the output? Ideally, the practitioner should not have to make design choices at all, and the distribution should be learned from the data.
|
| 12 |
+
|
| 13 |
+
In the field of density estimation normalizing flows (NFs) are a relatively new family of models (Rezende & Mohamed, 2015). NFs model complicated high dimensional marginal distributions $p _ { Y } ( \mathbf { y } )$ by transforming a simple base distribution or prior $p _ { Z } ( \mathbf { z } )$ through a learnable, invertible mapping $f _ { \phi }$ and then applying the change of variables formula. NFs are efficient in inference and sampling, are able to learn inter-dimensional correlations and multi-modality, and they are exact likelihood models, amenable to gradient-based optimization.
|
| 14 |
+
|
| 15 |
+
Flow-based generative models (Dinh et al., 2016) are generally trained on the image space, and are in some cases computationally efficient in both the forward and inverse direction. These are advantageous over other likelihood based methods because $i _ { , }$ ) sampling is efficient opposed to autoregressive models (Van Oord et al., 2016), and $i i$ ) flows admit exact likelihood optimization in contrast with variational autoencoders (Kingma & Welling, 2014).
|
| 16 |
+
|
| 17 |
+
Conditional random fields directly model correlations between pixels, and have been fused with deep learning (Chen et al., 2016). However, they require the practitioner to choose which pixels have pairwise interactions. Another approach uses adversarial training (Goodfellow et al., 2014). A downside is that the training procedure can be unstable and they are difficult to evaluate quantitatively.
|
| 18 |
+
|
| 19 |
+
We propose to learn the likelihood of conditional distributions with few modeling choices using Conditional Normalizing Flows (CNFs). CNFs can be harnessed for conditional distributions $p _ { Y | X } ( \mathbf { y } | \mathbf { x } )$
|
| 20 |
+
|
| 21 |
+
by conditioning the prior and the invertible mapping on the input x. In particular, we apply conditional flows to super-resolution (Wang et al., 2018) and vessel segmentation (Staal et al., 2004). We evaluate their performance gains on multivariate prediction tasks along side architecturally-matched factored baselines by comparing likelihood and application specific evaluation metrics.
|
| 22 |
+
|
| 23 |
+
# 2 BACKGROUND
|
| 24 |
+
|
| 25 |
+
In the following, we present the relevant background material on normalizing flows and structured prediction. This section covers the change of variables formula, invertible modules, variational dequantization and conventional likelihood optimization.
|
| 26 |
+
|
| 27 |
+
# 2.1 NORMALIZING FLOWS
|
| 28 |
+
|
| 29 |
+
A standard NF in continuous space is based on a simple change of variables formula. Given two spaces of equal dimension $\mathcal { Z }$ and $\mathcal { V }$ ; a once-differentiable, parametric, bijective1 mapping $f _ { \phi } : \mathcal { V } $ $\mathcal { Z }$ , where $\phi$ are the parameters of $f$ ; and a prior distribution $p _ { Z } ( \mathbf { z } )$ , we can model a complicated distribution $p _ { Y } ( \mathbf { y } )$ as
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
p _ { Y } ( \mathbf { y } ) = p _ { Z } ( f _ { \phi } ( \mathbf { y } ) ) \left. \frac { \partial f _ { \phi } ( \mathbf { y } ) } { \partial \mathbf { y } } \right. .
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+
The term $| \partial f _ { \phi } ( \mathbf { y } ) / \partial \mathbf { y } |$ is the Jacobian determinant of $f _ { \phi }$ , evaluated at $\mathbf { y }$ and it accounts for volume changes induced by $f _ { \phi }$ . The transformation $f _ { \phi }$ introduces correlations and multi-modality in $p _ { Y }$ . The main challenge in the field of normalizing flows is designing the transformation $f _ { \phi }$ . It has to be $i ,$ bijective, $i i _ { . }$ ) have an efficient and tractable Jacobian determinant, iii) be from a ‘flexible’ model class. In addition, $i \nu _ { . }$ ) for fast sampling the inverse needs to be efficiently computable. Below we briefly state which invertible modules are used in our architectures, obeying the aforementioned points.
|
| 36 |
+
|
| 37 |
+
Coupling layers Affine coupling layers (Dinh et al., 2016) are invertible, nonlinear layers. They work by splitting the input $\mathbf { z }$ into two components $\mathbf { z } _ { 0 }$ and $\mathbf { z } _ { 1 }$ and nonlinearly transforming $\mathbf { z } _ { 0 }$ as a function of $\mathbf { z } _ { 1 }$ , before reconcatenating the result. If ${ \bf z } = [ { \bf z } _ { 0 } , { \bf z } _ { 1 } ]$ and $\mathbf { y } = [ \mathbf { y } _ { 0 } , \mathbf { y } _ { 1 } ]$ this is
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\begin{array} { r l r l } & { \mathbf { y } _ { 0 } = s ( \mathbf { z } _ { 1 } ) \cdot \mathbf { z } _ { 0 } + t ( \mathbf { z } _ { 1 } ) \qquad } & & { \mathbf { z } _ { 0 } = ( \mathbf { z } _ { 0 } - t ( \mathbf { y } _ { 1 } ) ) / s ( \mathbf { y } _ { 1 } ) } \\ & { \mathbf { y } _ { 1 } = \mathbf { z } _ { 1 } \qquad } & & { \mathbf { z } _ { 1 } = \mathbf { y } _ { 1 } } \end{array}
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
Where the scale $s ( \cdot )$ and translation $t ( \cdot )$ functions can be any function, typically implemented with a CNN. Similar conditioning with normalizing flows has been done in previous works by Mohamed & Rezende (2015) and Kingma et al. (2016b).
|
| 44 |
+
|
| 45 |
+
Invertible $\textbf { 1 x 1 }$ Convolutions Proposed in Kingma & Dhariwal (2018), invertible $1 \times 1$ convolutions help mix information across channel dimensions. We implement them as regular $1 \times 1$ convolutions and for the inverse, we convolve with the inverse of the kernel.
|
| 46 |
+
|
| 47 |
+
Squeeze layers Squeeze layers (Dinh et al., 2016) are used to compress the spatial resolution of activations. These also help with increasing spatial receptive field of pixels in the deeper activations.
|
| 48 |
+
|
| 49 |
+
Split Prior Split priors (Dinh et al., 2016) work by spliting a set of activations $\mathbf { z }$ into two components $\mathbf { z } _ { 0 }$ and $\mathbf { z } _ { 1 }$ . We then condition $\mathbf { z } _ { 1 }$ on $\mathbf { z } _ { 0 }$ using a simple base density e.g. $p ( \mathbf { z } _ { 1 } | \mathbf { z } _ { 0 } ) =$ $\mathbf { \bar { \mathcal { N } } } ( \mathbf { z } _ { 1 } ; \mu ( \mathbf { z } _ { 0 } ) , \sigma ^ { 2 } ( \mathbf { z } _ { 0 } ) )$ , where $\mu ( \cdot )$ and $\sigma ^ { 2 } ( \cdot )$ are neural networks. The component $\mathbf { z } _ { 0 }$ can be modeled by further flow layers. This prior, is useful for modeling hierarchical correlations between dimensions, and also helps reduce computation, since $\mathbf { z } _ { 0 }$ is reduced in size.
|
| 50 |
+
|
| 51 |
+
Variational dequantization When modeling discrete data, Theis et al. (2016) introduced the concept of dequantization. For this, they modeled the probability mass function over $\mathbf { y }$ as a latent variable model
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
P _ { \mathrm { m o d e l } } ( \mathbf { y } ) = \int _ { \mathcal { V } } P ( \mathbf { y } | \mathbf { v } ) p ( \mathbf { v } ) \mathrm { d } \mathbf { v } = \int _ { \mathcal { V } } p ( \mathbf { y } , \mathbf { v } ) \mathrm { d } \mathbf { v }
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
where the latent variables $\textbf { v } \in { \mathcal { V } }$ are continuous-valued. This is a convenient model to use, since the marginal $p ( \mathbf { v } )$ , living on a continuous sample space, can be modelled with a continuous NF. The distribution $P ( \mathbf { y } | \mathbf { v } )$ is known as the quantizer and is typically an indicator function $P ( \mathbf { y } | \mathbf { v } ) = \mathbb { I } [ \mathbf { v } \in$ $\mathbf { y } + [ 0 , 1 ) ^ { D } ]$ . Other works (Hoogeboom et al., $2 0 1 9 \mathrm { a }$ ; Tran et al., 2019) directly model $P _ { \mathrm { m o d e l } } ( \mathbf { y } )$ with a discrete-valued flow, but these are known to be difficult to optimize. As an extension of dequantization, Ho et al. (2019) introduced a variational distribution $\bar { \bf q } ( { \bf v } | { \bf y } )$ , called a dequantizer, and write a lower bound on the data log-likelihood using Jensen’s inequality as follows
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\begin{array} { r l } & { \mathbb { E } _ { P _ { \mathrm { d a t a } } ( \mathbf { y } ) } \log P _ { \mathrm { m o d e l } } ( \mathbf { y } ) = \mathbb { E } _ { P _ { \mathrm { d a t a } } ( \mathbf { y } ) } \log \displaystyle \int p ( \mathbf { y } , \mathbf { v } ) \mathrm { d } \mathbf { v } } \\ & { \qquad = \mathbb { E } _ { P _ { \mathrm { d a t a } } ( \mathbf { y } ) } \log \displaystyle \int \frac { q ( \mathbf { v } | \mathbf { y } ) } { q ( \mathbf { v } | \mathbf { y } ) } p ( \mathbf { y } , \mathbf { v } ) \mathrm { d } \mathbf { v } \geq \mathbb { E } _ { P _ { \mathrm { d a t a } } ( \mathbf { y } ) } \int q ( \mathbf { v } | \mathbf { y } ) \log \displaystyle \frac { p ( \mathbf { y } , \mathbf { v } ) } { q ( \mathbf { v } | \mathbf { y } ) } \mathrm { d } \mathbf { v } } \end{array}
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
Noting that the joint $p ( \mathbf { y } , \mathbf { v } ) = \mathbb { I } [ \mathbf { v } \in \mathbf { y } + [ 0 , 1 ) ^ { D } ] p ( \mathbf { v } )$ , we see that the dequantizer distribution $q ( \mathbf { v } | \mathbf { y } )$ must be defined such that $\mathbf { v } \in \mathbf { y } + [ 0 , 1 ) ^ { D }$ , otherwise $p ( \mathbf { y } , \mathbf { v } ) = 0$ and the lower-bound is undefined. Restricting $q ( \mathbf { v } | \mathbf { y } )$ to satisfy this condition, results in the following variational dequantization bound
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\mathbb { E } _ { P _ { \mathrm { d a t a } } ( \mathbf { y } ) } \log P _ { \mathrm { m o d e l } } ( \mathbf { y } ) \geq \mathbb { E } _ { P _ { \mathrm { d a t a } } ( \mathbf { y } ) } \int q ( \mathbf { v } | \mathbf { y } ) \log \frac { p ( \mathbf { v } ) } { q ( \mathbf { v } | \mathbf { y } ) } \mathrm { d } \mathbf { v } .
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
# 2.2 STRUCTURED PREDICTION
|
| 70 |
+
|
| 71 |
+
Structured prediction tasks such as image segmentation or super-resolution, can be probabilistically framed as learning an unknown target distribution $p ^ { * } ( \mathbf { y } \vert \mathbf { x } )$ , with an input $\mathbf { x } \in \mathcal { X }$ and a target $\mathbf { y } \in \mathcal { V }$ . In practice with deep learning models, the unknown distribution is often learned by a factored model:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
p ( \mathbf { y } | \mathbf { x } ) = \prod _ { d = 1 } ^ { D } p ( y _ { d } | \mathbf { x } ) ,
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where $y _ { d }$ represents the dth dimension of y. Several loss-based optimization methods are a special case of this factored model. The mean squared error is equivalent to a product of normal distributions with equal and fixed standard deviation. Other examples are: cross entropy, equivalent to a product of log categorical distributions, and binary cross entropy, equivalent to a product of log Bernoulli distributions.
|
| 78 |
+
|
| 79 |
+
With factorized independent likelihoods, individual dimensions of y are assumed to be conditionally independent. As a result, sampling leads to results with uncorrelated noise over the output dimensions. In the literature, a fix for this problem is to visualize the mode of the distribution and interpret that as a prediction. However, because the likelihood was optimized assuming a conditionally independent noise distribution, these modes tend to be blurry and lack crisp details.
|
| 80 |
+
|
| 81 |
+
# 3 METHOD
|
| 82 |
+
|
| 83 |
+
In this section we present our main innovations. i) learning conditional likelihoods using CNFs and $i i$ ) a variational dequantization framework for binary random variables.
|
| 84 |
+
|
| 85 |
+
# 3.1 CONDITIONAL NORMALIZING FLOWS
|
| 86 |
+
|
| 87 |
+
We propose to learn conditional likelihoods using conditional normalizing flows for complicated target distributions in multivariate prediction tasks. Take an input $\mathbf { x } \in \mathcal { X }$ and a regression target $\mathbf { y } \in \mathcal { V }$ . We learn a complicated distribution $p _ { Y | X } ( \mathbf { y } | \mathbf { x } )$ using a conditional prior $p _ { Z | X } ( \mathbf { z } | \mathbf { x } )$ and a mapping $f _ { \phi } : \mathcal { V } \times \mathcal { X } \to \mathcal { Z }$ , which is bijective in $\mathcal { V }$ and $\mathcal { Z }$ . The likelihood of this model is:
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
p _ { Y | X } ( \mathbf { y } | \mathbf { x } ) = p _ { Z | X } ( \mathbf { z } | \mathbf { x } ) \left| \frac { \partial \mathbf { z } } { \partial \mathbf { y } } \right| = p _ { Z | X } ( f _ { \phi } ( \mathbf { y } , \mathbf { x } ) | \mathbf { x } ) \left| \frac { \partial f _ { \phi } ( \mathbf { y } , \mathbf { x } ) } { \partial \mathbf { y } } \right| .
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
Notice that the difference between Equations 1 and 7 is that all distributions are conditional and the flow has a conditioning argument of $\mathbf { x }$ .
|
| 94 |
+
|
| 95 |
+
The generative process from x to $\mathbf { y }$ (shown in Figure 1) can be described by first sampling $\mathbf { z } \sim$ $p _ { Z | X } ( \mathbf { z } | \mathbf { x } )$ from a simple base density with its parameters conditioned on $\mathbf { x }$ (for us this is a diagonal Gaussian) and then passing it through a sequence of bijective mappings $f _ { \phi } ^ { - 1 } ( \mathbf { z } ; \mathbf { x } )$ . This allows for modelling multimodal conditional distributions in y, which is typically uncommon.
|
| 96 |
+
|
| 97 |
+
For the training procedure, the process runs in reverse. We begin with label $\mathbf { y }$ and conditioning input $\mathbf { x }$ . We ‘flow’ the label back through $f _ { \phi }$ to yield $\mathbf { z } = f _ { \phi } ( \mathbf { y } ; \mathbf { x } )$ , and then we evaluate the log-likelihood of the parameters of the prior, given this transformed label $\mathbf { z }$ . The flow and prior parameters can be optimized using stochastic gradient descent and training in minibatches in the usual fashion. Note that this style of training a conditional density model $p _ { Y | X } ( \mathbf { y } | \mathbf { x } )$ differs fundamentally from traditional models, because we compute the log-likelihood in $\mathbf { z }$ -space and not y-space. As a result, we are not biasing our results with an arbitrary choice of output-space likelihood or in the case of this paper, handcrafted image loss. Instead, one could interpret this method as learning the correlational and multimodal structure of the likelihood or simply put loss-learning.
|
| 98 |
+
|
| 99 |
+

|
| 100 |
+
Figure 1: Diagram of our model in the train and sampling phases. Solid lines represent deterministic mappings and dashed lines represent sampling. The conditioning variable enters the network in base density $p ( \mathbf { z } | \mathbf { x } )$ and the bijective mappings $f ( \mathbf { y } , \mathbf { x } )$ .
|
| 101 |
+
|
| 102 |
+
Conditional modules In our work, the conditioning is introduced in the prior, the split priors, and the affine coupling modules. For the prior, we set the mean and variance as functions of $\mathbf { x }$ . For the split prior, we add $\mathbf { x }$ as a conditoning argument to the conditional $p ( \mathbf { z } _ { 1 } | \mathbf { z } _ { 0 } , \mathbf { x } )$ . And for the affine coupling layers, we pass $\mathbf { x }$ to the scale and translation networks so that
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
\begin{array} { r l } & { \mathrm { C o n d i t i o n a l ~ P r i o r } \qquad p ( \mathbf { z } | \mathbf { x } ) = \mathcal { N } ( \mathbf { z } ; \mu ( \mathbf { x } ) , \sigma ^ { 2 } ( \mathbf { x } ) ) } \\ & { \mathrm { C o n d i t i o n a l ~ S p l i t ~ P r i o r } \quad p ( \mathbf { z } _ { 1 } | \mathbf { z } _ { 0 } , \mathbf { x } ) = \mathcal { N } ( \mathbf { z } _ { 1 } ; \mu ( \mathbf { z } _ { 0 } , \mathbf { x } ) , \sigma ^ { 2 } ( \mathbf { z } _ { 0 } , \mathbf { x } ) ) } \\ & { \mathrm { C o n d i t i o n a l ~ C o u p l i n g } \quad \mathbf { y } _ { 0 } = s ( \mathbf { z } _ { 1 } , \mathbf { x } ) \cdot \mathbf { z } _ { 0 } + t ( \mathbf { z } _ { 1 } , \mathbf { x } ) ; \qquad \mathbf { y } _ { 1 } = \mathbf { z } _ { 1 } } \end{array}
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
In practice these functions are implemented using deep neural networks. First the conditioning term $\mathbf { x }$ is transformed into a rich representation $\mathbf { h } = g ( \mathbf { x } )$ using a large network $g$ . Subsequently, each function in the flow is applied to a concatenation $[ \cdot , \cdot ]$ of $\mathbf { h }$ and the relevant part of $\mathbf { z }$ . For example, the translation of a conditional coupling is computed as $t ( \mathbf { z } _ { 1 } , \mathbf { x } ) = \mathbf { N N } ( [ \mathbf { z } _ { 1 } , \mathbf { h } ] )$ .
|
| 109 |
+
|
| 110 |
+
# 3.2 VARIATIONAL DEQUANTIZATION FOR BINARY RANDOM VARIABLES
|
| 111 |
+
|
| 112 |
+
We generalize the variational dequantization scheme for the binary setting. Let $\mathbf { y } \in \{ 0 , 1 \} ^ { D }$ be a multivariate binary random variable and $\mathbf { v } \in \mathbb { R } ^ { D }$ its dequantized representation. In Ho et al. (2019) the bound is not guaranteed to be tight, since there is a domain mismatch in the support of $p ( \mathbf { v } )$ and the variational dequantizer $q ( \mathbf { v } | \mathbf { y } )$ . Technically, if $p ( \mathbf { v } )$ is modeled as a bijective mapping from a Gaussian distribution where the mapping only has finite volume changes, then the support of $p ( \mathbf { v } )$ is unbounded. On the otherhand, the support of the dequantizer is bounded and so we have to redefine either the dequantizer to map to all of $\mathbb { R } ^ { D }$ or restrict the support of the flow to a bounded volume inside $\mathbb { R } ^ { D }$ . We resolve this by dequantizing with half-infinite noise, where
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
\mathbf { v } | \mathbf { y } , \mathbf { z } = 0 . 5 + \mathrm { s i g n } ( \mathbf { y } - 0 . 5 ) \cdot \mathrm { s o f t p l u s } ( \mathrm { N N } ( \mathbf { z } ) ) .
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
The softplus guarantees that samples from the neural network NN are only positive. If $\mathbf { y }$ is 1, the term $\mathrm { s i g n } ( \mathbf { y } - 0 . 5 )$ outputs positive-valued noise and if $\mathbf { y }$ is 0 the noise is negative-valued.
|
| 119 |
+
|
| 120 |
+
# 4 RELATED WORK
|
| 121 |
+
|
| 122 |
+
Normalizing flows were originally introduced to machine learning to learn a flexible variational posterior, a conditional distribution, in VAEs (Rezende & Mohamed, 2015; Kingma et al., 2016a; van den Berg et al., 2018). Flow-based generative models (Dinh et al., 2016; Papamakarios et al., 2017; Huang et al., 2018; Kingma & Dhariwal, 2018; Hoogeboom et al., 2019b; Grathwohl et al., 2019; Cao et al., 2019; Chen et al., 2019) are typically trained directly in the data space. Several of these are designed to be fast to invert, which makes them suitable for drawing samples after training.
|
| 123 |
+
|
| 124 |
+
Different versions and applications of conditional normalizing flows include Agrawal & Dukkipati (2016) who utilize flows in the decoder of Variational AutoEncoders Kingma & Welling (2014), which are conditioned on the latent variable. Trippe & Turner (2018) who utilize conditional flows for prediction problems in a Bayesian framework for density estimation. Atanov et al. (2019) introduce a semi-conditional flow that provides an efficient way to learn from unlabeled data for semisupervised classification problems. Very recently, Ardizzone et al. (2019) have proposed conditional flow-based generative models for image colorization, which differs from our work in training objective, architecture and applicability to binary segmentation. Autoregressive models (Van Oord et al., 2016) have also been studied for conditional image generation van den Oord et al. (2016) but are generally slow to sample from.
|
| 125 |
+
|
| 126 |
+
Adversarial methods (Goodfellow et al., 2014) have widely been applied to (conditional) image density modeling tasks (Vu et al., 2019; Sajjadi et al., 2017b; Yuan et al., 2018; Mechrez et al., 2018), because they tend to generate high-fidelity images. Disadvantages of adversarial methods are that they can be complicated to train, and it is difficult to obtain likelihoods. For this reason, it can be hard to assess whether they are overfitting or generalizing.
|
| 127 |
+
|
| 128 |
+
# 5 EXPERIMENTS
|
| 129 |
+
|
| 130 |
+
Here we explain our experiments into super-resolution and vessel segmentation. All models were implemented using the PyTorch framework.
|
| 131 |
+
|
| 132 |
+
# 5.1 SINGLE IMAGE SUPER RESOLUTION
|
| 133 |
+
|
| 134 |
+
Single Image Super Resolution (SISR) methods aims to find a high resolution image $x _ { h r }$ given a single (downsampled) low resolution image $x _ { l r }$ . Framing this problem as learning a likelihood, we utilize a CNF to learn the distribution $p ( x _ { h r } | x _ { l r } )$ . To compare our method we also train a factorized baseline likelihood model with comparable architectures and parameter budget. The factorized baseline uses a product of discretized logistic distributions (Kingma et al., 2016a; Salimans et al., 2017). All methods are compared on negative $\log _ { 2 }$ -likelihood if available, which has the information theoretic interpretation bits per dimensions. In addition, we evaluate using SSIM (Wang et al., 2004) and PSNR metrics.
|
| 135 |
+
|
| 136 |
+
Implementation Details The flow is based on the (Dinh et al., 2016; Kingma & Dhariwal, 2018) multi-scale architectures. Each step of flow consists of $K$ subflows and $L$ levels. One subflow consists of an activation normalization, $1 \times 1$ convolution, and our conditional coupling layer. After completing a level, half of the representation is factored-out and modeled using our conditional split prior. After all levels have been completed, our conditional prior is used to model the final part of the latent variable.
|
| 137 |
+
|
| 138 |
+
The conditioning variable $x _ { l r }$ is transformed into the feature representation h using Residual-inResidual Dense Block (RRDB) architecture (Wang et al., 2018), consisting of 16 residual-in-residual blocks. To match the parameter budget, the channel growth is 55 for the baseline and the growth is 32 for the CNF.
|
| 139 |
+
|
| 140 |
+
Data The models are trained on natural image datasets, Imagenet32 and Imagenet64 (Chrabaszcz et al., 2017). Since the dataset has no test set, we use its validation images as a test set. For validation we take 10000 images from the train images. The performance is always reported on the test set unless specified otherwise. We evaluate our models on widely used benchmark datasets Set5 (Bevilacqua et al., 2012), Set14 (Zeyde et al., 2012) and BSD100 (Huang et al., 2015). At test time, we pad the test images with zeros at right and bottom so that they are square and compatible with squeeze layers. When evaluating on SSIM and PSNR, we can extract the patch with the exact image shape. For all datasets the LR images are obtained using MATLABs bicubic kernel function with reducing aliasing artifacts following Wang et al. (2018). For these experiments, the pixel values are dequantized by adding uniform noise (Theis et al., 2016).
|
| 141 |
+
|
| 142 |
+
Training Settings We train on ImageNet32 and ImageNet64 for 200, 000 iterations with mini batches of size 64, and a learning rate of 0.0001 using the Adam optimizer (Kingma & Ba, 2015).
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
Figure 2: Super resolution results on the Imagenet64 test data. Samples are taken from the CNF $x _ { h r } \sim p ( x _ { h r } | x _ { l r } )$ and the mode is visualized for the factorized baseline model. Best viewed electronically.
|
| 146 |
+
|
| 147 |
+
The high-resolution image $x _ { h r }$ either the original $3 2 \times 3 2$ or $6 4 \times 6 4$ original input images. The flow architecture is build with $L = 2$ levels and $K = 8$ .
|
| 148 |
+
|
| 149 |
+
# 5.1.1 EVALUATION
|
| 150 |
+
|
| 151 |
+
In this section the performance of CNFs for SISR is compared against a baseline likelihood model on ImageNet32 and ImageNet64. Their performance measured in $\log _ { 2 }$ -likelihood (bits per dimension) is shown in Table 1, which show that the CNF outperforms the factorized baseline in likelihood. Recall that the baseline model is factorized and conditionally independent. These results indicate that it is advantageous to capture the correlations and multi-modality present in the data.
|
| 152 |
+
|
| 153 |
+
Table 1: Comparison of likelihood learning with CNFs and factorized discrete baseline on ImageNet32 and ImageNet64 measured in bits per dimensions.
|
| 154 |
+
|
| 155 |
+
<table><tr><td>Dataset</td><td>CNF</td><td>factorized LL</td></tr><tr><td>ImageNet32</td><td>3.01</td><td>4.00</td></tr><tr><td>ImageNet64</td><td>2.90</td><td>3.61</td></tr></table>
|
| 156 |
+
|
| 157 |
+
Super resolution samples $x _ { h r } \sim p ( x _ { h r } | x _ { l r } )$ from the Imagenet64 test data are shown in Figure 2. The distribution mode of the factorized baseline is displayed in Figure 2 panel c). We show that the baseline is able to learn a relationship between conditioning variable $\mathbf { x }$ and $\mathbf { y }$ , but lacks crisp details. The super-resolution images from the CNF are shown in panel b). Notice there are more high-frequency components modelled, for instance in grass and in hairs. Following Kingma & Dhariwal (2018), we sample from the base distributions with a temperature $\tau$ of 0.8 to achieve the best perceptual quality for the distribution learned by the CNF.
|
| 158 |
+
|
| 159 |
+
As there are no standard metric for measuring perceptual quality, we measure performance results on PSNR and SSIM between our predicted image and the ground truth image in Table 2. We compare CNFs to other state-of-the-art per-pixel loss based methods and the factorized baseline for a $2 \mathbf { x }$ upsampling task on standard super-resolution benchmarks. If available, we report negative $\log _ { 2 ^ { - } }$ likelihood (bpd) (computed as an average over 1000 randomly cropped $1 2 8 \mathrm { ~ x ~ } 1 2 8$ patches). Note that without any hyperparameter tuning or compositional loss weighting, as is typical in SISR, the CNF performs competitively with state-of-the-art super-resolution methods by simply optimizing the likelihood. The SSIM scores for the baseline perform on par or better than the adversarial methods and the CNF on all benchmarks. On PSNR scores however, the CNF beats the factorized discrete baseline. Samples shown in Figure 3 show that the CNF predictions have more fine grained texture details. Comparing this finding with the baseline that outperforms every method on SSIM, show that metrics can be misleading.
|
| 160 |
+
|
| 161 |
+
Notice how samples from a independent factorized likelihood model have a lot of color noise, whereas samples from the CNF do not have such problems. Increasing temperature increases highlevel detail, where we find that $\tau = 0 . 5$ strikes a balance between noise smoothing and detail. This can be attributed to the property of flows to model pixel correlations among output dimensions for high-dimensional data such as images.
|
| 162 |
+
|
| 163 |
+

|
| 164 |
+
Figure 3: Conditional samples from the CNF (ours) for sampling temperatures $\{ 0 . , 0 . 5 , 1 . 0 \}$ and the factorized discrete baseline for $2 \mathbf { x }$ upscaling. Conditioning image is a baboon from Set14 test set. Both models were trained on ImageNet64. Best viewed electronically.
|
| 165 |
+
|
| 166 |
+
Table 2: CNF compared to factorized discrete baseline and adversarial, pixel-wise methods (Dong et al., 2015; Sajjadi et al., 2017a; Prez-Pellitero et al., 2016) based on negative $\log _ { 2 }$ -likelihood (bits per dimension or bpd), PSNR, SSIM and for $2 \mathbf { x }$ upscaling. Our methods were trained on ImageNet64.
|
| 167 |
+
|
| 168 |
+
<table><tr><td></td><td></td><td>Set5</td><td colspan="5">Set14</td><td>BSD100</td><td></td></tr><tr><td>Model Type</td><td>bpd</td><td>PSNR</td><td>SSIM 1</td><td>bpd</td><td>PSNR</td><td>SSIM</td><td>bpd</td><td>PSNR</td><td>SSIM</td></tr><tr><td>Bicubic</td><td>-</td><td>33.7</td><td>0.930</td><td>-</td><td>30.2</td><td>0.869</td><td>1</td><td>29.6</td><td>0.843</td></tr><tr><td>SRCNN</td><td>1</td><td>36.7</td><td>0.954</td><td>1</td><td>32.4</td><td>0.906</td><td>1</td><td>31.4</td><td>0.888</td></tr><tr><td>PSyCO</td><td>1</td><td>36.9</td><td>0.956</td><td>-</td><td>32.6</td><td>0.898</td><td>1</td><td>31.4</td><td>0.890</td></tr><tr><td>ENet</td><td>1</td><td>37.3</td><td>0.958</td><td>1</td><td>33.3</td><td>0.915</td><td>1</td><td>32.0</td><td>0.898</td></tr><tr><td>LL Baseline</td><td>2.34</td><td>32.5</td><td>0.958</td><td>3.23</td><td>31.0</td><td>0.917</td><td>3.20</td><td>30.6</td><td>0.900</td></tr><tr><td>CNF (ours)</td><td>2.11</td><td>36.2</td><td>0.957</td><td>2.51</td><td>32.5</td><td>0.911</td><td>2.33</td><td>31.4</td><td>0.893</td></tr></table>
|
| 169 |
+
|
| 170 |
+
# 5.2 VESSEL SEGMENTATION
|
| 171 |
+
|
| 172 |
+
Vessel segmentation is an important, long-standing, medical imaging problem, where we seek to segment blood vessels from pictures of the retina (the back of the eye). This is a difficult task, because the vessels are thin and of varying thickness. A likelihood function used in segmentation is
|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
Figure 4: Example of retinal segmentations using DRIU, our likelihood baseline trained with the same loss, and our CNF. For the CNF, the mean of 100 samples is visualized. Notice that our segmentations more accurately capture the vessel width, which is overdilated in the DRIU and factored models.
|
| 176 |
+
|
| 177 |
+
Table 3: Numerical results on the DRIVE dataset. We see that the CNF is in the range of the SOTA model DRIU. SE: Structured Forests (Dollar & Zitnick, 2013), LD: Line Detector (Ricci & Perfetti, ´ 2007), Wavelets (Soares et al., 2006), Human (Staal et al., 2004), HED: Holistic Edge Detector (Xie & Tu, 2015), KB: Kernel Boost Becker et al. (2013), $N ^ { 4 }$ : $N ^ { 4 }$ Fields (Ganin & Lempitsky, 2014), DRIU: Deep Retinal Image Understanding (Maninis et al., 2016). Our answers are shown in mean ± 1std form, where statistics are taken over 5 runs.
|
| 178 |
+
|
| 179 |
+
<table><tr><td></td><td>SE</td><td>LD</td><td>Wavelets</td><td>Human</td><td>HED</td><td>KB</td><td>N4</td><td>DRIU</td><td>Factored (ours)</td><td>CNF Uniform (Ours)</td><td>CNF (ours)</td></tr><tr><td>bpd</td><td></td><td></td><td></td><td>■</td><td>=</td><td>=</td><td></td><td></td><td>0.0647 ± 0.0015</td><td>0.3366 ± 0.0290</td><td>0.0254± 0.0008</td></tr><tr><td>F-Score</td><td>0.658</td><td>0.692</td><td>0.762</td><td>0.791</td><td>0.794</td><td>0.800</td><td>0.805</td><td>0.821</td><td>0.815 ± 0.001</td><td>0.762 ± 0.002</td><td>0.819 ± 0.001</td></tr></table>
|
| 180 |
+
|
| 181 |
+
a weighted Bernoulli distribution
|
| 182 |
+
|
| 183 |
+
$$
|
| 184 |
+
\mathcal { L } = \prod _ { j } \frac { p _ { j } ^ { \beta \cdot y _ { j } } ( 1 - p _ { j } ) ^ { ( 1 - \beta ) \cdot ( 1 - y _ { j } ) } } { p _ { j } ^ { \beta } + ( 1 - p _ { j } ) ^ { 1 - \beta } }
|
| 185 |
+
$$
|
| 186 |
+
|
| 187 |
+
where $p _ { j } = p ( y _ { j } = 1 | \mathbf { x } )$ is the prediction probability that pixel $y _ { j }$ is positive (vessel class) and $\beta$ is a class balancing constant set to $\sim 1 0 \%$ for us. This loss function is preferred, because it accounts for the apparent class imbalance in the ratio of vessels to background. In practice, the numerator of this likelihood is used as a loss function and the normalizer is ignored. The resulting loss is called a weighted cross-entropy. In our experiments we train using the weighted cross-entropy (as in the literature), but we report likelihood values including the normalizer, for a meaningful comparison.
|
| 188 |
+
|
| 189 |
+
Dataset and comparisons We test on the DRIVE database Staal et al. (2004) consisting of $5 8 4 \times$ 565, 8-bit RGB images, split into 20 train, and 20 test images. To compare against other methods, we plot precision-recall curves, report the maximum F-score along each curve (shown as a dot in the graph), report the bits per dimension, and plot distributions in PR-space. The main CNN-based contenders are Deep Retinal Image Understanding (DRIU) (Maninis et al., 2016) and HolisticallyNested Edge Detection (HED) (Xie & Tu, 2015), both of which are instances of Deeply-Supervised Nets (Lee et al., 2015). The main difference between DRIU and HED is that DRIU is pretrained on ImageNet Krizhevsky et al. (2012); whereas, HED is not. Other competing methods are reported with results cited from (Maninis et al., 2016). For fairness, we also train a model which we call the likelihood baseline, which uses the exact same architecture as the flow but run a feedforward model and trained with the weighted Bernoulli loss.
|
| 190 |
+
|
| 191 |
+
Implementation The flow is identical to the flow used in the previous section, with some key differences. i) instead of activation normalization, we use instance normalization (Ulyanov et al., 2016), ii) the conditional affine coupling layers do not contain a scaling component $s ( \cdot )$ but just the translation $t ( \cdot )$ , hence it is volume preserving, and iii) we train using variational dequantization. Since the data is binary-valued, we dequantize according to the Flow $^ { + + }$ scheme of Ho et al., modified to binary variables (see Section 3.2), using a CNF at just a single scale for the dequantizer. The CNF is conditioned on resolution-matched features extracted from a VGG-like network Simonyan & Zisserman (2015). This model is composed of blocks of the form block $=$ [InstanceNorm, ReLU, conv], and $2 \mathbf { x } 2$ max-pooling layer, shown in Table 4. All filter sizes are $3 { \tt X } 3$ . The outputs are at layers 4 and 7. These are used to condition the resolution 512 and 256 levels of the CNF, respectively.
|
| 192 |
+
|
| 193 |
+
Table 4: Feature extractor architecture for retinal vessel segmentation. RES. abbreviates resolution. Outputs are at layer 4 and 7.
|
| 194 |
+
|
| 195 |
+
<table><tr><td rowspan=1 colspan=1>LAYER</td><td rowspan=1 colspan=1>TYPE</td><td rowspan=1 colspan=1>RES.</td></tr><tr><td rowspan=1 colspan=1>01</td><td rowspan=1 colspan=1>inputblock</td><td rowspan=1 colspan=1>10241024</td></tr><tr><td rowspan=1 colspan=1>234</td><td rowspan=1 colspan=1>max-poolblockblock</td><td rowspan=1 colspan=1>512512512</td></tr><tr><td rowspan=3 colspan=1>567</td><td rowspan=3 colspan=1>max-poolblockblock</td><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=1>256</td></tr></table>
|
| 196 |
+
|
| 197 |
+
Training/test settings We train using the Adam optimizer at learning rate 0.001, and a minibatch size of 2 for 2000 epochs. All images are padded to $1 0 2 4 \mathrm { x } 1 0 2 4$ pixels, so that they are compatible with squeeze layers. We use $3 6 0 ^ { \circ }$ rotation augmentation, isotropic scalings in the range [0.8, 1.2], and shears drawn from a normal distribution with standard deviation $1 0 ^ { \circ }$ . At test time we draw samples from our model and compare those against the groundtruth labels. This contrasts with other methods, that measure labels against thresholded versions of a factorized predictive distribution. To create the PR curve in Figure 5 we take the average of 100 samples and threshold the resulting map (example shown in Figure 4). While crude, this mean image is useful in defining a PR-curve, since there is not great topology change between samples.
|
| 198 |
+
|
| 199 |
+
Evaluation The results of our experiments are shown in Table 3 and Figure 5, with a visualization in Figure 4. We see in the table that the CNF trained with our binary dequantization achieves the best bits per dimension, with comparable F-score to the state of the art model (DRIU), but our model does not require pretraining on ImageNet. Interestingly, we found training a flow with uniform dequantization slightly unstable and the results were far from satisfactory. In the PR-curve Figure 5, we show a comparable curve for our binary dequantized CNF to the DRIU model. These results, however, say nothing about the calibration of the probability outputs, but just that the various probability predictions are well ranked. To gain an insight into the calibration of the probabilities, we measure the distribution of precision and recall values for point samples drawn from all models, including a second human grader, present in the original DRIVE dataset. We synthesized samples from factored distributions (all except ours and ‘human’), by sampling images from a factored Bernoulli with mean as the soft image. We see the results in the right hand plot of Figure 5, which shows that while the other CNN-based methods such as DRIU or HED have good precision, they suffer in term of recall. On the other hand, the CNF drops in precision a little bit, but makes up for this in terms of high recall, with a PR distribution overlapping the human grader. This indicates that the CNF has learned a well-calibrated distribution, compared to the baseline methods. Further evidence of this is seen in the visualization in Figure 4, which shows details from the predicted means (soft images). This shows that the DRIU and likelihood baseline overdilate segmentations and the CNF does not. This can be explained from the fact that in the weighted Bernoulli it is cheaper to overdilate than to underdilate. Since the CNF contains no handcrafted loss function, we circumvent this pathology.
|
| 200 |
+
|
| 201 |
+

|
| 202 |
+
Figure 5: Here we show two visualizations of the same data. LEFT: We show the PR-curves generated from a sweeping threshold on soft images output by each listed method. Maximal F-scores for each curve are shown as circles with the green lines indicating constant F-score. We see that our method beats all traditional methods and is on par with DRIU, which unlike us was pretrained on Imagenet. RIGHT: We show a scatter plot in PR-space of samples drawn from each model. To draw samples from the all factored models, we sample images from a factored Bernoulli with a mean as the soft image. We see that the DRIU and HED models, while having good precision, have poor recall in this regime. This indicates that while the output of their networks produce a good ranking of probabilities, the values of the probabilities are poorly calibrated. For us, we drop in precision slightly, but gain greatly in terms of recall, indicating that our samples are drawn from a better calibrated distribution, overlapping significantly with the Human distribution.
|
| 203 |
+
|
| 204 |
+
# 6 CONCLUSION
|
| 205 |
+
|
| 206 |
+
In this paper we propose to learn likelihoods of conditional distributions using conditional normalizing flows. In this setting, supervised prediction tasks can be framed probabilistically. In addition, we propose a generalization of variational dequantization for binary random variables, which is useful for binary segmentation problems. Experimentally we show competitive performance with competing methods in the domain of super-resolution and binary image segmentation.
|
| 207 |
+
|
| 208 |
+
# REFERENCES
|
| 209 |
+
|
| 210 |
+
Siddharth Agrawal and Ambedkar Dukkipati. Deep variational inference without pixel-wise reconstruction. CoRR, abs/1611.05209, 2016.
|
| 211 |
+
|
| 212 |
+
Lynton Ardizzone, Carsten Luth, Jakob Kruse, Carsten Rother, and Ullrich K ¨ othe. Guided im- ¨ age generation with conditional invertible neural networks. CoRR, abs/1907.02392, 2019. URL http://arxiv.org/abs/1907.02392.
|
| 213 |
+
|
| 214 |
+
Andrei Atanov, Alexandra Volokhova, Arsenii Ashukha, Ivan Sosnovik, and Dmitry Vetrov. Semiconditional normalizing flows for semi-supervised learning. 05 2019.
|
| 215 |
+
|
| 216 |
+
Carlos J. Becker, Roberto Rigamonti, Vincent Lepetit, and Pascal Fua. Supervised feature learning for curvilinear structure segmentation. In Medical Image Computing and Computer-Assisted Intervention - MICCAI 2013 - 16th International Conference, Nagoya, Japan, September 22-26, 2013, Proceedings, Part I, pp. 526–533, 2013. doi: 10.1007/978-3-642-40811-3\ 66. URL https://doi.org/10.1007/978-3-642-40811-3_66.
|
| 217 |
+
|
| 218 |
+
Marco Bevilacqua, Aline Roumy, Christine Guillemot, and Marie-Line Alberi-Morel. Lowcomplexity single-image super-resolution based on nonnegative neighbor embedding. In BMVC, 2012.
|
| 219 |
+
|
| 220 |
+
Nicola De Cao, Wilker Aziz, and Ivan Titov. Block neural autoregressive flow. In Proceedings of the Thirty-Fifth Conference on Uncertainty in Artificial Intelligence, UAI 2019, Tel Aviv, Israel, July 22-25, 2019, pp. 511, 2019.
|
| 221 |
+
|
| 222 |
+
Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. CoRR, abs/1606.00915, 2016. URL http://arxiv.org/abs/1606. 00915.
|
| 223 |
+
|
| 224 |
+
Ricky T. Q. Chen, Jens Behrmann, David Duvenaud, and Jorn-Henrik Jacobsen. Residual flows for ¨ invertible generative modeling. CoRR, abs/1906.02735, 2019.
|
| 225 |
+
|
| 226 |
+
Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of imagenet as an alternative to the CIFAR datasets. CoRR, abs/1707.08819, 2017. URL http://arxiv.org/ abs/1707.08819.
|
| 227 |
+
|
| 228 |
+
Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real NVP. CoRR, abs/1605.08803, 2016. URL http://arxiv.org/abs/1605.08803.
|
| 229 |
+
|
| 230 |
+
Piotr Dollar and C. Lawrence Zitnick. Structured forests for fast edge detection. In ´ IEEE International Conference on Computer Vision, ICCV 2013, Sydney, Australia, December 1-8, 2013, pp. 1841–1848, 2013. doi: 10.1109/ICCV.2013.231. URL https://doi.org/10.1109/ ICCV.2013.231.
|
| 231 |
+
|
| 232 |
+
Chao Dong, Chen Change Loy, Kaiming He, and Xiaoou Tang. Image super-resolution using deep convolutional networks. CoRR, abs/1501.00092, 2015. URL http://arxiv.org/abs/ 1501.00092.
|
| 233 |
+
|
| 234 |
+
Yaroslav Ganin and Victor S. Lempitsky. $\mathrm { N } ^ { 4 }$ -fields: Neural network nearest neighbor fields for image transforms. CoRR, abs/1406.6558, 2014. URL http://arxiv.org/abs/1406. 6558.
|
| 235 |
+
|
| 236 |
+
Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Proceedings of the 27th International Conference on Neural Information Processing Systems - Volume 2, NIPS’14, pp. 2672–2680, Cambridge, MA, USA, 2014. MIT Press. URL http://dl.acm.org/ citation.cfm?id=2969033.2969125.
|
| 237 |
+
|
| 238 |
+
Will Grathwohl, Ricky T. Q. Chen, Jesse Bettencourt, Ilya Sutskever, and David Duvenaud. FFJORD: free-form continuous dynamics for scalable reversible generative models. In 7th International Conference on Learning Representations, ICLR 2019, 2019.
|
| 239 |
+
|
| 240 |
+
Jonathan Ho, Xi Chen, Aravind Srinivas, Yan Duan, and Pieter Abbeel. Flow $^ { + + }$ : Improving flowbased generative models with variational dequantization and architecture design. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019.
|
| 241 |
+
|
| 242 |
+
Jonathan Ho, Xi Chen, Aravind Srinivas, Yan Duan, and Pieter Abbeel. Flow $^ { + + }$ : Improving flowbased generative models with variational dequantization and architecture design. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, pp. 2722–2730, 2019. URL http://proceedings.mlr.press/ v97/ho19a.html.
|
| 243 |
+
|
| 244 |
+
Emiel Hoogeboom, Jorn W. T. Peters, Rianne van den Berg, and Max Welling. Integer discrete flows and lossless compression. CoRR, abs/1905.07376, 2019a. URL http://arxiv.org/abs/ 1905.07376.
|
| 245 |
+
|
| 246 |
+
Emiel Hoogeboom, Rianne van den Berg, and Max Welling. Emerging convolutions for generative normalizing flows. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 2019b.
|
| 247 |
+
|
| 248 |
+
Chin-Wei Huang, David Krueger, Alexandre Lacoste, and Aaron C. Courville. Neural autoregressive flows. In Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmsmassan, Stockholm, Sweden, July 10-15, 2018 ¨ , pp. 2083–2092, 2018.
|
| 249 |
+
|
| 250 |
+
J. Huang, A. Singh, and N. Ahuja. Single image super-resolution from transformed self-exemplars. In 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5197–5206, June 2015. doi: 10.1109/CVPR.2015.7299156.
|
| 251 |
+
|
| 252 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. 2015.
|
| 253 |
+
|
| 254 |
+
Diederik P Kingma and Max Welling. Auto-Encoding Variational Bayes. In Proceedings of the 2nd International Conference on Learning Representations, 2014.
|
| 255 |
+
|
| 256 |
+
Diederik P. Kingma, Tim Salimans, and Max Welling. Improving variational inference with inverse autoregressive flow. CoRR, abs/1606.04934, 2016a. URL http://arxiv.org/abs/1606. 04934.
|
| 257 |
+
|
| 258 |
+
Diederik P. Kingma, Tim Salimans, and Max Welling. Improving variational inference with inverse autoregressive flow. CoRR, abs/1606.04934, 2016b. URL http://arxiv.org/abs/1606. 04934.
|
| 259 |
+
|
| 260 |
+
Durk P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems 31, pp. 10236– 10245. Curran Associates, Inc., 2018. URL http://papers.nips.cc/paper/ 8224-glow-generative-flow-with-invertible-1x1-convolutions.pdf.
|
| 261 |
+
|
| 262 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems 25: 26th Annual Conference on Neural Information Processing Systems 2012. Proceedings of a meeting held December 3-6, 2012, Lake Tahoe, Nevada, United States., pp. 1106–1114, 2012. URL http://papers.nips.cc/paper/ 4824-imagenet-classification-with-deep-convolutional-neural-networks.
|
| 263 |
+
|
| 264 |
+
Chen-Yu Lee, Saining Xie, Patrick W. Gallagher, Zhengyou Zhang, and Zhuowen Tu. Deeplysupervised nets. In Proceedings of the Eighteenth International Conference on Artificial Intelligence and Statistics, AISTATS 2015, San Diego, California, USA, May 9-12, 2015, 2015. URL http://proceedings.mlr.press/v38/lee15a.html.
|
| 265 |
+
|
| 266 |
+
Kevis-Kokitsi Maninis, Jordi Pont-Tuset, Pablo Andres Arbel´ aez, and Luc Van Gool. Deep reti-´ nal image understanding. In Medical Image Computing and Computer-Assisted Intervention - MICCAI 2016 - 19th International Conference, Athens, Greece, October 17-21, 2016, Proceedings, Part II, pp. 140–148, 2016. doi: 10.1007/978-3-319-46723-8\ 17. URL https: //doi.org/10.1007/978-3-319-46723-8_17.
|
| 267 |
+
|
| 268 |
+
Roey Mechrez, Itamar Talmi, Firas Shama, and Lihi Zelnik-Manor. Learning to maintain natural image statistics. CoRR, abs/1803.04626, 2018. URL http://arxiv.org/abs/1803.04626.
|
| 269 |
+
|
| 270 |
+
Shakir Mohamed and Danilo J. Rezende. Variational information maximisation for intrinsically motivated reinforcement learning. In Proceedings of the 28th International Conference on Neural Information Processing Systems - Volume 2, NIPS’15, pp. 2125–2133, Cambridge, MA, USA, 2015. MIT Press. URL http://dl.acm.org/citation.cfm?id ${ . } = { }$ 2969442.2969477.
|
| 271 |
+
|
| 272 |
+
George Papamakarios, Theo Pavlakou, and Iain Murray. Masked autoregressive flow for density estimation. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 2338–2347. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 6828-masked-autoregressive-flow-for-density-estimation.pdf.
|
| 273 |
+
|
| 274 |
+
Simon JD Prince. Computer vision: models, learning, and inference. Cambridge University Press, 2012.
|
| 275 |
+
|
| 276 |
+
Eduardo Prez-Pellitero, Jordi Salvador, Javier Ruiz-Hidalgo, and Bodo Rosenhahn. Manifold span reduction for super resolution. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR)., June 2016.
|
| 277 |
+
|
| 278 |
+
Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, pp. 1530–1538, 2015. URL http://proceedings.mlr.press/ v37/rezende15.html.
|
| 279 |
+
|
| 280 |
+
Elisa Ricci and Renzo Perfetti. Retinal blood vessel segmentation using line operators and support vector classification. IEEE Trans. Med. Imaging, 26(10):1357–1365, 2007. doi: 10.1109/TMI. 2007.898551. URL https://doi.org/10.1109/TMI.2007.898551.
|
| 281 |
+
|
| 282 |
+
M. S. M. Sajjadi, B. Scholkopf, and M. Hirsch. EnhanceNet: Single image super- ¨ resolution through automated texture synthesis. In Proceedings IEEE International Conference on Computer Vision (ICCV), pp. 4501–4510, Piscataway, NJ, USA, October 2017a. IEEE. URL http://openaccess.thecvf.com/content_ICCV_2017/papers/ Sajjadi_EnhanceNet_Single_Image_ICCV_2017_paper.pdf.
|
| 283 |
+
|
| 284 |
+
M. S. M. Sajjadi, B. Scholkopf, and M. Hirsch.¨ EnhanceNet: Single image superresolution through automated texture synthesis. In Proceedings IEEE International Conference on Computer Vision (ICCV), pp. 4501–4510, Piscataway, NJ, USA, October 2017b. IEEE. URL http://openaccess.thecvf.com/content_ICCV_2017/papers/ Sajjadi_EnhanceNet_Single_Image_ICCV_2017_paper.pdf.
|
| 285 |
+
|
| 286 |
+
Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P. Kingma. Pixelcnn $^ { + + }$ : Improving the pixelcnn with discretized logistic mixture likelihood and other modifications. In 5th International Conference on Learning Representations, ICLR 2017, 2017.
|
| 287 |
+
|
| 288 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http: //arxiv.org/abs/1409.1556.
|
| 289 |
+
|
| 290 |
+
Joao V. B. Soares, Jorge J. G. Leandro, Roberto M. Cesar, Herbert F. Jelinek, and Michael J. Cree.˜ Retinal vessel segmentation using the 2-d gabor wavelet and supervised classification. IEEE Trans. Med. Imaging, 25(9):1214–1222, 2006. doi: 10.1109/TMI.2006.879967. URL https: //doi.org/10.1109/TMI.2006.879967.
|
| 291 |
+
|
| 292 |
+
Joes Staal, Michael D. Abramoff, Meindert Niemeijer, Max A. Viergever, and Bram van Ginneken. \` Ridge-based vessel segmentation in color images of the retina. IEEE Trans. Med. Imaging, 23 (4):501–509, 2004. doi: 10.1109/TMI.2004.825627. URL https://doi.org/10.1109/ TMI.2004.825627.
|
| 293 |
+
|
| 294 |
+
Lucas Theis, Aaron van den Oord, and Matthias Bethge. A note on the evaluation of generative ¨ models. In 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings, 2016. URL http://arxiv. org/abs/1511.01844.
|
| 295 |
+
|
| 296 |
+
Dustin Tran, Keyon Vafa, Kumar Krishna Agrawal, Laurent Dinh, and Ben Poole. Discrete flows: Invertible generative models of discrete data. In Deep Generative Models for Highly Structured Data, ICLR 2019 Workshop, New Orleans, Louisiana, United States, May 6, 2019, 2019. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ rJlo4UIt_E.
|
| 297 |
+
|
| 298 |
+
Brian L Trippe and Richard E Turner. Conditional density estimation with bayesian normalising flows. 2018. URL https://arxiv.org/abs/1802.04908.
|
| 299 |
+
|
| 300 |
+
Dmitry Ulyanov, Andrea Vedaldi, and Victor S. Lempitsky. Instance normalization: The missing ingredient for fast stylization. CoRR, abs/1607.08022, 2016. URL http://arxiv.org/ abs/1607.08022.
|
| 301 |
+
|
| 302 |
+
Rianne van den Berg, Leonard Hasenclever, Jakub M. Tomczak, and Max Welling. Sylvester normalizing flows for variational inference. In Proceedings of the Thirty-Fourth Conference on Uncertainty in Artificial Intelligence, UAI 2018, Monterey, California, USA, August 6-10, 2018, pp. 393–402, 2018.
|
| 303 |
+
|
| 304 |
+
Aaron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Koray Kavukcuoglu, Oriol Vinyals, and ¨ Alex Graves. Conditional image generation with pixelcnn decoders. In Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, pp. 4790–4798, 2016.
|
| 305 |
+
|
| 306 |
+
Aaron Van Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. In International Conference on Machine Learning, pp. 1747–1756, 2016.
|
| 307 |
+
|
| 308 |
+
Thang Vu, Tung Luu, and Chang Yoo. Perception-Enhanced Image Super-Resolution via Relativistic Generative Adversarial Networks: Munich, Germany, September 8-14, 2018, Proceedings, Part V, pp. 98–113. 01 2019. ISBN 978-3-030-11020-8. doi: 10.1007/978-3-030-11021-5 7.
|
| 309 |
+
|
| 310 |
+
Xintao Wang, Ke Yu, Shixiang Wu, Jinjin Gu, Yihao Liu, Chao Dong, Chen Change Loy, Yu Qiao, and Xiaoou Tang. ESRGAN: enhanced super-resolution generative adversarial networks. CoRR, abs/1809.00219, 2018. URL http://arxiv.org/abs/1809.00219.
|
| 311 |
+
|
| 312 |
+
Zhou Wang, Alan Bovik, Hamid Sheikh, and Eero Simoncelli. Image quality assessment: From error visibility to structural similarity. Image Processing, IEEE Transactions on, 13:600 – 612, 05 2004. doi: 10.1109/TIP.2003.819861.
|
| 313 |
+
|
| 314 |
+
Saining Xie and Zhuowen Tu. Holistically-nested edge detection. In 2015 IEEE International Conference on Computer Vision, ICCV 2015, Santiago, Chile, December 7-13, 2015, pp. 1395–1403, 2015. doi: 10.1109/ICCV.2015.164. URL https://doi.org/10.1109/ICCV.2015. 164.
|
| 315 |
+
|
| 316 |
+
Yuan Yuan, Siyuan Liu, Jiawei Zhang, Yongbing Zhang, Chao Dong, and Liang Lin. Unsupervised image super-resolution using cycle-in-cycle generative adversarial networks. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pp. 814–81409, 2018.
|
| 317 |
+
|
| 318 |
+
Roman Zeyde, Michael Elad, and Matan Protter. On single image scale-up using sparserepresentations. In Proceedings of the 7th International Conference on Curves and Surfaces, pp. 711–730, Berlin, Heidelberg, 2012. Springer-Verlag. ISBN 978-3-642-27412-1. doi: 10.1007/ 978-3-642-27413-8 47. URL https://doi.org/10.1007/978-3-642-27413-8_ 47.
|
| 319 |
+
|
| 320 |
+
# A ARCHITECTURES
|
| 321 |
+
|
| 322 |
+
This section describes architecture and optimization details of the conditional normalizing flow network, low-resolution image feature extractor, and shallow convolutional neural network in the conditional coupling layers.
|
| 323 |
+
|
| 324 |
+
The conditional coupling layer is shown schematically in Figure 6. This shows that conditioned on an input $\mathbf { x }$ , we are able to build a relatively straight-forward invertible mapping between latent representations $\mathbf { z }$ and $\mathbf { y }$ , which have been partitioned into vectors of equal dimension.
|
| 325 |
+
|
| 326 |
+

|
| 327 |
+
Figure 6: The forward and reverse paths of the conditional coupling layer. In our experiments we concatenate an embedding of the conditioning input $\mathbf { x }$ to the latent $\mathbf { z } _ { 1 }$ , which is fed through another neural network to output the affine transformation parameters applied to $\mathbf { z } _ { 0 }$ . This operation is invertible in $\mathbf { z }$ and $\mathbf { y }$ , but not in $\mathbf { x }$ .
|
| 328 |
+
|
| 329 |
+
Details for the CNFs are given in Table 5 and the details of the individual coupling layers in Table 6 and 7. The architecture of the feature extractor is given in Table 8. The architecture has levels and subflows, following (Dinh et al., 2016; Kingma & Dhariwal, 2018). All networks are optimized using Adam (Kingma & Ba, 2015) for 200000 iterations.
|
| 330 |
+
|
| 331 |
+
Table 5: Configuration of the CNF architecture for the super-resolution task.
|
| 332 |
+
|
| 333 |
+
<table><tr><td>DATASET</td><td>MINIBATCH SIZE</td><td>LEVELS</td><td>SUB-FLOWS</td><td>LEARNING RATE</td></tr><tr><td>ImageNet32</td><td>64</td><td>2</td><td>8</td><td>0.0001</td></tr><tr><td>ImageNet64</td><td>64</td><td>2</td><td>8</td><td>0.0001</td></tr><tr><td>DRIVE</td><td>2</td><td>2</td><td>2</td><td>0.001</td></tr></table>
|
| 334 |
+
|
| 335 |
+
Table 6: Architecture details for a single coupling layer in the super resolution task. The variable $c _ { \mathrm { o u t } }$ denotes the number of output channels. The first two convolutional layers are followed by a ReLU activation.
|
| 336 |
+
|
| 337 |
+
<table><tr><td>LAYER</td><td>INTERMEDIATE CHANNELS</td><td>KERNEL SIZE</td></tr><tr><td>Conv2d</td><td>512</td><td>3×3</td></tr><tr><td>Conv2d</td><td>512</td><td>1×1</td></tr><tr><td>Conv2d</td><td>Cout</td><td>3×3</td></tr></table>
|
| 338 |
+
|
| 339 |
+
Table 7: Architecture details for a single coupling layer in the DRIVE segmentation task. The variable $c _ { \mathrm { o u t } }$ denotes the number of output channels for the . The first two convolutional layers are followed by a ReLU activation.
|
| 340 |
+
|
| 341 |
+
<table><tr><td>LAYER</td><td>INTERMEDIATECHANNELS</td><td>KERNEL SIZE</td></tr><tr><td>Conv2d</td><td>32</td><td>3×3</td></tr><tr><td>InstanceNorm2d</td><td>32</td><td>-</td></tr><tr><td>ReLU</td><td>-</td><td>1</td></tr><tr><td>Conv2d</td><td>Cout</td><td>3×3</td></tr></table>
|
| 342 |
+
|
| 343 |
+
Table 8: Architecture details for the conditioning network in the super-resolution task. Residualin-residual denseblocks Wang et al. (2018) are utilized. The channel growth is adjusted so that the CNF and the factorized baseline have an equal number of parameters.
|
| 344 |
+
|
| 345 |
+
<table><tr><td>MODEL TYPE</td><td>RRDB BLOCKS</td><td></td><td>CHANNEL GROWTH|CONTEXT CHANNELS</td></tr><tr><td>CNF</td><td>16</td><td>32</td><td>128</td></tr><tr><td>Factorized LL</td><td>16</td><td>55</td><td>128</td></tr></table>
|
| 346 |
+
|
| 347 |
+
# B CONDITIONAL IMAGE GENERATION
|
| 348 |
+
|
| 349 |
+
In this section, larger versions of the ImageNet64 samples are provided, sampled at different temperatures $\tau$ .
|
| 350 |
+
|
| 351 |
+

|
| 352 |
+
Figure 7: Super resolution results CNF trained on Imagenet64 sampled at temperature $\tau = 0$
|
| 353 |
+
|
| 354 |
+

|
| 355 |
+
Figure 8: Super resolution results for the CNF trained on Imagenet64 sampled at $\tau = 0 . 5$
|
| 356 |
+
|
| 357 |
+

|
| 358 |
+
Figure 9: Super resolution results for the CNF trained on Imagenet64 sampled at $\tau = 0 . 8$
|
parse/train/rJg3zxBYwH/rJg3zxBYwH_content_list.json
ADDED
|
@@ -0,0 +1,1854 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "LEARNING LIKELIHOODS WITH CONDITIONAL NORMALIZING FLOWS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
236,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Normalizing Flows (NFs) are able to model complicated distributions $p _ { Y } ( y )$ with strong inter-dimensional correlations and high multimodality by transforming a simple base density $p _ { Z } ( z )$ through an invertible neural network under the change of variables formula. Such behavior is desirable in multivariate structured prediction tasks, where handcrafted per-pixel loss-based methods inadequately capture strong correlations between output dimensions. We present a study of conditional normalizing flows (CNFs), a class of NFs where the base density to output space mapping is conditioned on an input $\\mathbf { X }$ , to model conditional densities $p _ { Y \\mid X } ( y | x )$ . CNFs are efficient in sampling and inference, they can be trained with a likelihood-based objective, and CNFs, being generative flows, do not suffer from mode collapse or training instabilities. We provide an effective method to train continuous CNFs for binary problems and in particular, we apply these CNFs to super-resolution and vessel segmentation tasks demonstrating competitive performance on standard benchmark datasets in terms of likelihood and conventional metrics. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
267,
|
| 43 |
+
764,
|
| 44 |
+
474
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
502,
|
| 55 |
+
336,
|
| 56 |
+
517
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Learning conditional distributions $p _ { Y | X } ( \\mathbf { y } | \\mathbf { x } )$ is one of the oldest problems in machine learning. When the output $\\mathbf { y }$ is high-dimensional this is a particularly challenging task, and the practitioner is left with many design choices. Do we factorize the conditional? If not, do we model correlations with, say, a conditional random field (Prince, 2012)? Do we use a unimodal distribution? How fat should the tails be? Do we use an explicit likelihood at all, or use implicit methods (Mohamed & Rezende, 2015) such as a GAN (Goodfellow et al., 2014)? Do we quantize the output? Ideally, the practitioner should not have to make design choices at all, and the distribution should be learned from the data. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
532,
|
| 66 |
+
825,
|
| 67 |
+
643
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In the field of density estimation normalizing flows (NFs) are a relatively new family of models (Rezende & Mohamed, 2015). NFs model complicated high dimensional marginal distributions $p _ { Y } ( \\mathbf { y } )$ by transforming a simple base distribution or prior $p _ { Z } ( \\mathbf { z } )$ through a learnable, invertible mapping $f _ { \\phi }$ and then applying the change of variables formula. NFs are efficient in inference and sampling, are able to learn inter-dimensional correlations and multi-modality, and they are exact likelihood models, amenable to gradient-based optimization. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
651,
|
| 77 |
+
825,
|
| 78 |
+
734
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Flow-based generative models (Dinh et al., 2016) are generally trained on the image space, and are in some cases computationally efficient in both the forward and inverse direction. These are advantageous over other likelihood based methods because $i _ { , }$ ) sampling is efficient opposed to autoregressive models (Van Oord et al., 2016), and $i i$ ) flows admit exact likelihood optimization in contrast with variational autoencoders (Kingma & Welling, 2014). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
742,
|
| 88 |
+
823,
|
| 89 |
+
811
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Conditional random fields directly model correlations between pixels, and have been fused with deep learning (Chen et al., 2016). However, they require the practitioner to choose which pixels have pairwise interactions. Another approach uses adversarial training (Goodfellow et al., 2014). A downside is that the training procedure can be unstable and they are difficult to evaluate quantitatively. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
819,
|
| 99 |
+
823,
|
| 100 |
+
888
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "We propose to learn the likelihood of conditional distributions with few modeling choices using Conditional Normalizing Flows (CNFs). CNFs can be harnessed for conditional distributions $p _ { Y | X } ( \\mathbf { y } | \\mathbf { x } )$ ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
895,
|
| 110 |
+
821,
|
| 111 |
+
922
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "by conditioning the prior and the invertible mapping on the input x. In particular, we apply conditional flows to super-resolution (Wang et al., 2018) and vessel segmentation (Staal et al., 2004). We evaluate their performance gains on multivariate prediction tasks along side architecturally-matched factored baselines by comparing likelihood and application specific evaluation metrics. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
103,
|
| 121 |
+
825,
|
| 122 |
+
160
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "2 BACKGROUND ",
|
| 129 |
+
"text_level": 1,
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
179,
|
| 133 |
+
326,
|
| 134 |
+
195
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "In the following, we present the relevant background material on normalizing flows and structured prediction. This section covers the change of variables formula, invertible modules, variational dequantization and conventional likelihood optimization. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
209,
|
| 144 |
+
825,
|
| 145 |
+
252
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "2.1 NORMALIZING FLOWS ",
|
| 152 |
+
"text_level": 1,
|
| 153 |
+
"bbox": [
|
| 154 |
+
174,
|
| 155 |
+
268,
|
| 156 |
+
372,
|
| 157 |
+
284
|
| 158 |
+
],
|
| 159 |
+
"page_idx": 1
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"type": "text",
|
| 163 |
+
"text": "A standard NF in continuous space is based on a simple change of variables formula. Given two spaces of equal dimension $\\mathcal { Z }$ and $\\mathcal { V }$ ; a once-differentiable, parametric, bijective1 mapping $f _ { \\phi } : \\mathcal { V } $ $\\mathcal { Z }$ , where $\\phi$ are the parameters of $f$ ; and a prior distribution $p _ { Z } ( \\mathbf { z } )$ , we can model a complicated distribution $p _ { Y } ( \\mathbf { y } )$ as ",
|
| 164 |
+
"bbox": [
|
| 165 |
+
173,
|
| 166 |
+
294,
|
| 167 |
+
825,
|
| 168 |
+
351
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "equation",
|
| 174 |
+
"img_path": "images/7036992575acd5e1200fcc3a38b41ba09b6ad4580fe60482f5c9e193539a34c7.jpg",
|
| 175 |
+
"text": "$$\np _ { Y } ( \\mathbf { y } ) = p _ { Z } ( f _ { \\phi } ( \\mathbf { y } ) ) \\left. \\frac { \\partial f _ { \\phi } ( \\mathbf { y } ) } { \\partial \\mathbf { y } } \\right. .\n$$",
|
| 176 |
+
"text_format": "latex",
|
| 177 |
+
"bbox": [
|
| 178 |
+
392,
|
| 179 |
+
353,
|
| 180 |
+
606,
|
| 181 |
+
388
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "The term $| \\partial f _ { \\phi } ( \\mathbf { y } ) / \\partial \\mathbf { y } |$ is the Jacobian determinant of $f _ { \\phi }$ , evaluated at $\\mathbf { y }$ and it accounts for volume changes induced by $f _ { \\phi }$ . The transformation $f _ { \\phi }$ introduces correlations and multi-modality in $p _ { Y }$ . The main challenge in the field of normalizing flows is designing the transformation $f _ { \\phi }$ . It has to be $i ,$ bijective, $i i _ { . }$ ) have an efficient and tractable Jacobian determinant, iii) be from a ‘flexible’ model class. In addition, $i \\nu _ { . }$ ) for fast sampling the inverse needs to be efficiently computable. Below we briefly state which invertible modules are used in our architectures, obeying the aforementioned points. ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
173,
|
| 190 |
+
390,
|
| 191 |
+
825,
|
| 192 |
+
488
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "Coupling layers Affine coupling layers (Dinh et al., 2016) are invertible, nonlinear layers. They work by splitting the input $\\mathbf { z }$ into two components $\\mathbf { z } _ { 0 }$ and $\\mathbf { z } _ { 1 }$ and nonlinearly transforming $\\mathbf { z } _ { 0 }$ as a function of $\\mathbf { z } _ { 1 }$ , before reconcatenating the result. If ${ \\bf z } = [ { \\bf z } _ { 0 } , { \\bf z } _ { 1 } ]$ and $\\mathbf { y } = [ \\mathbf { y } _ { 0 } , \\mathbf { y } _ { 1 } ]$ this is ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
176,
|
| 201 |
+
502,
|
| 202 |
+
825,
|
| 203 |
+
546
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "equation",
|
| 209 |
+
"img_path": "images/bebdfe9f23a2905951991a8339bcd5b58bc56777346c8ebfffd6bfa93bee2726.jpg",
|
| 210 |
+
"text": "$$\n\\begin{array} { r l r l } & { \\mathbf { y } _ { 0 } = s ( \\mathbf { z } _ { 1 } ) \\cdot \\mathbf { z } _ { 0 } + t ( \\mathbf { z } _ { 1 } ) \\qquad } & & { \\mathbf { z } _ { 0 } = ( \\mathbf { z } _ { 0 } - t ( \\mathbf { y } _ { 1 } ) ) / s ( \\mathbf { y } _ { 1 } ) } \\\\ & { \\mathbf { y } _ { 1 } = \\mathbf { z } _ { 1 } \\qquad } & & { \\mathbf { z } _ { 1 } = \\mathbf { y } _ { 1 } } \\end{array}\n$$",
|
| 211 |
+
"text_format": "latex",
|
| 212 |
+
"bbox": [
|
| 213 |
+
267,
|
| 214 |
+
547,
|
| 215 |
+
728,
|
| 216 |
+
584
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 1
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "Where the scale $s ( \\cdot )$ and translation $t ( \\cdot )$ functions can be any function, typically implemented with a CNN. Similar conditioning with normalizing flows has been done in previous works by Mohamed & Rezende (2015) and Kingma et al. (2016b). ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
585,
|
| 226 |
+
825,
|
| 227 |
+
628
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "Invertible $\\textbf { 1 x 1 }$ Convolutions Proposed in Kingma & Dhariwal (2018), invertible $1 \\times 1$ convolutions help mix information across channel dimensions. We implement them as regular $1 \\times 1$ convolutions and for the inverse, we convolve with the inverse of the kernel. ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
642,
|
| 237 |
+
825,
|
| 238 |
+
685
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 1
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "Squeeze layers Squeeze layers (Dinh et al., 2016) are used to compress the spatial resolution of activations. These also help with increasing spatial receptive field of pixels in the deeper activations. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
173,
|
| 247 |
+
699,
|
| 248 |
+
823,
|
| 249 |
+
728
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 1
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "Split Prior Split priors (Dinh et al., 2016) work by spliting a set of activations $\\mathbf { z }$ into two components $\\mathbf { z } _ { 0 }$ and $\\mathbf { z } _ { 1 }$ . We then condition $\\mathbf { z } _ { 1 }$ on $\\mathbf { z } _ { 0 }$ using a simple base density e.g. $p ( \\mathbf { z } _ { 1 } | \\mathbf { z } _ { 0 } ) =$ $\\mathbf { \\bar { \\mathcal { N } } } ( \\mathbf { z } _ { 1 } ; \\mu ( \\mathbf { z } _ { 0 } ) , \\sigma ^ { 2 } ( \\mathbf { z } _ { 0 } ) )$ , where $\\mu ( \\cdot )$ and $\\sigma ^ { 2 } ( \\cdot )$ are neural networks. The component $\\mathbf { z } _ { 0 }$ can be modeled by further flow layers. This prior, is useful for modeling hierarchical correlations between dimensions, and also helps reduce computation, since $\\mathbf { z } _ { 0 }$ is reduced in size. ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
173,
|
| 258 |
+
742,
|
| 259 |
+
825,
|
| 260 |
+
813
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 1
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "Variational dequantization When modeling discrete data, Theis et al. (2016) introduced the concept of dequantization. For this, they modeled the probability mass function over $\\mathbf { y }$ as a latent variable model ",
|
| 267 |
+
"bbox": [
|
| 268 |
+
173,
|
| 269 |
+
827,
|
| 270 |
+
825,
|
| 271 |
+
868
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 1
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "equation",
|
| 277 |
+
"img_path": "images/b5893facc344b69d339884288e9a3dd38942be78703c2aec6fa9a0591a50456f.jpg",
|
| 278 |
+
"text": "$$\nP _ { \\mathrm { m o d e l } } ( \\mathbf { y } ) = \\int _ { \\mathcal { V } } P ( \\mathbf { y } | \\mathbf { v } ) p ( \\mathbf { v } ) \\mathrm { d } \\mathbf { v } = \\int _ { \\mathcal { V } } p ( \\mathbf { y } , \\mathbf { v } ) \\mathrm { d } \\mathbf { v }\n$$",
|
| 279 |
+
"text_format": "latex",
|
| 280 |
+
"bbox": [
|
| 281 |
+
334,
|
| 282 |
+
868,
|
| 283 |
+
663,
|
| 284 |
+
902
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 1
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "where the latent variables $\\textbf { v } \\in { \\mathcal { V } }$ are continuous-valued. This is a convenient model to use, since the marginal $p ( \\mathbf { v } )$ , living on a continuous sample space, can be modelled with a continuous NF. The distribution $P ( \\mathbf { y } | \\mathbf { v } )$ is known as the quantizer and is typically an indicator function $P ( \\mathbf { y } | \\mathbf { v } ) = \\mathbb { I } [ \\mathbf { v } \\in$ $\\mathbf { y } + [ 0 , 1 ) ^ { D } ]$ . Other works (Hoogeboom et al., $2 0 1 9 \\mathrm { a }$ ; Tran et al., 2019) directly model $P _ { \\mathrm { m o d e l } } ( \\mathbf { y } )$ with a discrete-valued flow, but these are known to be difficult to optimize. As an extension of dequantization, Ho et al. (2019) introduced a variational distribution $\\bar { \\bf q } ( { \\bf v } | { \\bf y } )$ , called a dequantizer, and write a lower bound on the data log-likelihood using Jensen’s inequality as follows ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
173,
|
| 293 |
+
102,
|
| 294 |
+
825,
|
| 295 |
+
202
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 2
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "equation",
|
| 301 |
+
"img_path": "images/b7bc96d773b6f38d9250ca973a49fd1d44e2b5ac5bfc3f16b80b0f7827d5f760.jpg",
|
| 302 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathbb { E } _ { P _ { \\mathrm { d a t a } } ( \\mathbf { y } ) } \\log P _ { \\mathrm { m o d e l } } ( \\mathbf { y } ) = \\mathbb { E } _ { P _ { \\mathrm { d a t a } } ( \\mathbf { y } ) } \\log \\displaystyle \\int p ( \\mathbf { y } , \\mathbf { v } ) \\mathrm { d } \\mathbf { v } } \\\\ & { \\qquad = \\mathbb { E } _ { P _ { \\mathrm { d a t a } } ( \\mathbf { y } ) } \\log \\displaystyle \\int \\frac { q ( \\mathbf { v } | \\mathbf { y } ) } { q ( \\mathbf { v } | \\mathbf { y } ) } p ( \\mathbf { y } , \\mathbf { v } ) \\mathrm { d } \\mathbf { v } \\geq \\mathbb { E } _ { P _ { \\mathrm { d a t a } } ( \\mathbf { y } ) } \\int q ( \\mathbf { v } | \\mathbf { y } ) \\log \\displaystyle \\frac { p ( \\mathbf { y } , \\mathbf { v } ) } { q ( \\mathbf { v } | \\mathbf { y } ) } \\mathrm { d } \\mathbf { v } } \\end{array}\n$$",
|
| 303 |
+
"text_format": "latex",
|
| 304 |
+
"bbox": [
|
| 305 |
+
228,
|
| 306 |
+
208,
|
| 307 |
+
767,
|
| 308 |
+
277
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "Noting that the joint $p ( \\mathbf { y } , \\mathbf { v } ) = \\mathbb { I } [ \\mathbf { v } \\in \\mathbf { y } + [ 0 , 1 ) ^ { D } ] p ( \\mathbf { v } )$ , we see that the dequantizer distribution $q ( \\mathbf { v } | \\mathbf { y } )$ must be defined such that $\\mathbf { v } \\in \\mathbf { y } + [ 0 , 1 ) ^ { D }$ , otherwise $p ( \\mathbf { y } , \\mathbf { v } ) = 0$ and the lower-bound is undefined. Restricting $q ( \\mathbf { v } | \\mathbf { y } )$ to satisfy this condition, results in the following variational dequantization bound ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
176,
|
| 317 |
+
282,
|
| 318 |
+
823,
|
| 319 |
+
339
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 2
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "equation",
|
| 325 |
+
"img_path": "images/5743de617a8072ac2e0a189a3464df35bff58a1ce296a8a343f1b5e5a8c4dc66.jpg",
|
| 326 |
+
"text": "$$\n\\mathbb { E } _ { P _ { \\mathrm { d a t a } } ( \\mathbf { y } ) } \\log P _ { \\mathrm { m o d e l } } ( \\mathbf { y } ) \\geq \\mathbb { E } _ { P _ { \\mathrm { d a t a } } ( \\mathbf { y } ) } \\int q ( \\mathbf { v } | \\mathbf { y } ) \\log \\frac { p ( \\mathbf { v } ) } { q ( \\mathbf { v } | \\mathbf { y } ) } \\mathrm { d } \\mathbf { v } .\n$$",
|
| 327 |
+
"text_format": "latex",
|
| 328 |
+
"bbox": [
|
| 329 |
+
303,
|
| 330 |
+
344,
|
| 331 |
+
694,
|
| 332 |
+
378
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 2
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "2.2 STRUCTURED PREDICTION ",
|
| 339 |
+
"text_level": 1,
|
| 340 |
+
"bbox": [
|
| 341 |
+
174,
|
| 342 |
+
393,
|
| 343 |
+
398,
|
| 344 |
+
409
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "Structured prediction tasks such as image segmentation or super-resolution, can be probabilistically framed as learning an unknown target distribution $p ^ { * } ( \\mathbf { y } \\vert \\mathbf { x } )$ , with an input $\\mathbf { x } \\in \\mathcal { X }$ and a target $\\mathbf { y } \\in \\mathcal { V }$ . In practice with deep learning models, the unknown distribution is often learned by a factored model: ",
|
| 351 |
+
"bbox": [
|
| 352 |
+
174,
|
| 353 |
+
420,
|
| 354 |
+
823,
|
| 355 |
+
462
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 2
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "equation",
|
| 361 |
+
"img_path": "images/7815807a3f3469484febf3715d3534e54217ecf52a7c6b4c301788a9ff0273c7.jpg",
|
| 362 |
+
"text": "$$\np ( \\mathbf { y } | \\mathbf { x } ) = \\prod _ { d = 1 } ^ { D } p ( y _ { d } | \\mathbf { x } ) ,\n$$",
|
| 363 |
+
"text_format": "latex",
|
| 364 |
+
"bbox": [
|
| 365 |
+
423,
|
| 366 |
+
468,
|
| 367 |
+
575,
|
| 368 |
+
512
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 2
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "where $y _ { d }$ represents the dth dimension of y. Several loss-based optimization methods are a special case of this factored model. The mean squared error is equivalent to a product of normal distributions with equal and fixed standard deviation. Other examples are: cross entropy, equivalent to a product of log categorical distributions, and binary cross entropy, equivalent to a product of log Bernoulli distributions. ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
173,
|
| 377 |
+
518,
|
| 378 |
+
825,
|
| 379 |
+
589
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 2
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "With factorized independent likelihoods, individual dimensions of y are assumed to be conditionally independent. As a result, sampling leads to results with uncorrelated noise over the output dimensions. In the literature, a fix for this problem is to visualize the mode of the distribution and interpret that as a prediction. However, because the likelihood was optimized assuming a conditionally independent noise distribution, these modes tend to be blurry and lack crisp details. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
173,
|
| 388 |
+
594,
|
| 389 |
+
825,
|
| 390 |
+
666
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 2
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "3 METHOD ",
|
| 397 |
+
"text_level": 1,
|
| 398 |
+
"bbox": [
|
| 399 |
+
174,
|
| 400 |
+
686,
|
| 401 |
+
282,
|
| 402 |
+
702
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 2
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "text",
|
| 408 |
+
"text": "In this section we present our main innovations. i) learning conditional likelihoods using CNFs and $i i$ ) a variational dequantization framework for binary random variables. ",
|
| 409 |
+
"bbox": [
|
| 410 |
+
173,
|
| 411 |
+
718,
|
| 412 |
+
825,
|
| 413 |
+
747
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 2
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "3.1 CONDITIONAL NORMALIZING FLOWS ",
|
| 420 |
+
"text_level": 1,
|
| 421 |
+
"bbox": [
|
| 422 |
+
174,
|
| 423 |
+
763,
|
| 424 |
+
477,
|
| 425 |
+
779
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 2
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "We propose to learn conditional likelihoods using conditional normalizing flows for complicated target distributions in multivariate prediction tasks. Take an input $\\mathbf { x } \\in \\mathcal { X }$ and a regression target $\\mathbf { y } \\in \\mathcal { V }$ . We learn a complicated distribution $p _ { Y | X } ( \\mathbf { y } | \\mathbf { x } )$ using a conditional prior $p _ { Z | X } ( \\mathbf { z } | \\mathbf { x } )$ and a mapping $f _ { \\phi } : \\mathcal { V } \\times \\mathcal { X } \\to \\mathcal { Z }$ , which is bijective in $\\mathcal { V }$ and $\\mathcal { Z }$ . The likelihood of this model is: ",
|
| 432 |
+
"bbox": [
|
| 433 |
+
173,
|
| 434 |
+
790,
|
| 435 |
+
825,
|
| 436 |
+
847
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 2
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "equation",
|
| 442 |
+
"img_path": "images/554fa0db53062c2d368377938d089582b6109ba3a57780be5f706b97e63fc090.jpg",
|
| 443 |
+
"text": "$$\np _ { Y | X } ( \\mathbf { y } | \\mathbf { x } ) = p _ { Z | X } ( \\mathbf { z } | \\mathbf { x } ) \\left| \\frac { \\partial \\mathbf { z } } { \\partial \\mathbf { y } } \\right| = p _ { Z | X } ( f _ { \\phi } ( \\mathbf { y } , \\mathbf { x } ) | \\mathbf { x } ) \\left| \\frac { \\partial f _ { \\phi } ( \\mathbf { y } , \\mathbf { x } ) } { \\partial \\mathbf { y } } \\right| .\n$$",
|
| 444 |
+
"text_format": "latex",
|
| 445 |
+
"bbox": [
|
| 446 |
+
281,
|
| 447 |
+
854,
|
| 448 |
+
717,
|
| 449 |
+
888
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 2
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": "Notice that the difference between Equations 1 and 7 is that all distributions are conditional and the flow has a conditioning argument of $\\mathbf { x }$ . ",
|
| 456 |
+
"bbox": [
|
| 457 |
+
174,
|
| 458 |
+
895,
|
| 459 |
+
823,
|
| 460 |
+
924
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 2
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "text",
|
| 466 |
+
"text": "The generative process from x to $\\mathbf { y }$ (shown in Figure 1) can be described by first sampling $\\mathbf { z } \\sim$ $p _ { Z | X } ( \\mathbf { z } | \\mathbf { x } )$ from a simple base density with its parameters conditioned on $\\mathbf { x }$ (for us this is a diagonal Gaussian) and then passing it through a sequence of bijective mappings $f _ { \\phi } ^ { - 1 } ( \\mathbf { z } ; \\mathbf { x } )$ . This allows for modelling multimodal conditional distributions in y, which is typically uncommon. ",
|
| 467 |
+
"bbox": [
|
| 468 |
+
174,
|
| 469 |
+
103,
|
| 470 |
+
825,
|
| 471 |
+
165
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 3
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "For the training procedure, the process runs in reverse. We begin with label $\\mathbf { y }$ and conditioning input $\\mathbf { x }$ . We ‘flow’ the label back through $f _ { \\phi }$ to yield $\\mathbf { z } = f _ { \\phi } ( \\mathbf { y } ; \\mathbf { x } )$ , and then we evaluate the log-likelihood of the parameters of the prior, given this transformed label $\\mathbf { z }$ . The flow and prior parameters can be optimized using stochastic gradient descent and training in minibatches in the usual fashion. Note that this style of training a conditional density model $p _ { Y | X } ( \\mathbf { y } | \\mathbf { x } )$ differs fundamentally from traditional models, because we compute the log-likelihood in $\\mathbf { z }$ -space and not y-space. As a result, we are not biasing our results with an arbitrary choice of output-space likelihood or in the case of this paper, handcrafted image loss. Instead, one could interpret this method as learning the correlational and multimodal structure of the likelihood or simply put loss-learning. ",
|
| 478 |
+
"bbox": [
|
| 479 |
+
174,
|
| 480 |
+
171,
|
| 481 |
+
549,
|
| 482 |
+
393
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 3
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "image",
|
| 488 |
+
"img_path": "images/1d00c1a305b002fe4da20995d0fabb8d03ca5c203d3362bd2c40e5bad8b0f3e7.jpg",
|
| 489 |
+
"image_caption": [
|
| 490 |
+
"Figure 1: Diagram of our model in the train and sampling phases. Solid lines represent deterministic mappings and dashed lines represent sampling. The conditioning variable enters the network in base density $p ( \\mathbf { z } | \\mathbf { x } )$ and the bijective mappings $f ( \\mathbf { y } , \\mathbf { x } )$ . "
|
| 491 |
+
],
|
| 492 |
+
"image_footnote": [],
|
| 493 |
+
"bbox": [
|
| 494 |
+
562,
|
| 495 |
+
186,
|
| 496 |
+
823,
|
| 497 |
+
260
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 3
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "Conditional modules In our work, the conditioning is introduced in the prior, the split priors, and the affine coupling modules. For the prior, we set the mean and variance as functions of $\\mathbf { x }$ . For the split prior, we add $\\mathbf { x }$ as a conditoning argument to the conditional $p ( \\mathbf { z } _ { 1 } | \\mathbf { z } _ { 0 } , \\mathbf { x } )$ . And for the affine coupling layers, we pass $\\mathbf { x }$ to the scale and translation networks so that ",
|
| 504 |
+
"bbox": [
|
| 505 |
+
176,
|
| 506 |
+
407,
|
| 507 |
+
825,
|
| 508 |
+
463
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 3
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "equation",
|
| 514 |
+
"img_path": "images/2432f77e6296154216b836b4d881c98255c92bbd5f2cdbc54dc9ba9937557734.jpg",
|
| 515 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathrm { C o n d i t i o n a l ~ P r i o r } \\qquad p ( \\mathbf { z } | \\mathbf { x } ) = \\mathcal { N } ( \\mathbf { z } ; \\mu ( \\mathbf { x } ) , \\sigma ^ { 2 } ( \\mathbf { x } ) ) } \\\\ & { \\mathrm { C o n d i t i o n a l ~ S p l i t ~ P r i o r } \\quad p ( \\mathbf { z } _ { 1 } | \\mathbf { z } _ { 0 } , \\mathbf { x } ) = \\mathcal { N } ( \\mathbf { z } _ { 1 } ; \\mu ( \\mathbf { z } _ { 0 } , \\mathbf { x } ) , \\sigma ^ { 2 } ( \\mathbf { z } _ { 0 } , \\mathbf { x } ) ) } \\\\ & { \\mathrm { C o n d i t i o n a l ~ C o u p l i n g } \\quad \\mathbf { y } _ { 0 } = s ( \\mathbf { z } _ { 1 } , \\mathbf { x } ) \\cdot \\mathbf { z } _ { 0 } + t ( \\mathbf { z } _ { 1 } , \\mathbf { x } ) ; \\qquad \\mathbf { y } _ { 1 } = \\mathbf { z } _ { 1 } } \\end{array}\n$$",
|
| 516 |
+
"text_format": "latex",
|
| 517 |
+
"bbox": [
|
| 518 |
+
267,
|
| 519 |
+
472,
|
| 520 |
+
730,
|
| 521 |
+
521
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 3
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "text",
|
| 527 |
+
"text": "In practice these functions are implemented using deep neural networks. First the conditioning term $\\mathbf { x }$ is transformed into a rich representation $\\mathbf { h } = g ( \\mathbf { x } )$ using a large network $g$ . Subsequently, each function in the flow is applied to a concatenation $[ \\cdot , \\cdot ]$ of $\\mathbf { h }$ and the relevant part of $\\mathbf { z }$ . For example, the translation of a conditional coupling is computed as $t ( \\mathbf { z } _ { 1 } , \\mathbf { x } ) = \\mathbf { N N } ( [ \\mathbf { z } _ { 1 } , \\mathbf { h } ] )$ . ",
|
| 528 |
+
"bbox": [
|
| 529 |
+
176,
|
| 530 |
+
529,
|
| 531 |
+
825,
|
| 532 |
+
585
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 3
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "3.2 VARIATIONAL DEQUANTIZATION FOR BINARY RANDOM VARIABLES ",
|
| 539 |
+
"text_level": 1,
|
| 540 |
+
"bbox": [
|
| 541 |
+
176,
|
| 542 |
+
599,
|
| 543 |
+
687,
|
| 544 |
+
614
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 3
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "We generalize the variational dequantization scheme for the binary setting. Let $\\mathbf { y } \\in \\{ 0 , 1 \\} ^ { D }$ be a multivariate binary random variable and $\\mathbf { v } \\in \\mathbb { R } ^ { D }$ its dequantized representation. In Ho et al. (2019) the bound is not guaranteed to be tight, since there is a domain mismatch in the support of $p ( \\mathbf { v } )$ and the variational dequantizer $q ( \\mathbf { v } | \\mathbf { y } )$ . Technically, if $p ( \\mathbf { v } )$ is modeled as a bijective mapping from a Gaussian distribution where the mapping only has finite volume changes, then the support of $p ( \\mathbf { v } )$ is unbounded. On the otherhand, the support of the dequantizer is bounded and so we have to redefine either the dequantizer to map to all of $\\mathbb { R } ^ { D }$ or restrict the support of the flow to a bounded volume inside $\\mathbb { R } ^ { D }$ . We resolve this by dequantizing with half-infinite noise, where ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
173,
|
| 553 |
+
626,
|
| 554 |
+
825,
|
| 555 |
+
738
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 3
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "equation",
|
| 561 |
+
"img_path": "images/3dcf5000ee068c5360fa1025803f9b79d3eea096990484a6e972a440540fa3ac.jpg",
|
| 562 |
+
"text": "$$\n\\mathbf { v } | \\mathbf { y } , \\mathbf { z } = 0 . 5 + \\mathrm { s i g n } ( \\mathbf { y } - 0 . 5 ) \\cdot \\mathrm { s o f t p l u s } ( \\mathrm { N N } ( \\mathbf { z } ) ) .\n$$",
|
| 563 |
+
"text_format": "latex",
|
| 564 |
+
"bbox": [
|
| 565 |
+
336,
|
| 566 |
+
741,
|
| 567 |
+
658,
|
| 568 |
+
758
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 3
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "The softplus guarantees that samples from the neural network NN are only positive. If $\\mathbf { y }$ is 1, the term $\\mathrm { s i g n } ( \\mathbf { y } - 0 . 5 )$ outputs positive-valued noise and if $\\mathbf { y }$ is 0 the noise is negative-valued. ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
173,
|
| 577 |
+
761,
|
| 578 |
+
828,
|
| 579 |
+
790
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 3
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "4 RELATED WORK ",
|
| 586 |
+
"text_level": 1,
|
| 587 |
+
"bbox": [
|
| 588 |
+
176,
|
| 589 |
+
809,
|
| 590 |
+
344,
|
| 591 |
+
825
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 3
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "Normalizing flows were originally introduced to machine learning to learn a flexible variational posterior, a conditional distribution, in VAEs (Rezende & Mohamed, 2015; Kingma et al., 2016a; van den Berg et al., 2018). Flow-based generative models (Dinh et al., 2016; Papamakarios et al., 2017; Huang et al., 2018; Kingma & Dhariwal, 2018; Hoogeboom et al., 2019b; Grathwohl et al., 2019; Cao et al., 2019; Chen et al., 2019) are typically trained directly in the data space. Several of these are designed to be fast to invert, which makes them suitable for drawing samples after training. ",
|
| 598 |
+
"bbox": [
|
| 599 |
+
173,
|
| 600 |
+
839,
|
| 601 |
+
825,
|
| 602 |
+
924
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 3
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "text",
|
| 608 |
+
"text": "Different versions and applications of conditional normalizing flows include Agrawal & Dukkipati (2016) who utilize flows in the decoder of Variational AutoEncoders Kingma & Welling (2014), which are conditioned on the latent variable. Trippe & Turner (2018) who utilize conditional flows for prediction problems in a Bayesian framework for density estimation. Atanov et al. (2019) introduce a semi-conditional flow that provides an efficient way to learn from unlabeled data for semisupervised classification problems. Very recently, Ardizzone et al. (2019) have proposed conditional flow-based generative models for image colorization, which differs from our work in training objective, architecture and applicability to binary segmentation. Autoregressive models (Van Oord et al., 2016) have also been studied for conditional image generation van den Oord et al. (2016) but are generally slow to sample from. ",
|
| 609 |
+
"bbox": [
|
| 610 |
+
174,
|
| 611 |
+
103,
|
| 612 |
+
825,
|
| 613 |
+
242
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 4
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "Adversarial methods (Goodfellow et al., 2014) have widely been applied to (conditional) image density modeling tasks (Vu et al., 2019; Sajjadi et al., 2017b; Yuan et al., 2018; Mechrez et al., 2018), because they tend to generate high-fidelity images. Disadvantages of adversarial methods are that they can be complicated to train, and it is difficult to obtain likelihoods. For this reason, it can be hard to assess whether they are overfitting or generalizing. ",
|
| 620 |
+
"bbox": [
|
| 621 |
+
174,
|
| 622 |
+
250,
|
| 623 |
+
825,
|
| 624 |
+
319
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 4
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "5 EXPERIMENTS ",
|
| 631 |
+
"text_level": 1,
|
| 632 |
+
"bbox": [
|
| 633 |
+
176,
|
| 634 |
+
342,
|
| 635 |
+
326,
|
| 636 |
+
357
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 4
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "Here we explain our experiments into super-resolution and vessel segmentation. All models were implemented using the PyTorch framework. ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
176,
|
| 645 |
+
375,
|
| 646 |
+
823,
|
| 647 |
+
401
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 4
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "5.1 SINGLE IMAGE SUPER RESOLUTION",
|
| 654 |
+
"text_level": 1,
|
| 655 |
+
"bbox": [
|
| 656 |
+
176,
|
| 657 |
+
421,
|
| 658 |
+
465,
|
| 659 |
+
435
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 4
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "Single Image Super Resolution (SISR) methods aims to find a high resolution image $x _ { h r }$ given a single (downsampled) low resolution image $x _ { l r }$ . Framing this problem as learning a likelihood, we utilize a CNF to learn the distribution $p ( x _ { h r } | x _ { l r } )$ . To compare our method we also train a factorized baseline likelihood model with comparable architectures and parameter budget. The factorized baseline uses a product of discretized logistic distributions (Kingma et al., 2016a; Salimans et al., 2017). All methods are compared on negative $\\log _ { 2 }$ -likelihood if available, which has the information theoretic interpretation bits per dimensions. In addition, we evaluate using SSIM (Wang et al., 2004) and PSNR metrics. ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
174,
|
| 668 |
+
446,
|
| 669 |
+
825,
|
| 670 |
+
558
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 4
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "Implementation Details The flow is based on the (Dinh et al., 2016; Kingma & Dhariwal, 2018) multi-scale architectures. Each step of flow consists of $K$ subflows and $L$ levels. One subflow consists of an activation normalization, $1 \\times 1$ convolution, and our conditional coupling layer. After completing a level, half of the representation is factored-out and modeled using our conditional split prior. After all levels have been completed, our conditional prior is used to model the final part of the latent variable. ",
|
| 677 |
+
"bbox": [
|
| 678 |
+
174,
|
| 679 |
+
575,
|
| 680 |
+
825,
|
| 681 |
+
660
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 4
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "The conditioning variable $x _ { l r }$ is transformed into the feature representation h using Residual-inResidual Dense Block (RRDB) architecture (Wang et al., 2018), consisting of 16 residual-in-residual blocks. To match the parameter budget, the channel growth is 55 for the baseline and the growth is 32 for the CNF. ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
174,
|
| 690 |
+
666,
|
| 691 |
+
825,
|
| 692 |
+
722
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 4
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "Data The models are trained on natural image datasets, Imagenet32 and Imagenet64 (Chrabaszcz et al., 2017). Since the dataset has no test set, we use its validation images as a test set. For validation we take 10000 images from the train images. The performance is always reported on the test set unless specified otherwise. We evaluate our models on widely used benchmark datasets Set5 (Bevilacqua et al., 2012), Set14 (Zeyde et al., 2012) and BSD100 (Huang et al., 2015). At test time, we pad the test images with zeros at right and bottom so that they are square and compatible with squeeze layers. When evaluating on SSIM and PSNR, we can extract the patch with the exact image shape. For all datasets the LR images are obtained using MATLABs bicubic kernel function with reducing aliasing artifacts following Wang et al. (2018). For these experiments, the pixel values are dequantized by adding uniform noise (Theis et al., 2016). ",
|
| 699 |
+
"bbox": [
|
| 700 |
+
174,
|
| 701 |
+
739,
|
| 702 |
+
825,
|
| 703 |
+
878
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 4
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "Training Settings We train on ImageNet32 and ImageNet64 for 200, 000 iterations with mini batches of size 64, and a learning rate of 0.0001 using the Adam optimizer (Kingma & Ba, 2015). ",
|
| 710 |
+
"bbox": [
|
| 711 |
+
174,
|
| 712 |
+
895,
|
| 713 |
+
823,
|
| 714 |
+
924
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 4
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "image",
|
| 720 |
+
"img_path": "images/968b128bcb0c0904815de5b4636633af6dac527cda75f1e445b409699c0fcf5b.jpg",
|
| 721 |
+
"image_caption": [
|
| 722 |
+
"Figure 2: Super resolution results on the Imagenet64 test data. Samples are taken from the CNF $x _ { h r } \\sim p ( x _ { h r } | x _ { l r } )$ and the mode is visualized for the factorized baseline model. Best viewed electronically. "
|
| 723 |
+
],
|
| 724 |
+
"image_footnote": [],
|
| 725 |
+
"bbox": [
|
| 726 |
+
174,
|
| 727 |
+
99,
|
| 728 |
+
823,
|
| 729 |
+
239
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 5
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "text",
|
| 735 |
+
"text": "The high-resolution image $x _ { h r }$ either the original $3 2 \\times 3 2$ or $6 4 \\times 6 4$ original input images. The flow architecture is build with $L = 2$ levels and $K = 8$ . ",
|
| 736 |
+
"bbox": [
|
| 737 |
+
174,
|
| 738 |
+
315,
|
| 739 |
+
823,
|
| 740 |
+
344
|
| 741 |
+
],
|
| 742 |
+
"page_idx": 5
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"type": "text",
|
| 746 |
+
"text": "5.1.1 EVALUATION ",
|
| 747 |
+
"text_level": 1,
|
| 748 |
+
"bbox": [
|
| 749 |
+
174,
|
| 750 |
+
359,
|
| 751 |
+
320,
|
| 752 |
+
373
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 5
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "In this section the performance of CNFs for SISR is compared against a baseline likelihood model on ImageNet32 and ImageNet64. Their performance measured in $\\log _ { 2 }$ -likelihood (bits per dimension) is shown in Table 1, which show that the CNF outperforms the factorized baseline in likelihood. Recall that the baseline model is factorized and conditionally independent. These results indicate that it is advantageous to capture the correlations and multi-modality present in the data. ",
|
| 759 |
+
"bbox": [
|
| 760 |
+
174,
|
| 761 |
+
383,
|
| 762 |
+
825,
|
| 763 |
+
454
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 5
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "table",
|
| 769 |
+
"img_path": "images/d38232654bdbbfd11a456af93a0e48b5ee651904fc5bcf891b6a3afaa8a205e5.jpg",
|
| 770 |
+
"table_caption": [
|
| 771 |
+
"Table 1: Comparison of likelihood learning with CNFs and factorized discrete baseline on ImageNet32 and ImageNet64 measured in bits per dimensions. "
|
| 772 |
+
],
|
| 773 |
+
"table_footnote": [],
|
| 774 |
+
"table_body": "<table><tr><td>Dataset</td><td>CNF</td><td>factorized LL</td></tr><tr><td>ImageNet32</td><td>3.01</td><td>4.00</td></tr><tr><td>ImageNet64</td><td>2.90</td><td>3.61</td></tr></table>",
|
| 775 |
+
"bbox": [
|
| 776 |
+
364,
|
| 777 |
+
506,
|
| 778 |
+
632,
|
| 779 |
+
563
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 5
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "Super resolution samples $x _ { h r } \\sim p ( x _ { h r } | x _ { l r } )$ from the Imagenet64 test data are shown in Figure 2. The distribution mode of the factorized baseline is displayed in Figure 2 panel c). We show that the baseline is able to learn a relationship between conditioning variable $\\mathbf { x }$ and $\\mathbf { y }$ , but lacks crisp details. The super-resolution images from the CNF are shown in panel b). Notice there are more high-frequency components modelled, for instance in grass and in hairs. Following Kingma & Dhariwal (2018), we sample from the base distributions with a temperature $\\tau$ of 0.8 to achieve the best perceptual quality for the distribution learned by the CNF. ",
|
| 786 |
+
"bbox": [
|
| 787 |
+
173,
|
| 788 |
+
575,
|
| 789 |
+
825,
|
| 790 |
+
674
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 5
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "As there are no standard metric for measuring perceptual quality, we measure performance results on PSNR and SSIM between our predicted image and the ground truth image in Table 2. We compare CNFs to other state-of-the-art per-pixel loss based methods and the factorized baseline for a $2 \\mathbf { x }$ upsampling task on standard super-resolution benchmarks. If available, we report negative $\\log _ { 2 ^ { - } }$ likelihood (bpd) (computed as an average over 1000 randomly cropped $1 2 8 \\mathrm { ~ x ~ } 1 2 8$ patches). Note that without any hyperparameter tuning or compositional loss weighting, as is typical in SISR, the CNF performs competitively with state-of-the-art super-resolution methods by simply optimizing the likelihood. The SSIM scores for the baseline perform on par or better than the adversarial methods and the CNF on all benchmarks. On PSNR scores however, the CNF beats the factorized discrete baseline. Samples shown in Figure 3 show that the CNF predictions have more fine grained texture details. Comparing this finding with the baseline that outperforms every method on SSIM, show that metrics can be misleading. ",
|
| 797 |
+
"bbox": [
|
| 798 |
+
173,
|
| 799 |
+
680,
|
| 800 |
+
825,
|
| 801 |
+
847
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 5
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "Notice how samples from a independent factorized likelihood model have a lot of color noise, whereas samples from the CNF do not have such problems. Increasing temperature increases highlevel detail, where we find that $\\tau = 0 . 5$ strikes a balance between noise smoothing and detail. This can be attributed to the property of flows to model pixel correlations among output dimensions for high-dimensional data such as images. ",
|
| 808 |
+
"bbox": [
|
| 809 |
+
174,
|
| 810 |
+
854,
|
| 811 |
+
823,
|
| 812 |
+
924
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 5
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "image",
|
| 818 |
+
"img_path": "images/5602ea26bc9f0019bce5ce039c4e3071ca127744d2404a6971011ac9cc775f23.jpg",
|
| 819 |
+
"image_caption": [
|
| 820 |
+
"Figure 3: Conditional samples from the CNF (ours) for sampling temperatures $\\{ 0 . , 0 . 5 , 1 . 0 \\}$ and the factorized discrete baseline for $2 \\mathbf { x }$ upscaling. Conditioning image is a baboon from Set14 test set. Both models were trained on ImageNet64. Best viewed electronically. "
|
| 821 |
+
],
|
| 822 |
+
"image_footnote": [],
|
| 823 |
+
"bbox": [
|
| 824 |
+
174,
|
| 825 |
+
98,
|
| 826 |
+
823,
|
| 827 |
+
244
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 6
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "table",
|
| 833 |
+
"img_path": "images/c532409d5f9005d84432d217c4ef6396c06f517490bbb717dae5d8d8fa4a2431.jpg",
|
| 834 |
+
"table_caption": [
|
| 835 |
+
"Table 2: CNF compared to factorized discrete baseline and adversarial, pixel-wise methods (Dong et al., 2015; Sajjadi et al., 2017a; Prez-Pellitero et al., 2016) based on negative $\\log _ { 2 }$ -likelihood (bits per dimension or bpd), PSNR, SSIM and for $2 \\mathbf { x }$ upscaling. Our methods were trained on ImageNet64. "
|
| 836 |
+
],
|
| 837 |
+
"table_footnote": [],
|
| 838 |
+
"table_body": "<table><tr><td></td><td></td><td>Set5</td><td colspan=\"5\">Set14</td><td>BSD100</td><td></td></tr><tr><td>Model Type</td><td>bpd</td><td>PSNR</td><td>SSIM 1</td><td>bpd</td><td>PSNR</td><td>SSIM</td><td>bpd</td><td>PSNR</td><td>SSIM</td></tr><tr><td>Bicubic</td><td>-</td><td>33.7</td><td>0.930</td><td>-</td><td>30.2</td><td>0.869</td><td>1</td><td>29.6</td><td>0.843</td></tr><tr><td>SRCNN</td><td>1</td><td>36.7</td><td>0.954</td><td>1</td><td>32.4</td><td>0.906</td><td>1</td><td>31.4</td><td>0.888</td></tr><tr><td>PSyCO</td><td>1</td><td>36.9</td><td>0.956</td><td>-</td><td>32.6</td><td>0.898</td><td>1</td><td>31.4</td><td>0.890</td></tr><tr><td>ENet</td><td>1</td><td>37.3</td><td>0.958</td><td>1</td><td>33.3</td><td>0.915</td><td>1</td><td>32.0</td><td>0.898</td></tr><tr><td>LL Baseline</td><td>2.34</td><td>32.5</td><td>0.958</td><td>3.23</td><td>31.0</td><td>0.917</td><td>3.20</td><td>30.6</td><td>0.900</td></tr><tr><td>CNF (ours)</td><td>2.11</td><td>36.2</td><td>0.957</td><td>2.51</td><td>32.5</td><td>0.911</td><td>2.33</td><td>31.4</td><td>0.893</td></tr></table>",
|
| 839 |
+
"bbox": [
|
| 840 |
+
173,
|
| 841 |
+
391,
|
| 842 |
+
821,
|
| 843 |
+
534
|
| 844 |
+
],
|
| 845 |
+
"page_idx": 6
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "text",
|
| 849 |
+
"text": "5.2 VESSEL SEGMENTATION ",
|
| 850 |
+
"text_level": 1,
|
| 851 |
+
"bbox": [
|
| 852 |
+
174,
|
| 853 |
+
569,
|
| 854 |
+
383,
|
| 855 |
+
583
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 6
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "Vessel segmentation is an important, long-standing, medical imaging problem, where we seek to segment blood vessels from pictures of the retina (the back of the eye). This is a difficult task, because the vessels are thin and of varying thickness. A likelihood function used in segmentation is ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
173,
|
| 864 |
+
599,
|
| 865 |
+
826,
|
| 866 |
+
642
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 6
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "image",
|
| 872 |
+
"img_path": "images/64404a415db694e85d9227c5b4fd54d66608ebbee408c1463360b6822919ce1f.jpg",
|
| 873 |
+
"image_caption": [
|
| 874 |
+
"Figure 4: Example of retinal segmentations using DRIU, our likelihood baseline trained with the same loss, and our CNF. For the CNF, the mean of 100 samples is visualized. Notice that our segmentations more accurately capture the vessel width, which is overdilated in the DRIU and factored models. "
|
| 875 |
+
],
|
| 876 |
+
"image_footnote": [],
|
| 877 |
+
"bbox": [
|
| 878 |
+
174,
|
| 879 |
+
672,
|
| 880 |
+
825,
|
| 881 |
+
853
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 6
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "table",
|
| 887 |
+
"img_path": "images/6c6811f6732fcf8e7af3849b9391a8999fe2366d17bdfc5608fbbb332a3d7eb5.jpg",
|
| 888 |
+
"table_caption": [
|
| 889 |
+
"Table 3: Numerical results on the DRIVE dataset. We see that the CNF is in the range of the SOTA model DRIU. SE: Structured Forests (Dollar & Zitnick, 2013), LD: Line Detector (Ricci & Perfetti, ´ 2007), Wavelets (Soares et al., 2006), Human (Staal et al., 2004), HED: Holistic Edge Detector (Xie & Tu, 2015), KB: Kernel Boost Becker et al. (2013), $N ^ { 4 }$ : $N ^ { 4 }$ Fields (Ganin & Lempitsky, 2014), DRIU: Deep Retinal Image Understanding (Maninis et al., 2016). Our answers are shown in mean ± 1std form, where statistics are taken over 5 runs. "
|
| 890 |
+
],
|
| 891 |
+
"table_footnote": [],
|
| 892 |
+
"table_body": "<table><tr><td></td><td>SE</td><td>LD</td><td>Wavelets</td><td>Human</td><td>HED</td><td>KB</td><td>N4</td><td>DRIU</td><td>Factored (ours)</td><td>CNF Uniform (Ours)</td><td>CNF (ours)</td></tr><tr><td>bpd</td><td></td><td></td><td></td><td>■</td><td>=</td><td>=</td><td></td><td></td><td>0.0647 ± 0.0015</td><td>0.3366 ± 0.0290</td><td>0.0254± 0.0008</td></tr><tr><td>F-Score</td><td>0.658</td><td>0.692</td><td>0.762</td><td>0.791</td><td>0.794</td><td>0.800</td><td>0.805</td><td>0.821</td><td>0.815 ± 0.001</td><td>0.762 ± 0.002</td><td>0.819 ± 0.001</td></tr></table>",
|
| 893 |
+
"bbox": [
|
| 894 |
+
176,
|
| 895 |
+
195,
|
| 896 |
+
823,
|
| 897 |
+
233
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 7
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "a weighted Bernoulli distribution ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
173,
|
| 906 |
+
260,
|
| 907 |
+
393,
|
| 908 |
+
273
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 7
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "equation",
|
| 914 |
+
"img_path": "images/f2941e0fa60e747be02afea1233001f45cb5791567c8dc5a821ed218a2ff3028.jpg",
|
| 915 |
+
"text": "$$\n\\mathcal { L } = \\prod _ { j } \\frac { p _ { j } ^ { \\beta \\cdot y _ { j } } ( 1 - p _ { j } ) ^ { ( 1 - \\beta ) \\cdot ( 1 - y _ { j } ) } } { p _ { j } ^ { \\beta } + ( 1 - p _ { j } ) ^ { 1 - \\beta } }\n$$",
|
| 916 |
+
"text_format": "latex",
|
| 917 |
+
"bbox": [
|
| 918 |
+
382,
|
| 919 |
+
280,
|
| 920 |
+
616,
|
| 921 |
+
325
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 7
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "where $p _ { j } = p ( y _ { j } = 1 | \\mathbf { x } )$ is the prediction probability that pixel $y _ { j }$ is positive (vessel class) and $\\beta$ is a class balancing constant set to $\\sim 1 0 \\%$ for us. This loss function is preferred, because it accounts for the apparent class imbalance in the ratio of vessels to background. In practice, the numerator of this likelihood is used as a loss function and the normalizer is ignored. The resulting loss is called a weighted cross-entropy. In our experiments we train using the weighted cross-entropy (as in the literature), but we report likelihood values including the normalizer, for a meaningful comparison. ",
|
| 928 |
+
"bbox": [
|
| 929 |
+
174,
|
| 930 |
+
333,
|
| 931 |
+
825,
|
| 932 |
+
417
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 7
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "text",
|
| 938 |
+
"text": "Dataset and comparisons We test on the DRIVE database Staal et al. (2004) consisting of $5 8 4 \\times$ 565, 8-bit RGB images, split into 20 train, and 20 test images. To compare against other methods, we plot precision-recall curves, report the maximum F-score along each curve (shown as a dot in the graph), report the bits per dimension, and plot distributions in PR-space. The main CNN-based contenders are Deep Retinal Image Understanding (DRIU) (Maninis et al., 2016) and HolisticallyNested Edge Detection (HED) (Xie & Tu, 2015), both of which are instances of Deeply-Supervised Nets (Lee et al., 2015). The main difference between DRIU and HED is that DRIU is pretrained on ImageNet Krizhevsky et al. (2012); whereas, HED is not. Other competing methods are reported with results cited from (Maninis et al., 2016). For fairness, we also train a model which we call the likelihood baseline, which uses the exact same architecture as the flow but run a feedforward model and trained with the weighted Bernoulli loss. ",
|
| 939 |
+
"bbox": [
|
| 940 |
+
174,
|
| 941 |
+
433,
|
| 942 |
+
825,
|
| 943 |
+
585
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 7
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "Implementation The flow is identical to the flow used in the previous section, with some key differences. i) instead of activation normalization, we use instance normalization (Ulyanov et al., 2016), ii) the conditional affine coupling layers do not contain a scaling component $s ( \\cdot )$ but just the translation $t ( \\cdot )$ , hence it is volume preserving, and iii) we train using variational dequantization. Since the data is binary-valued, we dequantize according to the Flow $^ { + + }$ scheme of Ho et al., modified to binary variables (see Section 3.2), using a CNF at just a single scale for the dequantizer. The CNF is conditioned on resolution-matched features extracted from a VGG-like network Simonyan & Zisserman (2015). This model is composed of blocks of the form block $=$ [InstanceNorm, ReLU, conv], and $2 \\mathbf { x } 2$ max-pooling layer, shown in Table 4. All filter sizes are $3 { \\tt X } 3$ . The outputs are at layers 4 and 7. These are used to condition the resolution 512 and 256 levels of the CNF, respectively. ",
|
| 950 |
+
"bbox": [
|
| 951 |
+
174,
|
| 952 |
+
603,
|
| 953 |
+
612,
|
| 954 |
+
824
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 7
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "table",
|
| 960 |
+
"img_path": "images/1589cc26343e700cb779ff78a621169e5778c08b02c0e4960128025060235400.jpg",
|
| 961 |
+
"table_caption": [
|
| 962 |
+
"Table 4: Feature extractor architecture for retinal vessel segmentation. RES. abbreviates resolution. Outputs are at layer 4 and 7. "
|
| 963 |
+
],
|
| 964 |
+
"table_footnote": [],
|
| 965 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>LAYER</td><td rowspan=1 colspan=1>TYPE</td><td rowspan=1 colspan=1>RES.</td></tr><tr><td rowspan=1 colspan=1>01</td><td rowspan=1 colspan=1>inputblock</td><td rowspan=1 colspan=1>10241024</td></tr><tr><td rowspan=1 colspan=1>234</td><td rowspan=1 colspan=1>max-poolblockblock</td><td rowspan=1 colspan=1>512512512</td></tr><tr><td rowspan=3 colspan=1>567</td><td rowspan=3 colspan=1>max-poolblockblock</td><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=1>256</td></tr></table>",
|
| 966 |
+
"bbox": [
|
| 967 |
+
625,
|
| 968 |
+
671,
|
| 969 |
+
831,
|
| 970 |
+
806
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 7
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "Training/test settings We train using the Adam optimizer at learning rate 0.001, and a minibatch size of 2 for 2000 epochs. All images are padded to $1 0 2 4 \\mathrm { x } 1 0 2 4$ pixels, so that they are compatible with squeeze layers. We use $3 6 0 ^ { \\circ }$ rotation augmentation, isotropic scalings in the range [0.8, 1.2], and shears drawn from a normal distribution with standard deviation $1 0 ^ { \\circ }$ . At test time we draw samples from our model and compare those against the groundtruth labels. This contrasts with other methods, that measure labels against thresholded versions of a factorized predictive distribution. To create the PR curve in Figure 5 we take the average of 100 samples and threshold the resulting map (example shown in Figure 4). While crude, this mean image is useful in defining a PR-curve, since there is not great topology change between samples. ",
|
| 977 |
+
"bbox": [
|
| 978 |
+
174,
|
| 979 |
+
840,
|
| 980 |
+
825,
|
| 981 |
+
924
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 7
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "",
|
| 988 |
+
"bbox": [
|
| 989 |
+
174,
|
| 990 |
+
103,
|
| 991 |
+
825,
|
| 992 |
+
146
|
| 993 |
+
],
|
| 994 |
+
"page_idx": 8
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"type": "text",
|
| 998 |
+
"text": "Evaluation The results of our experiments are shown in Table 3 and Figure 5, with a visualization in Figure 4. We see in the table that the CNF trained with our binary dequantization achieves the best bits per dimension, with comparable F-score to the state of the art model (DRIU), but our model does not require pretraining on ImageNet. Interestingly, we found training a flow with uniform dequantization slightly unstable and the results were far from satisfactory. In the PR-curve Figure 5, we show a comparable curve for our binary dequantized CNF to the DRIU model. These results, however, say nothing about the calibration of the probability outputs, but just that the various probability predictions are well ranked. To gain an insight into the calibration of the probabilities, we measure the distribution of precision and recall values for point samples drawn from all models, including a second human grader, present in the original DRIVE dataset. We synthesized samples from factored distributions (all except ours and ‘human’), by sampling images from a factored Bernoulli with mean as the soft image. We see the results in the right hand plot of Figure 5, which shows that while the other CNN-based methods such as DRIU or HED have good precision, they suffer in term of recall. On the other hand, the CNF drops in precision a little bit, but makes up for this in terms of high recall, with a PR distribution overlapping the human grader. This indicates that the CNF has learned a well-calibrated distribution, compared to the baseline methods. Further evidence of this is seen in the visualization in Figure 4, which shows details from the predicted means (soft images). This shows that the DRIU and likelihood baseline overdilate segmentations and the CNF does not. This can be explained from the fact that in the weighted Bernoulli it is cheaper to overdilate than to underdilate. Since the CNF contains no handcrafted loss function, we circumvent this pathology. ",
|
| 999 |
+
"bbox": [
|
| 1000 |
+
173,
|
| 1001 |
+
171,
|
| 1002 |
+
825,
|
| 1003 |
+
450
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 8
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "image",
|
| 1009 |
+
"img_path": "images/258f0bc2d5bbcbd0d20d8a912778473082ec933769f1dc7b2d5eb4d68b02c020.jpg",
|
| 1010 |
+
"image_caption": [
|
| 1011 |
+
"Figure 5: Here we show two visualizations of the same data. LEFT: We show the PR-curves generated from a sweeping threshold on soft images output by each listed method. Maximal F-scores for each curve are shown as circles with the green lines indicating constant F-score. We see that our method beats all traditional methods and is on par with DRIU, which unlike us was pretrained on Imagenet. RIGHT: We show a scatter plot in PR-space of samples drawn from each model. To draw samples from the all factored models, we sample images from a factored Bernoulli with a mean as the soft image. We see that the DRIU and HED models, while having good precision, have poor recall in this regime. This indicates that while the output of their networks produce a good ranking of probabilities, the values of the probabilities are poorly calibrated. For us, we drop in precision slightly, but gain greatly in terms of recall, indicating that our samples are drawn from a better calibrated distribution, overlapping significantly with the Human distribution. "
|
| 1012 |
+
],
|
| 1013 |
+
"image_footnote": [],
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
176,
|
| 1016 |
+
479,
|
| 1017 |
+
810,
|
| 1018 |
+
741
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 8
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "6 CONCLUSION ",
|
| 1025 |
+
"text_level": 1,
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
174,
|
| 1028 |
+
102,
|
| 1029 |
+
318,
|
| 1030 |
+
118
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 9
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"text": "In this paper we propose to learn likelihoods of conditional distributions using conditional normalizing flows. In this setting, supervised prediction tasks can be framed probabilistically. In addition, we propose a generalization of variational dequantization for binary random variables, which is useful for binary segmentation problems. Experimentally we show competitive performance with competing methods in the domain of super-resolution and binary image segmentation. ",
|
| 1037 |
+
"bbox": [
|
| 1038 |
+
174,
|
| 1039 |
+
133,
|
| 1040 |
+
825,
|
| 1041 |
+
204
|
| 1042 |
+
],
|
| 1043 |
+
"page_idx": 9
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"text": "REFERENCES ",
|
| 1048 |
+
"text_level": 1,
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
174,
|
| 1051 |
+
224,
|
| 1052 |
+
285,
|
| 1053 |
+
241
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 9
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "Siddharth Agrawal and Ambedkar Dukkipati. Deep variational inference without pixel-wise reconstruction. CoRR, abs/1611.05209, 2016. ",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
174,
|
| 1062 |
+
250,
|
| 1063 |
+
823,
|
| 1064 |
+
277
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 9
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "Lynton Ardizzone, Carsten Luth, Jakob Kruse, Carsten Rother, and Ullrich K ¨ othe. Guided im- ¨ age generation with conditional invertible neural networks. CoRR, abs/1907.02392, 2019. URL http://arxiv.org/abs/1907.02392. ",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
173,
|
| 1073 |
+
287,
|
| 1074 |
+
821,
|
| 1075 |
+
330
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 9
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "Andrei Atanov, Alexandra Volokhova, Arsenii Ashukha, Ivan Sosnovik, and Dmitry Vetrov. Semiconditional normalizing flows for semi-supervised learning. 05 2019. ",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
171,
|
| 1084 |
+
339,
|
| 1085 |
+
823,
|
| 1086 |
+
369
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 9
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "Carlos J. Becker, Roberto Rigamonti, Vincent Lepetit, and Pascal Fua. Supervised feature learning for curvilinear structure segmentation. In Medical Image Computing and Computer-Assisted Intervention - MICCAI 2013 - 16th International Conference, Nagoya, Japan, September 22-26, 2013, Proceedings, Part I, pp. 526–533, 2013. doi: 10.1007/978-3-642-40811-3\\ 66. URL https://doi.org/10.1007/978-3-642-40811-3_66. ",
|
| 1093 |
+
"bbox": [
|
| 1094 |
+
173,
|
| 1095 |
+
378,
|
| 1096 |
+
826,
|
| 1097 |
+
450
|
| 1098 |
+
],
|
| 1099 |
+
"page_idx": 9
|
| 1100 |
+
},
|
| 1101 |
+
{
|
| 1102 |
+
"type": "text",
|
| 1103 |
+
"text": "Marco Bevilacqua, Aline Roumy, Christine Guillemot, and Marie-Line Alberi-Morel. Lowcomplexity single-image super-resolution based on nonnegative neighbor embedding. In BMVC, 2012. ",
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
174,
|
| 1106 |
+
459,
|
| 1107 |
+
825,
|
| 1108 |
+
502
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 9
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "text",
|
| 1114 |
+
"text": "Nicola De Cao, Wilker Aziz, and Ivan Titov. Block neural autoregressive flow. In Proceedings of the Thirty-Fifth Conference on Uncertainty in Artificial Intelligence, UAI 2019, Tel Aviv, Israel, July 22-25, 2019, pp. 511, 2019. ",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
174,
|
| 1117 |
+
512,
|
| 1118 |
+
826,
|
| 1119 |
+
555
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 9
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. CoRR, abs/1606.00915, 2016. URL http://arxiv.org/abs/1606. 00915. ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
173,
|
| 1128 |
+
564,
|
| 1129 |
+
825,
|
| 1130 |
+
621
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 9
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "Ricky T. Q. Chen, Jens Behrmann, David Duvenaud, and Jorn-Henrik Jacobsen. Residual flows for ¨ invertible generative modeling. CoRR, abs/1906.02735, 2019. ",
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
173,
|
| 1139 |
+
631,
|
| 1140 |
+
823,
|
| 1141 |
+
661
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 9
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of imagenet as an alternative to the CIFAR datasets. CoRR, abs/1707.08819, 2017. URL http://arxiv.org/ abs/1707.08819. ",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
173,
|
| 1150 |
+
670,
|
| 1151 |
+
826,
|
| 1152 |
+
713
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 9
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real NVP. CoRR, abs/1605.08803, 2016. URL http://arxiv.org/abs/1605.08803. ",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
171,
|
| 1161 |
+
723,
|
| 1162 |
+
823,
|
| 1163 |
+
752
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 9
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "text",
|
| 1169 |
+
"text": "Piotr Dollar and C. Lawrence Zitnick. Structured forests for fast edge detection. In ´ IEEE International Conference on Computer Vision, ICCV 2013, Sydney, Australia, December 1-8, 2013, pp. 1841–1848, 2013. doi: 10.1109/ICCV.2013.231. URL https://doi.org/10.1109/ ICCV.2013.231. ",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
173,
|
| 1172 |
+
762,
|
| 1173 |
+
825,
|
| 1174 |
+
818
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 9
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "Chao Dong, Chen Change Loy, Kaiming He, and Xiaoou Tang. Image super-resolution using deep convolutional networks. CoRR, abs/1501.00092, 2015. URL http://arxiv.org/abs/ 1501.00092. ",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
173,
|
| 1183 |
+
829,
|
| 1184 |
+
825,
|
| 1185 |
+
871
|
| 1186 |
+
],
|
| 1187 |
+
"page_idx": 9
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"type": "text",
|
| 1191 |
+
"text": "Yaroslav Ganin and Victor S. Lempitsky. $\\mathrm { N } ^ { 4 }$ -fields: Neural network nearest neighbor fields for image transforms. CoRR, abs/1406.6558, 2014. URL http://arxiv.org/abs/1406. 6558. ",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
176,
|
| 1194 |
+
880,
|
| 1195 |
+
823,
|
| 1196 |
+
922
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 9
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "text",
|
| 1202 |
+
"text": "Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Proceedings of the 27th International Conference on Neural Information Processing Systems - Volume 2, NIPS’14, pp. 2672–2680, Cambridge, MA, USA, 2014. MIT Press. URL http://dl.acm.org/ citation.cfm?id=2969033.2969125. ",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
173,
|
| 1205 |
+
103,
|
| 1206 |
+
825,
|
| 1207 |
+
174
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 10
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "Will Grathwohl, Ricky T. Q. Chen, Jesse Bettencourt, Ilya Sutskever, and David Duvenaud. FFJORD: free-form continuous dynamics for scalable reversible generative models. In 7th International Conference on Learning Representations, ICLR 2019, 2019. ",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
174,
|
| 1216 |
+
184,
|
| 1217 |
+
825,
|
| 1218 |
+
227
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 10
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "Jonathan Ho, Xi Chen, Aravind Srinivas, Yan Duan, and Pieter Abbeel. Flow $^ { + + }$ : Improving flowbased generative models with variational dequantization and architecture design. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019. ",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
171,
|
| 1227 |
+
238,
|
| 1228 |
+
825,
|
| 1229 |
+
280
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 10
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "Jonathan Ho, Xi Chen, Aravind Srinivas, Yan Duan, and Pieter Abbeel. Flow $^ { + + }$ : Improving flowbased generative models with variational dequantization and architecture design. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, pp. 2722–2730, 2019. URL http://proceedings.mlr.press/ v97/ho19a.html. ",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
173,
|
| 1238 |
+
291,
|
| 1239 |
+
825,
|
| 1240 |
+
361
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 10
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "text",
|
| 1246 |
+
"text": "Emiel Hoogeboom, Jorn W. T. Peters, Rianne van den Berg, and Max Welling. Integer discrete flows and lossless compression. CoRR, abs/1905.07376, 2019a. URL http://arxiv.org/abs/ 1905.07376. ",
|
| 1247 |
+
"bbox": [
|
| 1248 |
+
173,
|
| 1249 |
+
372,
|
| 1250 |
+
825,
|
| 1251 |
+
415
|
| 1252 |
+
],
|
| 1253 |
+
"page_idx": 10
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"type": "text",
|
| 1257 |
+
"text": "Emiel Hoogeboom, Rianne van den Berg, and Max Welling. Emerging convolutions for generative normalizing flows. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 2019b. ",
|
| 1258 |
+
"bbox": [
|
| 1259 |
+
174,
|
| 1260 |
+
426,
|
| 1261 |
+
823,
|
| 1262 |
+
468
|
| 1263 |
+
],
|
| 1264 |
+
"page_idx": 10
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"type": "text",
|
| 1268 |
+
"text": "Chin-Wei Huang, David Krueger, Alexandre Lacoste, and Aaron C. Courville. Neural autoregressive flows. In Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmsmassan, Stockholm, Sweden, July 10-15, 2018 ¨ , pp. 2083–2092, 2018. ",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
176,
|
| 1271 |
+
479,
|
| 1272 |
+
823,
|
| 1273 |
+
522
|
| 1274 |
+
],
|
| 1275 |
+
"page_idx": 10
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"type": "text",
|
| 1279 |
+
"text": "J. Huang, A. Singh, and N. Ahuja. Single image super-resolution from transformed self-exemplars. In 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5197–5206, June 2015. doi: 10.1109/CVPR.2015.7299156. ",
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
174,
|
| 1282 |
+
532,
|
| 1283 |
+
825,
|
| 1284 |
+
575
|
| 1285 |
+
],
|
| 1286 |
+
"page_idx": 10
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"type": "text",
|
| 1290 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. 2015. ",
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
174,
|
| 1293 |
+
587,
|
| 1294 |
+
736,
|
| 1295 |
+
602
|
| 1296 |
+
],
|
| 1297 |
+
"page_idx": 10
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"type": "text",
|
| 1301 |
+
"text": "Diederik P Kingma and Max Welling. Auto-Encoding Variational Bayes. In Proceedings of the 2nd International Conference on Learning Representations, 2014. ",
|
| 1302 |
+
"bbox": [
|
| 1303 |
+
174,
|
| 1304 |
+
611,
|
| 1305 |
+
825,
|
| 1306 |
+
641
|
| 1307 |
+
],
|
| 1308 |
+
"page_idx": 10
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"type": "text",
|
| 1312 |
+
"text": "Diederik P. Kingma, Tim Salimans, and Max Welling. Improving variational inference with inverse autoregressive flow. CoRR, abs/1606.04934, 2016a. URL http://arxiv.org/abs/1606. 04934. ",
|
| 1313 |
+
"bbox": [
|
| 1314 |
+
173,
|
| 1315 |
+
651,
|
| 1316 |
+
823,
|
| 1317 |
+
694
|
| 1318 |
+
],
|
| 1319 |
+
"page_idx": 10
|
| 1320 |
+
},
|
| 1321 |
+
{
|
| 1322 |
+
"type": "text",
|
| 1323 |
+
"text": "Diederik P. Kingma, Tim Salimans, and Max Welling. Improving variational inference with inverse autoregressive flow. CoRR, abs/1606.04934, 2016b. URL http://arxiv.org/abs/1606. 04934. ",
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
176,
|
| 1326 |
+
705,
|
| 1327 |
+
823,
|
| 1328 |
+
747
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 10
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "text",
|
| 1334 |
+
"text": "Durk P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems 31, pp. 10236– 10245. Curran Associates, Inc., 2018. URL http://papers.nips.cc/paper/ 8224-glow-generative-flow-with-invertible-1x1-convolutions.pdf. ",
|
| 1335 |
+
"bbox": [
|
| 1336 |
+
173,
|
| 1337 |
+
758,
|
| 1338 |
+
825,
|
| 1339 |
+
829
|
| 1340 |
+
],
|
| 1341 |
+
"page_idx": 10
|
| 1342 |
+
},
|
| 1343 |
+
{
|
| 1344 |
+
"type": "text",
|
| 1345 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems 25: 26th Annual Conference on Neural Information Processing Systems 2012. Proceedings of a meeting held December 3-6, 2012, Lake Tahoe, Nevada, United States., pp. 1106–1114, 2012. URL http://papers.nips.cc/paper/ 4824-imagenet-classification-with-deep-convolutional-neural-networks. ",
|
| 1346 |
+
"bbox": [
|
| 1347 |
+
174,
|
| 1348 |
+
840,
|
| 1349 |
+
864,
|
| 1350 |
+
924
|
| 1351 |
+
],
|
| 1352 |
+
"page_idx": 10
|
| 1353 |
+
},
|
| 1354 |
+
{
|
| 1355 |
+
"type": "text",
|
| 1356 |
+
"text": "Chen-Yu Lee, Saining Xie, Patrick W. Gallagher, Zhengyou Zhang, and Zhuowen Tu. Deeplysupervised nets. In Proceedings of the Eighteenth International Conference on Artificial Intelligence and Statistics, AISTATS 2015, San Diego, California, USA, May 9-12, 2015, 2015. URL http://proceedings.mlr.press/v38/lee15a.html. ",
|
| 1357 |
+
"bbox": [
|
| 1358 |
+
174,
|
| 1359 |
+
103,
|
| 1360 |
+
823,
|
| 1361 |
+
160
|
| 1362 |
+
],
|
| 1363 |
+
"page_idx": 11
|
| 1364 |
+
},
|
| 1365 |
+
{
|
| 1366 |
+
"type": "text",
|
| 1367 |
+
"text": "Kevis-Kokitsi Maninis, Jordi Pont-Tuset, Pablo Andres Arbel´ aez, and Luc Van Gool. Deep reti-´ nal image understanding. In Medical Image Computing and Computer-Assisted Intervention - MICCAI 2016 - 19th International Conference, Athens, Greece, October 17-21, 2016, Proceedings, Part II, pp. 140–148, 2016. doi: 10.1007/978-3-319-46723-8\\ 17. URL https: //doi.org/10.1007/978-3-319-46723-8_17. ",
|
| 1368 |
+
"bbox": [
|
| 1369 |
+
173,
|
| 1370 |
+
170,
|
| 1371 |
+
825,
|
| 1372 |
+
241
|
| 1373 |
+
],
|
| 1374 |
+
"page_idx": 11
|
| 1375 |
+
},
|
| 1376 |
+
{
|
| 1377 |
+
"type": "text",
|
| 1378 |
+
"text": "Roey Mechrez, Itamar Talmi, Firas Shama, and Lihi Zelnik-Manor. Learning to maintain natural image statistics. CoRR, abs/1803.04626, 2018. URL http://arxiv.org/abs/1803.04626. ",
|
| 1379 |
+
"bbox": [
|
| 1380 |
+
169,
|
| 1381 |
+
251,
|
| 1382 |
+
823,
|
| 1383 |
+
281
|
| 1384 |
+
],
|
| 1385 |
+
"page_idx": 11
|
| 1386 |
+
},
|
| 1387 |
+
{
|
| 1388 |
+
"type": "text",
|
| 1389 |
+
"text": "Shakir Mohamed and Danilo J. Rezende. Variational information maximisation for intrinsically motivated reinforcement learning. In Proceedings of the 28th International Conference on Neural Information Processing Systems - Volume 2, NIPS’15, pp. 2125–2133, Cambridge, MA, USA, 2015. MIT Press. URL http://dl.acm.org/citation.cfm?id ${ . } = { }$ 2969442.2969477. ",
|
| 1390 |
+
"bbox": [
|
| 1391 |
+
174,
|
| 1392 |
+
291,
|
| 1393 |
+
825,
|
| 1394 |
+
348
|
| 1395 |
+
],
|
| 1396 |
+
"page_idx": 11
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"type": "text",
|
| 1400 |
+
"text": "George Papamakarios, Theo Pavlakou, and Iain Murray. Masked autoregressive flow for density estimation. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 2338–2347. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 6828-masked-autoregressive-flow-for-density-estimation.pdf. ",
|
| 1401 |
+
"bbox": [
|
| 1402 |
+
173,
|
| 1403 |
+
358,
|
| 1404 |
+
825,
|
| 1405 |
+
429
|
| 1406 |
+
],
|
| 1407 |
+
"page_idx": 11
|
| 1408 |
+
},
|
| 1409 |
+
{
|
| 1410 |
+
"type": "text",
|
| 1411 |
+
"text": "Simon JD Prince. Computer vision: models, learning, and inference. Cambridge University Press, 2012. ",
|
| 1412 |
+
"bbox": [
|
| 1413 |
+
171,
|
| 1414 |
+
439,
|
| 1415 |
+
823,
|
| 1416 |
+
468
|
| 1417 |
+
],
|
| 1418 |
+
"page_idx": 11
|
| 1419 |
+
},
|
| 1420 |
+
{
|
| 1421 |
+
"type": "text",
|
| 1422 |
+
"text": "Eduardo Prez-Pellitero, Jordi Salvador, Javier Ruiz-Hidalgo, and Bodo Rosenhahn. Manifold span reduction for super resolution. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR)., June 2016. ",
|
| 1423 |
+
"bbox": [
|
| 1424 |
+
174,
|
| 1425 |
+
478,
|
| 1426 |
+
823,
|
| 1427 |
+
521
|
| 1428 |
+
],
|
| 1429 |
+
"page_idx": 11
|
| 1430 |
+
},
|
| 1431 |
+
{
|
| 1432 |
+
"type": "text",
|
| 1433 |
+
"text": "Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, pp. 1530–1538, 2015. URL http://proceedings.mlr.press/ v37/rezende15.html. ",
|
| 1434 |
+
"bbox": [
|
| 1435 |
+
174,
|
| 1436 |
+
531,
|
| 1437 |
+
825,
|
| 1438 |
+
588
|
| 1439 |
+
],
|
| 1440 |
+
"page_idx": 11
|
| 1441 |
+
},
|
| 1442 |
+
{
|
| 1443 |
+
"type": "text",
|
| 1444 |
+
"text": "Elisa Ricci and Renzo Perfetti. Retinal blood vessel segmentation using line operators and support vector classification. IEEE Trans. Med. Imaging, 26(10):1357–1365, 2007. doi: 10.1109/TMI. 2007.898551. URL https://doi.org/10.1109/TMI.2007.898551. ",
|
| 1445 |
+
"bbox": [
|
| 1446 |
+
173,
|
| 1447 |
+
598,
|
| 1448 |
+
825,
|
| 1449 |
+
641
|
| 1450 |
+
],
|
| 1451 |
+
"page_idx": 11
|
| 1452 |
+
},
|
| 1453 |
+
{
|
| 1454 |
+
"type": "text",
|
| 1455 |
+
"text": "M. S. M. Sajjadi, B. Scholkopf, and M. Hirsch. EnhanceNet: Single image super- ¨ resolution through automated texture synthesis. In Proceedings IEEE International Conference on Computer Vision (ICCV), pp. 4501–4510, Piscataway, NJ, USA, October 2017a. IEEE. URL http://openaccess.thecvf.com/content_ICCV_2017/papers/ Sajjadi_EnhanceNet_Single_Image_ICCV_2017_paper.pdf. ",
|
| 1456 |
+
"bbox": [
|
| 1457 |
+
173,
|
| 1458 |
+
652,
|
| 1459 |
+
825,
|
| 1460 |
+
723
|
| 1461 |
+
],
|
| 1462 |
+
"page_idx": 11
|
| 1463 |
+
},
|
| 1464 |
+
{
|
| 1465 |
+
"type": "text",
|
| 1466 |
+
"text": "M. S. M. Sajjadi, B. Scholkopf, and M. Hirsch.¨ EnhanceNet: Single image superresolution through automated texture synthesis. In Proceedings IEEE International Conference on Computer Vision (ICCV), pp. 4501–4510, Piscataway, NJ, USA, October 2017b. IEEE. URL http://openaccess.thecvf.com/content_ICCV_2017/papers/ Sajjadi_EnhanceNet_Single_Image_ICCV_2017_paper.pdf. ",
|
| 1467 |
+
"bbox": [
|
| 1468 |
+
173,
|
| 1469 |
+
733,
|
| 1470 |
+
825,
|
| 1471 |
+
804
|
| 1472 |
+
],
|
| 1473 |
+
"page_idx": 11
|
| 1474 |
+
},
|
| 1475 |
+
{
|
| 1476 |
+
"type": "text",
|
| 1477 |
+
"text": "Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P. Kingma. Pixelcnn $^ { + + }$ : Improving the pixelcnn with discretized logistic mixture likelihood and other modifications. In 5th International Conference on Learning Representations, ICLR 2017, 2017. ",
|
| 1478 |
+
"bbox": [
|
| 1479 |
+
176,
|
| 1480 |
+
814,
|
| 1481 |
+
823,
|
| 1482 |
+
857
|
| 1483 |
+
],
|
| 1484 |
+
"page_idx": 11
|
| 1485 |
+
},
|
| 1486 |
+
{
|
| 1487 |
+
"type": "text",
|
| 1488 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http: //arxiv.org/abs/1409.1556. ",
|
| 1489 |
+
"bbox": [
|
| 1490 |
+
174,
|
| 1491 |
+
867,
|
| 1492 |
+
823,
|
| 1493 |
+
924
|
| 1494 |
+
],
|
| 1495 |
+
"page_idx": 11
|
| 1496 |
+
},
|
| 1497 |
+
{
|
| 1498 |
+
"type": "text",
|
| 1499 |
+
"text": "Joao V. B. Soares, Jorge J. G. Leandro, Roberto M. Cesar, Herbert F. Jelinek, and Michael J. Cree.˜ Retinal vessel segmentation using the 2-d gabor wavelet and supervised classification. IEEE Trans. Med. Imaging, 25(9):1214–1222, 2006. doi: 10.1109/TMI.2006.879967. URL https: //doi.org/10.1109/TMI.2006.879967. ",
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
173,
|
| 1502 |
+
103,
|
| 1503 |
+
825,
|
| 1504 |
+
160
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 12
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "text",
|
| 1510 |
+
"text": "Joes Staal, Michael D. Abramoff, Meindert Niemeijer, Max A. Viergever, and Bram van Ginneken. \\` Ridge-based vessel segmentation in color images of the retina. IEEE Trans. Med. Imaging, 23 (4):501–509, 2004. doi: 10.1109/TMI.2004.825627. URL https://doi.org/10.1109/ TMI.2004.825627. ",
|
| 1511 |
+
"bbox": [
|
| 1512 |
+
173,
|
| 1513 |
+
170,
|
| 1514 |
+
825,
|
| 1515 |
+
227
|
| 1516 |
+
],
|
| 1517 |
+
"page_idx": 12
|
| 1518 |
+
},
|
| 1519 |
+
{
|
| 1520 |
+
"type": "text",
|
| 1521 |
+
"text": "Lucas Theis, Aaron van den Oord, and Matthias Bethge. A note on the evaluation of generative ¨ models. In 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings, 2016. URL http://arxiv. org/abs/1511.01844. ",
|
| 1522 |
+
"bbox": [
|
| 1523 |
+
173,
|
| 1524 |
+
238,
|
| 1525 |
+
825,
|
| 1526 |
+
294
|
| 1527 |
+
],
|
| 1528 |
+
"page_idx": 12
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"type": "text",
|
| 1532 |
+
"text": "Dustin Tran, Keyon Vafa, Kumar Krishna Agrawal, Laurent Dinh, and Ben Poole. Discrete flows: Invertible generative models of discrete data. In Deep Generative Models for Highly Structured Data, ICLR 2019 Workshop, New Orleans, Louisiana, United States, May 6, 2019, 2019. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ rJlo4UIt_E. ",
|
| 1533 |
+
"bbox": [
|
| 1534 |
+
173,
|
| 1535 |
+
305,
|
| 1536 |
+
825,
|
| 1537 |
+
362
|
| 1538 |
+
],
|
| 1539 |
+
"page_idx": 12
|
| 1540 |
+
},
|
| 1541 |
+
{
|
| 1542 |
+
"type": "text",
|
| 1543 |
+
"text": "Brian L Trippe and Richard E Turner. Conditional density estimation with bayesian normalising flows. 2018. URL https://arxiv.org/abs/1802.04908. ",
|
| 1544 |
+
"bbox": [
|
| 1545 |
+
173,
|
| 1546 |
+
372,
|
| 1547 |
+
823,
|
| 1548 |
+
402
|
| 1549 |
+
],
|
| 1550 |
+
"page_idx": 12
|
| 1551 |
+
},
|
| 1552 |
+
{
|
| 1553 |
+
"type": "text",
|
| 1554 |
+
"text": "Dmitry Ulyanov, Andrea Vedaldi, and Victor S. Lempitsky. Instance normalization: The missing ingredient for fast stylization. CoRR, abs/1607.08022, 2016. URL http://arxiv.org/ abs/1607.08022. ",
|
| 1555 |
+
"bbox": [
|
| 1556 |
+
174,
|
| 1557 |
+
411,
|
| 1558 |
+
825,
|
| 1559 |
+
454
|
| 1560 |
+
],
|
| 1561 |
+
"page_idx": 12
|
| 1562 |
+
},
|
| 1563 |
+
{
|
| 1564 |
+
"type": "text",
|
| 1565 |
+
"text": "Rianne van den Berg, Leonard Hasenclever, Jakub M. Tomczak, and Max Welling. Sylvester normalizing flows for variational inference. In Proceedings of the Thirty-Fourth Conference on Uncertainty in Artificial Intelligence, UAI 2018, Monterey, California, USA, August 6-10, 2018, pp. 393–402, 2018. ",
|
| 1566 |
+
"bbox": [
|
| 1567 |
+
174,
|
| 1568 |
+
465,
|
| 1569 |
+
825,
|
| 1570 |
+
522
|
| 1571 |
+
],
|
| 1572 |
+
"page_idx": 12
|
| 1573 |
+
},
|
| 1574 |
+
{
|
| 1575 |
+
"type": "text",
|
| 1576 |
+
"text": "Aaron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Koray Kavukcuoglu, Oriol Vinyals, and ¨ Alex Graves. Conditional image generation with pixelcnn decoders. In Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, pp. 4790–4798, 2016. ",
|
| 1577 |
+
"bbox": [
|
| 1578 |
+
174,
|
| 1579 |
+
532,
|
| 1580 |
+
825,
|
| 1581 |
+
589
|
| 1582 |
+
],
|
| 1583 |
+
"page_idx": 12
|
| 1584 |
+
},
|
| 1585 |
+
{
|
| 1586 |
+
"type": "text",
|
| 1587 |
+
"text": "Aaron Van Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. In International Conference on Machine Learning, pp. 1747–1756, 2016. ",
|
| 1588 |
+
"bbox": [
|
| 1589 |
+
171,
|
| 1590 |
+
599,
|
| 1591 |
+
825,
|
| 1592 |
+
630
|
| 1593 |
+
],
|
| 1594 |
+
"page_idx": 12
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"type": "text",
|
| 1598 |
+
"text": "Thang Vu, Tung Luu, and Chang Yoo. Perception-Enhanced Image Super-Resolution via Relativistic Generative Adversarial Networks: Munich, Germany, September 8-14, 2018, Proceedings, Part V, pp. 98–113. 01 2019. ISBN 978-3-030-11020-8. doi: 10.1007/978-3-030-11021-5 7. ",
|
| 1599 |
+
"bbox": [
|
| 1600 |
+
174,
|
| 1601 |
+
640,
|
| 1602 |
+
823,
|
| 1603 |
+
683
|
| 1604 |
+
],
|
| 1605 |
+
"page_idx": 12
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "text",
|
| 1609 |
+
"text": "Xintao Wang, Ke Yu, Shixiang Wu, Jinjin Gu, Yihao Liu, Chao Dong, Chen Change Loy, Yu Qiao, and Xiaoou Tang. ESRGAN: enhanced super-resolution generative adversarial networks. CoRR, abs/1809.00219, 2018. URL http://arxiv.org/abs/1809.00219. ",
|
| 1610 |
+
"bbox": [
|
| 1611 |
+
174,
|
| 1612 |
+
693,
|
| 1613 |
+
825,
|
| 1614 |
+
736
|
| 1615 |
+
],
|
| 1616 |
+
"page_idx": 12
|
| 1617 |
+
},
|
| 1618 |
+
{
|
| 1619 |
+
"type": "text",
|
| 1620 |
+
"text": "Zhou Wang, Alan Bovik, Hamid Sheikh, and Eero Simoncelli. Image quality assessment: From error visibility to structural similarity. Image Processing, IEEE Transactions on, 13:600 – 612, 05 2004. doi: 10.1109/TIP.2003.819861. ",
|
| 1621 |
+
"bbox": [
|
| 1622 |
+
173,
|
| 1623 |
+
746,
|
| 1624 |
+
825,
|
| 1625 |
+
789
|
| 1626 |
+
],
|
| 1627 |
+
"page_idx": 12
|
| 1628 |
+
},
|
| 1629 |
+
{
|
| 1630 |
+
"type": "text",
|
| 1631 |
+
"text": "Saining Xie and Zhuowen Tu. Holistically-nested edge detection. In 2015 IEEE International Conference on Computer Vision, ICCV 2015, Santiago, Chile, December 7-13, 2015, pp. 1395–1403, 2015. doi: 10.1109/ICCV.2015.164. URL https://doi.org/10.1109/ICCV.2015. 164. ",
|
| 1632 |
+
"bbox": [
|
| 1633 |
+
173,
|
| 1634 |
+
800,
|
| 1635 |
+
825,
|
| 1636 |
+
856
|
| 1637 |
+
],
|
| 1638 |
+
"page_idx": 12
|
| 1639 |
+
},
|
| 1640 |
+
{
|
| 1641 |
+
"type": "text",
|
| 1642 |
+
"text": "Yuan Yuan, Siyuan Liu, Jiawei Zhang, Yongbing Zhang, Chao Dong, and Liang Lin. Unsupervised image super-resolution using cycle-in-cycle generative adversarial networks. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pp. 814–81409, 2018. ",
|
| 1643 |
+
"bbox": [
|
| 1644 |
+
174,
|
| 1645 |
+
867,
|
| 1646 |
+
825,
|
| 1647 |
+
922
|
| 1648 |
+
],
|
| 1649 |
+
"page_idx": 12
|
| 1650 |
+
},
|
| 1651 |
+
{
|
| 1652 |
+
"type": "text",
|
| 1653 |
+
"text": "Roman Zeyde, Michael Elad, and Matan Protter. On single image scale-up using sparserepresentations. In Proceedings of the 7th International Conference on Curves and Surfaces, pp. 711–730, Berlin, Heidelberg, 2012. Springer-Verlag. ISBN 978-3-642-27412-1. doi: 10.1007/ 978-3-642-27413-8 47. URL https://doi.org/10.1007/978-3-642-27413-8_ 47. ",
|
| 1654 |
+
"bbox": [
|
| 1655 |
+
174,
|
| 1656 |
+
103,
|
| 1657 |
+
825,
|
| 1658 |
+
172
|
| 1659 |
+
],
|
| 1660 |
+
"page_idx": 13
|
| 1661 |
+
},
|
| 1662 |
+
{
|
| 1663 |
+
"type": "text",
|
| 1664 |
+
"text": "A ARCHITECTURES ",
|
| 1665 |
+
"text_level": 1,
|
| 1666 |
+
"bbox": [
|
| 1667 |
+
176,
|
| 1668 |
+
102,
|
| 1669 |
+
354,
|
| 1670 |
+
118
|
| 1671 |
+
],
|
| 1672 |
+
"page_idx": 14
|
| 1673 |
+
},
|
| 1674 |
+
{
|
| 1675 |
+
"type": "text",
|
| 1676 |
+
"text": "This section describes architecture and optimization details of the conditional normalizing flow network, low-resolution image feature extractor, and shallow convolutional neural network in the conditional coupling layers. ",
|
| 1677 |
+
"bbox": [
|
| 1678 |
+
174,
|
| 1679 |
+
133,
|
| 1680 |
+
825,
|
| 1681 |
+
176
|
| 1682 |
+
],
|
| 1683 |
+
"page_idx": 14
|
| 1684 |
+
},
|
| 1685 |
+
{
|
| 1686 |
+
"type": "text",
|
| 1687 |
+
"text": "The conditional coupling layer is shown schematically in Figure 6. This shows that conditioned on an input $\\mathbf { x }$ , we are able to build a relatively straight-forward invertible mapping between latent representations $\\mathbf { z }$ and $\\mathbf { y }$ , which have been partitioned into vectors of equal dimension. ",
|
| 1688 |
+
"bbox": [
|
| 1689 |
+
174,
|
| 1690 |
+
183,
|
| 1691 |
+
825,
|
| 1692 |
+
226
|
| 1693 |
+
],
|
| 1694 |
+
"page_idx": 14
|
| 1695 |
+
},
|
| 1696 |
+
{
|
| 1697 |
+
"type": "image",
|
| 1698 |
+
"img_path": "images/2906cf05b4049b80ff2c97e08543a9486c4b9062c854a0d47dfca1e5c23e7b3a.jpg",
|
| 1699 |
+
"image_caption": [
|
| 1700 |
+
"Figure 6: The forward and reverse paths of the conditional coupling layer. In our experiments we concatenate an embedding of the conditioning input $\\mathbf { x }$ to the latent $\\mathbf { z } _ { 1 }$ , which is fed through another neural network to output the affine transformation parameters applied to $\\mathbf { z } _ { 0 }$ . This operation is invertible in $\\mathbf { z }$ and $\\mathbf { y }$ , but not in $\\mathbf { x }$ . "
|
| 1701 |
+
],
|
| 1702 |
+
"image_footnote": [],
|
| 1703 |
+
"bbox": [
|
| 1704 |
+
251,
|
| 1705 |
+
236,
|
| 1706 |
+
746,
|
| 1707 |
+
314
|
| 1708 |
+
],
|
| 1709 |
+
"page_idx": 14
|
| 1710 |
+
},
|
| 1711 |
+
{
|
| 1712 |
+
"type": "text",
|
| 1713 |
+
"text": "Details for the CNFs are given in Table 5 and the details of the individual coupling layers in Table 6 and 7. The architecture of the feature extractor is given in Table 8. The architecture has levels and subflows, following (Dinh et al., 2016; Kingma & Dhariwal, 2018). All networks are optimized using Adam (Kingma & Ba, 2015) for 200000 iterations. ",
|
| 1714 |
+
"bbox": [
|
| 1715 |
+
174,
|
| 1716 |
+
393,
|
| 1717 |
+
825,
|
| 1718 |
+
450
|
| 1719 |
+
],
|
| 1720 |
+
"page_idx": 14
|
| 1721 |
+
},
|
| 1722 |
+
{
|
| 1723 |
+
"type": "table",
|
| 1724 |
+
"img_path": "images/bf99a8501d282fbd1540158999e38e2cbf793fb01f9b611d6047db5e941bbd34.jpg",
|
| 1725 |
+
"table_caption": [
|
| 1726 |
+
"Table 5: Configuration of the CNF architecture for the super-resolution task. "
|
| 1727 |
+
],
|
| 1728 |
+
"table_footnote": [],
|
| 1729 |
+
"table_body": "<table><tr><td>DATASET</td><td>MINIBATCH SIZE</td><td>LEVELS</td><td>SUB-FLOWS</td><td>LEARNING RATE</td></tr><tr><td>ImageNet32</td><td>64</td><td>2</td><td>8</td><td>0.0001</td></tr><tr><td>ImageNet64</td><td>64</td><td>2</td><td>8</td><td>0.0001</td></tr><tr><td>DRIVE</td><td>2</td><td>2</td><td>2</td><td>0.001</td></tr></table>",
|
| 1730 |
+
"bbox": [
|
| 1731 |
+
222,
|
| 1732 |
+
491,
|
| 1733 |
+
774,
|
| 1734 |
+
559
|
| 1735 |
+
],
|
| 1736 |
+
"page_idx": 14
|
| 1737 |
+
},
|
| 1738 |
+
{
|
| 1739 |
+
"type": "table",
|
| 1740 |
+
"img_path": "images/04d534c32137a63aeae64bd988806712a39468cfccb699e0d8547138059a74a1.jpg",
|
| 1741 |
+
"table_caption": [
|
| 1742 |
+
"Table 6: Architecture details for a single coupling layer in the super resolution task. The variable $c _ { \\mathrm { o u t } }$ denotes the number of output channels. The first two convolutional layers are followed by a ReLU activation. "
|
| 1743 |
+
],
|
| 1744 |
+
"table_footnote": [],
|
| 1745 |
+
"table_body": "<table><tr><td>LAYER</td><td>INTERMEDIATE CHANNELS</td><td>KERNEL SIZE</td></tr><tr><td>Conv2d</td><td>512</td><td>3×3</td></tr><tr><td>Conv2d</td><td>512</td><td>1×1</td></tr><tr><td>Conv2d</td><td>Cout</td><td>3×3</td></tr></table>",
|
| 1746 |
+
"bbox": [
|
| 1747 |
+
299,
|
| 1748 |
+
152,
|
| 1749 |
+
697,
|
| 1750 |
+
223
|
| 1751 |
+
],
|
| 1752 |
+
"page_idx": 15
|
| 1753 |
+
},
|
| 1754 |
+
{
|
| 1755 |
+
"type": "table",
|
| 1756 |
+
"img_path": "images/999132a82e222546bf3a135fec88309ef6e000a401bdaeb0a8e8b3b3d8e593e7.jpg",
|
| 1757 |
+
"table_caption": [
|
| 1758 |
+
"Table 7: Architecture details for a single coupling layer in the DRIVE segmentation task. The variable $c _ { \\mathrm { o u t } }$ denotes the number of output channels for the . The first two convolutional layers are followed by a ReLU activation. "
|
| 1759 |
+
],
|
| 1760 |
+
"table_footnote": [],
|
| 1761 |
+
"table_body": "<table><tr><td>LAYER</td><td>INTERMEDIATECHANNELS</td><td>KERNEL SIZE</td></tr><tr><td>Conv2d</td><td>32</td><td>3×3</td></tr><tr><td>InstanceNorm2d</td><td>32</td><td>-</td></tr><tr><td>ReLU</td><td>-</td><td>1</td></tr><tr><td>Conv2d</td><td>Cout</td><td>3×3</td></tr></table>",
|
| 1762 |
+
"bbox": [
|
| 1763 |
+
269,
|
| 1764 |
+
296,
|
| 1765 |
+
728,
|
| 1766 |
+
382
|
| 1767 |
+
],
|
| 1768 |
+
"page_idx": 15
|
| 1769 |
+
},
|
| 1770 |
+
{
|
| 1771 |
+
"type": "table",
|
| 1772 |
+
"img_path": "images/07e7fb84eddb5f5af9fa3c750f8428430a0dbea1e936aad457a39ea09268ea26.jpg",
|
| 1773 |
+
"table_caption": [
|
| 1774 |
+
"Table 8: Architecture details for the conditioning network in the super-resolution task. Residualin-residual denseblocks Wang et al. (2018) are utilized. The channel growth is adjusted so that the CNF and the factorized baseline have an equal number of parameters. "
|
| 1775 |
+
],
|
| 1776 |
+
"table_footnote": [],
|
| 1777 |
+
"table_body": "<table><tr><td>MODEL TYPE</td><td>RRDB BLOCKS</td><td></td><td>CHANNEL GROWTH|CONTEXT CHANNELS</td></tr><tr><td>CNF</td><td>16</td><td>32</td><td>128</td></tr><tr><td>Factorized LL</td><td>16</td><td>55</td><td>128</td></tr></table>",
|
| 1778 |
+
"bbox": [
|
| 1779 |
+
214,
|
| 1780 |
+
457,
|
| 1781 |
+
784,
|
| 1782 |
+
512
|
| 1783 |
+
],
|
| 1784 |
+
"page_idx": 15
|
| 1785 |
+
},
|
| 1786 |
+
{
|
| 1787 |
+
"type": "text",
|
| 1788 |
+
"text": "B CONDITIONAL IMAGE GENERATION ",
|
| 1789 |
+
"text_level": 1,
|
| 1790 |
+
"bbox": [
|
| 1791 |
+
174,
|
| 1792 |
+
102,
|
| 1793 |
+
508,
|
| 1794 |
+
118
|
| 1795 |
+
],
|
| 1796 |
+
"page_idx": 16
|
| 1797 |
+
},
|
| 1798 |
+
{
|
| 1799 |
+
"type": "text",
|
| 1800 |
+
"text": "In this section, larger versions of the ImageNet64 samples are provided, sampled at different temperatures $\\tau$ . ",
|
| 1801 |
+
"bbox": [
|
| 1802 |
+
174,
|
| 1803 |
+
133,
|
| 1804 |
+
823,
|
| 1805 |
+
161
|
| 1806 |
+
],
|
| 1807 |
+
"page_idx": 16
|
| 1808 |
+
},
|
| 1809 |
+
{
|
| 1810 |
+
"type": "image",
|
| 1811 |
+
"img_path": "images/0a1b755d79f462b7cefbe91d4b81893d50e8c7073b998c76ea0071da28ab93dc.jpg",
|
| 1812 |
+
"image_caption": [
|
| 1813 |
+
"Figure 7: Super resolution results CNF trained on Imagenet64 sampled at temperature $\\tau = 0$ "
|
| 1814 |
+
],
|
| 1815 |
+
"image_footnote": [],
|
| 1816 |
+
"bbox": [
|
| 1817 |
+
271,
|
| 1818 |
+
176,
|
| 1819 |
+
725,
|
| 1820 |
+
527
|
| 1821 |
+
],
|
| 1822 |
+
"page_idx": 16
|
| 1823 |
+
},
|
| 1824 |
+
{
|
| 1825 |
+
"type": "image",
|
| 1826 |
+
"img_path": "images/3257972e069822bca22a6c7f5cbca32b0cdb3c594c59cdf3b43540caa1ed417e.jpg",
|
| 1827 |
+
"image_caption": [
|
| 1828 |
+
"Figure 8: Super resolution results for the CNF trained on Imagenet64 sampled at $\\tau = 0 . 5$ "
|
| 1829 |
+
],
|
| 1830 |
+
"image_footnote": [],
|
| 1831 |
+
"bbox": [
|
| 1832 |
+
271,
|
| 1833 |
+
116,
|
| 1834 |
+
725,
|
| 1835 |
+
464
|
| 1836 |
+
],
|
| 1837 |
+
"page_idx": 17
|
| 1838 |
+
},
|
| 1839 |
+
{
|
| 1840 |
+
"type": "image",
|
| 1841 |
+
"img_path": "images/fd08e3c4f413073f337e8705bf075013fd0c3aff5e295b95f859bf009f1238ad.jpg",
|
| 1842 |
+
"image_caption": [
|
| 1843 |
+
"Figure 9: Super resolution results for the CNF trained on Imagenet64 sampled at $\\tau = 0 . 8$ "
|
| 1844 |
+
],
|
| 1845 |
+
"image_footnote": [],
|
| 1846 |
+
"bbox": [
|
| 1847 |
+
271,
|
| 1848 |
+
529,
|
| 1849 |
+
725,
|
| 1850 |
+
880
|
| 1851 |
+
],
|
| 1852 |
+
"page_idx": 17
|
| 1853 |
+
}
|
| 1854 |
+
]
|
parse/train/rJg3zxBYwH/rJg3zxBYwH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJg3zxBYwH/rJg3zxBYwH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkGabzZgl/rkGabzZgl.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkGabzZgl/rkGabzZgl_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkGabzZgl/rkGabzZgl_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkGabzZgl/rkGabzZgl_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlm/train/3AOj0RCNC2/0.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/1.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/10.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/11.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/12.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/13.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/14.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/15.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/16.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/17.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/2.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/3.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/4.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/5.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/6.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/7.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/8.png
ADDED
|
Git LFS Details
|
vlm/train/3AOj0RCNC2/9.png
ADDED
|
Git LFS Details
|
vlm/train/3RMnfrH_Fi8eU/0.png
ADDED
|
Git LFS Details
|
vlm/train/3RMnfrH_Fi8eU/1.png
ADDED
|
Git LFS Details
|
vlm/train/3RMnfrH_Fi8eU/2.png
ADDED
|
Git LFS Details
|
vlm/train/3RMnfrH_Fi8eU/3.png
ADDED
|
Git LFS Details
|
vlm/train/3RMnfrH_Fi8eU/4.png
ADDED
|
Git LFS Details
|
vlm/train/3RMnfrH_Fi8eU/5.png
ADDED
|
Git LFS Details
|
vlm/train/3RMnfrH_Fi8eU/6.png
ADDED
|
Git LFS Details
|
vlm/train/3RMnfrH_Fi8eU/7.png
ADDED
|
Git LFS Details
|
vlm/train/3RMnfrH_Fi8eU/8.png
ADDED
|
Git LFS Details
|
vlm/train/5Dl1378QutR/0.png
ADDED
|
Git LFS Details
|
vlm/train/5Dl1378QutR/1.png
ADDED
|
Git LFS Details
|
vlm/train/5Dl1378QutR/10.png
ADDED
|
Git LFS Details
|